New module 'sqrt-ieee'.
[gnulib.git] / ChangeLog
1 2012-02-27  Bruno Haible  <bruno@clisp.org>
2
3         New module 'sqrt-ieee'.
4         * modules/sqrt-ieee: New file.
5
6         Tests for module 'sqrtf-ieee'.
7         * modules/sqrtf-ieee-tests: New file.
8         * tests/test-sqrtf-ieee.c: New file.
9         * tests/test-sqrt-ieee.h: New file.
10
11         New module 'sqrtf-ieee'.
12         * modules/sqrtf-ieee: New file.
13
14 2012-02-27  Bruno Haible  <bruno@clisp.org>
15
16         remainderl-ieee: Work around test failure on OSF/1.
17         * m4/remainderl-ieee.m4: New file.
18         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
19         present, test whether remainderl works with a zero second argument.
20         Replace it if not.
21         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
22         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
23         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
24         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
25         (Depends-on): Update conditions.
26         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
27         (Depends-on): Add remainder-ieee.
28         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
29         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
30         module.
31
32         remainderf-ieee: Work around test failure on OSF/1.
33         * m4/remainderf-ieee.m4: New file.
34         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
35         present, test whether remainderf works with a zero second argument.
36         Replace it if not.
37         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
38         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
39         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
40         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
41         (Depends-on): Update conditions.
42         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
43         (Depends-on): Add remainder-ieee.
44         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
45         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
46         module.
47
48         remainder-ieee: Work around test failure on OSF/1.
49         * m4/remainder-ieee.m4: New file.
50         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
51         present, test whether remainder works with a zero second argument.
52         Replace it if not.
53         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
54         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
55         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
56         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
57         (Depends-on): Update dependencies.
58         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
59         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
60         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
61
62         Tests for module 'remainderl-ieee'.
63         * modules/remainderl-ieee-tests: New file.
64         * tests/test-remainderl-ieee.c: New file.
65
66         New module 'remainderl-ieee'.
67         * modules/remainderl-ieee: New file.
68
69         Tests for module 'remainder-ieee'.
70         * modules/remainder-ieee-tests: New file.
71         * tests/test-remainder-ieee.c: New file.
72
73         New module 'remainder-ieee'.
74         * modules/remainder-ieee: New file.
75
76         Tests for module 'remainderf-ieee'.
77         * modules/remainderf-ieee-tests: New file.
78         * tests/test-remainderf-ieee.c: New file.
79         * tests/test-remainder-ieee.h: New file.
80
81         New module 'remainderf-ieee'.
82         * modules/remainderf-ieee: New file.
83
84 2012-02-27  Bruno Haible  <bruno@clisp.org>
85
86         modff, modfl: Fix configure syntax error.
87         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
88         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
89
90 2012-02-27  Bruno Haible  <bruno@clisp.org>
91
92         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
93         * m4/fmodl-ieee.m4: New file.
94         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
95         whether fmodl works with zero arguments. Replace it if not.
96         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
97         (Depends-on): Add fmod-ieee.
98         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
99         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
100
101         fmodf-ieee: Work around test failure on OSF/1.
102         * m4/fmodf-ieee.m4: New file.
103         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
104         whether fmodf works with zero arguments. Replace it if not.
105         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
106         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
107         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
108         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
109         (Depends-on): Update dependencies.
110         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
111         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
112         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
113
114         fmodf-ieee: Work around test failure on MSVC 9.
115         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
116         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
117
118         fmod-ieee: Work around test failures on OSF/1, mingw.
119         * m4/fmod-ieee.m4: New file.
120         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
121         whether fmod works with zero arguments. Replace it if not.
122         * lib/math.in.h (fmod): New declaration.
123         * lib/fmod.c: New file.
124         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
125         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
126         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
127         * modules/fmod (Files): Add lib/fmod.c.
128         (Depends-on): Add math, isinf, trunc, fma.
129         (configure.ac): Arrange to compile lib/fmod.c if needed.
130         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
131         m4/signbit.m4.
132         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
133         * tests/test-math-c++.cc: Check the declaration of fmod.
134         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
135
136         fmodl-ieee: Fix test failures.
137         * lib/fmodl.c (fmodl): Treat Inf specially.
138         * modules/fmodl (Depends-on): Add isinf.
139
140         Tests for module 'fmodl-ieee'.
141         * modules/fmodl-ieee-tests: New file.
142         * tests/test-fmodl-ieee.c: New file.
143
144         New module 'fmodl-ieee'.
145         * modules/fmodl-ieee: New file.
146
147         Tests for module 'fmod-ieee'.
148         * modules/fmod-ieee-tests: New file.
149         * tests/test-fmod-ieee.c: New file.
150
151         New module 'fmod-ieee'.
152         * modules/fmod-ieee: New file.
153
154         Tests for module 'fmodf-ieee'.
155         * modules/fmodf-ieee-tests: New file.
156         * tests/test-fmodf-ieee.c: New file.
157         * tests/test-fmod-ieee.h: New file.
158
159         New module 'fmodf-ieee'.
160         * modules/fmodf-ieee: New file.
161
162 2012-02-27  Bruno Haible  <bruno@clisp.org>
163
164         Tests for module 'rintl-ieee'.
165         * modules/rintl-ieee-tests: New file.
166         * tests/test-rintl-ieee.c: New file.
167
168         New module 'rintl-ieee'.
169         * modules/rintl-ieee: New file.
170
171         Tests for module 'rint-ieee'.
172         * modules/rint-ieee-tests: New file.
173         * tests/test-rint-ieee.c: New file.
174
175         New module 'rint-ieee'.
176         * modules/rint-ieee: New file.
177
178         Tests for module 'rintf-ieee'.
179         * modules/rintf-ieee-tests: New file.
180         * tests/test-rintf-ieee.c: New file.
181         * tests/test-rint-ieee.h: New file.
182
183         New module 'rintf-ieee'.
184         * modules/rintf-ieee: New file.
185
186 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
187
188         regex: re_search etc. should return -2 when memory exhausted
189         This bug was uncovered when testing 'grep'.  Without the fix,
190         re_search and friends return -1 when memory is exhausted, but -1
191         means no match, and this causes grep to falsely report no-match
192         instead of memory-exhaustion.  See
193         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
194         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
195         trouble; this can occur if re_search_internal ran out of memory.
196
197 2012-02-26  Bruno Haible  <bruno@clisp.org>
198
199         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
200         * m4/modfl-ieee.m4: New file.
201         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
202         whether modfl works with Inf. Replace it if not.
203         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
204         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
205         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
206         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
207         (Depends-on): Update dependencies.
208         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
209         m4/signbit.m4.
210         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
211         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
212
213         modfl-ieee: Fix dependencies.
214         * modules/modfl-ieee (Depends-on): Add modf-ieee.
215
216         modfl-ieee: Fix test failures.
217         * lib/modfl.c (modfl): Treat NaN and Inf specially.
218         * modules/modfl (Depends-on): Add isfinite, isinf.
219
220         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
221         * m4/modff-ieee.m4: New file.
222         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
223         whether modff works with NaN and Inf. Replace it if not.
224         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
225         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
226         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
227         * modules/modff (configure.ac): Consider REPLACE_MODFF.
228         (Depends-on): Update dependencies.
229         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
230         m4/signbit.m4.
231         (Depends-on): Add modf-ieee.
232         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
233         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
234
235         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
236         * m4/modf-ieee.m4: New file.
237         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
238         whether modf works with NaN and Inf. Replace it if not.
239         * lib/math.in.h (modf): New declaration.
240         * lib/modf.c: New file.
241         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
242         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
243         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
244         * modules/modf (Files): Add lib/modf.c.
245         (Depends-on): Add math, isfinite, trunc, isinf.
246         (configure.ac): Addrange to compile lib/modf.c if needed.
247         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
248         m4/signbit.m4.
249         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
250         * tests/test-math-c++.cc: Check the declaration of modf.
251         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
252
253         Tests for module 'modfl-ieee'.
254         * modules/modfl-ieee-tests: New file.
255         * tests/test-modfl-ieee.c: New file.
256
257         New module 'modfl-ieee'.
258         * modules/modfl-ieee: New file.
259
260         Tests for module 'modf-ieee'.
261         * modules/modf-ieee-tests: New file.
262         * tests/test-modf-ieee.c: New file.
263
264         New module 'modf-ieee'.
265         * modules/modf-ieee: New file.
266
267         Tests for module 'modff-ieee'.
268         * modules/modff-ieee-tests: New file.
269         * tests/test-modff-ieee.c: New file.
270         * tests/test-modf-ieee.h: New file.
271
272         New module 'modff-ieee'.
273         * modules/modff-ieee: New file.
274
275 2012-02-26  Bruno Haible  <bruno@clisp.org>
276
277         Tests for module 'fabsl-ieee'.
278         * modules/fabsl-ieee-tests: New file.
279         * tests/test-fabsl-ieee.c: New file.
280
281         New module 'fabsl-ieee'.
282         * modules/fabsl-ieee: New file.
283
284         Tests for module 'fabs-ieee'.
285         * modules/fabs-ieee-tests: New file.
286         * tests/test-fabs-ieee.c: New file.
287
288         New module 'fabs-ieee'.
289         * modules/fabs-ieee: New file.
290
291         Tests for module 'fabsf-ieee'.
292         * modules/fabsf-ieee-tests: New file.
293         * tests/test-fabsf-ieee.c: New file.
294         * tests/test-fabs-ieee.h: New file.
295
296         New module 'fabsf-ieee'.
297         * modules/fabsf-ieee: New file.
298
299 2012-02-26  Bruno Haible  <bruno@clisp.org>
300
301         Tests for module 'fmal-ieee'.
302         * modules/fmal-ieee-tests: New file.
303         * tests/test-fmal-ieee.c: New file.
304
305         New module 'fmal-ieee'.
306         * modules/fmal-ieee: New file.
307
308         Tests for module 'fma-ieee'.
309         * modules/fma-ieee-tests: New file.
310         * tests/test-fma-ieee.c: New file.
311
312         New module 'fma-ieee'.
313         * modules/fma-ieee: New file.
314
315         Tests for module 'fmaf-ieee'.
316         * modules/fmaf-ieee-tests: New file.
317         * tests/test-fmaf-ieee.c: New file.
318         * tests/test-fma-ieee.h: New file.
319
320         New module 'fmaf-ieee'.
321         * modules/fmaf-ieee: New file.
322
323 2012-02-26  Bruno Haible  <bruno@clisp.org>
324
325         Tests for module 'ldexpl-ieee'.
326         * modules/ldexpl-ieee-tests: New file.
327         * tests/test-ldexpl-ieee.c: New file.
328
329         New module 'ldexpl-ieee'.
330         * modules/ldexpl-ieee: New file.
331
332         Tests for module 'ldexp-ieee'.
333         * modules/ldexp-ieee-tests: New file.
334         * tests/test-ldexp-ieee.c: New file.
335
336         New module 'ldexp-ieee'.
337         * modules/ldexp-ieee: New file.
338
339         Tests for module 'ldexpf-ieee'.
340         * modules/ldexpf-ieee-tests: New file.
341         * tests/test-ldexpf-ieee.c: New file.
342         * tests/test-ldexp-ieee.h: New file.
343
344         New module 'ldexpf-ieee'.
345         * modules/ldexpf-ieee: New file.
346
347 2012-02-26  Bruno Haible  <bruno@clisp.org>
348
349         Refactor frexp*-ieee tests.
350         * tests/test-frexp-ieee.h: New file.
351         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
352         (main): Just call test_function.
353         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
354         (main): Just call test_function.
355         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
356         (main): Just call test_function.
357         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
358         * modules/frexp-ieee-tests (Files): Likewise.
359         * modules/frexpl-ieee-tests (Files): Likewise.
360
361         Tests for module 'frexpl-ieee'.
362         * modules/frexpl-ieee-tests: New file.
363         * tests/test-frexpl-ieee.c: New file.
364
365         New module 'frexpl-ieee'.
366         * modules/frexpl-ieee: New file.
367
368         Tests for module 'frexp-ieee'.
369         * modules/frexp-ieee-tests: New file.
370         * tests/test-frexp-ieee.c: New file.
371
372         New module 'frexp-ieee'.
373         * modules/frexp-ieee: New file.
374
375         Tests for module 'frexpf-ieee'.
376         * modules/frexpf-ieee-tests: New file.
377         * tests/test-frexpf-ieee.c: New file.
378
379         New module 'frexpf-ieee'.
380         * modules/frexpf-ieee: New file.
381
382 2012-02-26  Bruno Haible  <bruno@clisp.org>
383
384         roundl-ieee tests: More tests.
385         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
386         (main): Add tests for [MX] shaded specification in POSIX.
387         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
388         (Depends-on): Add isnanl-nolibm.
389
390         round-ieee tests: More tests.
391         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
392         (main): Add tests for [MX] shaded specification in POSIX.
393         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
394         (Depends-on): Add isnand-nolibm.
395
396         roundf-ieee tests: More tests.
397         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
398         (main): Add tests for [MX] shaded specification in POSIX.
399         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
400         (Depends-on): Add isnanf-nolibm.
401
402         truncl-ieee tests: More tests.
403         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
404         (main): Add tests for [MX] shaded specification in POSIX.
405         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
406         (Depends-on): Add isnanl-nolibm.
407
408         trunc-ieee tests: More tests.
409         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
410         (main): Add tests for [MX] shaded specification in POSIX.
411         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
412         (Depends-on): Add isnand-nolibm.
413
414         truncf-ieee tests: More tests.
415         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
416         (main): Add tests for [MX] shaded specification in POSIX.
417         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
418         (Depends-on): Add isnanf-nolibm.
419
420         ceill-ieee tests: More tests.
421         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
422         (main): Add tests for [MX] shaded specification in POSIX.
423         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
424         (Depends-on): Add isnanl-nolibm.
425
426         ceil-ieee tests: More tests.
427         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
428         (main): Add tests for [MX] shaded specification in POSIX.
429         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
430         (Depends-on): Add isnand-nolibm.
431
432         ceilf-ieee tests: More tests.
433         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
434         (main): Add tests for [MX] shaded specification in POSIX.
435         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
436         (Depends-on): Add isnanf-nolibm.
437
438         floorl-ieee tests: More tests.
439         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
440         (main): Add tests for [MX] shaded specification in POSIX.
441         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
442         (Depends-on): Add isnanl-nolibm.
443
444         floor-ieee tests: More tests.
445         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
446         (main): Add tests for [MX] shaded specification in POSIX.
447         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
448         (Depends-on): Add isnand-nolibm.
449
450         floorf-ieee tests: More tests.
451         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
452         (main): Add tests for [MX] shaded specification in POSIX.
453         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
454         (Depends-on): Add isnanf-nolibm.
455
456 2012-02-26  Bruno Haible  <bruno@clisp.org>
457
458         fpieee: More comments.
459         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
460
461 2012-02-25  Bruno Haible  <bruno@clisp.org>
462
463         Tests for module 'log10l'.
464         * modules/log10l-tests: New file.
465         * tests/test-log10l.c: New file.
466         * tests/test-math-c++.cc: Check the declaration of log10l.
467
468         New module 'log10l'.
469         * lib/math.in.h (log10l): New declaration.
470         * lib/log10l.c: New file.
471         * m4/log10l.m4: New file.
472         * modules/log10l: New file.
473         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
474         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
475         HAVE_DECL_LOG10L.
476         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
477         HAVE_DECL_LOG10L.
478         * doc/posix-functions/log10l.texi: Mention the new module.
479
480 2012-02-25  Bruno Haible  <bruno@clisp.org>
481
482         fmodl, remainder*: Avoid wrong results due to rounding errors.
483         * lib/fmodl.c (fmodl): Correct the result if it is not within the
484         expected bounds.
485         * lib/remainderf.c (remainderf): Likewise.
486         * lib/remainder.c (remainder): Likewise.
487         * lib/remainderl.c (remainderl): Likewise.
488
489 2012-02-25  Bruno Haible  <bruno@clisp.org>
490
491         Tests for module 'remainderl'.
492         * modules/remainderl-tests: New file.
493         * tests/test-remainderl.c: New file.
494         * tests/test-math-c++.cc: Check the declaration of remainderl.
495
496         New module 'remainderl'.
497         * lib/math.in.h (remainderl): New declaration.
498         * lib/remainderl.c: New file.
499         * m4/remainderl.m4: New file.
500         * modules/remainderl: New file.
501         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
502         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
503         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
504         HAVE_REMAINDERL.
505         * doc/posix-functions/remainderl.texi: Mention the new module.
506
507 2012-02-25  Bruno Haible  <bruno@clisp.org>
508
509         Tests for module 'remainderf'.
510         * modules/remainderf-tests: New file.
511         * tests/test-remainderf.c: New file.
512         * tests/test-math-c++.cc: Check the declaration of remainderf.
513
514         New module 'remainderf'.
515         * lib/math.in.h (remainderf): New declaration.
516         * lib/remainderf.c: New file.
517         * m4/remainderf.m4: New file.
518         * modules/remainderf: New file.
519         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
520         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
521         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
522         HAVE_REMAINDERF.
523         * doc/posix-functions/remainderf.texi: Mention the new module.
524
525 2012-02-25  Bruno Haible  <bruno@clisp.org>
526
527         remainder: Support for MSVC.
528         * lib/math.in.h (remainder): New declaration.
529         * lib/remainder.c: New file.
530         * m4/remainder.m4: New file.
531         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
532         (Depends-on): Add math, round, fma.
533         (configure.ac): Use results of gl_FUNC_REMAINDER.
534         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
535         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
536         HAVE_DECL_REMAINDER.
537         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
538         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
539         * tests/test-math-c++.cc: Check the declaration of remainder.
540         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
541         problems are fixed.
542
543 2012-02-25  Bruno Haible  <bruno@clisp.org>
544
545         Tests for module 'fmodl'.
546         * modules/fmodl-tests: New file.
547         * tests/test-fmodl.c: New file.
548         * tests/test-math-c++.cc: Check the declaration of fmodl.
549
550         New module 'fmodl'.
551         * lib/math.in.h (fmodl): New declaration.
552         * lib/fmodl.c: New file.
553         * m4/fmodl.m4: New file.
554         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
555         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
556         REPLACE_FMODL.
557         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
558         REPLACE_FMODL.
559         * modules/fmodl: New file.
560         * doc/posix-functions/fmodl.texi: Mention the new module.
561
562 2012-02-25  Bruno Haible  <bruno@clisp.org>
563
564         Tests for module 'modfl'.
565         * modules/modfl-tests: New file.
566         * tests/test-modfl.c: New file.
567         * tests/test-math-c++.cc: Check the declaration of modfl.
568
569         New module 'modfl'.
570         * lib/math.in.h (modfl): New declaration.
571         * lib/modfl.c: New file.
572         * m4/modfl.m4: New file.
573         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
574         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
575         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
576         * modules/modfl: New file.
577         * doc/posix-functions/modfl.texi: Mention the new module.
578
579 2012-02-25  Bruno Haible  <bruno@clisp.org>
580
581         Tests for module 'fabsl'.
582         * modules/fabsl-tests: New file.
583         * tests/test-fabsl.c: New file.
584         * tests/test-math-c++.cc: Check the declaration of fabsl.
585
586         New module 'fabsl'.
587         * lib/math.in.h (fabsl): New declaration.
588         * lib/fabsl.c: New file.
589         * m4/fabsl.m4: New file.
590         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
591         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
592         REPLACE_FABSL.
593         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
594         REPLACE_FABSL.
595         * modules/fabsl: New file.
596         * doc/posix-functions/fabsl.texi: Mention the new module.
597
598 2012-02-25  Bruno Haible  <bruno@clisp.org>
599
600         fabs tests: More tests.
601         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
602         (zero): New variable.
603         (main): Add tests for signed zero.
604         * modules/fabs-tests (Files): Add tests/minus-zero.h.
605
606         fabsf tests: More tests.
607         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
608         (zero): New variable.
609         (main): Add tests for signed zero.
610         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
611
612 2012-02-24  Bruno Haible  <bruno@clisp.org>
613
614         atanl: Provide function definition on MSVC.
615         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
616         function pointer.
617         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
618
619 2012-02-24  Bruno Haible  <bruno@clisp.org>
620
621         acosl: Provide function definition on MSVC.
622         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
623         function pointer.
624         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
625
626 2012-02-24  Bruno Haible  <bruno@clisp.org>
627
628         asinl: Provide function definition on MSVC.
629         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
630         function pointer.
631         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
632
633 2012-02-24  Bruno Haible  <bruno@clisp.org>
634
635         tanl: Provide function definition on MSVC.
636         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
637         function pointer.
638         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
639
640 2012-02-24  Bruno Haible  <bruno@clisp.org>
641
642         cosl: Provide function definition on MSVC.
643         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
644         function pointer.
645         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
646
647 2012-02-24  Bruno Haible  <bruno@clisp.org>
648
649         sinl: Provide function definition on MSVC.
650         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
651         function pointer.
652         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
653
654 2012-02-24  Bruno Haible  <bruno@clisp.org>
655
656         logl: Provide function definition on MSVC.
657         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
658         function pointer.
659         * lib/math.in.h (logl): Undefine if it does not exist as a function.
660
661 2012-02-24  Bruno Haible  <bruno@clisp.org>
662
663         expl: Provide function definition on MSVC.
664         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
665         function pointer.
666         * lib/math.in.h (expl): Undefine if it does not exist as a function.
667
668 2012-02-24  Bruno Haible  <bruno@clisp.org>
669
670         sqrtl: Provide function definition on MSVC.
671         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
672         a function pointer.
673         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
674
675 2012-02-24  Bruno Haible  <bruno@clisp.org>
676
677         ceill: Provide function definition on MSVC.
678         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
679         used as a function pointer.
680         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
681
682 2012-02-24  Bruno Haible  <bruno@clisp.org>
683
684         floorl: Provide function definition on MSVC.
685         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
686         used as a function pointer.
687         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
688
689 2012-02-24  Bruno Haible  <bruno@clisp.org>
690
691         ceilf: Provide function definition on MSVC.
692         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
693         used as a function pointer.
694         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
695
696 2012-02-24  Bruno Haible  <bruno@clisp.org>
697
698         floorf: Provide function definition on MSVC.
699         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
700         used as a function pointer.
701         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
702
703 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
704
705         stdnoreturn: new module
706         This implements a replacement for C11's <stdnoreturn.h>.
707         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
708         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
709         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
710         * tests/test-stdnoreturn.c: New files.
711
712 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
713
714         regex: fix false multibyte matches in some regular expressions
715         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
716         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
717         * lib/regex_internal.c (re_string_skip_chars):
718         Fix miscomputation of remain_len that may cause incomplete
719         multi-byte character and false match.
720
721 2012-02-24  Jim Meyering  <meyering@redhat.com>
722
723         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
724         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
725         uses with "==" *before* the call, e.g., 0 == strcmp (...)
726         Remove now-unnecessary str''cmp obfuscation.
727         Suggested by Akim Demaille.
728
729 2012-02-24  Bruno Haible  <bruno@clisp.org>
730
731         streq: Rename macro.
732         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
733         * NEWS: Mention the change.
734         * lib/mbrtowc.c (mbrtowc): Update.
735         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
736         * lib/wcwidth.c (wcwidth): Update.
737         Suggested by Akim Demaille and Jim Meyering.
738
739 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
740
741         regex: fix typo in definition of MIN
742         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
743         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
744
745 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
746             Bruno Haible  <bruno@clisp.org>
747
748         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
749         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
750         entries into a stack-allocated buffer directly.
751         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
752
753 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
754             Bruno Haible  <bruno@clisp.org>
755
756         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
757
758          - There were several instances of this pattern:
759
760              for (;;) {
761                n = acl (f, GETACLCNT, 0, NULL);
762                [ allocate an array A of size N ]
763                if (acl (f, GETACL, n, a) == n)
764                  break;
765              }
766
767            This loop might never terminate if some other process is constantly
768            manipulating the file's ACL.  The loop should be rewritten to
769            terminate.
770
771          - The acl (... GETACLNT ...) call is merely an optimization; its value
772            is merely a hint as to how big to make the array.  A better
773            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
774            and just guess a reasonably-big size, growing the size and trying
775            again if it's not large enough.  This guarantees termination, and
776            saves a system call.
777
778         * lib/acl-internal.h: Include <limits.h>.
779         (MIN, SIZE_MAX): New macros.
780         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
781         a stack-allocated buffer, and use malloc if it does not fit. Don't
782         use GETACLCNT.
783         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
784
785 2012-02-19  Bruno Haible  <bruno@clisp.org>
786
787         acl: Fix endless loop on Solaris with vxfs.
788         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
789         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
790         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
791         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
792         * tests/test-sameacls.c (main)[Solaris]: Likewise.
793         Reported by Bill Jones in
794         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
795
796 2012-02-19  Bruno Haible  <bruno@clisp.org>
797
798         acl: Fix copy-acl test failure on Solaris 11 2011-11.
799         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
800         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
801         that this function returns 0 in some more cases.
802
803 2012-02-19  Bruno Haible  <bruno@clisp.org>
804
805         acl: Update doc references.
806         * doc/acl-resources.txt: Update links to Solaris documentation.
807
808 2012-02-19  Bruno Haible  <bruno@clisp.org>
809
810         Fix test failure in many locales on Solaris 11.
811         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
812         'tr' arguments.
813         * tests/test-pipe-filter-ii1.c (main): Likewise.
814         * build-aux/bootstrap (check_versions): Run 'tr' command with range
815         expressions in the C locale.
816         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
817         * m4/host-os.m4 (gl_HOST_OS): Likewise.
818
819 2012-02-19  Bruno Haible  <bruno@clisp.org>
820
821         gnulib-tool: Improve usage message.
822         * gnulib-tool (func_usage): Move doc of --help and --version to the
823         section "Operation modes".
824
825 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
826
827         README-release: make it easier to execute commands
828         * top/README-release: break commands out on to separate lines.
829
830 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
831
832         GNUmakefile: simplify detection of unconfigured trees
833         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
834         whether the tree make is being run from is already configured or
835         not.  Related simplifications.
836
837 2012-02-13  Simon Josefsson  <simon@josefsson.org>
838
839         * gnulib-tool (func_usage): Document --help and --version.
840
841 2012-02-11  Jim Meyering  <meyering@redhat.com>
842
843         bootstrap: don't exit 0 upon gnulib-tool failure
844         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
845         its exit status, not 0.
846
847 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
848
849         README-release: various improvements
850         * top/README-release: Give a command to push changes for the
851         release.  Add "distcheck" to list of other pre-release checks.
852         Fix instance of "make stable" which should be "make TYPE".
853
854 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
855
856         maint: replace FSF snail-mail addresses with URLs
857         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
858         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
859         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
860         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
861         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
862         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
863         * lib/check-version.c, lib/check-version.h, lib/config.charset:
864         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
865         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
866         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
867         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
868         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
869         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
870         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
871         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
872         * lib/glthread/thread.c, lib/glthread/thread.h:
873         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
874         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
875         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
876         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
877         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
878         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
879         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
880         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
881         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
882         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
883         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
884         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
885         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
886         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
887         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
888         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
889         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
890         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
891         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
892         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
893         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
894         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
895         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
896         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
897         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
898         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
899         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
900         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
901         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
902         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
903         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
904         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
905         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
906         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
907         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
908         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
909         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
910         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
911         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
912         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
913         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
914         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
915         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
916         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
917         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
918         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
919         * tests/test-poll.c, tests/test-quotearg-simple.c:
920         * tests/test-quotearg.c, tests/test-quotearg.h:
921         * tests/test-round-ieee.c, tests/test-round1.c:
922         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
923         * tests/test-roundl-ieee.c, tests/test-roundl.c:
924         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
925         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
926         * tests/test-strerror.c, tests/test-strerror_r.c:
927         * tests/test-strsignal.c, tests/test-strverscmp.c:
928         * tests/test-xmemdup0.c:
929         Replace FSF snail mail addresses with URLs, as per GNU coding
930         standards.  See glibc bug
931         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
932
933 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
934
935         README-release: capitalize a word and split a line
936         * top/README-release: Fix punctuation and spacing.
937
938 2012-02-08  Akim Demaille  <demaille@gostai.com>
939
940         fatal-signal: use C prototypes (with explicit void).
941         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
942         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
943
944 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
945
946         regex: spelling fix
947         * lib/regexec.c: spelling fix
948
949         regex: rely on stdint.h for SIZE_MAX
950         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
951
952 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
953
954         regex: merge glibc changes
955
956         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
957         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
958         (init_word_char): Work even if bitset words are not exactly 32 or
959         64 bits wide.  Don't assume there are no padding bits.
960         * lib/regex.c [_LIBC]: Do not include <config.h>.
961         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
962         and -Wtype-limits.
963         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
964         needless disagreement with glibc.  All uses changed.  Define it to
965         1 only if _GNU_SOURCE, to match glibc.
966         (_REG_RM_NAME): Remove; no longer needed, since the names in
967         question are now all protected by __USE_GNU.
968         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
969         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
970         * lib/regex_internal.h (MIN): New macro.
971
972         2012-01-03 Ulrich Drepper <drepper@gmail.com>
973         * lib/regcomp.c (init_word_char): Optimize regex a bit.
974
975         2011-12-30 Jakub Jelinek <jakub@redhat.com>
976         * lib/regex_internal.c (re_string_fetch_byte_case):
977         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
978         is miscompiled, and it turns out it is because of an incorrect
979         attribute on re_string_fetch_byte_case.  Unlike
980         re_string_peek_byte_case, this one is really not pure, it modifies
981         memory (increments pstr->cur_idx), and with the pure attribute GCC
982         assumed it doesn't and it cached the presumed value of
983         regexp->cur_idx in a variable across the
984          for (;; ++i)
985            {
986              if (i >= BRACKET_NAME_BUF_SIZE)
987                return REG_EBRACK;
988              if (token->type == OP_OPEN_CHAR_CLASS)
989                ch = re_string_fetch_byte_case (regexp);
990              else
991                ch = re_string_fetch_byte (regexp);
992              if (re_string_eoi(regexp))
993                return REG_EBRACK;
994              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
995                break;
996              elem->opr.name[i] = ch;
997            }
998
999         2011-11-29 Andreas Schwab <schwab@redhat.com>
1000         * lib/regcomp.c (build_equiv_class):
1001         Fix access after end of search string in regex matcher.
1002
1003         2011-11-12 Ulrich Drepper <drepper@redhat.com>
1004         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
1005
1006         2011-10-12 Ulrich Drepper <drepper@redhat.com>
1007         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
1008
1009         2011-10-11 Ulrich Drepper <drepper@redhat.com>
1010         * lib/regcomp.c (parse_branch, parse_sub_exp):
1011         More regex memory leak fixes and tests.
1012         (parse_sub_exp, parse_bracket_exp):
1013         Fix memory leak for some invalid regular expressions.
1014
1015         2011-05-28 Ulrich Drepper <drepper@gmail.com>
1016         * lib/regex_internal.c, lib/regexec.c:
1017         Fix unnecessary overallocation due to incomplete character.  When
1018         incomplete characters are found at the end of a string the code
1019         ran amok and allocated lots of memory.  Stricter limits are now in
1020         place.
1021
1022         2011-05-20 Reuben Thomas <rrt@sc3d.org>
1023         * lib/regex.h: Update documentation.
1024
1025         2011-05-16 Aharon Robbins <arnold@skeeve.com>
1026         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
1027
1028         2010-05-05 Andreas Schwab <schwab@redhat.com>
1029         * lib/regexec.c (find_collation_sequence_value):
1030         Fix lookup of collation sequence value during regexp matching.
1031
1032         2010-01-22 Ulrich Drepper <drepper@redhat.com>
1033         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
1034
1035         2008-01-16 Ulrich Drepper <drepper@redhat.com>
1036         * lib/regex.h: Cleanup namespace.
1037
1038         2007-11-26 Ulrich Drepper <drepper@redhat.com>
1039         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
1040
1041         2007-08-26 Ulrich Drepper <drepper@redhat.com>
1042         * lib/regex_internal.h: Prevent some declarations and definitions
1043         to be seen when used in tests.
1044
1045         2005-05-06 Ulrich Drepper <drepper@redhat.com>
1046         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
1047         __libc_lock_* macros if not _LIBC.
1048         (struct re_dfa_t): Add lock.
1049
1050 2012-02-07  Eric Blake  <eblake@redhat.com>
1051
1052         maint.mk: also prohibit lower-case @var@
1053         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
1054         lower case, like @top_srcdir@.
1055
1056 2012-02-04  Eric Blake  <eblake@redhat.com>
1057
1058         canonicalize: avoid uninitialized memory use
1059         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
1060         random '/' left in dest.
1061         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
1062
1063 2012-02-04  Bruno Haible  <bruno@clisp.org>
1064
1065         isatty: Fix test failure of ptsname_r on native Windows.
1066         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
1067         and don't set errno.
1068         (isatty): Test first whether fd is valid. Set errno when returning 0.
1069
1070 2012-02-04  Bruno Haible  <bruno@clisp.org>
1071
1072         spawn-pipe tests: Fix a NULL program name in a diagnostic.
1073         * tests/test-spawn-pipe-main.c: Include progname.h.
1074         (main): Invoke set_program_name.
1075         * modules/spawn-pipe-tests (Depends-on): Add progname.
1076
1077         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
1078         * tests/test-nonblocking-socket-main.c: Include progname.h.
1079         (main): Invoke set_program_name.
1080         * modules/nonblocking-socket-tests (Depends-on): Add progname.
1081
1082         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
1083         * tests/test-nonblocking-pipe-main.c: Include progname.h.
1084         (main): Invoke set_program_name.
1085         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
1086
1087 2012-02-04  Eric Blake  <eblake@redhat.com>
1088
1089         canonicalize-lgpl: fix // handling
1090         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
1091
1092         canonicalize: fix // handling
1093         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
1094         /// to //, since only // is special.
1095
1096 2012-02-04  Bruno Haible  <bruno@clisp.org>
1097
1098         ioctl: Fix test failure on native Windows.
1099         * lib/ioctl.c: Include msvc-nothrow.h.
1100         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
1101
1102 2012-02-04  Bruno Haible  <bruno@clisp.org>
1103
1104         fsync: Avoid test failure on native Windows.
1105         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
1106         read-only.
1107
1108 2012-02-04  Bruno Haible  <bruno@clisp.org>
1109
1110         sys_select: Avoid syntax error on OpenBSD 5.0.
1111         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
1112         currently being included, just include the system's <sys/select.h>.
1113
1114 2012-02-04  Bruno Haible  <bruno@clisp.org>
1115
1116         sys_select: Avoid syntax error on OpenBSD 5.0.
1117         * lib/sys_select.in.h: Include <signal.h> only after the include_next
1118         <sys/select.h>, not before.
1119         Reported by Jiri B <jirib@devio.us>.
1120
1121 2012-02-04  Bruno Haible  <bruno@clisp.org>
1122
1123         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
1124         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
1125         global variables.
1126         * tests/test-get-rusage-data.c (main): Likewise.
1127         Reported by Jim Meyering.
1128
1129 2012-02-04  Bruno Haible  <bruno@clisp.org>
1130
1131         stdioext: Fix last commit.
1132         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
1133
1134 2012-02-03  Bruno Haible  <bruno@clisp.org>
1135
1136         stdioext: Add tentative support for Plan9.
1137         * lib/stdio-impl.h: Include <errno.h>.
1138         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
1139         * lib/freadable.c (freadable): Likewise.
1140         * lib/fwritable.c (fwritable): Likewise.
1141         * lib/fbufmode.c (fbufmode): Likewise.
1142         * lib/freading.c (freading): Likewise.
1143         * lib/fwriting.c (fwriting): Likewise.
1144         * lib/freadptr.c (freadptr): Likewise.
1145         * lib/freadseek.c (freadptrinc): Likewise.
1146         * lib/freadahead.c (freadahead): Likewise.
1147         * lib/fpurge.c (fpurge): Likewise.
1148         * lib/fseeko.c (rpl_fseeko): Likewise.
1149         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
1150         Reported by Jens Staal <staal1978@gmail.com>.
1151
1152 2012-02-02  Jim Meyering  <meyering@redhat.com>
1153
1154         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
1155         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
1156         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
1157         not even to try to add the attribute.  Instead, add a pragma to suppress
1158         the suggestion/warning.
1159
1160 2012-01-31  Karl Berry  <karl@gnu.org>
1161
1162         setstate doc: typo.
1163         * doc/posix-functions/setstate.texi (setstate): { not (.
1164
1165 2012-01-31  Bruno Haible  <bruno@clisp.org>
1166
1167         popen: Make more robust on Windows.
1168         * lib/popen.c: On native Windows, use the _popen based code even if
1169         HAVE_POPEN is set.
1170         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
1171         environment variable on native Windows.
1172
1173 2012-01-30  Bruno Haible  <bruno@clisp.org>
1174
1175         pclose: Fix typo.
1176         * lib/stdio.in.h (pclose): Fix typo in warning message.
1177
1178 2012-01-30  Bruno Haible  <bruno@clisp.org>
1179
1180         doc about getlogin_r, setstate.
1181         * doc/posix-functions/getlogin_r.texi: List the incompatible
1182         declaration problem under "not fixed by gnulib".
1183         * doc/posix-functions/setstate.texi: Mention incompatible declaration
1184         problem on Solaris 11 and other platforms.
1185
1186 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
1187             Bruno Haible  <bruno@clisp.org>
1188
1189         poll tests: Make test more robust.
1190         * tests/test-poll.c: Include macros.h.
1191         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
1192         return value of various I/O operations.
1193         * modules/poll-tests (Files): Add tests/macros.h.
1194
1195 2012-01-30  Bruno Haible  <bruno@clisp.org>
1196
1197         sys_stat: Fix support for mingw64 and MSVC.
1198         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
1199         header files already do it.
1200         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
1201         stat itself.
1202         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
1203
1204 2012-01-30  Bruno Haible  <bruno@clisp.org>
1205
1206         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
1207         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
1208         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
1209
1210 2012-01-29  Bruno Haible  <bruno@clisp.org>
1211
1212         quotearg: Fix test failure on MacOS X 10.5.
1213         * tests/test-quotearg-simple.c: Include localcharset.h.
1214         (main): If the locale encoding is not ASCII, bypass the tests of
1215         locale_quoting_style and clocale_quoting_style.
1216         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
1217
1218 2012-01-29  Jim Meyering  <meyering@redhat.com>
1219
1220         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
1221         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
1222         detect uses of canonicalize_file_name.
1223
1224 2012-01-28  Bruno Haible  <bruno@clisp.org>
1225
1226         test-framework-sh: Fix test failure with AIX 7.1 diff.
1227         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
1228         in column 1, like 'diff -c' does.
1229         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
1230         whether 'diff -u' is used. Instead, test whether the output contains
1231         some '@' character.
1232
1233 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
1234
1235         strtoimax: eliminate need for stdint.h, inttypes.h checks
1236         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
1237         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
1238         the prerequisites for a recently-introduced strtoimax test.
1239         I guess this might cause strtoimax to be replaced when not
1240         strictly necessary on older hosts, but this shouldn't introduce
1241         any bugs and it should make Emacs 'configure' faster on typical
1242         modern hosts.  Problem discovered when importing the latest gnulib
1243         to an Emacs test version.
1244         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
1245
1246 2012-01-28  Bruno Haible  <bruno@clisp.org>
1247
1248         sys_time: Override 'struct timeval' on some native Windows platforms.
1249         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
1250         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
1251         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
1252         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
1253         needs to be overridden.
1254         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
1255         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
1256         * tests/test-sys_select.c: Check that the tv_sec member has the same
1257         size as a 'time_t'.
1258         * tests/test-sys_time.c: Likewise.
1259         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
1260         is set, set also REPLACE_GETTIMEOFDAY.
1261         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
1262         convert the resulting 'struct timeval' before returning.
1263         * lib/select.c: Include <sys/time.h>.
1264         (select, timeval): Undefine at the right place.
1265         * modules/select (Depends-on): Add sys_time.
1266         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
1267         some Windows platforms.
1268         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
1269
1270 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
1271
1272         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
1273         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
1274         an integer.
1275         * lib/fcntl.c (dupfd): Likewise.
1276         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
1277
1278 2012-01-28  Bruno Haible  <bruno@clisp.org>
1279
1280         fcntl: Avoid compilation error on native Windows.
1281         * modules/fcntl (Depends-on): Add 'close'.
1282
1283 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
1284
1285         select, poll, isatty: Avoid warnings on x86_64 mingw64.
1286         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
1287         pointer to an integer.
1288         * lib/poll.c (IsConsoleHandle): Likewise.
1289         * lib/isatty.c (IsConsoleHandle): Likewise.
1290
1291 2012-01-28  Jim Meyering  <meyering@redhat.com>
1292
1293         doc: clarify README-release
1294         * top/README-release: Clarify: you should make a point to have
1295         the latest stable versions of build tools in your PATH, and the
1296         reference to buildreq is solely for its list of tool names, not
1297         for its minimal-functional version numbers.
1298         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
1299
1300         maint.mk: use more readable (yet functionally equivalent) quoting
1301         It is common to quote a single quote in a single quoted string like
1302         this:  '...'\''...'.  Unless you know the idiom, that looks like
1303         gibberish, so prefer to double-quote the string when possible.
1304         Then you can use a more readable, lone single quote: "...'..."
1305         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
1306         "don't" is more readable than the equivalent 'don'\''t'.
1307         (sc_cast_of_x_alloc_return_value): Likewise.
1308         (sc_cast_of_alloca_return_value): Likewise.
1309         (sc_makefile_path_separator_check): Similar: use ":" in '...',
1310         rather than '\'':'\''.
1311
1312 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
1313
1314         stdalign: relax _Alignof and tighten _Alignas test
1315         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
1316         as it was too strict: alignof must divide offsetof, but it need
1317         not equal offsetof.  Inspired by Joseph S. Myers's comment
1318         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
1319         Conversely, tighten the _Alignas test a bit, as the resulting
1320         alignment must be exactly 8.
1321
1322 2012-01-27  Bruno Haible  <bruno@clisp.org>
1323
1324         stdalign: Document the last change.
1325         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
1326
1327 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
1328
1329         stdalign: check that alignof and offsetof are consistent
1330         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
1331         Problem reported for gnulib by Richard W.M. Jones in
1332         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
1333
1334 2012-01-27  Jim Meyering  <meyering@redhat.com>
1335
1336         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
1337         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
1338         convert a sequence with gaps to the minimal containing range.
1339         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
1340         * tests/test-update-copyright.sh: Test for this.
1341         The FSF confirmed it is ok to do this, assuming there is at
1342         least one significant change per year in the affected range:
1343         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
1344
1345 2012-01-26  Bruno Haible  <bruno@clisp.org>
1346
1347         pipe2: refine doc about thread-safety
1348         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
1349         multithread-safety problem.
1350         * doc/glibc-functions/accept4.texi: Likewise.
1351
1352 2012-01-26  Bruno Haible  <bruno@clisp.org>
1353
1354         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
1355         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
1356         In the test program, include <fcntl.h>, for O_RDONLY.
1357
1358 2012-01-26  Eric Blake  <eblake@redhat.com>
1359
1360         pipe2: document lack of thread-safety in replacement
1361         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
1362         issue in replacement.
1363         * doc/glibc-functions/accept4.texi (accept4): Likewise.
1364         Based on a report by Eric Wong.
1365
1366 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
1367             Bruno Haible  <bruno@clisp.org>
1368
1369         malloca: Avoid warnings on x86_64 mingw64.
1370         * lib/malloca.c: Include <stdint.h>.
1371         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
1372         * modules/malloca (Depends-on): Add stdint.
1373         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
1374
1375 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
1376
1377         obstack: remove __STDC__ conditionals
1378         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
1379         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
1380         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
1381         m4/include_next.m4 as the only gnulib-maintained places that still
1382         refer to __STDC__.
1383
1384 2012-01-24  Bruno Haible  <bruno@clisp.org>
1385
1386         havelib: Modern quoting.
1387         * build-aux/config.rpath: Quote 'like this', not `like this', as per
1388         the recent change to the GNU coding standards.
1389
1390 2012-01-24  Bruno Haible  <bruno@clisp.org>
1391
1392         stdint: Improve support for Android.
1393         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
1394         Reported by Simon Josefsson <simon@josefsson.org>.
1395
1396 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
1397
1398         doc: omit trailing empty lines from INSTALL etc.
1399         * doc/Makefile (INSTALL): Omit trailing empty lines.
1400         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
1401         omit trailing empty lines.  This simplifies the build procedure.
1402
1403 2012-01-23  Jim Meyering  <meyering@redhat.com>
1404
1405         tests: avoid spurious warnings about gl_sockets_startup
1406         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
1407         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
1408         reporting a "statement with no effect".
1409         * tests/test-accept.c (main): Mark as "(void)".
1410         * tests/test-accept4.c (main): Likewise.
1411         * tests/test-bind.c (main): Likewise.
1412         * tests/test-connect.c (main): Likewise.
1413         * tests/test-getpeername.c (main): Likewise.
1414         * tests/test-getsockname.c (main): Likewise.
1415         * tests/test-getsockopt.c (main): Likewise.
1416         * tests/test-listen.c (main): Likewise.
1417         * tests/test-recv.c (main): Likewise.
1418         * tests/test-recvfrom.c (main): Likewise.
1419         * tests/test-send.c (main): Likewise.
1420         * tests/test-sendto.c (main): Likewise.
1421         * tests/test-setsockopt.c (main): Likewise.
1422         * tests/test-shutdown.c (main): Likewise.
1423
1424 2012-01-21  Bruno Haible  <bruno@clisp.org>
1425
1426         locale-fr.m4: Fix for Android.
1427         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
1428         failure of the test program on Bionic libc.
1429
1430 2012-01-21  Jim Meyering  <meyering@redhat.com>
1431
1432         bootstrap: fail when bootstrap_post_import_hook fails
1433         Otherwise, it's far too easy to miss diagnostics emitted
1434         between gnulib-tool's output and that of running configure.
1435         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
1436
1437 2012-01-17  Jim Meyering  <meyering@redhat.com>
1438
1439         maint: enable sc_trailing_blank
1440         * build-aux/pmccabe.css: Remove trailing blanks.
1441         * doc/acl-cygwin.txt: Likewise.
1442         * doc/gnu-oids.texi: Likewise
1443         * cfg.mk: Enable sc_trailing_blank.
1444         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
1445
1446 2012-01-17  Jim Meyering  <meyering@redhat.com>
1447
1448         maint: enable sc_prohibit_openat_without_use
1449         * cfg.mk: Enable sc_prohibit_openat_without_use.
1450         Exempt lib/selinux-at.c.
1451
1452 2012-01-17  Jim Meyering  <meyering@redhat.com>
1453
1454         maint: enable sc_prohibit_cloexec_without_use
1455         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
1456         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
1457
1458 2012-01-17  Jim Meyering  <meyering@redhat.com>
1459
1460         maint: enable sc_prohibit_intprops_without_use
1461         * cfg.mk: Enable sc_prohibit_intprops_without_use
1462         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
1463
1464 2012-01-17  Jim Meyering  <meyering@redhat.com>
1465
1466         maint: enable sc_prohibit_hash_pjw_without_use
1467         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
1468         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
1469         to match any use of \<hash_pjw\>, i.e., not necessarily with a
1470         following " (".
1471
1472 2012-01-17  Jim Meyering  <meyering@redhat.com>
1473
1474         maint: enable double-word-prohibiting rule
1475         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
1476         Exempt three files.
1477
1478 2012-01-17  Jim Meyering  <meyering@redhat.com>
1479
1480         maint: remove empty lines at EOF, but excluding modules/*
1481         Apply syntax rules at home as well as abroad.  Most changes
1482         were induced by running this:
1483           make srcdir=. _build-aux=build-aux -f top/maint.mk \
1484             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
1485             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
1486         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
1487         Exempt modules/* and two binary files.
1488         Also exempt doc/INSTALL*, per request from Bruno Haible.
1489         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
1490         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
1491         * doc/Copyright/request-assign.future: Likewise.
1492         * doc/Copyright/request-disclaim.changes: Likewise.
1493         * doc/INSTALL: Likewise.
1494         * doc/INSTALL.ISO: Likewise.
1495         * doc/INSTALL.UTF-8: Likewise.
1496         * doc/acl-cygwin.txt: Likewise.
1497         * doc/acl-resources.txt: Likewise.
1498         * doc/fdl-1.2.texi: Likewise.
1499         * doc/fdl-1.3.texi: Likewise.
1500         * doc/fdl.texi: Likewise.
1501         * lib/argp-pin.c: Likewise.
1502         * lib/round.c: Likewise.
1503         * lib/unicase/u16-totitle.c: Likewise.
1504         * lib/unictype/block_test.c: Likewise.
1505         * lib/uninorm/canonical-decomposition.c: Likewise.
1506         * m4/README: Likewise.
1507         * m4/relocatable-lib.m4: Likewise.
1508         * tests/test-isnand-nolibm.c: Likewise.
1509         * tests/test-isnand.c: Likewise.
1510         * tests/uninorm/NormalizationTest.txt: Likewise.
1511
1512 2012-01-17  Jim Meyering  <meyering@redhat.com>
1513
1514         maint: add framework to run syntax-check rules against gnulib sources
1515         * cfg.mk: New file, to disable all currently-failing tests.
1516         We'll enable them one by one, as they are made to pass.
1517         * Makefile (sc_maint): New rule.
1518
1519 2012-01-21  Bruno Haible  <bruno@clisp.org>
1520
1521         stdint: Add support for Android.
1522         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
1523         include the system's <stdint.h>.
1524         Reported by Simon Josefsson <simon@josefsson.org>.
1525
1526 2012-01-19  Jim Meyering  <meyering@redhat.com>
1527
1528         bootstrap: add bootstrap_post_import_hook
1529         Bison does still need something like the gnulib_mk_hook whose
1530         invocation I had to remove along with slurp in commit 767ccd40.
1531         Technically, we could get along without it, but doing so would
1532         have required living with a warning and a mandatory post-bootstrap
1533         automake rerun.
1534         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
1535         (bootstrap_post_import_hook): New function.
1536         Invoke it after gnulib-tool --import and before autoreconf.
1537
1538 2012-01-18  Jim Meyering  <meyering@redhat.com>
1539
1540         gitlog-to-changelog: don't use "no_"-prefixed variable name
1541         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
1542         to enable both --cluster and --no-cluster.  Change variable name,
1543         s/\$no_cluster/$cluster/, and reverse usage to match.
1544
1545         gitlog-to-changelog: use "||", not "or" in expressions
1546         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
1547         expressions.
1548
1549 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
1550
1551         gitlog-to-changelog: new option --no-cluster
1552         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
1553         clustering of adjacent commit messages.
1554
1555 2012-01-17  Jim Meyering  <meyering@redhat.com>
1556
1557         maint: spell file systems with two words, not one
1558         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
1559         two words, not one.
1560
1561 2012-01-16  Jim Meyering  <meyering@redhat.com>
1562
1563         bootstrap: add a FIXME comment to ensure we eventually remove the hack
1564         * build-aux/bootstrap (gnulib_tool_options): Add comment.
1565
1566 2012-01-16  Eric Blake  <eblake@redhat.com>
1567
1568         bootstrap: cater to autoconf 2.59
1569         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
1570         is not available.
1571
1572         bootstrap: properly check for libtool
1573         * build-aux/bootstrap (libtoolize): Also run libtool when older
1574         usage is detected.
1575
1576 2012-01-15  Bruno Haible  <bruno@clisp.org>
1577
1578         Improve support for MSVC 9.
1579         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
1580         clashes on MSVC.
1581         * lib/fcntl.in.h: Likewise.
1582         * lib/stdlib.in.h: Likewise.
1583         * lib/sys_stat.in.h: Likewise.
1584
1585 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
1586
1587         gnupload: we hold the master copy of this script now
1588         For motivation and more information, see:
1589         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
1590         * build-aux/gnupload: Make it clear in the heading comments that the
1591         master copy of this file is maintained by gnulib.  Since we are at
1592         it, bump its copyright year and ...
1593         ($scriptversion): ... the date in its version.
1594         ($usage): Patches and bug reports should be sent to the gnulib list,
1595         not the automake one.
1596         * config/srclist.txt: Don't try to sync 'gnupload' from automake
1597         anymore.
1598
1599 2012-01-15  Bruno Haible  <bruno@clisp.org>
1600
1601         Fix module 'random'.
1602         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
1603         initstate, setstate are declared.
1604
1605 2012-01-14  Bruno Haible  <bruno@clisp.org>
1606
1607         Tests for module 'random'.
1608         * modules/random-tests: New file.
1609         * tests/test-random.c: New file, based on tests/test-random_r.c.
1610
1611         New module 'random'.
1612         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
1613         declarations.
1614         * lib/random.c: New file, based on glibc/stdlib/random.c.
1615         * m4/random.m4: New file.
1616         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
1617         HAVE_RANDOM.
1618         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
1619         * modules/random: New file.
1620         * config/srclist.txt: Add an entry for random.c.
1621         * doc/posix-functions/random.texi: Mention the 'random' module.
1622         * doc/posix-functions/initstate.texi: Likewise.
1623         * doc/posix-functions/setstate.texi: Likewise.
1624         * doc/posix-functions/srandom.texi: Likewise.
1625
1626 2012-01-12  Bruno Haible  <bruno@clisp.org>
1627
1628         random_r: Use common idioms.
1629         * lib/random_r.c: Include <stdlib.h> first.
1630
1631         random_r: Override incompatible API on AIX, OSF/1.
1632         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
1633         Override the system function if REPLACE_RANDOM_R is 1.
1634         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
1635         and OSF/1, set REPLACE_RANDOM_R.
1636         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
1637         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
1638         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
1639         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
1640         * doc/glibc-functions/random_r.texi: Likewise.
1641         * doc/glibc-functions/setstate_r.texi: Likewise.
1642
1643         random_r: Support for MSVC 9.
1644         * lib/random_r.c: Include stdint.h, not inttypes.h.
1645
1646 2012-01-12  Eric Blake  <eblake@redhat.com>
1647
1648         inet_ntop: guard extra work by IF_LINT
1649         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
1650         better code generation when not checking for warnings.
1651         Suggested by Paul Eggert and Jim Meyering.
1652
1653         strptime: fix regression on mingw
1654         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
1655         Fix regression.  Reported by Bruno Haible.
1656
1657 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
1658             Bruno Haible  <bruno@clisp.org>
1659
1660         copy-file: add error-code-returning variant.
1661         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
1662         (qcopy_file_preserving): New declaration.
1663         * lib/copy-file.c (qcopy_file_preserving): Renamed from
1664         copy_file_preserving. Change return type to 'int'. Don't emit an error
1665         message here.
1666         (copy_file_preserving): New function.
1667         * tests/test-copy-file.c: Include <stdlib.h>.
1668         (main): Test qcopy_file_preserving if the environment variable
1669         NO_STDERR_OUTPUT is set.
1670         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
1671         with NO_STDERR_OUTPUT
1672         * tests/test-copy-file-2.sh: Likewise.
1673
1674 2012-01-10  Bruno Haible  <bruno@clisp.org>
1675
1676         copy-file: Use 'quote' module consistently.
1677         * lib/copy-file.c (copy_file_preserving): Use quote().
1678
1679         copy-file: Refactor.
1680         * lib/copy-file.c: Include quote.h.
1681         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
1682         message here.
1683         * modules/copy-file (Depends-on): Add quote.
1684
1685         acl: Export qcopy_acl.
1686         * lib/acl.h (qcopy_acl): New declaration.
1687         * lib/copy-acl.c (qcopy_acl): Make non-static.
1688
1689         acl: Rename a local variable.
1690         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
1691
1692         acl: Align return values of copy_acl and qcopy_acl.
1693         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
1694         maybe < -1.
1695
1696 2012-01-11  Eric Blake  <eblake@redhat.com>
1697
1698         strptime: silence gcc warnings
1699         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
1700         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
1701         Reported by Daniel P. Berrange.
1702
1703         inet_ntop: silence gcc warning
1704         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
1705         Reported by Daniel P. Berrange.
1706
1707 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
1708
1709         getloadavg test: skip the test on GNU/Linux without /proc mounted
1710         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
1711         file.  When /proc is not mounted, it always fails with ENOENT.
1712         * tests/test-getloadavg.c (main): Treat ENOENT return code from
1713         getloadavg(3) the same way as ENOSYS and ENOTSUP.
1714
1715 2012-01-10  Bruno Haible  <bruno@clisp.org>
1716
1717         regex: Avoid link error on MSVC 9.
1718         * modules/regex (Depends-on): Add wctype.
1719
1720 2012-01-10  Bruno Haible  <bruno@clisp.org>
1721
1722         doc: Mention --with-tests option.
1723         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
1724         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
1725         --with-tests.
1726         Reported by Reuben Thomas.
1727
1728 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
1729
1730         users.txt: order package names lexicographically.
1731         * users.txt: Order package names lexicographically.
1732
1733 2012-01-10  Jim Meyering  <meyering@redhat.com>
1734
1735         maint.mk: fix description in comment
1736         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
1737
1738         ignore-value: remove deprecated ignore_ptr function
1739         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
1740         * NEWS: Note this.
1741
1742 2012-01-09  Jim Meyering  <meyering@redhat.com>
1743
1744         test-init.sh: avoid a subshell
1745         * tests/test-init.sh: Remove protective subshell.
1746         Suggested by Bernhard Voelker.  While a subshell is normally
1747         required to protect against older shells (Solaris, FreeBSD) that
1748         warn about a missing program before performing redirection, the
1749         shell-selection tests performed by init.sh probably exclude any
1750         offending shell.
1751
1752 2012-01-08  Bruno Haible  <bruno@clisp.org>
1753
1754         setlocale tests: Avoid test failure on Solaris 11 2011-11.
1755         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
1756         variable.
1757
1758 2012-01-08  Bruno Haible  <bruno@clisp.org>
1759
1760         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
1761         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
1762         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
1763         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
1764         macro.
1765         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
1766         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
1767         * lib/spawn_faction_addopen.c: Add workaround implementation if
1768         HAVE_WORKING_POSIX_SPAWN.
1769         * modules/spawn (Makefile): Substitute
1770         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
1771         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
1772         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
1773         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
1774         (Depends-on): Update conditions.
1775         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
1776         the Solaris 11 bug.
1777
1778 2012-01-08  Bruno Haible  <bruno@clisp.org>
1779
1780         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
1781         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
1782         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
1783         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
1784         macro.
1785         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
1786         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
1787         * lib/spawn_faction_adddup2.c: Add workaround implementation if
1788         HAVE_WORKING_POSIX_SPAWN.
1789         * modules/spawn (Makefile): Substitute
1790         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
1791         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
1792         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
1793         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
1794         (Depends-on): Update conditions.
1795         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
1796         the Solaris 11 bug.
1797
1798 2012-01-08  Bruno Haible  <bruno@clisp.org>
1799
1800         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
1801         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
1802         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
1803         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
1804         HAVE_WORKING_POSIX_SPAWN.
1805         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
1806         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
1807         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
1808         * lib/spawn_faction_addclose.c: Add workaround implementation if
1809         HAVE_WORKING_POSIX_SPAWN.
1810         * modules/spawn (Makefile): Substitute
1811         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
1812         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
1813         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
1814         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
1815         (Depends-on): Update conditions.
1816         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
1817         the Solaris 11 bug.
1818
1819 2012-01-08  Bruno Haible  <bruno@clisp.org>
1820
1821         doc: Update for Solaris 11 2011-11.
1822         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
1823         * m4/printf.m4: Update comments.
1824
1825 2012-01-08  Bruno Haible  <bruno@clisp.org>
1826
1827         mktime: Avoid compilation error on Solaris 11.
1828         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
1829
1830 2012-01-08  Bruno Haible  <bruno@clisp.org>
1831
1832         doc: Small fix.
1833         * doc/posix-headers/nl_types.texi: Correct platforms list.
1834
1835 2012-01-08  Simon Josefsson  <simon@josefsson.org>
1836
1837         Add lgpl-3.0 module.
1838         * MODULES.html.sh (Support for building documentation): Add
1839         lgpl-3.0.
1840         * modules/lgpl-3.0: New file.
1841
1842 2012-01-08  Jim Meyering  <meyering@redhat.com>
1843
1844         select.c: indent with spaces, not TABs
1845         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
1846
1847 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
1848
1849         quotearg: do not use grave accent for left quote
1850         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
1851         locale_quoting_style.
1852         (quotearg_buffer_restyled): Fix example.
1853         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
1854
1855 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
1856
1857         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
1858         Most programs do not have translation catalogs for English and much
1859         less separate catalogs for British and American English.  Drop the
1860         suggestion to translators about these two, and provide it
1861         automatically for Unicode locales.  Like most programs, even those
1862         using American English, we use single quotation marks.  This conflicts
1863         with the American typographic convention, but works better when you
1864         cite the entire error message within double quotes.  It also tries not
1865         to clash with established practice and with what non-gnulib programs
1866         will usually do.
1867         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
1868         using an UTF-8 or GB-18030 locale.  The list of other locales with
1869         quotes was provided by Bruno Haible.
1870         (quotearg_buffer_restyled): Adjust instructions to translators.
1871         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
1872         text, since this would be wrong when using Unicode.
1873         * modules/quotearg: Depend on c-strcaseeq.
1874
1875 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
1876
1877         quotearg: fix Wikipedia link
1878         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
1879
1880 2012-01-07  Simon Josefsson  <simon@josefsson.org>
1881
1882         Fix for mingw with MSVC9.
1883         * m4/ld-version-script.m4: Check that compiler rejects version
1884         scripts with syntax errors.  Reported by Bruno Haible
1885         <bruno@clisp.org>.
1886
1887 2012-01-06  Bruno Haible  <bruno@clisp.org>
1888
1889         Talk about "native Windows API", not "Woe32".
1890         * lib/accept4.c: Update comments to mention native Windows.
1891         * lib/execute.c: Likewise.
1892         * lib/fatal-signal.c: Likewise.
1893         * lib/localcharset.c: Likewise.
1894         * lib/nanosleep.c: Likewise.
1895         * lib/nl_langinfo.c: Likewise.
1896         * lib/pclose.c: Likewise.
1897         * lib/pipe-filter-gi.c: Likewise.
1898         * lib/pipe-filter-ii.c: Likewise.
1899         * lib/pipe.c: Likewise.
1900         * lib/pipe2.c: Likewise.
1901         * lib/popen.c: Likewise.
1902         * lib/progreloc.c: Likewise.
1903         * lib/relocatable.c: Likewise.
1904         * lib/sigaction.c: Likewise.
1905         * lib/sigprocmask.c: Likewise.
1906         * lib/spawn-pipe.h: Likewise.
1907         * lib/spawn-pipe.c: Likewise.
1908         * lib/spawni.c: Likewise.
1909         * lib/stat-time.h: Likewise.
1910         * lib/w32spawn.h: Likewise.
1911         * tests/test-isatty.c: Likewise.
1912         * lib/config.charset: More comments.
1913         * doc/gnulib-intro.texi: Mention native Windows.
1914         * doc/posix-functions/_Exit_C99.texi: Likewise.
1915         * doc/posix-headers/fcntl.texi: Likewise.
1916
1917 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
1918
1919         argp: Avoid crash if translator uses % characters in a translation.
1920         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
1921         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
1922
1923 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
1924
1925         doc: C11 and C++11 are now official
1926         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
1927         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
1928         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
1929         * modules/stdalign:
1930         Replace references to draft C1X to C11, and to draft C++0X to C++11.
1931
1932 2012-01-06  Bruno Haible  <bruno@clisp.org>
1933
1934         uc-is-grapheme-break tests: Tweak.
1935         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
1936         message.
1937
1938 2012-01-06  Bruno Haible  <bruno@clisp.org>
1939
1940         test-init.sh: correct the test for diff -u
1941         * tests/test-init.sh: Also redirect stdout to /dev/null.
1942
1943 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1944
1945         Use ', not `, for quoting output.
1946         * build-aux/announce-gen (usage, sizes, print_news_deltas)
1947         (print_changelog_deltas, get_tool_versions, main program):
1948         * build-aux/git-version-gen:
1949         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
1950         * build-aux/move-if-change (help):
1951         * build-aux/useless-if-before-free (usage, main program):
1952         * check-module (parse_module_file, usage)
1953         (find_included_lib_files, check_module):
1954         * lib/argmatch.c (main) [TEST]:
1955         * lib/argp-help.c (_help):
1956         * lib/getopt1.c (main) [TEST]:
1957         * lib/git-merge-changelog.c (usage):
1958         * lib/xstrtol-error.c (xstrtol_error):
1959         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
1960         * m4/argz.m4 (gl_FUNC_ARGZ):
1961         * m4/bison.m4 (gl_BISON):
1962         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
1963         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1964         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
1965         * m4/fpending.m4 (gl_PREREQ_FPENDING):
1966         * m4/gc-random.m4 (gl_GC_RANDOM):
1967         * m4/intl.m4 (gt_CHECK_DECL):
1968         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
1969         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
1970         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
1971         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
1972         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
1973         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
1974         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
1975         * tests/test-dirname.c (main):
1976         * tests/test-getpass.c (main):
1977         * tests/test-iconvme.c (main):
1978         * tests/test-parse-datetime.c (LOG):
1979         * tests/test-xstrtoimax.sh:
1980         * tests/test-xstrtol.sh:
1981         * tests/test-xstrtoll.sh:
1982         * tests/test-xstrtoumax.sh:
1983         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
1984         * top/GNUmakefile (abort-due-to-no-makefile):
1985         Quote 'like this', not `like this', as per the recent change to
1986         the GNU coding standards.
1987
1988 2012-01-05  Bruno Haible  <bruno@clisp.org>
1989
1990         strtoimax: Don't force a replacement on systems where intmax_t is int.
1991         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
1992         'intmax_t' is not larger than 'int'.
1993         Reported by Pádraig Brady <P@draigBrady.com>.
1994
1995 2012-01-05  Bruno Haible  <bruno@clisp.org>
1996
1997         doc: Mention NetBSD bugs.
1998         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
1999         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
2000
2001 2012-01-05  Bruno Haible  <bruno@clisp.org>
2002
2003         strtoumax tests: Enhance tests.
2004         * tests/test-strtoumax.c (main): Add tests for large values.
2005
2006 2012-01-05  Bruno Haible  <bruno@clisp.org>
2007
2008         strtoimax: Work around AIX 5.1 bug.
2009         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
2010         definition.
2011         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
2012         Set HAVE_STRTOIMAX.
2013         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
2014         REPLACE_STRTOIMAX.
2015         * modules/inttypes-incomplete (Makefile.am): Substitute
2016         REPLACE_STRTOIMAX.
2017         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
2018         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
2019         (Depends-on): Update conditions.
2020         * tests/test-strtoimax.c (main): Add tests for large values.
2021         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
2022
2023 2012-01-05  Bruno Haible  <bruno@clisp.org>
2024
2025         inttypes: Modernize.
2026         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
2027         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
2028         (Makefile.am): Update inttypes.h rule.
2029
2030 2012-01-05  Jim Meyering  <meyering@redhat.com>
2031
2032         init.sh: don't waste a subshell just to redirect stderr
2033         * tests/init.sh: In testing for diff -u and diff -c, use a
2034         stderr-redirecting exec inside `...` rather than a subshell.
2035
2036         test-init.sh: avoid failure on HP-UX 11.00
2037         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
2038         resolves to diff -c or cmp.  Reported by Bruno Haible.
2039
2040 2012-01-05  Bruno Haible  <bruno@clisp.org>
2041
2042         Tests for module 'strtoull'.
2043         * modules/strtoull-tests: New file.
2044         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
2045
2046 2012-01-05  Bruno Haible  <bruno@clisp.org>
2047
2048         Tests for module 'strtoll'.
2049         * modules/strtoll-tests: New file.
2050         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
2051
2052 2012-01-05  Bruno Haible  <bruno@clisp.org>
2053
2054         Tests for module 'strtoul'.
2055         * modules/strtoul-tests: New file.
2056         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
2057
2058 2012-01-05  Bruno Haible  <bruno@clisp.org>
2059
2060         Tests for module 'strtol'.
2061         * modules/strtol-tests: New file.
2062         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
2063
2064 2012-01-04  Jim Meyering  <meyering@redhat.com>
2065
2066         test-init.sh: accommodate Solaris 5.10's different diff -u output
2067         * tests/test-init.sh: Also exempt @@ lines from the comparison
2068         of diff output, since Solaris 5.10 and GNU diff formats differ.
2069         Reported by Stefano Lattarini.
2070
2071 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
2072
2073         test-posixtm: don't assume signed integer wraparound
2074         * tests/test-posixtm.c (main): Don't assume wraparound semantics
2075         after signed integer overflow.  Inspired by (though it may not
2076         fix) Bruno Haible's bug report in
2077         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
2078
2079         Spell out "Windows 9x" and "Windows XP".
2080         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
2081         "Windows 9x" and "WinXP" with "Windows XP".
2082
2083 2012-01-04  Jim Meyering  <meyering@redhat.com>
2084
2085         test-vc-list-files-cvs.sh: remove obsolete comment
2086         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
2087         double exit.  Now that's all encapsulated via skip_ and Exit.
2088
2089 2012-01-04  Bruno Haible  <bruno@clisp.org>
2090
2091         Talk about "native Windows API", not "Win32".
2092         * lib/classpath.c: Update comments to mention native Windows.
2093         * lib/csharpexec.c: Likewise.
2094         * lib/dup2.c: Likewise.
2095         * lib/error.c: Likewise.
2096         * lib/fcntl.c: Likewise.
2097         * lib/filename.h: Likewise.
2098         * lib/findprog.c: Likewise.
2099         * lib/get-rusage-as.c: Likewise.
2100         * lib/get-rusage-data.c: Likewise.
2101         * lib/getpagesize.c: Likewise.
2102         * lib/javaexec.c: Likewise.
2103         * lib/msvc-inval.c: Likewise.
2104         * lib/msvc-nothrow.c: Likewise.
2105         * lib/nanosleep.c: Likewise.
2106         * lib/nonblocking.c: Likewise.
2107         * lib/printf-parse.c: Likewise.
2108         * lib/setlocale.c: Likewise.
2109         * lib/sigaction.c: Likewise.
2110         * lib/strerror_r.c: Likewise.
2111         * lib/tmpdir.c: Likewise.
2112         * lib/vasnprintf.c: Likewise.
2113         * lib/w32spawn.h: Likewise.
2114         * lib/waitpid.c: Likewise.
2115         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
2116         * m4/locale-ar.m4: Likewise.
2117         * m4/locale-fr.m4: Likewise.
2118         * m4/locale-ja.m4: Likewise.
2119         * m4/locale-tr.m4: Likewise.
2120         * m4/locale-zh.m4: Likewise.
2121         * m4/printf.m4: Likewise.
2122         * tests/test-cloexec.c: Likewise.
2123         * tests/test-copy-acl.sh: Likewise.
2124         * tests/test-copy-file.sh: Likewise.
2125         * tests/test-file-has-acl.sh: Likewise.
2126         * tests/test-set-mode-acl.sh: Likewise.
2127         * tests/test-dup-safer.c: Likewise.
2128         * tests/test-dup2.c: Likewise.
2129         * tests/test-dup3.c: Likewise.
2130         * tests/test-fcntl.c: Likewise.
2131         * tests/test-nonblocking-pipe.h: Likewise.
2132         * tests/test-nonblocking-socket.h: Likewise.
2133         * tests/test-pipe.c: Likewise.
2134         * tests/test-pipe2.c: Likewise.
2135         * tests/test-spawn-pipe-child.c: Likewise.
2136         * doc/acl-resources.txt: Likewise.
2137         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
2138         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
2139         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
2140         * lib/localcharset.c: Update comments to mention native Windows.
2141         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
2142         * lib/localename.c: Likewise.
2143         * lib/progreloc.c: Likewise.
2144         * lib/relocatable.c: Likewise.
2145         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
2146         (windows_compute_revents): Renamed from win32_compute_revents.
2147         (windows_compute_revents_socket): Renamed from
2148         win32_compute_revents_socket.
2149         * lib/select.c: Update comments to mention native Windows.
2150         (windows_poll_handle): Renamed from win32_poll_handle.
2151         * m4/threadlib.m4: Update comments to mention native Windows.
2152         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
2153         --enable-threads=windows instead of --enable-threads=win32. Set
2154         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
2155         * lib/glthread/lock.h: Update comments to mention native Windows.
2156         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
2157         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
2158         USE_WIN32_THREADS.
2159         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
2160         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
2161         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
2162         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
2163         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
2164         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
2165         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
2166         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
2167         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
2168         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
2169         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
2170         * tests/test-tls.c: Likewise.
2171         Rationale:
2172         Microsoft renamed the "Win32 API" to "Windows API", as it is available
2173         on both 32-bit and 64-bit Windows systems.
2174         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
2175         line of distinction is between "native Windows" on one side and Unix/
2176         POSIX systems on the other side. More details in
2177         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
2178         Suggested by Paul Eggert.
2179
2180 2012-01-03  Bruno Haible  <bruno@clisp.org>
2181
2182         isatty: Support for MSVC 9.
2183         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
2184         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
2185         (_isatty_nothrow): New function.
2186         (isatty): Use it instead of _isatty.
2187         (IsConsoleHandle): Add comment, from Paolo Bonzini.
2188         * lib/poll.c (IsConsoleHandle): Likewise.
2189         * lib/select.c (IsConsoleHandle): Likewise.
2190         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
2191         (gl_PREREQ_ISATTY): New macro.
2192         * modules/isatty (Depends-on): Add msvc-inval.
2193         (configure.ac): Invoke gl_PREREQ_ISATTY.
2194
2195 2012-01-03  Jim Meyering  <meyering@redhat.com>
2196
2197         maint.mk: remove temporary transition aid from over 1.5 years ago
2198         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
2199         purpose was to aid in the transition (avoiding silent malfunction)
2200         from that old name to the new _sc_search_regexp.  This shim was
2201         added by commit 219c504b.
2202
2203         init.sh: do not try to accommodate compare arguments starting with "-"
2204         * tests/init.sh (compare_dev_null_): Do not try to accommodate
2205         compare arguments that start with "-".  Besides, we do not worry
2206         about this when invoking diff or cmp; why start now with sed?
2207         Using "--" to separate options from argument would trigger sed
2208         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
2209         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
2210
2211 2012-01-02  Bruno Haible  <bruno@clisp.org>
2212
2213         Enhance tests for module 'isatty'.
2214         * modules/isatty-tests (Depends-on): Add pipe-posix.
2215         * tests/test-isatty.c: Include <fcntl.h>.
2216         (DEV_NULL): New macro.
2217         (main): Test the resut of isatty() also on regular files, pipes, and
2218         /dev/null.
2219
2220         New module 'isatty'.
2221         * lib/unistd.in.h (isatty): New declaration.
2222         * lib/isatty.c: New file, based on an idea of
2223         Bastien Roucariès <roucaries.bastien@gmail.com>.
2224         * m4/isatty.m4: New file.
2225         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
2226         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
2227         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
2228         REPLACE_ISATTY.
2229         * modules/isatty: New file.
2230         * doc/posix-functions/isatty.texi: Mention the new module.
2231         Suggested by Paolo Bonzini.
2232
2233 2012-01-02  Bruno Haible  <bruno@clisp.org>
2234
2235         canonicalize: Tweak 2011-12-29 commit.
2236         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
2237         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
2238
2239 2012-01-02  Jim Meyering  <meyering@redhat.com>
2240
2241         gitlog-to-changelog: describe input syntax in --help output
2242         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
2243
2244         gitlog-to-changelog: fix typo in --help: show backslash before email @
2245         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
2246         in sources, but not in actual output.
2247
2248 2011-12-30  Jim Meyering  <meyering@redhat.com>
2249
2250         gitlog-to-changelog: don't malfunction when name contains %-directive
2251         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
2252         in a name string cause trouble.  E.g., with a user name of "%s",
2253         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
2254
2255 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
2256
2257         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
2258         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
2259         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
2260         the "  (tiny change)" notation that is appended to the standard
2261         ChangeLog "date  name  email" header line.
2262
2263 2012-01-01  Jim Meyering  <meyering@redhat.com>
2264
2265         test-framework-sh: init.sh: fix "make dist" failure
2266         When using gnulib-tool's --with-tests option and any module that
2267         depends on test-framework-sh, "make dist" would fail due to the
2268         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
2269         in the gltests directory, and not in the gllib/ directory.
2270         One way to work around that is to move the EXTRA_DIST += init.sh
2271         from the primary module to the -tests one:
2272         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
2273         * modules/test-framework-sh (Makefile.am): ...not here.
2274         Reported by Tom G. Christensen in
2275         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
2276
2277         version-etc: update copyright year reported by --version
2278         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
2279
2280 2011-12-31  Pádraig Brady  <P@draigBrady.com>
2281
2282         canonicalize: only stat() if required
2283         * lib/canonicalize.c (canonicalize_filename_mode):
2284         Avoid calling l?stat() when both CAN_MISSING,
2285         and CAN_NOLINKS are set, as we neither need
2286         to resolve symlinks or test component existence.
2287
2288 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
2289
2290         doc: cover st_ino issues once; add OpenVMS etc.
2291         * doc/posix-functions/stat.texi (stat):
2292         * doc/posix-functions/lstat.texi (lstat):
2293         * doc/posix-functions/fstatat.texi (fstatat):
2294         * doc/posix-functions/fstat.texi (fstat):
2295         Move general 'struct stat' stuff to sys_stat.texi,
2296         leaving behind a pointer.
2297         * doc/posix-headers/sys_stat.texi (sys/stat.h):
2298         Merge duplicate info about 'struct stat' problems into here.
2299         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
2300         and suggest partial workarounds.
2301
2302         same-inode: port to OpenVMS
2303         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
2304         three st_ino values.
2305
2306 2011-12-30  Pádraig Brady  <P@draigBrady.com>
2307
2308         canonicalize: fix references to stat() and lstat()
2309         * lib/canonicalize.c (canonicalize_filename_mode):
2310         Ensure references always resolve to a replacement
2311         function if required (even via a macro).
2312
2313 2011-12-30  Jim Meyering  <meyering@redhat.com>
2314
2315         gitlog-to-changelog: remove a little duplication
2316         * build-aux/gitlog-to-changelog (main): Grep @lines once,
2317         rather than twice.
2318
2319 2011-12-29  Pádraig Brady  <P@draigBrady.com>
2320
2321         canonicalize: add support for not resolving symlinks
2322         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
2323         indicate we don't want to follow symlinks.  Also
2324         provide CAN_MODE_MASK to aid setting these existing
2325         mutually exclusive values.
2326         * lib/canonicalize.c (canonicalize_filename_mode):
2327         Extract the flags from can_mode parameter, which
2328         are currently just used to select between stat()
2329         and lstat().  Also ensure that mutually exclusive
2330         values are flagged immediately as invalid.
2331         * tests/test-canonicalize.c: Verify symlinks are
2332         not followed, and that invalid flag combinations
2333         are diagnosed.
2334
2335 2011-12-25  Jim Meyering  <meyering@redhat.com>
2336
2337         gitlog-to-changelog: do not clump multi-paragraph entries
2338         Identical header lines (date,name,email+coauthors) are suppressed,
2339         thus putting all entries with those same characteristics under
2340         a single header.  However, when a log entry consists of two or
2341         more paragraphs, it may not be clear where it starts and ends.
2342         This change makes it so that such an entry is always separated
2343         from others by a header line, even when that header would
2344         otherwise be suppressed.
2345         * build-aux/gitlog-to-changelog: Implement the above.
2346         Inspired by a related request from Stefano Lattarini in
2347         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
2348
2349 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
2350
2351         announce-gen: fix `cmd' typo in diagnostic
2352         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
2353         diagnostic: a missing '$' meant that the command was not output.
2354
2355 2011-12-23  Jim Meyering  <meyering@redhat.com>
2356
2357         test-framework-sh: distribute init.sh
2358         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
2359         Otherwise, "make -C gnulib-tests check" (at least in grep) would
2360         fail due to the lack of init.sh.
2361
2362         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
2363         * modules/atexit-tests: Rather than listing tests/init.sh,
2364         now that there's a module for it, simply depend on that new module.
2365         * modules/closein-tests: Likewise.
2366         * modules/exclude-tests: Likewise.
2367         * modules/getcwd-tests: Likewise.
2368         * modules/perror-tests: Likewise.
2369         * modules/pread-tests: Likewise.
2370         * modules/pwrite-tests: Likewise.
2371         * modules/vc-list-files-tests: Likewise.
2372         * modules/verify-tests: Likewise.
2373         * modules/xalloc-die-tests: Likewise.
2374         * modules/xstrtoimax-tests: Likewise.
2375         * modules/xstrtol-tests: Likewise.
2376         * modules/xstrtoll-tests: Likewise.
2377         * modules/xstrtoumax-tests: Likewise.
2378         * modules/yesno-tests: Likewise.
2379
2380 2011-12-22  Jim Meyering  <meyering@redhat.com>
2381
2382         test-framework-sh: add minimal tests of init.sh's compare function
2383         * modules/test-framework-sh-tests: New file.
2384         * tests/test-init.sh: New file.
2385
2386         test-framework-sh: new module
2387         * modules/test-framework-sh: New file.
2388         * MODULES.html.sh (Support for maintaining and releasing projects):
2389         List it.
2390
2391         init.sh: do not emit simulated diff output to stderr
2392         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
2393
2394 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
2395
2396         .gitignore: ignore gnulib.dvi and regex.info
2397         * doc/.gitignore:add gnulib.dvi and regex.info
2398
2399 2011-12-22  Jim Meyering  <meyering@redhat.com>
2400
2401         init.sh: correct previous change
2402         * tests/init.sh (compare): My previous change was wrong.
2403         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
2404
2405         init.sh: avoid unwarranted test failure when using "set -e"
2406         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
2407         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
2408         a use like "compare exp out" would get evoke an unconditional failure.
2409
2410 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
2411
2412         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
2413         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
2414         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
2415         autoreconf that did not.
2416         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
2417         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
2418
2419 2011-12-17  Jim Meyering  <meyering@redhat.com>
2420
2421         bootstrap: remove some now-unneeded code
2422         This script arose back when gnulib-tool was young.
2423         Since then, it has seen improvements that render much of this
2424         script unnecessary.  In particular, it can now make symlinks
2425         to the files it uses.  Also, I no longer see as much value in
2426         marking files as read-only via comments.
2427         If you relied on the symlink-creation feature of the preceding
2428         version of this script, you can get most of that functionality
2429         by adding the --symlink option to the definition of
2430         gnulib_tool_option_extras in your bootstrap.conf file.
2431         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
2432         Run autopoint and libtoolize *before* gnulib-tool.
2433         After it, run an abbreviated autoreconf, rather than a loop around
2434         all tools.
2435         (slirp, bt_mark_as_generated): Remove functions.
2436
2437 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2438
2439         ftoastr: fix typo
2440         * lib/ftoastr.h: Fix misspelling in comment.
2441
2442 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
2443
2444         * top/README-release: fix punctuation.
2445
2446 2011-12-17  Jim Meyering  <meyering@redhat.com>
2447
2448         bootstrap: correct the recent buildreq change
2449         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
2450         had no effect.
2451         * build-aux/bootstrap (buildreq): Bracket each search term with
2452         "*...*", so that the shell "case" statement works as intended.
2453         Add comments.
2454
2455 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
2456
2457         build: let bootstrap resort to wget when downloading .po files
2458         * build-aux/bootstrap (download_po_files): Fallback to wget when
2459         downloading the .po files via rsync fails.  This is necessary to
2460         bootstrap from behind a strict firewall.
2461
2462 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
2463
2464         stdint: don't assume C++11 when compiling with g++
2465         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
2466         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
2467         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
2468         work also in C++ before C++11, as that improperly inhibits
2469         generating a substitute stdint.h for that case.
2470
2471 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
2472
2473         alloca: protect comment from gnulib-tool
2474         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
2475         that gnulib-tool doesn't think it's a license, and munge it to
2476         say "GCC version 3".
2477
2478 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
2479
2480         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
2481         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
2482         $(abs_top_builddir) instead of $(top_builddir).
2483
2484 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
2485
2486         strftime-tests: also test nanoseconds
2487         * tests/test-strftime.c (T): Add a test of %N.
2488
2489 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
2490
2491         inttypes, stdint: add C++11 support
2492         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
2493         when including inttypes.h and stdint.h.  Support this change to
2494         the standard.
2495         * doc/posix-headers/inttypes.texi (inttypes.h):
2496         * doc/posix-headers/stdint.texi (stdint.h): Document this.
2497         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
2498         Define if not defined already, for the benefit of pre-C++11 hosts.
2499         Define the standard format macros (e.g., PRId8) always.
2500         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
2501         Likewise, if __cpluspus.  Define the standard constant and limit
2502         macros (e.g., INT8_C, INT8_MAX) always.
2503         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
2504         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
2505         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
2506         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
2507         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
2508         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
2509         Likewise.
2510
2511 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
2512
2513         nonblocking tests: Fix test failure on Linux/PPC.
2514         Suggested by Prerna Saxena in
2515         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
2516         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
2517         Set to 1100000.
2518
2519 2011-12-12  Jim Meyering  <meyering@redhat.com>
2520
2521         argmatch: don't hard-code `' when listing valid option arguments
2522         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
2523         use the quote function to add quotes.  Use fputs rather than
2524         fprintf for the format string with no format directive.
2525
2526 2011-12-07  Eric Blake  <eblake@redhat.com>
2527
2528         bootstrap: detect tools required by gnulib-tool
2529         * build-aux/bootstrap (buildreq): Provide minimum implicit
2530         dependencies.
2531         * DEPENDENCIES: Mention patch as a prereq.
2532
2533 2011-12-04  Bruno Haible  <bruno@clisp.org>
2534
2535         sethostname: Port to Windows platforms.
2536         * lib/sethostname.c: Provide an alternate implementation for Windows
2537         platforms.
2538         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
2539         (main): Skip the test if sethostname() fails with EPERM. On Windows
2540         platforms, don't check the result of gethostname().
2541
2542 2011-12-04  Bruno Haible  <bruno@clisp.org>
2543             Jim Meyering  <meyering@redhat.com>
2544
2545         tests: Avoid spurious error message on platforms without mktemp program.
2546         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
2547
2548 2011-12-04  Bruno Haible  <bruno@clisp.org>
2549
2550         sethostname: Fix documentation.
2551         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
2552         "not fixed" section.
2553
2554 2011-12-03  Bruno Haible  <bruno@clisp.org>
2555
2556         gnulib-tool: Verify that the License field is present and non-empty.
2557         * gnulib-tool (func_get_license_raw): New function, extracted from
2558         func_get_license.
2559         (func_get_license): Use it. Warn if the module is not a test module and
2560         has no license.
2561         Suggested by Jim Meyering.
2562
2563 2011-12-03  Bruno Haible  <bruno@clisp.org>
2564
2565         sethostname tests: Fix link error on mingw.
2566         * tests/test-sethostname1.c: New file, extracted from
2567         tests/test-sethostname.c.
2568         * tests/test-sethostname2.c: New file, extracted from
2569         tests/test-sethostname.c.
2570         * tests/test-sethostname.c: Remove file.
2571         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
2572         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
2573         (Depends-on): Add gethostname.
2574         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
2575         Link the latter with $(GETHOSTNAME_LIB).
2576
2577         sethostname tests: Fix compilation error on mingw.
2578         * tests/test-sethostname.c: Don't include <sys/types.h>.
2579         (geteuid): Use a dummy value without uid_t.
2580         * modules/sethostname-tests (Depends-on): Remove sys_types.
2581
2582         sethostname tests: Avoid a gcc warning.
2583         * tests/test-sethostname.c (main): Remove an unused variable.
2584
2585         Tweak last commit.
2586         * modules/sethostname-tests (Files): Sort by decreasing importance.
2587         (configure.ac): Check for geteuid.
2588         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
2589         the test when there's nothing to test. Drop an unnecessary cast.
2590         Improve an error message. Verify that the final sethostname() call
2591         succeeds.
2592
2593 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2594
2595         Add a test suite for the sethostname module.
2596         * modules/sethostname-tests: New file.  A test program
2597         for the sethostname module.
2598         * tests/test-sethostname.c: Likewise.
2599
2600 2011-12-03  Bruno Haible  <bruno@clisp.org>
2601
2602         Tweak last commit.
2603         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
2604         Fix preprocessor directives indentation. Fix typos.
2605         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
2606         * modules/unistd (Makefile): Likewise.
2607
2608 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2609
2610         Integrate the sethostname module into unistd.
2611         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
2612         into the unistd.h header.
2613         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
2614         preprocessor directives.
2615         * modules/unistd: Setup the Makefile substitutions of the
2616         SETHOSTNAME preprocessor directives.
2617
2618 2011-12-03  Bruno Haible  <bruno@clisp.org>
2619
2620         Tweak last commit.
2621         * lib/sethostname.c: Don't include <string.h>.
2622         (sethostname): No need to copy the argument string to the stack. Don't
2623         call clearerr. Preserve errno when fprintf failed.
2624         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
2625         Don't invoke AC_REPLACE_FUNCS.
2626         * modules/sethostname (Link): Remove empty section.
2627         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
2628         failure problem.
2629
2630 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2631
2632         New module 'sethostname'.
2633         * lib/sethostname.c (sethostname): New file.  Provide sethostname
2634         for systems that lack it.
2635         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
2636         sethostname declaration and function.
2637         * modules/sethostname: New file.  Define the sethostname module.
2638
2639 2011-12-03  Bruno Haible  <bruno@clisp.org>
2640
2641         Tweak last commit.
2642         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
2643
2644 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2645
2646         Split the HOST_NAME_MAX detection into a separate m4 macro.
2647         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
2648         macro so it can be used by the pending sethostname module.
2649
2650 2011-12-03  Bruno Haible  <bruno@clisp.org>
2651
2652         Fix module descriptions syntax.
2653         * modules/argv-iter (License): Fix syntax.
2654         * modules/di-set (License): Likewise.
2655         * modules/ino-map (License): Likewise.
2656         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
2657
2658 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
2659
2660         stdalign: port to Clang 3.0
2661         Problem reported by Simon Josefsson in
2662         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
2663         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
2664         which has <stdalign.h> but which does not define alignof.
2665         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
2666
2667 2011-12-01  Eric Blake  <eblake@redhat.com>
2668
2669         mktempd: silence dd usage
2670         * build-aux/mktempd (rand_bytes): Silence dd.
2671
2672 2011-11-30  Simon Josefsson  <simon@josefsson.org>
2673
2674         manywarnings: Don't mention gcc version in docstring.
2675         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
2676         Jim Meyering <meyering@redhat.com>.
2677
2678 2011-11-30  Jim Meyering  <meyering@redhat.com>
2679
2680         hash: mark a few floating point constants with "f" suffix
2681         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
2682         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
2683         floating point constants with "f", since they're destined to be
2684         saved/used as "float"s.
2685
2686 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
2687
2688         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
2689         * tests/test-float.c (test_long_double): Correct and re-enable the
2690         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
2691
2692 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
2693
2694         Avoid subtracting two pointers that don't point into the same block.
2695         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
2696         only pointers into the same memory block are subtracted. We cannot
2697         assume that sizeof (ptrdiff_t) == sizeof (void *).
2698
2699 2011-11-29  Eric Blake  <eblake@redhat.com>
2700
2701         maint.mk: add syntax check for use of compare from init.sh
2702         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
2703         moved here from coreutils.
2704
2705         manywarnings: drop -Wunsuffixed-float-constants
2706         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
2707         '1.0D', which is the only way to silence this warning for 'double'.
2708
2709 2011-11-29  Jim Meyering  <meyering@redhat.com>
2710
2711         hash: mark compute_bucket_size with the pure attribute
2712         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
2713
2714         quotearg, propername: correct pragma guard expression
2715         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
2716         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
2717
2718 2011-11-28  Jim Meyering  <meyering@redhat.com>
2719
2720         propername: do not mark proper_name with the const attribute
2721         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
2722         since it examines data pointed to by its parameter.
2723         * lib/propername.c (proper_name): Instead, add a pragma to suppress
2724         the suggestion from -Wsuggest-attribute=const.
2725
2726         propername: mark one more function as const
2727         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
2728
2729 2011-11-27  Jim Meyering  <meyering@redhat.com>
2730
2731         mark functions with const and pure attributes
2732
2733         Mark functions per suggestions from gcc-4.6 when using these options:
2734         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
2735         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
2736         Follow these guidelines: when possible, apply the attribute to
2737         an extern declaration, not to its definition.  Apply it to the
2738         definition only when the definition is static.
2739         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
2740         * lib/argv-iter.h (argv_iter_n_args): Likewise.
2741         * lib/base64.h (isbase64): Likewise.
2742         * lib/basename-lgpl.c (last_component, base_len): Likewise.
2743         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
2744         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
2745         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
2746         (c_tolower, c_toupper): Likewise.
2747         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
2748         * lib/chdir-long.c (find_non_slash): Likewise.
2749         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
2750         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
2751         * lib/file-type.h (file_type): Likewise.
2752         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
2753         * lib/filevercmp.c (verrevcmp): Likewise.
2754         * lib/freadahead.h (freadahead): Likewise.
2755         * lib/fts.c (fts_maxarglen): Likewise.
2756         * lib/hash-pjw.h (hash_pjw): Likewise.
2757         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
2758         * lib/hash.c (is_prime, next_prime): Likewise.
2759         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
2760         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
2761         (hash_table_ok, hash_get_first, hash_string): Likewise.
2762         (compute_bucket_size): Likewise.
2763         * lib/i-ring.h (i_ring_empty): Likewise.
2764         * lib/isnan.c (isnanl): Likewise.
2765         * lib/math.h (isnanl, rpl_isnanl): Likewise.
2766         * lib/memcasecmp.h (memcasecmp): Likewise.
2767         * lib/memchr2.h (memchr2): Likewise.
2768         * lib/memcmp2.h (memcmp2): Likewise.
2769         * lib/parse-datetime.y (lookup_zone): Likewise.
2770         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
2771         [!WINDOWS_SOCKETS]: Likewise.
2772         * lib/strnlen1.h (strnlen1): Likewise.
2773         * lib/uniwidth.in.h (uc_width): Likewise.
2774         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
2775         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
2776         (quoting_options_from_style): Add a comment.
2777         * lib/propername.h (proper_name): Add a comment.
2778
2779 2011-11-27  Bruno Haible  <bruno@clisp.org>
2780
2781         Remove unused macros from !_LIBC code in glibc-borrowed files.
2782         * lib/fnmatch.c (STRCOLL): Remove macro.
2783         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
2784         * lib/glob.c (__stat, __readdir64): Remove macros.
2785         * lib/tempname.c (__open64, __xstat64): Remove macros.
2786         Suggested by Paul Eggert.
2787
2788 2011-11-27  Bruno Haible  <bruno@clisp.org>
2789
2790         getcwd: Fix link error on MSVC 9.
2791         * modules/getcwd (Depends-on): Add readdir, rewinddir.
2792
2793 2011-11-27  Bruno Haible  <bruno@clisp.org>
2794
2795         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
2796         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
2797         HAVE_OPENDIR is 0.
2798         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
2799         HAVE_CLOSEDIR is 0.
2800         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
2801         is 0.
2802         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
2803
2804 2011-11-27  Bruno Haible  <bruno@clisp.org>
2805
2806         getcwd: Fix bug from 2011-08-17.
2807         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
2808         platforms that need it.
2809         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
2810         code of 4 to be a failure, not a success. This ensures that
2811         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
2812
2813 2011-11-27  Bruno Haible  <bruno@clisp.org>
2814
2815         binary-io tests: Avoid test failure on mingw when libtool is used.
2816         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
2817         Don't verify the size of t-bin-out1.tmp here.
2818         * tests/test-binary-io.sh: Verify it here.
2819         Reported by Simon Josefsson.
2820
2821 2011-11-26  Bruno Haible  <bruno@clisp.org>
2822
2823         Fix conflict between two instantiations of module 'unistd'.
2824         * gnulib-tool (func_emit_autoconf_snippet): Substitute
2825         ${include_guard_prefix} also in the autoconf snippet.
2826         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
2827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
2828         GNULIB_UNISTD_H_GETOPT.
2829         * modules/getopt-posix (configure.ac): Set the
2830         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
2831         * modules/getopt-gnu (configure.ac): Likewise.
2832         * modules/unistd (Makefile.am): Change the substitution value of
2833         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
2834         Reported by Simon Josefsson.
2835
2836 2011-11-25  Bruno Haible  <bruno@clisp.org>
2837
2838         pagealign_alloc: Doc and comments.
2839         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
2840         module.
2841         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
2842
2843 2011-11-25  Jim Meyering  <meyering@redhat.com>
2844
2845         test-update-copyright.sh: avoid false-positive failure
2846         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
2847         around false positive failure on Cygwin/Windows.  The latter was
2848         matching erroneously-created files with names like
2849         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
2850
2851 2011-11-25  Simon Josefsson  <simon@josefsson.org>
2852
2853         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
2854         * m4/valgrind-tests.m4: Check that the parameters that will be
2855         used works, not just a subset of them.  Reported by Bruno Haible
2856         <bruno@clisp.org>.
2857
2858 2011-11-24  Jim Meyering  <meyering@redhat.com>
2859
2860         test-stdalign.c: comment out long double tests
2861         * tests/test-stdalign.c: Don't try to reduce alignment of long double
2862         variables.  That provokes errors like this from gcc-4.7.0 20111124:
2863         error: '_Alignas' specifiers cannot reduce alignment of \
2864         'static_longdouble_alignas'.
2865
2866 2011-11-22  Jim Meyering  <meyering@redhat.com>
2867
2868         init.sh: make "compare /dev/null FILE" output more readable
2869         * tests/init.sh (compare_): Document the preferred order of arguments.
2870         (emit_diff_u_header_): New function.
2871         (compare_dev_null_): Emit a simulated diff, rather than just the
2872         contents of the unexpected file.  Suggestion from Bruno Haible.
2873
2874 2011-11-21  Jim Meyering  <meyering@redhat.com>
2875             Eric Blake  <eblake@redhat.com>
2876
2877         init.sh: work around OSF/1 5.1's mishandling of /dev/null
2878         * tests/init.sh: Make our compare function slightly more portable.
2879         Reported by Bruno Haible in
2880         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
2881
2882 2011-11-21  Simon Josefsson  <simon@josefsson.org>
2883
2884         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
2885         before using it, in code that ends up in config.h.
2886
2887 2011-11-20  Bruno Haible  <bruno@clisp.org>
2888
2889         getcwd: Work around getcwd bug on AIX 5..7.
2890         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
2891         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
2892         Use a different value for gl_cv_func_getcwd_path_max. Move the
2893         definition of HAVE_PARTLY_WORKING_GETCWD from here...
2894         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
2895         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
2896         Define HAVE_MINIMALLY_WORKING_GETCWD.
2897         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
2898         where it is not even minimally working, that is, on AIX.
2899         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
2900         m4/getcwd-path-max.m4.
2901         (main): Update exit code computation.
2902         * doc/posix-functions/getcwd.texi: Mention list of platforms where
2903         getcwd does not handle long file names.
2904
2905 2011-11-20  Bruno Haible  <bruno@clisp.org>
2906
2907         getcwd: Fix bug from 2009-09-10.
2908         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
2909         like "no".
2910
2911 2011-11-20  Simon Josefsson  <simon@josefsson.org>
2912
2913         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
2914
2915 2011-11-20  Bruno Haible  <bruno@clisp.org>
2916
2917         fma tests: Avoid shadowing local variables.
2918         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
2919         expected.
2920
2921 2011-11-20  Bruno Haible  <bruno@clisp.org>
2922
2923         copysignf tests: Fix.
2924         * tests/test-copysignf.c: Fix signature check.
2925
2926 2011-11-20  Bruno Haible  <bruno@clisp.org>
2927
2928         fma: Remove unused code.
2929         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
2930         unused macros.
2931
2932 2011-11-20  Bruno Haible  <bruno@clisp.org>
2933
2934         sethostname: Fix doc about AIX.
2935         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
2936         sethostname; it has it.
2937
2938         sethostname: Mention more portability problems.
2939         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
2940         problem.
2941         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
2942
2943 2011-11-19  Bruno Haible  <bruno@clisp.org>
2944
2945         Depend on module fcntl-h when AT_FDCWD is used.
2946         * modules/utimens (Depends-on): Add fcntl-h.
2947         * modules/areadlinkat (Depends-on): Likewise.
2948         * modules/areadlinkat-with-size (Depends-on): Likewise.
2949         * modules/faccessat (Depends-on): Likewise.
2950         * modules/fchmodat (Depends-on): Likewise.
2951         * modules/fchownat (Depends-on): Likewise.
2952         * modules/getcwd (Depends-on): Likewise.
2953         * modules/mkdirat (Depends-on): Likewise.
2954         * modules/mkfifoat (Depends-on): Likewise.
2955         * modules/readlinkat (Depends-on): Likewise.
2956         * modules/symlinkat (Depends-on): Likewise.
2957         * modules/dup2-tests (Depends-on): Likewise.
2958         * modules/fdutimensat-tests (Depends-on): Likewise.
2959         * modules/futimens-tests (Depends-on): Likewise.
2960
2961 2011-11-19  Bruno Haible  <bruno@clisp.org>
2962
2963         euidaccess: Update a comment.
2964         * lib/euidaccess.c: Update comment about platforms with faccessat.
2965
2966 2011-11-19  Bruno Haible  <bruno@clisp.org>
2967
2968         openat: Fix file list.
2969         * modules/openat (Files): Remove lib/at-func.c.
2970
2971 2011-11-19  Bruno Haible  <bruno@clisp.org>
2972
2973         fstatat: Simplify.
2974         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
2975         gnulib should define rpl_fstatat, there is a
2976         "#define fstatat rpl_fstatat" in <sys/stat.h>.
2977
2978 2011-11-19  Bruno Haible  <bruno@clisp.org>
2979
2980         Ensure 'inline' can be used in tests/test-utimens-common.h.
2981         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
2982         * modules/futimens-tests (configure.ac): Likewise.
2983         * modules/utimens-tests (configure.ac): Likewise.
2984         * modules/utimensat-tests (configure.ac): Likewise.
2985
2986 2011-11-19  Simon Josefsson  <simon@josefsson.org>
2987
2988         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
2989         not hash_insert0.
2990         (hash_insert_if_absent): Doc fix.
2991
2992 2011-11-19  Simon Josefsson  <simon@josefsson.org>
2993
2994         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
2995
2996 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
2997
2998         test-getcwd: disambiguate exit status
2999         * tests/test-getcwd.c (test_long_name): Return 0..7.
3000         (main): Exit with an unambiguous exit status.  The old
3001         code yielded a mysterious mixture of two failure codes.
3002
3003         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
3004         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
3005         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
3006         rpl_fstatat or fstatat.  This should fix the other problem
3007         reported by Kai Habel in
3008         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
3009         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
3010         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
3011         and I reproduced it on a Solaris 8 host we still have in production.
3012
3013 2011-11-18  Jim Meyering  <meyering@redhat.com>
3014
3015         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
3016         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
3017         Add a sentence to the comment.
3018         (hash_insert0): New function that simply calls hash_insert_if_absent.
3019         * lib/hash.h (hash_insert_if_absent): Declare it.
3020         (hash_insert0): Add deprecation attribute.
3021         (_GL_ATTRIBUTE_DEPRECATED): Define.
3022         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
3023         not hash_insert0.
3024         * NEWS: Mention it, even though it's not really an incompatible change.
3025
3026 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
3027
3028         openat: avoid compilation failure due to lack of <errno.h> inclusion
3029         * lib/openat.c: Include <errno.h>.
3030
3031 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
3032
3033         * modules/getcwd (Depends-on): Add fdopendir.
3034         This fixes one of the two problems reported by Kai Habel in
3035         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
3036
3037         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
3038         stdalign problem reported by Ian Beckwith in
3039         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
3040         * modules/crypto/gc-arcfour (Depends-on):
3041         Depend conditionally on crypto/arcfour.
3042         * modules/crypto/gc-arctwo (Depends-on):
3043         Depend conditionally on crypto/arctwo.
3044         * modules/crypto/gc-des (Depends-on):
3045         Depend conditionally on crypto/des.
3046         * modules/crypto/gc-hmac-md5 (Depends-on):
3047         Depend conditionally on crypto/hmac-md5.
3048         * modules/crypto/gc-hmac-sha1 (Depends-on):
3049         Depend conditionally on crypto/hmac-sha1.
3050         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
3051         * modules/crypto/gc-md4 (Depends-on):
3052         Depend conditionally on crypto/md4.
3053         * modules/crypto/gc-md5 (Depends-on):
3054         Depend conditionally on crypto/md5.
3055         * modules/crypto/gc-rijndael (Depends-on):
3056         Depend conditionally on crypto/rijndael.
3057         * modules/crypto/gc-sha1 (Depends-on):
3058         Depend conditionally on crypto/sha1.
3059         * modules/crypto/gc-arcfour:
3060         * modules/crypto/gc-arctwo:
3061         * modules/crypto/gc-des:
3062         * modules/crypto/gc-hmac-md5:
3063         * modules/crypto/gc-hmac-sha1:
3064         * modules/crypto/gc-md2:
3065         * modules/crypto/gc-md4:
3066         * modules/crypto/gc-md5:
3067         * modules/crypto/gc-rijndael:
3068         * modules/crypto/gc-sha1:
3069         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
3070         now that the conditional dependencies do the work for us.
3071
3072 2011-11-17  Jim Meyering  <meyering@redhat.com>
3073
3074         tests: factor st_ctime-comparison out of two headers
3075         * tests/test-utimens-common.h (ctime_compare): Define.
3076         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
3077         * tests/test-lutimens.h (test_lutimens): Likewise.
3078         * tests/test-utimens.h (test_utimens): Likewise.
3079
3080         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
3081         Invoke the test program via an init.sh-using wrapper.
3082         * tests/test-getcwd.sh: New file.
3083         * modules/getcwd-tests (Files): Add it.
3084         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
3085
3086 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
3087
3088         gitlog-to-changelog: support multi-author commits.
3089         The FSF cares about keeping track of all authors of patches to its
3090         projects, but Git doesn't provide obvious support for multi-author
3091         changesets. Consensus seems to be forming around the use of extra
3092         Signed-off-by inspired lines in the log message formatted as
3093         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
3094         multi-author commits between version control systems.
3095         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
3096         log message and output in standard ChangeLog multi-author format.
3097         Reported by Peter Rosin <peda@lysator.liu.se>
3098
3099 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
3100             Bruno Haible  <bruno@clisp.org>
3101
3102         Fix some modules' file list.
3103         * modules/fstatat (Files): Add m4/lstat.m4.
3104         * modules/openat (Files): Likewise.
3105         * modules/unlinkat (Files): Likewise.
3106
3107 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
3108
3109         maint.mk: fix tight-scope.mk generation in VPATH builds.
3110         * top/maint.mk (tight-scope.mk): Make sure to prefix file
3111         reference with $(srcdir) so that the file is found correctly even
3112         when running `make syntax-check' in a VPATH build.
3113
3114 2011-11-13  Bruno Haible  <bruno@clisp.org>
3115             Jim Meyering  <meyering@redhat.com>
3116
3117         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
3118         * tests/init.sh (compare): Remove "No differences encountered" or
3119         synonymous output from the 'diff' program.
3120
3121 2011-11-13  Bruno Haible  <bruno@clisp.org>
3122
3123         Makefile: Tweak indentation.
3124         * Makefile: Use tab as first character in every line that contains rule
3125         commands.
3126
3127 2011-11-13  Bruno Haible  <bruno@clisp.org>
3128
3129         Syntax check for copyright statements.
3130         * check-copyright: New file.
3131         * Makefile (sc_check_copyright): New rule.
3132
3133 2011-11-13  Simon Josefsson  <simon@josefsson.org>
3134
3135         * build-aux/git-version-gen: Add --prefix to configure the tag
3136         match string.
3137
3138 2011-11-13  Simon Josefsson  <simon@josefsson.org>
3139
3140         * build-aux/git-version-gen: Add --help and --version.
3141
3142 2011-11-12  Jim Meyering  <meyering@redhat.com>
3143
3144         revamp the other test-exclude?.sh scripts to use init.sh, too
3145         * tests/test-exclude1.sh: Use init.sh.
3146         * tests/test-exclude2.sh: Likewise.
3147         * tests/test-exclude3.sh: Likewise.
3148         * tests/test-exclude4.sh: Likewise.
3149         * tests/test-exclude5.sh: Likewise.
3150         * tests/test-exclude6.sh: Likewise.
3151         * tests/test-exclude7.sh: Likewise.
3152         * tests/test-exclude8.sh: Likewise.
3153         * modules/exclude-tests (Files): List init.sh.
3154
3155         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
3156         These shell scripts ignored failure of the binary test-exclude,
3157         so making the latter return 77 didn't cause them to be skipped.
3158         * tests/test-exclude5.sh: Exit with test-exclude's error status
3159         when that program fails.  Revamp to use init.sh.
3160         * tests/test-exclude2.sh: Likewise.
3161
3162         test-exclude: fix a typo
3163         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
3164
3165 2011-11-11  Bruno Haible  <bruno@clisp.org>
3166
3167         obstack: Fix compilation error on MSVC 9.
3168         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
3169
3170 2011-11-11  Jim Meyering  <meyering@redhat.com>
3171
3172         test-exclude: skip tests rather than failing on deficient systems
3173         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
3174         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
3175         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
3176         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
3177
3178 2011-11-10  Bruno Haible  <bruno@clisp.org>
3179
3180         ptsname_r test: Avoid gcc warning on glibc systems.
3181         * tests/test-ptsname_r.c (null_ptr): New function.
3182         (test_errors): Use it.
3183
3184 2011-11-10  Bruno Haible  <bruno@clisp.org>
3185
3186         ptsname_r: Avoid compilation error on OSF/1 5.1.
3187         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
3188         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
3189         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
3190         function is not declared or incompatibly declared.
3191         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
3192         * modules/ptsname_r (Depends-on, configure.ac): Update.
3193         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
3194
3195 2011-11-10  Bruno Haible  <bruno@clisp.org>
3196
3197         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
3198         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
3199         When cross-compiling, guess yes on all platforms except AIX.
3200         Reported by Ludovic Courtès <ludo@gnu.org>.
3201
3202 2011-11-09  Bruno Haible  <bruno@clisp.org>
3203
3204         ptsname_r tests: Fix bugs.
3205         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
3206         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
3207
3208 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
3209
3210         fstatat: work with cross-compilation
3211         Problem reported by Ludovic Courtès in
3212         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
3213         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
3214         "cross-compiling" and assume the bug is present.  Replace
3215         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
3216         an inverted sense, to be more conservative about our assumptions.
3217         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
3218
3219 2011-11-09  Bruno Haible  <bruno@clisp.org>
3220
3221         Improve MODULES.html output.
3222         * modules/mkfifoat (Description): Use the word "function".
3223         * modules/readlinkat (Description): Likewise.
3224         * modules/symlinkat (Description): Likewise.
3225
3226 2011-11-09  Eric Blake  <eblake@redhat.com>
3227
3228         ptsname_r-tests: new test module
3229         * modules/ptsname_r-tests: New module.
3230         * tests/test-ptsname_r.c: New file.
3231
3232         ptsname_r: new module
3233         * modules/ptsname_r: New module.
3234         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
3235         * lib/ptsname.c (__ptsname_r): Split...
3236         * lib/ptsname_r.c: ...into new file.
3237         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
3238         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
3239         * modules/stdlib (Makefile.am): Substitute witnesses.
3240         * lib/stdlib.in.h (ptsname_r): Declare it.
3241         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
3242         * MODULES.html.sh (Misc): Likewise.
3243         * modules/ptsname (Depends-on): Alter dependency.
3244         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
3245
3246 2011-11-09  Jim Meyering  <meyering@redhat.com>
3247
3248         announce-gen: be more concise when there's only one URL+tarball
3249         * build-aux/announce-gen (get_tool_versions): When you distribute
3250         only one type of tarball, combine the first two "Here are..."
3251         sections and make the key-checking grammar independent of
3252         how many tarballs there are.
3253
3254 2011-11-09  Eric Blake  <eblake@redhat.com>
3255
3256         openpty: provide a stub on mingw
3257         * lib/pty.in.h (includes): Provide forward declarations.
3258         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
3259
3260         raise: fix mingw handling of SIGPIPE
3261         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
3262
3263 2011-11-08  Bruno Haible  <bruno@clisp.org>
3264
3265         More conditional dependencies.
3266         * modules/faccessat (Depends-on): Add conditions.
3267         * modules/fchmodat (Depends-on): Likewise.
3268         * modules/fchownat (Depends-on): Likewise.
3269         * modules/fstatat (Depends-on): Likewise.
3270         * modules/mkfifoat (Depends-on): Likewise.
3271         * modules/readlinkat (Depends-on): Likewise.
3272         * modules/symlinkat (Depends-on): Likewise.
3273         * modules/unlinkat (Depends-on): Likewise.
3274         * modules/utimensat (Depends-on): Likewise.
3275         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
3276         * modules/linkat (Depends-on): Refine the conditions.
3277         * modules/renameat (Depends-on): Likewise.
3278
3279 2011-11-08  Bruno Haible  <bruno@clisp.org>
3280
3281         faccessat: Move AC_LIBOBJ invocation to module description.
3282         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
3283         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
3284         invocation from here...
3285         * modules/faccessat (configure.ac): ... to here. Invoke
3286         gl_PREREQ_FACCESSAT.
3287
3288 2011-11-08  Bruno Haible  <bruno@clisp.org>
3289
3290         faccessat: Simplify autoconf macro.
3291         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
3292         gl_FUNC_EUIDACCESS.
3293
3294 2011-11-08  Bruno Haible  <bruno@clisp.org>
3295
3296         renameat: Fix dependencies.
3297         * modules/renameat (Depends-on): Add stdbool.
3298
3299 2011-11-08  Bruno Haible  <bruno@clisp.org>
3300
3301         mkfifoat: Fix module description.
3302         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
3303         not gl_UNISTD_MODULE_INDICATOR.
3304
3305 2011-11-08  Bruno Haible  <bruno@clisp.org>
3306
3307         fstatat: Remove unused dependency.
3308         * modules/fstatat (Depends-on): Remove fstat.
3309
3310 2011-11-08  Simon Josefsson  <simon@josefsson.org>
3311
3312         GNUmakefile: behave when Makefile is missing.
3313         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
3314
3315 2011-11-08  Bruno Haible  <bruno@clisp.org>
3316
3317         openat: Conditionalize dependencies.
3318         * lib/openat.c: Reduce the scope of some #includes.
3319         * modules/openat (Depends-on): Add conditions.
3320
3321 2011-11-07  Jim Meyering  <meyering@redhat.com>
3322
3323         maint.mk: extract GPG key ID without using a temporary file
3324         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
3325         without using a temporary file.  Based on a suggestion from Werner Koch
3326         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
3327
3328 2011-11-07  Eric Blake  <eblake@redhat.com>
3329
3330         grantpt: fix typo
3331         * lib/stdlib.in.h (grantpt): Check correct function.
3332
3333         maint.mk: silence new syntax check
3334         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
3335
3336 2011-11-06  Bruno Haible  <bruno@clisp.org>
3337
3338         Doc about floating-point and math API.
3339         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
3340         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
3341
3342 2011-11-06  Bruno Haible  <bruno@clisp.org>
3343
3344         stdalign tests: Skip the test when compiled by Sun C.
3345         * tests/test-stdalign.c (main): Skip the test on Sun C.
3346
3347 2011-11-06  Bruno Haible  <bruno@clisp.org>
3348
3349         ansi-c++-opt: Complete the 2011-06-05 change.
3350         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
3351         does not support namespaces, set the variable to "no", not to ":".
3352
3353 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
3354
3355         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
3356
3357 2011-11-06  Bruno Haible  <bruno@clisp.org>
3358
3359         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
3360         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
3361         (minus_zerol) [HP-UX]: New macro.
3362         (unary_minus) [HP-UX]: New function.
3363         (copysignl) [HP-UX]: Use unary_minus function.
3364
3365 2011-11-06  Bruno Haible  <bruno@clisp.org>
3366
3367         ldexp, ldexpf, ldexpl: Enhance tests.
3368         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
3369         and tests/test-ldexpl.c.
3370         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
3371         LDEXP, MIN_EXP, MAX_EXP): New macros.
3372         Include test-ldexp.h.
3373         (main): Just call test_function.
3374         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
3375         infinity.h, nan.h.
3376         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
3377         MAX_EXP): New macros.
3378         Include test-ldexp.h.
3379         (x, y): Remove variables.
3380         (main): Just call test_function.
3381         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
3382         infinity.h, nan.h.
3383         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
3384         MAX_EXP): New macros.
3385         Include test-ldexp.h.
3386         (x, y): Remove variables.
3387         (main): Just call test_function.
3388         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
3389         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
3390         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
3391         (Depends-on): Add isnand-nolibm, signbit, float.
3392         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
3393         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
3394         (Depends-on): Add isnanf-nolibm, signbit, float.
3395
3396 2011-11-06  Bruno Haible  <bruno@clisp.org>
3397
3398         math tests: Cosmetics.
3399         * tests/test-math-c++.cc: Reorder declarations.
3400
3401 2011-11-05  Bruno Haible  <bruno@clisp.org>
3402
3403         fma*: Simplify test.
3404         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
3405         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
3406
3407         Tests for module 'fmal'.
3408         * modules/fmal-tests: New file.
3409         * tests/test-fmal1.c: New file.
3410         * tests/test-fmal2.c: New file.
3411
3412         New module 'fmal'.
3413         * lib/math.in.h (fmal): New declaration.
3414         * lib/fmal.c: New file.
3415         * m4/fmal.m4: New file.
3416         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
3417         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
3418         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
3419         REPLACE_FMAL.
3420         * modules/fmal: New file.
3421         * doc/posix-functions/fmal.texi: Mention the new module and the various
3422         bugs.
3423
3424         Tests for module 'fmaf'.
3425         * modules/fmaf-tests: New file.
3426         * tests/test-fmaf1.c: New file.
3427         * tests/test-fmaf2.c: New file.
3428
3429         New module 'fmaf'.
3430         * lib/math.in.h (fmaf): New declaration.
3431         * lib/fmaf.c: New file.
3432         * m4/fmaf.m4: New file.
3433         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
3434         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
3435         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
3436         REPLACE_FMAF.
3437         * modules/fmaf: New file.
3438         * doc/posix-functions/fmaf.texi: Mention the new module and the various
3439         bugs.
3440
3441         Tests for module 'fma'.
3442         * modules/fma-tests: New file.
3443         * tests/test-fma1.c: New file.
3444         * tests/test-fma1.h: New file.
3445         * tests/test-fma2.c: New file.
3446         * tests/test-fma2.h: New file.
3447
3448         New module 'fma'.
3449         * lib/math.in.h (fma): New declaration.
3450         * lib/fma.c: New file.
3451         * m4/fma.m4: New file.
3452         * m4/fegetround.m4: New file.
3453         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
3454         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
3455         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
3456         REPLACE_FMA.
3457         * modules/fma: New file.
3458         * doc/posix-functions/fma.texi: Mention the new module and the various
3459         bugs.
3460
3461         Extend gl_MATHFUNC.
3462         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
3463         Support 'void' as argument type.
3464         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
3465
3466 2011-11-05  Jim Meyering  <meyering@redhat.com>
3467
3468         maint.mk: also prohibit inclusion of dirent.h without use
3469         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
3470
3471 2011-11-05  Bruno Haible  <bruno@clisp.org>
3472
3473         ldexpl tests: Avoid test failure on MSVC 9.
3474         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
3475         value. Needed in order to enforce the conversion from a value greater
3476         than LDBL_MAX to Infinity.
3477
3478 2011-11-05  Bruno Haible  <bruno@clisp.org>
3479
3480         New modules 'at-internal', 'openat-h', split off from module 'openat'.
3481         * modules/at-internal: New file, extracted from modules/openat.
3482         * modules/openat-h: New file.
3483         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
3484         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
3485         * modules/openat (Description): Add reference to POSIX function.
3486         (Files): Remove lib/openat.h, lib/openat-proc.c.
3487         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
3488         intprops, unistd.
3489         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
3490         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
3491         gl_FCNTL_MODULE_INDICATOR.
3492         (Include): Remove unistd.h, openat.h.
3493         * modules/areadlinkat (Files): Add lib/at-func.c.
3494         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
3495         openat-die, openat-h, save-cwd.
3496         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
3497         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
3498         openat-die, openat-h, save-cwd, unistd.
3499         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
3500         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3501         openat-h, save-cwd. Remove fcntl-h, openat.
3502         * modules/fchmodat (Files): Remove lib/openat.h.
3503         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
3504         openat, stdbool, unistd.
3505         * modules/fchownat (Files): Remove lib/openat.h.
3506         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
3507         openat, stdbool, sys_stat.
3508         * modules/fdopendir (Files): Remove lib/openat-priv.h,
3509         lib/openat-proc.c.
3510         (Depends-on): Add at-internal.
3511         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
3512         * modules/fstatat (Files): Remove lib/openat.h.
3513         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
3514         stdbool, unistd.
3515         * modules/fts (Depends-on): Add openat-h.
3516         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
3517         openat.
3518         * modules/mkdirat (Files): Remove lib/openat.h.
3519         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
3520         openat, stdbool, sys_stat.
3521         * modules/mkfifoat (Files): Add lib/at-func.c.
3522         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3523         openat-h, save-cwd. Remove fcntl-h, openat.
3524         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
3525         * modules/readlinkat (Files): Add lib/at-func.c.
3526         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3527         openat-h, save-cwd. Remove fcntl-h, openat.
3528         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
3529         openat.
3530         * modules/selinux-at (Files): Add lib/at-func.c.
3531         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
3532         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
3533         * modules/symlinkat (Files): Add lib/at-func.c.
3534         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3535         openat-h, save-cwd. Remove fcntl-h, openat.
3536         * modules/unlinkat (Files): Remove lib/openat.h.
3537         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
3538         stdbool.
3539         * modules/utimensat (Files): Add lib/at-func.c.
3540         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
3541         openat-die, openat-h, save-cwd.
3542         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
3543         * modules/fdutimensat-tests (Depends-on): Add openat.
3544         * modules/fstatat-tests (Depends-on): Add openat-h.
3545         * modules/readlinkat-tests (Depends-on): Add openat.
3546         * modules/symlinkat-tests (Depends-on): Add openat.
3547
3548 2011-11-05  Bruno Haible  <bruno@clisp.org>
3549
3550         openat: Include <stdbool.h>.
3551         * lib/openat.c: Include <stdbool.h>.
3552
3553 2011-11-04  Bruno Haible  <bruno@clisp.org>
3554
3555         fchownat, renameat, unlinkat: Fix dependencies.
3556         * modules/fchownat (Depends-on): Add fstatat.
3557         * modules/renameat (Depends-on): Likewise.
3558         * modules/unlinkat (Depends-on): Likewise.
3559
3560 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
3561
3562         openat: remove direct dependency on dirent
3563         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
3564         and hasn't been needed ever since fdopendir was split into its own
3565         module on 2009-08-31.
3566         * modules/openat (Depends-on): Remove dirent.
3567
3568 2011-11-04  Bruno Haible  <bruno@clisp.org>
3569
3570         renameat: Optimize code size.
3571         * modules/renameat (configure.ac): Don't compile at-func2.c if
3572         REPLACE_RENAMEAT is 1.
3573
3574 2011-11-04  Bruno Haible  <bruno@clisp.org>
3575
3576         openat tests: Fix file list.
3577         * modules/openat-tests (Files): Add tests/test-open.h.
3578
3579 2011-11-04  Bruno Haible  <bruno@clisp.org>
3580
3581         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
3582         * modules/fchmodat (Depends-on): Add openat-die.
3583         * modules/fchownat (Depends-on): Likewise.
3584         * modules/linkat (Depends-on): Likewise.
3585         * modules/renameat (Depends-on): Likewise.
3586         * modules/openat (Depends-on): Add dirent.
3587
3588 2011-11-04  Jim Meyering  <meyering@redhat.com>
3589
3590         at-func*.c: fix comments
3591         * lib/at-func2.c: Correct/improve first-line comment.
3592         * lib/at-func.c: Correct grammar in first-line comment.
3593
3594 2011-11-04  Bruno Haible  <bruno@clisp.org>
3595
3596         New module 'mkdirat', split off from module 'openat'.
3597         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
3598         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
3599         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
3600         * modules/mkdirat: New file, extracted from modules/openat.
3601         * modules/openat (Files): Remove lib/mkdirat.c.
3602         (Depends-on): Remove mkdir.
3603         (configure.ac): Remove AC_LIBOBJ of mkdirat.
3604         (Include): Remove <sys/stat.h>.
3605         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
3606         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
3607         tests/test-mkdir.h.
3608         (Depends-on): Remove ignore-value.
3609         (Makefile.am): Remove rules for test-mkdirat.
3610         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
3611         of module 'openat'.
3612         * NEWS: Mention the change.
3613
3614 2011-11-04  Bruno Haible  <bruno@clisp.org>
3615
3616         closedir: Avoid warning on mingw.
3617         * lib/closedir.c: Include <unistd.h>.
3618
3619 2011-11-04  Bruno Haible  <bruno@clisp.org>
3620
3621         New module 'fstatat', split off from module 'openat'.
3622         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
3623         defined.
3624         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
3625         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
3626         gl_FUNC_FSTATAT.
3627         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
3628         * modules/fstatat: New file, extracted from modules/openat.
3629         * modules/openat (Files): Remove lib/fstatat.c.
3630         (Depends-on): Remove lstat.
3631         (configure.ac): Remove AC_LIBOBJ of fstatat.
3632         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
3633         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
3634         tests/test-lstat.h, tests/test-stat.h.
3635         (Depends-on): Remove getcwd-lgpl.
3636         (Makefile.am): Remove rules for test-fstatat.
3637         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
3638         of module 'openat'.
3639         * NEWS: Mention the change.
3640         * modules/getcwd (Depends-on): Add fstatat.
3641         * modules/linkat (Depends-on): Likewise.
3642         * modules/mkfifoat-tests (Depends-on): Likewise.
3643         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
3644
3645 2011-11-03  Bruno Haible  <bruno@clisp.org>
3646
3647         New module 'unlinkat', split off from module 'openat'.
3648         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
3649         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
3650         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
3651         * modules/unlinkat: New file, extracted from modules/openat. Correct
3652         the dependency conditions.
3653         * modules/openat (Files): Remove lib/unlinkat.c.
3654         (Depends-on): Remove rmdir, unlink.
3655         (configure.ac): Remove AC_LIBOBJ of unlinkat.
3656         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
3657         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
3658         tests/test-rmdir.h, tests/test-unlink.h.
3659         (Depends-on): Remove unlinkdir.
3660         (Makefile.am): Remove rules for test-unlinkat.
3661         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
3662         of module 'openat'.
3663         * NEWS: Mention the change.
3664         * modules/linkat-tests (Depends-on): Add unlinkat.
3665         * modules/mkfifoat-tests (Depends-on): Likewise.
3666         * modules/readlinkat-tests (Depends-on): Likewise.
3667
3668 2011-11-02  Bruno Haible  <bruno@clisp.org>
3669
3670         New module 'fchmodat', split off from module 'openat'.
3671         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
3672         defined.
3673         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
3674         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
3675         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
3676         * modules/fchmodat: New file, extracted from modules/openat.
3677         * modules/openat (Files): Remove lib/fchmodat.c.
3678         (configure.ac): Remove AC_LIBOBJ of fchmodat.
3679         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
3680         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
3681         (Makefile.am): Remove rules for test-fchmodat.
3682         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
3683         of module 'openat'.
3684         * NEWS: Mention the change.
3685
3686 2011-11-02  Jim Meyering  <meyering@redhat.com>
3687
3688         putenv: indent #definition of "environ" to placate cppi
3689         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
3690
3691         gitlog-to-changelog: provide a ChangeLog-repair mechanism
3692         Git logs are often treated as immutable, because editing them
3693         changes the SHA1 checksums of all descendants.  Thus, errors in
3694         git logs tend to stay there forever.  However, when we generate
3695         a ChangeLog file -- typically for distribution -- from that git log,
3696         we can actually make corrections in the generated file.  The key
3697         lies in recording in machine-readable/applicable form the desired
3698         corrections.  See --help for description and an example.
3699         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
3700         (usage): Describe it; alphabetize option descriptions.
3701         (main): Honor the new option, carefully.
3702
3703 2011-11-01  Jim Meyering  <meyering@redhat.com>
3704
3705         gitlog-to-changelog: avoid an infloop
3706         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
3707         that ends up being empty.
3708
3709 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
3710
3711         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
3712         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
3713         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
3714         contains (possibly-quoted) backslashes.  This should avoid
3715         all-too-common shell bugs if COMPLICATED contains backslashes in
3716         the "wrong" places.  Reported by David Evans in
3717         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
3718         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
3719         because we want ASCII ranges.  Is there some reason we don't use
3720         the C locale everywhere in this script?
3721         (func_module, top level): Avoid unwanted pathname expansion when
3722         $repo_url_prefix or $repo_url_suffix_repl contain shell
3723         metacharacters like '?' and '*'.
3724
3725 2011-11-01  Bruno Haible  <bruno@clisp.org>
3726
3727         fchownat: Improve description.
3728         * modules/fchownat (Description): Add link to function.
3729
3730 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
3731
3732         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
3733         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
3734         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
3735         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
3736
3737 2011-11-01  Bruno Haible  <bruno@clisp.org>
3738
3739         alignof: Avoid collision with stdalign module.
3740         * lib/alignof.h (alignof): Remove macro.
3741         * NEWS: Mention the change.
3742         Reported by Paul Eggert.
3743
3744 2011-11-01  Bruno Haible  <bruno@clisp.org>
3745
3746         New module 'fchownat', split off from module 'openat'.
3747         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
3748         defined.
3749         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
3750         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
3751         invoke gl_FUNC_FCHOWNAT.
3752         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
3753         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
3754         * modules/fchownat: New file, extracted from modules/openat.
3755         * modules/openat (Files): Remove lib/fchownat.c.
3756         (Depends-on): Remove lchown.
3757         (configure.ac): Remove AC_LIBOBJ of fchownat.
3758         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
3759         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
3760         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
3761         (Depends-on): Remove mgetgroups, usleep, stat-time.
3762         (configure.ac): Remove test for getegid.
3763         (Makefile.am): Remove rules for test-fchownat.
3764         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
3765         of module 'openat'.
3766         * NEWS: Mention the change.
3767
3768 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
3769
3770         stdalign: port better to MSVC and to Sun C 5.11
3771         This fixes some of the problems reported by Bruno Haible in
3772         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
3773         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
3774         shortcomings of MSVC and of Sun C 5.11.
3775         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
3776         around __declspec arg.
3777         * modules/stdalign-tests (Files): Add tests/macros.h.
3778         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
3779         Include macros.h, for ASSERT.
3780         (DECLARE_ALIGNED): Remove.
3781         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
3782         to catch bug), and to 1 if not (simplifies the rest of the code).
3783         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
3784         (CHECK_AUTO): Remove.
3785         (CHECK_ALIGNED): Check only the alignment of the static vars,
3786         since auto var alignment isn't supported by Sun C 5.11.
3787         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
3788         ASSERT failures are easier to diagnose.
3789
3790 2011-10-31  Bruno Haible  <bruno@clisp.org>
3791
3792         doc about some IRIX 5.3 problems.
3793         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
3794         on IRIX 5.3.
3795         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
3796         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
3797         5.3.
3798         * doc/posix-functions/grantpt.texi: Likewise.
3799         * doc/posix-functions/unlockpt.texi: Likewise.
3800         * doc/posix-functions/lgamma.texi: Likewise.
3801         * doc/posix-functions/nextafter.texi: Likewise.
3802         * doc/posix-functions/remainder.texi: Likewise.
3803         * doc/posix-functions/select.texi: Mention misplaced declaration on
3804         IRIX 5.3.
3805         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3806
3807 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
3808
3809         gitlog-to-changelog: fix git-log invocation.
3810         git-log mishandles date strings before 1970-01-01 UTC, and there is
3811         no use to specify --since=1970-01-01 by default anyway.
3812         * build-aux/gitlog-to-changelog: By default, when no --since option
3813         was given, do not specify explicit --since option to git-log.
3814
3815 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
3816
3817         gitlog-to-changelog: new option --append-dot.
3818         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
3819         first non-blank line of each commit message terminated with a dot.
3820
3821 2011-10-30  Bruno Haible  <bruno@clisp.org>
3822
3823         ffsl, ffsll: Avoid compilation error due to 'restrict'.
3824         * lib/ffsl.h: Include <config.h>.
3825         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
3826
3827 2011-10-30  Jim Meyering  <meyering@redhat.com>
3828
3829         GNUmakefile: reenable "make syntax-check" for most projects
3830         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
3831         build-aux variable", "syntax-check" would do nothing but succeed with
3832         the "No version control files detected..." diagnostic (unless you
3833         happened to override _build-aux via cfg.mk).
3834         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
3835         to precede inclusion of maint.mk.  Otherwise, these variables would
3836         be used undefined in any project that does not override the default.
3837
3838 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
3839
3840         gitlog-to-changelog: treat a message with only blank lines as empty.
3841         * build-aux/gitlog-to-changelog: Move the code that removes leading and
3842         trailing blank lines before the code that issues a warning about an
3843         empty commit message.
3844
3845 2011-10-30  Jim Meyering  <meyering@redhat.com>
3846
3847         test-parse-datetime.c: avoid new DST-related false positive test failure
3848         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
3849         based on the time/date we'll convert, not the current time.
3850         Otherwise, the moment we cross a DST boundary like today's in
3851         Europe, (CEST to CET), that offset ends up being one hour off.
3852
3853 2011-10-27  Bruno Haible  <bruno@clisp.org>
3854
3855         fstat: Tweak documentation.
3856         * modules/fstat (Description): More precise description.
3857
3858 2011-10-27  Bruno Haible  <bruno@clisp.org>
3859
3860         Update documentation regarding 'largefile' module.
3861         * doc/posix-functions/fstat.texi: Tweak wording.
3862         * doc/posix-functions/opendir.texi: Mention that the module fixes the
3863         problems with huge directories and/or small ino_t types.
3864         * doc/posix-functions/readdir.texi: Likewise.
3865         * doc/posix-functions/rewinddir.texi: Likewise.
3866
3867 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
3868
3869         maint.mk: don't maintain a second build-aux variable.
3870         * maint.mk (build_aux): Removed.  The maintainer-makefile module
3871         depends on GNUmakefile, which already maintains a cfg.mk
3872         overridable $(_build-aux) for projects with a non-standard
3873         build-aux directory location, although without the $(srcdir)
3874         prefix.  Use that variable consistently instead of introducing a
3875         second one.  Adjust all call sites.
3876
3877 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
3878
3879         Add stdalign module and use it in other modules.
3880         This is based on a previous proposal by Bruno Haible
3881         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
3882
3883         stdalign: new module
3884         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
3885         * modules/stdalign: New files.
3886         * MODULES.html.sh (c1x_core_properties): Add stdalign.
3887         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
3888
3889         stdalign-tests: new module
3890         * modules/stdalign-tests, tests/test-stdalign.c: New files.
3891
3892         argp: use stdalign
3893         * lib/argp-parse.c: Include <stdalign.h>.
3894         (alignof): Remove.
3895         * modules/argp (Depends-on): Add stdalign.
3896
3897         crypto libraries: use stdalign
3898         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
3899         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
3900         Do not include <stdlib.h> twice, in md4.c.
3901         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
3902         because we are accessing a pointer's bit-pattern, not a size.
3903         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
3904         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
3905         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
3906         * modules/crypto/sha512: Likewise.
3907
3908         sys_socket: use stdalign, not alignof
3909         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
3910         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
3911
3912 2011-10-27  Bruno Haible  <bruno@clisp.org>
3913
3914         raise test: Avoid a test failure on Linux/MIPS.
3915         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
3916         because 99 is a valid signal on Linux/MIPS.
3917
3918 2011-10-27  Bruno Haible  <bruno@clisp.org>
3919
3920         nonblocking tests: Fix test failure on Linux/MIPS.
3921         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
3922         Set to 270000.
3923
3924 2011-10-27  Bruno Haible  <bruno@clisp.org>
3925
3926         utimensat: Work around problem on Linux/hppa.
3927         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
3928         values.
3929         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
3930
3931 2011-10-25  Jim Meyering  <meyering@redhat.com>
3932
3933         maint.mk: fix a bug in sc_prohibit_stddef_without_use
3934         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
3935         after symbols like NULL, size_t, etc.
3936         Reported by Alfred M. Szmidt.
3937
3938         maint.mk: exempt ENODATA from a syntax-check rule
3939         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
3940         from the sc_prohibit_always-defined_macros syntax-check rule.
3941         Add a comment.  See this for more details:
3942         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
3943
3944 2011-10-23  Jim Meyering  <meyering@redhat.com>
3945
3946         fts: close parent dir FD before returning from post-traversal fts_read
3947         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
3948         unlink A, even though an FD open on A remained.  This is suboptimal
3949         (holding a file descriptor open longer than needed), but otherwise not
3950         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
3951         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
3952         that represents a real problem: it causes the removal of A to fail
3953         with e.g., "rm: cannot remove `A': Device or resource busy"
3954
3955         fts visits each directory twice and keeps a cache (fts_fd_ring) of
3956         directory file descriptors.  After completing the final, FTS_DP,
3957         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
3958         cache, but then proceeded to add a new FD to it via the subsequent
3959         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
3960         final file descriptor would be closed only via fts_close's call to
3961         fd_ring_clear.  Now, it is usually closed earlier, via the final
3962         FTS_DP-returning fts_read call.
3963         * lib/fts.c (restore_initial_cwd): New function, converted from
3964         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
3965         Update callers.
3966         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
3967         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
3968
3969 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
3970             Bruno Haible  <bruno@clisp.org>
3971             Jim Meyering  <jim@meyering.net>
3972
3973         readme-release: improve safety of release prep instructions.
3974         * README-release: Don't git pull all branches when only master
3975         is needed for the release process.
3976         Run make maintainer-clean before changing trees and merging.
3977         Don't try to run ./configure right after git pull in case files
3978         that influence the bootstrap process have changed, move the
3979         ./configure step to after running ./bootstrap.
3980         Don't bootstrap "one last time"... it's the first time!
3981
3982 2011-10-22  Bruno Haible  <bruno@clisp.org>
3983
3984         errno, strerror-override: Support for MSVC 10.
3985         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
3986         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
3987         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
3988         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
3989         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
3990         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
3991         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
3992         Assign values compatible with MSVC 10.
3993         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
3994         New macros.
3995         (GNULIB_defined_EWINSOCK): New macro.
3996         * lib/strerror-override.c (strerror_override): Update accordingly.
3997         * lib/strerror-override.h: Likewise.
3998         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
3999         longer equal to the corresponding errno value.
4000         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4001
4002 2011-10-22  Bruno Haible  <bruno@clisp.org>
4003
4004         perror: Recognize when test program crashes.
4005         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
4006         strerror, set gl_cv_func_perror_works to no.
4007         Reported by Daniel Richard G. <skunk@iskunk.org>.
4008
4009         perror: Fix indentation.
4010         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
4011
4012 2011-10-22  Bruno Haible  <bruno@clisp.org>
4013
4014         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
4015         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
4016         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
4017         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
4018         functions, not as a macro.
4019         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
4020         macros.
4021         (isfinite, isinf, isnan, signbit): Check overloaded functions and
4022         absence of macro.
4023         Suggested by Eric Blake.
4024         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4025
4026 2011-10-21  Bruno Haible  <bruno@clisp.org>
4027
4028         relocatable-prog-wrapper: Don't leave object files behind.
4029         * build-aux/install-reloc: Re-synchronize list of .o files to be
4030         removed with list of compilation units.
4031
4032 2011-10-20  Bruno Haible  <bruno@clisp.org>
4033
4034         openpty, posix_openpt: Remove code duplication.
4035         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
4036         * lib/openpty.c: Include <stdlib.h>.
4037         (openpty): Use posix_openpt on all platforms except IRIX.
4038         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
4039
4040 2011-10-20  Bruno Haible  <bruno@clisp.org>
4041
4042         unlockpt: Detect invalid argument.
4043         * lib/unlockpt.c: Include <fcntl.h>.
4044         (unlockpt): Check whether fd is valid, using fcntl().
4045         * modules/unlockpt (Depends-on): Add fcntl-h.
4046
4047 2011-10-20  Bruno Haible  <bruno@clisp.org>
4048
4049         openpty: Avoid compilation error on AIX 6.1.
4050         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
4051
4052 2011-10-20  Bruno Haible  <bruno@clisp.org>
4053
4054         posix_openpt: Support for OpenBSD.
4055         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
4056         (posix_openpt) [OpenBSD]: New code.
4057         * lib/grantpt.c: Include <fcntl.h>.
4058         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
4059         * modules/grantpt (Depends-on): Add fcntl-h.
4060
4061 2011-10-20  Bruno Haible  <bruno@clisp.org>
4062
4063         posix_openpt test: Coding style.
4064         * tests/test-posix_openpt.c: Use GNU coding style.
4065
4066 2011-10-20  Bruno Haible  <bruno@clisp.org>
4067
4068         grantpt: Support --avoid=pt_chown.
4069         * modules/grantpt (Files): Add lib/pty-private.h.
4070
4071 2011-10-20  Bruno Haible  <bruno@clisp.org>
4072
4073         posix_openpt: Fix autoconf macro.
4074         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
4075         unneeded check for _getpty.
4076
4077 2011-10-20  Bruno Haible  <bruno@clisp.org>
4078
4079         openpty: Update comments.
4080         * lib/openpty.c: Add comments about Minix.
4081
4082 2011-10-19  Eric Blake  <eblake@redhat.com>
4083
4084         openpty: relax license
4085         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
4086
4087         pt_chown: use configmake to simplify build
4088         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
4089
4090         ptsname and others: relax license
4091         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
4092         * modules/unlockpt (License): Likewise.
4093         * modules/pt_chown (License): Likewise.
4094         * modules/ptsname (License): Likewise.
4095         * modules/ttyname_r (License): Likewise.
4096
4097 2011-10-19  Jim Meyering  <meyering@redhat.com>
4098
4099         posix_openpt: remove spurious #endif
4100         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
4101
4102 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
4103
4104         maint.mk: Respect $(build_aux) in web-manual rule.
4105         * top/maint.mk (web-manual): Find gen-announce script in user's
4106         $(build_aux) directory instead of hard-coding 'build-aux'.
4107
4108 2011-10-19  Bruno Haible  <bruno@clisp.org>
4109
4110         posix_openpt: Fix compilation error.
4111         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
4112         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
4113         Mention the openpty module as an alternative.
4114
4115 2011-10-19  Bruno Haible  <bruno@clisp.org>
4116
4117         Support for old NeXTstep 3.3 frexp().
4118         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
4119         execution time of the test to 5 seconds.
4120         Reported by Daniel Richard G. <skunk@iskunk.org>.
4121
4122 2011-10-19  Bruno Haible  <bruno@clisp.org>
4123
4124         Support for old NeXTstep 3.3 sed.
4125         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
4126         part, use /.../, not \|...|. Escape periods in the header file name.
4127         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
4128         Reported by Daniel Richard G. <skunk@iskunk.org>.
4129
4130 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
4131
4132         Support for old NeXTstep 3.3 gcc.
4133         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
4134         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
4135         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
4136         * lib/spawn.in.h (_Restrict_arr_): Likewise.
4137         * lib/regex.h (_Restrict_arr_): Likewise.
4138         * lib/regex_internal.h (re_token_t): Likewise.
4139         * lib/regexec.c (check_node_accept_bytes): Likewise.
4140         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
4141
4142 2011-10-18  Eric Blake  <eblake@redhat.com>
4143
4144         posix_openpt: new module
4145         * modules/posix_openpt: New module.
4146         * m4/posix_openpt.m4: New file.
4147         * lib/posix_openpt.c: Likewise.
4148         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
4149         (gl_STDLIB_H_DEFAULTS): Set defaults.
4150         * modules/stdlib (Makefile.am): Substitute macros.
4151         * lib/stdlib.in.h (posix_openpt): Declare.
4152         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
4153         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
4154         * modules/posix_openpt-tests: New test module.
4155         * tests/test-posix_openpt.c: New test.
4156
4157 2011-10-15  Bruno Haible  <bruno@clisp.org>
4158
4159         xstrtoll: Fix compilation failure.
4160         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
4161         from lib/strtol.c.
4162         * doc/posix-headers/limits.texi: Mention missing numerical limits on
4163         some platforms.
4164         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4165
4166 2011-10-15  Bruno Haible  <bruno@clisp.org>
4167
4168         vasnprintf: Optimize bit search operation.
4169         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
4170         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
4171         gl_DOUBLE_EXPONENT_LOCATION.
4172         * modules/vasnprintf (Files): Add m4/exponentd.m4.
4173         * modules/unistdio/u8-vasnprintf (Files): Likewise.
4174         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
4175         * modules/unistdio/u16-vasnprintf (Files): Likewise.
4176         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
4177         * modules/unistdio/u32-vasnprintf (Files): Likewise.
4178         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
4179         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
4180         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
4181
4182 2011-10-15  Bruno Haible  <bruno@clisp.org>
4183
4184         vasnprintf: Fix comments.
4185         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
4186
4187 2011-10-14  Bruno Haible  <bruno@clisp.org>
4188
4189         Tests for module 'integer_length_ll'.
4190         * modules/integer_length_ll-tests: New file.
4191         * tests/test-integer_length_ll.c: New file.
4192
4193         New module 'integer_length_ll'.
4194         * lib/integer_length_ll.c: New file.
4195         * modules/integer_length_ll: New file.
4196
4197 2011-10-14  Bruno Haible  <bruno@clisp.org>
4198
4199         Tests for module 'integer_length_l'.
4200         * modules/integer_length_l-tests: New file.
4201         * tests/test-integer_length_l.c: New file.
4202
4203         New module 'integer_length_l'.
4204         * lib/integer_length_l.c: New file.
4205         * modules/integer_length_l: New file.
4206
4207 2011-10-14  Bruno Haible  <bruno@clisp.org>
4208
4209         Tests for module 'integer_length'.
4210         * modules/integer_length-tests: New file.
4211         * tests/test-integer_length.c: New file.
4212
4213         New module 'integer_length'.
4214         * lib/integer_length.h: New file.
4215         * lib/integer_length.c: New file.
4216         * modules/integer_length: New file.
4217
4218 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
4219
4220         popen: Fix dependency conditions.
4221         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
4222
4223 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
4224
4225         perror: Fix autoconf test.
4226         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
4227         <stdlib.h> and <string.h>.
4228
4229 2011-10-14  Bruno Haible  <bruno@clisp.org>
4230
4231         ffsl: Optimize on 64-bit platforms.
4232         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
4233         unrolling.
4234
4235 2011-10-13  Bruno Haible  <bruno@clisp.org>
4236
4237         ffsl: Optimize on 32-bit platforms.
4238         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
4239         use ffs() without a loop.
4240
4241         ffsl, ffsll: Optimize for GCC.
4242         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
4243         * lib/ffsl.c (GCC_BUILTIN): New macro.
4244         * lib/ffsll.c (GCC_BUILTIN): Likewise.
4245
4246 2011-10-13  Bruno Haible  <bruno@clisp.org>
4247
4248         ffs, bcopy, memset: Support symbol renaming via config.h.
4249         * lib/ffs.c: Include <config.h>.
4250         * lib/bcopy.c: Likewise.
4251         * lib/memset.c: Likewise.
4252
4253 2011-10-10  Bruno Haible  <bruno@clisp.org>
4254
4255         atanl: Simplify for platforms where 'long double' == 'double'.
4256         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4257         alternative implementation.
4258         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4259         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4260         * modules/atanl (Depends-on): Add atan. Update conditions.
4261
4262 2011-10-10  Bruno Haible  <bruno@clisp.org>
4263
4264         acosl: Simplify for platforms where 'long double' == 'double'.
4265         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4266         alternative implementation.
4267         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4268         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4269         * modules/acosl (Depends-on): Add acos. Update conditions.
4270
4271 2011-10-10  Bruno Haible  <bruno@clisp.org>
4272
4273         asinl: Simplify for platforms where 'long double' == 'double'.
4274         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4275         alternative implementation.
4276         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4277         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4278         * modules/asinl (Depends-on): Add asin. Update conditions.
4279
4280 2011-10-10  Bruno Haible  <bruno@clisp.org>
4281
4282         tanl: Simplify for platforms where 'long double' == 'double'.
4283         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4284         implementation.
4285         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4286         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4287         * modules/tanl (Depends-on): Add tan. Update conditions.
4288         (configure.ac): Don't compile trigl.c if
4289         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4290
4291 2011-10-10  Bruno Haible  <bruno@clisp.org>
4292
4293         cosl: Simplify for platforms where 'long double' == 'double'.
4294         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4295         implementation.
4296         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4297         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4298         * modules/cosl (Depends-on): Add cos. Update conditions.
4299         (configure.ac): Don't compile sincosl.c and trigl.c if
4300         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4301
4302 2011-10-10  Bruno Haible  <bruno@clisp.org>
4303
4304         sinl: Simplify for platforms where 'long double' == 'double'.
4305         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4306         implementation.
4307         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4308         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4309         * modules/sinl (Depends-on): Add sin. Update conditions.
4310         (configure.ac): Don't compile sincosl.c and trigl.c if
4311         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4312
4313 2011-10-10  Bruno Haible  <bruno@clisp.org>
4314
4315         logl: Simplify for platforms where 'long double' == 'double'.
4316         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4317         implementation.
4318         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4319         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4320         * modules/logl (Depends-on): Add log. Update conditions.
4321
4322 2011-10-10  Bruno Haible  <bruno@clisp.org>
4323
4324         expl: Simplify for platforms where 'long double' == 'double'.
4325         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4326         implementation.
4327         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4328         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4329         * modules/expl (Depends-on): Add exp. Update conditions.
4330
4331 2011-10-10  Bruno Haible  <bruno@clisp.org>
4332
4333         sqrtl: Simplify for platforms where 'long double' == 'double'.
4334         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4335         alternative implementation.
4336         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4337         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4338         * modules/sqrtl (Depends-on): Update conditions.
4339
4340 2011-10-10  Bruno Haible  <bruno@clisp.org>
4341
4342         ldexpl: Simplify for platforms where 'long double' == 'double'.
4343         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4344         alternative implementation.
4345         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4346         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4347         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
4348
4349 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
4350
4351         ffsll: set correct witness
4352         * modules/ffsll (configure.ac): Fix typo.
4353
4354 2011-10-10  Bruno Haible  <bruno@clisp.org>
4355
4356         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
4357         * lib/printf-frexpl.c: Include <config.h>.
4358         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4359         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
4360         second time.
4361         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
4362         gl_LONG_DOUBLE_VS_DOUBLE.
4363         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
4364         conditions.
4365
4366 2011-10-10  Bruno Haible  <bruno@clisp.org>
4367
4368         frexpl: Simplify for platforms where 'long double' == 'double'.
4369         * lib/frexpl.c: Include <config.h>.
4370         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4371         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4372         time.
4373         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4374         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4375         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
4376         * modules/frexpl (Depends-on): Add frexp. Update conditions.
4377         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
4378         conditions.
4379
4380 2011-10-10  Jim Meyering  <meyering@redhat.com>
4381
4382         test-renameat: don't leave behind a temporary file
4383         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
4384           ERROR: files left in build directory after distclean:
4385           ./gltests/test-renameat.too
4386           make[1]: *** [distcleancheck] Error 1
4387         Reported by Tom G. Christensen.
4388
4389 2011-10-09  Bruno Haible  <bruno@clisp.org>
4390
4391         rint: Determine RINT_LIBM correctly on AIX 7.
4392         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
4393         directly, not only through a function pointer. Also accept an optional
4394         4th argument with extra code.
4395         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
4396         rintf() call by gcc when optimizing.
4397
4398         mathfunc.m4: Refactor.
4399         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
4400         m4 variable.
4401
4402 2011-10-09  Bruno Haible  <bruno@clisp.org>
4403
4404         rintl: Simplify for platforms where 'long double' == 'double'.
4405         * lib/rintl.c: Include <config.h>.
4406         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4407         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4408         time.
4409         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4410         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4411         * modules/rintl (Depends-on): Add rint. Update conditions.
4412
4413 2011-10-09  Bruno Haible  <bruno@clisp.org>
4414
4415         roundl: Simplify for platforms where 'long double' == 'double'.
4416         * lib/roundl.c: Include <config.h>.
4417         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4418         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4419         time.
4420         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4421         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4422         * modules/roundl (Depends-on): Add round. Update conditions.
4423
4424 2011-10-09  Bruno Haible  <bruno@clisp.org>
4425
4426         truncl: Simplify for platforms where 'long double' == 'double'.
4427         * lib/truncl.c: Include <config.h>.
4428         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4429         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4430         time.
4431         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4432         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4433         * modules/truncl (Depends-on): Add trunc. Update conditions.
4434
4435 2011-10-09  Bruno Haible  <bruno@clisp.org>
4436
4437         ceill: Simplify for platforms where 'long double' == 'double'.
4438         * lib/ceill.c: Include <config.h>.
4439         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4440         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4441         time.
4442         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4443         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4444         * modules/ceill (Depends-on): Add ceil. Update conditions.
4445
4446 2011-10-09  Bruno Haible  <bruno@clisp.org>
4447
4448         floorl: Simplify for platforms where 'long double' == 'double'.
4449         * lib/floorl.c: Include <config.h>.
4450         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4451         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4452         time.
4453         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4454         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4455         * modules/floorl (Depends-on): Add floor. Update conditions.
4456
4457 2011-10-09  Bruno Haible  <bruno@clisp.org>
4458
4459         rint: Fix ordering constraints.
4460         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
4461         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
4462         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
4463
4464 2011-10-09  Bruno Haible  <bruno@clisp.org>
4465
4466         copysignl: Simplify for platforms where 'long double' == 'double'.
4467         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4468         alternative.
4469         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4470         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4471         * modules/copysignl (Depends-on): Add copysign. Update conditions.
4472
4473 2011-10-09  Bruno Haible  <bruno@clisp.org>
4474
4475         Tests for module 'rintl'.
4476         * modules/rintl-tests: New file.
4477         * tests/test-rintl.c: New file.
4478
4479         New module 'rintl'.
4480         * lib/math.in.h (rintl): New declaration.
4481         * lib/rintl.c: New file.
4482         * m4/rintl.m4: New file.
4483         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
4484         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
4485         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
4486         * modules/rintl: New file.
4487         * tests/test-math-c++.cc: Check the declaration of rintl.
4488         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
4489         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
4490         * doc/posix-functions/rintl.texi: Mention the new module.
4491
4492 2011-10-09  Bruno Haible  <bruno@clisp.org>
4493
4494         Tests for module 'rintf'.
4495         * modules/rintf-tests: New file.
4496         * tests/test-rintf.c: New file.
4497
4498         New module 'rintf'.
4499         * lib/math.in.h (rintf): New declaration.
4500         * lib/rintf.c: New file.
4501         * m4/rintf.m4: New file.
4502         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
4503         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
4504         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
4505         * modules/rintf: New file.
4506         * tests/test-math-c++.cc: Check the declaration of rintf.
4507         * doc/posix-functions/rintf.texi: Mention the new module.
4508
4509 2011-10-09  Bruno Haible  <bruno@clisp.org>
4510
4511         rint: Support for MSVC.
4512         * lib/math.in.h (rint): New declaration.
4513         * lib/rint.c: New file.
4514         * m4/rint.m4: New file.
4515         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
4516         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
4517         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
4518         * modules/rint (Description): Fix.
4519         (Files): Add lib/rint.c, m4/rint.m4.
4520         (Depends-on): Add math.
4521         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
4522         gl_MATH_MODULE_INDICATOR.
4523         * tests/test-math-c++.cc: Check the declaration of rint.
4524         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
4525         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
4526         * doc/posix-functions/rint.texi: Mention the replacement provided by
4527         the module.
4528
4529         rint tests: More tests.
4530         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
4531         minus-zero.h, infinity.h, nan.h.
4532         (main): Skip the test if the current rounding mode is not standard. Add
4533         tests for negative numbers, minus zero, infinity, NaN.
4534         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
4535         tests/nan.h.
4536         (Depends-on): Add isnand-nolibm.
4537
4538 2011-10-09  Bruno Haible  <bruno@clisp.org>
4539
4540         Tests for module 'copysignl'.
4541         * modules/copysignl-tests: New file.
4542         * tests/test-copysignl.c: New file.
4543
4544         New module 'copysignl'.
4545         * lib/math.in.h (copysignl): New declaration.
4546         * lib/copysignl.c: New file.
4547         * m4/copysignl.m4: New file.
4548         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
4549         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
4550         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
4551         HAVE_COPYSIGNL.
4552         * modules/copysignl: New file.
4553         * tests/test-math-c++.cc: Check the declaration of copysignl.
4554         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
4555         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
4556         * doc/posix-functions/copysignl.texi: Mention the new module.
4557
4558 2011-10-09  Bruno Haible  <bruno@clisp.org>
4559
4560         Tests for module 'copysignf'.
4561         * modules/copysignf-tests: New file.
4562         * tests/test-copysignf.c: New file.
4563
4564         New module 'copysignf'.
4565         * lib/math.in.h (copysignf): New declaration.
4566         * lib/copysignf.c: New file.
4567         * m4/copysignf.m4: New file.
4568         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
4569         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
4570         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
4571         HAVE_COPYSIGNF.
4572         * modules/copysignf: New file.
4573         * tests/test-math-c++.cc: Check the declaration of copysignf.
4574         * doc/posix-functions/copysignf.texi: Mention the new module.
4575
4576 2011-10-09  Bruno Haible  <bruno@clisp.org>
4577
4578         Ensure that HAVE_* variables are set to 1 before they are set to 0.
4579         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
4580         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
4581         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4582         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
4583         gl_SIGNAL_H_DEFAULTS.
4584
4585 2011-10-09  Bruno Haible  <bruno@clisp.org>
4586
4587         poll: Make macro safer.
4588         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
4589         ac_cv_header_poll_h is not set.
4590
4591 2011-10-09  Bruno Haible  <bruno@clisp.org>
4592
4593         copysign: Provide replacement.
4594         * lib/math.in.h (copysign): New declaration.
4595         * lib/copysign.c: New file.
4596         * m4/copysign.m4: New file.
4597         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
4598         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
4599         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
4600         HAVE_COPYSIGN.
4601         * modules/copysign (Description): Clarify.
4602         (Files): Add lib/copysign.c, m4/copysign.m4.
4603         (Depends-on): Add math, signbit.
4604         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
4605         gl_MATH_MODULE_INDICATOR.
4606         * tests/test-math-c++.cc: Check the declaration of copysign.
4607         * doc/posix-functions/copysign.texi: Mention the effects of the module
4608         on Minix and MSVC.
4609
4610 2011-10-09  Bruno Haible  <bruno@clisp.org>
4611
4612         isinf: Ensure macro on AIX 5.1.
4613         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
4614         macro.
4615         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
4616
4617 2011-10-09  Bruno Haible  <bruno@clisp.org>
4618
4619         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
4620         * modules/snprintf-posix-tests (configure.ac): Require
4621         gl_LONG_DOUBLE_VS_DOUBLE.
4622         * modules/sprintf-posix-tests (configure.ac): Likewise.
4623         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
4624         * modules/vasprintf-posix-tests (configure.ac): Likewise.
4625         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
4626         * modules/vsprintf-posix-tests (configure.ac): Likewise.
4627         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
4628         tests on platforms where 'long double' is the same as 'double'.
4629         * tests/test-sprintf-posix.h (test_function): Likewise.
4630         * tests/test-vasnprintf-posix.c (test_function): Likewise.
4631         * tests/test-vasprintf-posix.c (test_function): Likewise.
4632
4633         *printf: Fix for platforms where 'long double' == 'double'.
4634         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
4635         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
4636         * modules/dprintf-posix (Files): Add m4/math_h.m4.
4637         * modules/fprintf-posix (Files): Likewise.
4638         * modules/obstack-printf-posix (Files): Likewise.
4639         * modules/snprintf-posix (Files): Likewise.
4640         * modules/sprintf-posix (Files): Likewise.
4641         * modules/vasnprintf (Files): Likewise.
4642         * modules/vasnprintf-posix (Files): Likewise.
4643         * modules/vasprintf-posix (Files): Likewise.
4644         * modules/vdprintf-posix (Files): Likewise.
4645         * modules/vfprintf-posix (Files): Likewise.
4646         * modules/vsnprintf-posix (Files): Likewise.
4647         * modules/vsprintf-posix (Files): Likewise.
4648         * modules/unistdio/u8-vasnprintf (Files): Likewise.
4649         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
4650         * modules/unistdio/u16-vasnprintf (Files): Likewise.
4651         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
4652         * modules/unistdio/u32-vasnprintf (Files): Likewise.
4653         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
4654         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
4655
4656         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
4657         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
4658         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4659         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
4660         'long double'.
4661         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
4662
4663         isinf: Fix for platforms where 'long double' == 'double'.
4664         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
4665         Don't blindly assume 80-bit 'long double'.
4666
4667         isfinite: Fix for platforms where 'long double' == 'double'.
4668         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
4669         Don't blindly assume 80-bit 'long double'.
4670
4671         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
4672         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
4673         * modules/isfinite-tests (configure.ac): Require
4674         gl_LONG_DOUBLE_VS_DOUBLE.
4675         * modules/isinf-tests (configure.ac): Likewise.
4676         * modules/isnan-tests (configure.ac): Likewise.
4677         * modules/isnanl-tests (configure.ac): Likewise.
4678         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
4679         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
4680         tests on platforms where 'long double' is the same as 'double'.
4681         * tests/test-isinf.c (test_isinfl): Likewise.
4682         * tests/test-isnan.c (test_long_double): Likewise.
4683         * tests/test-isnanl.h (main): Likewise.
4684
4685 2011-10-08  Bruno Haible  <bruno@clisp.org>
4686
4687         Tests for module 'tanhf'.
4688         * modules/tanhf-tests: New file.
4689         * tests/test-tanhf.c: New file.
4690
4691         New module 'tanhf'.
4692         * lib/math.in.h (tanhf): New declaration.
4693         * lib/tanhf.c: New file.
4694         * m4/tanhf.m4: New file.
4695         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
4696         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
4697         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
4698         * modules/tanhf: New file.
4699         * tests/test-math-c++.cc: Check the declaration of tanhf.
4700         * doc/posix-functions/tanhf.texi: Mention the new module.
4701
4702         tanh: Use a .m4 file.
4703         * m4/tanh.m4: New file.
4704         * modules/tanh (Files): Add it.
4705         (configure.ac): Just invoke gl_FUNC_TANH.
4706
4707 2011-10-08  Bruno Haible  <bruno@clisp.org>
4708
4709         Tests for module 'coshf'.
4710         * modules/coshf-tests: New file.
4711         * tests/test-coshf.c: New file.
4712
4713         New module 'coshf'.
4714         * lib/math.in.h (coshf): New declaration.
4715         * lib/coshf.c: New file.
4716         * m4/coshf.m4: New file.
4717         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
4718         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
4719         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
4720         * modules/coshf: New file.
4721         * tests/test-math-c++.cc: Check the declaration of coshf.
4722         * doc/posix-functions/coshf.texi: Mention the new module.
4723
4724         cosh: Use a .m4 file.
4725         * m4/cosh.m4: New file.
4726         * modules/cosh (Files): Add it.
4727         (configure.ac): Just invoke gl_FUNC_COSH.
4728
4729 2011-10-08  Bruno Haible  <bruno@clisp.org>
4730
4731         Tests for module 'sinhf'.
4732         * modules/sinhf-tests: New file.
4733         * tests/test-sinhf.c: New file.
4734
4735         New module 'sinhf'.
4736         * lib/math.in.h (sinhf): New declaration.
4737         * lib/sinhf.c: New file.
4738         * m4/sinhf.m4: New file.
4739         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
4740         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
4741         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
4742         * modules/sinhf: New file.
4743         * tests/test-math-c++.cc: Check the declaration of sinhf.
4744         * doc/posix-functions/sinhf.texi: Mention the new module.
4745
4746         sinh: Use a .m4 file.
4747         * m4/sinh.m4: New file.
4748         * modules/sinh (Files): Add it.
4749         (configure.ac): Just invoke gl_FUNC_SINH.
4750
4751 2011-10-08  Bruno Haible  <bruno@clisp.org>
4752
4753         Tests for module 'atan2f'.
4754         * modules/atan2f-tests: New file.
4755         * tests/test-atan2f.c: New file.
4756
4757         New module 'atan2f'.
4758         * lib/math.in.h (atan2f): New declaration.
4759         * lib/atan2f.c: New file.
4760         * m4/atan2f.m4: New file.
4761         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
4762         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
4763         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
4764         * modules/atan2f: New file.
4765         * tests/test-math-c++.cc: Check the declaration of atan2f.
4766         * doc/posix-functions/atan2f.texi: Mention the new module.
4767
4768         atan2: Use a .m4 file.
4769         * m4/atan2.m4: New file.
4770         * modules/atan2 (Files): Add it.
4771         (configure.ac): Just invoke gl_FUNC_ATAN2.
4772
4773 2011-10-08  Bruno Haible  <bruno@clisp.org>
4774
4775         Tests for module 'atanf'.
4776         * modules/atanf-tests: New file.
4777         * tests/test-atanf.c: New file.
4778
4779         New module 'atanf'.
4780         * lib/math.in.h (atanf): New declaration.
4781         * lib/atanf.c: New file.
4782         * m4/atanf.m4: New file.
4783         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
4784         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
4785         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
4786         * modules/atanf: New file.
4787         * tests/test-math-c++.cc: Check the declaration of atanf.
4788         * doc/posix-functions/atanf.texi: Mention the new module.
4789
4790         atan: Use a .m4 file.
4791         * m4/atan.m4: New file.
4792         * modules/atan (Files): Add it.
4793         (configure.ac): Just invoke gl_FUNC_ATAN.
4794
4795 2011-10-08  Bruno Haible  <bruno@clisp.org>
4796
4797         Tests for module 'acosf'.
4798         * modules/acosf-tests: New file.
4799         * tests/test-acosf.c: New file.
4800
4801         New module 'acosf'.
4802         * lib/math.in.h (acosf): New declaration.
4803         * lib/acosf.c: New file.
4804         * m4/acosf.m4: New file.
4805         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
4806         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
4807         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
4808         * modules/acosf: New file.
4809         * tests/test-math-c++.cc: Check the declaration of acosf.
4810         * doc/posix-functions/acosf.texi: Mention the new module.
4811
4812         acos: Use a .m4 file.
4813         * m4/acos.m4: New file.
4814         * modules/acos (Files): Add it.
4815         (configure.ac): Just invoke gl_FUNC_ACOS.
4816
4817 2011-10-08  Bruno Haible  <bruno@clisp.org>
4818
4819         Tests for module 'asinf'.
4820         * modules/asinf-tests: New file.
4821         * tests/test-asinf.c: New file.
4822
4823         New module 'asinf'.
4824         * lib/math.in.h (asinf): New declaration.
4825         * lib/asinf.c: New file.
4826         * m4/asinf.m4: New file.
4827         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
4828         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
4829         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
4830         * modules/asinf: New file.
4831         * tests/test-math-c++.cc: Check the declaration of asinf.
4832         * doc/posix-functions/asinf.texi: Mention the new module.
4833
4834         asin: Use a .m4 file.
4835         * m4/asin.m4: New file.
4836         * modules/asin (Files): Add it.
4837         (configure.ac): Just invoke gl_FUNC_ASIN.
4838
4839 2011-10-08  Bruno Haible  <bruno@clisp.org>
4840
4841         Tests for module 'tanf'.
4842         * modules/tanf-tests: New file.
4843         * tests/test-tanf.c: New file.
4844
4845         New module 'tanf'.
4846         * lib/math.in.h (tanf): New declaration.
4847         * lib/tanf.c: New file.
4848         * m4/tanf.m4: New file.
4849         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
4850         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
4851         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
4852         * modules/tanf: New file.
4853         * tests/test-math-c++.cc: Check the declaration of tanf.
4854         * doc/posix-functions/tanf.texi: Mention the new module.
4855
4856         tan: Use a .m4 file.
4857         * m4/tan.m4: New file.
4858         * modules/tan (Files): Add it.
4859         (configure.ac): Just invoke gl_FUNC_TAN.
4860
4861 2011-10-08  Bruno Haible  <bruno@clisp.org>
4862
4863         Tests for module 'cosf'.
4864         * modules/cosf-tests: New file.
4865         * tests/test-cosf.c: New file.
4866
4867         New module 'cosf'.
4868         * lib/math.in.h (cosf): New declaration.
4869         * lib/cosf.c: New file.
4870         * m4/cosf.m4: New file.
4871         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
4872         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
4873         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
4874         * modules/cosf: New file.
4875         * tests/test-math-c++.cc: Check the declaration of cosf.
4876         * doc/posix-functions/cosf.texi: Mention the new module.
4877
4878         cos: Use a .m4 file.
4879         * m4/cos.m4: New file.
4880         * modules/cos (Files): Add it.
4881         (configure.ac): Just invoke gl_FUNC_COS.
4882
4883 2011-10-08  Bruno Haible  <bruno@clisp.org>
4884
4885         Tests for module 'sinf'.
4886         * modules/sinf-tests: New file.
4887         * tests/test-sinf.c: New file.
4888
4889         New module 'sinf'.
4890         * lib/math.in.h (sinf): New declaration.
4891         * lib/sinf.c: New file.
4892         * m4/sinf.m4: New file.
4893         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
4894         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
4895         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
4896         * modules/sinf: New file.
4897         * tests/test-math-c++.cc: Check the declaration of sinf.
4898         * doc/posix-functions/sinf.texi: Mention the new module.
4899
4900         sin: Use a .m4 file.
4901         * m4/sin.m4: New file.
4902         * modules/sin (Files): Add it.
4903         (configure.ac): Just invoke gl_FUNC_SIN.
4904
4905 2011-10-08  Bruno Haible  <bruno@clisp.org>
4906
4907         Tests for module 'powf'.
4908         * modules/powf-tests: New file.
4909         * tests/test-powf.c: New file.
4910
4911         New module 'powf'.
4912         * lib/math.in.h (powf): New declaration.
4913         * lib/powf.c: New file.
4914         * m4/powf.m4: New file.
4915         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
4916         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
4917         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
4918         * modules/powf: New file.
4919         * tests/test-math-c++.cc: Check the declaration of powf.
4920         * doc/posix-functions/powf.texi: Mention the new module.
4921
4922         pow: Use a .m4 file.
4923         * m4/pow.m4: New file.
4924         * modules/pow (Files): Add it.
4925         (configure.ac): Just invoke gl_FUNC_POW.
4926
4927 2011-10-08  Bruno Haible  <bruno@clisp.org>
4928
4929         Tests for module 'log10f'.
4930         * modules/log10f-tests: New file.
4931         * tests/test-log10f.c: New file.
4932
4933         New module 'log10f'.
4934         * lib/math.in.h (log10f): New declaration.
4935         * lib/log10f.c: New file.
4936         * m4/log10f.m4: New file.
4937         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
4938         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
4939         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
4940         * modules/log10f: New file.
4941         * tests/test-math-c++.cc: Check the declaration of log10f.
4942         * doc/posix-functions/log10f.texi: Mention the new module.
4943
4944         log10: Use a .m4 file.
4945         * m4/log10.m4: New file.
4946         * modules/log10 (Files): Add it.
4947         (configure.ac): Just invoke gl_FUNC_LOG10.
4948
4949 2011-10-08  Bruno Haible  <bruno@clisp.org>
4950
4951         Tests for module 'logf'.
4952         * modules/logf-tests: New file.
4953         * tests/test-logf.c: New file.
4954
4955         New module 'logf'.
4956         * lib/math.in.h (logf): New declaration.
4957         * lib/logf.c: New file.
4958         * m4/logf.m4: New file.
4959         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
4960         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
4961         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
4962         * modules/logf: New file.
4963         * tests/test-math-c++.cc: Check the declaration of logf.
4964         * doc/posix-functions/logf.texi: Mention the new module.
4965
4966         log: Use a .m4 file.
4967         * m4/log.m4: New file.
4968         * modules/log (Files): Add it.
4969         (configure.ac): Just invoke gl_FUNC_LOG.
4970
4971 2011-10-08  Bruno Haible  <bruno@clisp.org>
4972
4973         Tests for module 'expf'.
4974         * modules/expf-tests: New file.
4975         * tests/test-expf.c: New file.
4976
4977         New module 'expf'.
4978         * lib/math.in.h (expf): New declaration.
4979         * lib/expf.c: New file.
4980         * m4/expf.m4: New file.
4981         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
4982         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
4983         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
4984         * modules/expf: New file.
4985         * tests/test-math-c++.cc: Check the declaration of expf.
4986         * doc/posix-functions/expf.texi: Mention the new module.
4987
4988         exp: Use a .m4 file.
4989         * m4/exp.m4: New file.
4990         * modules/exp (Files): Add it.
4991         (configure.ac): Just invoke gl_FUNC_EXP.
4992
4993 2011-10-08  Bruno Haible  <bruno@clisp.org>
4994
4995         Tests for module 'sqrtf'.
4996         * modules/sqrtf-tests: New file.
4997         * tests/test-sqrtf.c: New file.
4998
4999         New module 'sqrtf'.
5000         * lib/math.in.h (sqrtf): New declaration.
5001         * lib/sqrtf.c: New file.
5002         * m4/sqrtf.m4: New file.
5003         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
5004         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
5005         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
5006         * modules/sqrtf: New file.
5007         * tests/test-math-c++.cc: Check the declaration of sqrtf.
5008         * doc/posix-functions/sqrtf.texi: Mention the new module.
5009
5010 2011-10-08  Bruno Haible  <bruno@clisp.org>
5011
5012         Tests: Avoid link failures w.r.t. libintl.
5013         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
5014         $(LIBINTL).
5015         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
5016         $(LIBINTL).
5017         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
5018         against $(LIBINTL).
5019         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
5020         $(LIBINTL).
5021         * modules/openat-tests (Makefile.am): Link test-fchmodat against
5022         $(LIBINTL).
5023         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
5024
5025 2011-10-08  Bruno Haible  <bruno@clisp.org>
5026
5027         pow tests: Defeat compiler optimizations.
5028         * tests/test-pow.c (main): Assign arguments to x and y before use.
5029
5030 2011-10-08  Bruno Haible  <bruno@clisp.org>
5031
5032         gnulib-tool: Improve last commit.
5033         * gnulib-tool (func_modules_transitive_closure): Simplify code.
5034         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
5035         ignore dependencies that are not among the modules list.
5036
5037 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
5038
5039         gnulib-tool: don't follow dependencies to avoided modules
5040         This fixes a bug that is related to the previous one.
5041         * gnulib-tool (func_modules_transitive_closure)
5042         (func_emit_autoconf_snippets):
5043         Check whether a dependency is acceptable before using it.
5044         (--extract-dependencies): Report an error if --avoid is also used,
5045         since this combination of options is not yet supported.
5046
5047         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
5048         Problem reported by Peter Dyballa in
5049         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
5050         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
5051         when echoing "$condition".
5052
5053 2011-10-07  Bruno Haible  <bruno@clisp.org>
5054
5055         Fix documentation about math functions on MacOS X.
5056         * doc/posix-functions/exp2.texi: Don't say the function is missing on
5057         MacOS X 10.5.
5058         * doc/posix-functions/fdim.texi: Likewise.
5059         * doc/posix-functions/feclearexcept.texi: Likewise.
5060         * doc/posix-functions/fegetenv.texi: Likewise.
5061         * doc/posix-functions/fegetround.texi: Likewise.
5062         * doc/posix-functions/feholdexcept.texi: Likewise.
5063         * doc/posix-functions/feraiseexcept.texi: Likewise.
5064         * doc/posix-functions/fesetenv.texi: Likewise.
5065         * doc/posix-functions/fesetround.texi: Likewise.
5066         * doc/posix-functions/fetestexcept.texi: Likewise.
5067         * doc/posix-functions/feupdateenv.texi: Likewise.
5068         * doc/posix-functions/fmax.texi: Likewise.
5069         * doc/posix-functions/fmin.texi: Likewise.
5070         * doc/posix-functions/log2.texi: Likewise.
5071         * doc/posix-functions/modff.texi: Likewise.
5072         * doc/posix-functions/nan.texi: Likewise.
5073         * doc/posix-functions/nanf.texi: Likewise.
5074         * doc/posix-functions/nextafterf.texi: Likewise.
5075         * doc/posix-functions/remquo.texi: Likewise.
5076
5077 2011-10-07  Bruno Haible  <bruno@clisp.org>
5078
5079         modff: Drop assumption about library that defines modff.
5080         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
5081         AC_CHECK_FUNCS.
5082         * modules/modff (Files): Add m4/mathfunc.m4.
5083
5084 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
5085
5086         raise tests: Avoid a GCC warning.
5087         * tests/test-raise.c (handler): Use _Noreturn.
5088
5089 2011-10-07  Bruno Haible  <bruno@clisp.org>
5090
5091         Tests for module 'ldexpf'.
5092         * modules/ldexpf-tests: New file.
5093         * tests/test-ldexpf.c: New file.
5094
5095         New module 'ldexpf'.
5096         * lib/math.in.h (ldexpf): New declaration.
5097         * lib/ldexpf.c: New file.
5098         * m4/ldexpf.m4: New file.
5099         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
5100         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
5101         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
5102         * modules/ldexpf: New file.
5103         * tests/test-math-c++.cc: Check the declaration of ldexpf.
5104         * doc/posix-functions/ldexpf.texi: Mention the new module.
5105
5106 2011-10-06  Bruno Haible  <bruno@clisp.org>
5107
5108         frexpf: Work around problems on IRIX and mingw.
5109         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
5110         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
5111         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
5112         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
5113         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
5114         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
5115         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
5116
5117 2011-10-06  Bruno Haible  <bruno@clisp.org>
5118
5119         fabsf: Drop assumption about library that defines fabsf.
5120         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
5121         AC_CHECK_FUNCS.
5122         * modules/fabsf (Files): Add m4/mathfunc.m4.
5123
5124 2011-10-06  Bruno Haible  <bruno@clisp.org>
5125
5126         frexpf: Drop assumption about library that defines frexpf.
5127         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
5128         'int *', 'float *', 'long double *', 'float', 'long double'.
5129         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
5130         AC_CHECK_FUNCS.
5131         * modules/frexpf (Files): Add m4/mathfunc.m4.
5132
5133         Tests for module 'frexpf'.
5134         * modules/frexpf-tests: New file.
5135         * tests/test-frexpf.c: New file.
5136
5137         New module 'frexpf'.
5138         * lib/math.in.h (frexpf): New declaration.
5139         * lib/frexpf.c: New file.
5140         * m4/frexpf.m4: New file.
5141         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
5142         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
5143         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
5144         * modules/frexpf: New file.
5145         * tests/test-math-c++.cc: Check the declaration of frexpf.
5146         * doc/posix-functions/frexpf.texi: Mention the new module.
5147
5148 2011-10-06  Bruno Haible  <bruno@clisp.org>
5149
5150         math: Sort function declarations of math.in.h.
5151         * lib/math.in.h (frexp, logb): Move declarations.
5152
5153 2011-10-05  Bruno Haible  <bruno@clisp.org>
5154
5155         Tests for module 'modff'.
5156         * modules/modff-tests: New file.
5157         * tests/test-modff.c: New file.
5158
5159         New module 'modff'.
5160         * lib/math.in.h (modff): New declaration.
5161         * lib/modff.c: New file.
5162         * m4/modff.m4: New file.
5163         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
5164         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
5165         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
5166         * modules/modff: New file.
5167         * tests/test-math-c++.cc: Check the declaration of modff.
5168         * doc/posix-functions/modff.texi: Mention the new module.
5169
5170         modf tests: Make test sharper.
5171         * tests/test-modf.c (main): Strengthen upper bound.
5172
5173         modf: Use a .m4 file.
5174         * m4/modf.m4: New file.
5175         * modules/modf (Files): Add it.
5176         (configure.ac): Just invoke gl_FUNC_MODF.
5177
5178 2011-10-05  Bruno Haible  <bruno@clisp.org>
5179
5180         Tests for module 'fmodf'.
5181         * modules/fmodf-tests: New file.
5182         * tests/test-fmodf.c: New file.
5183
5184         New module 'fmodf'.
5185         * lib/math.in.h (fmodf): New declaration.
5186         * lib/fmodf.c: New file.
5187         * m4/fmodf.m4: New file.
5188         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
5189         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
5190         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
5191         * modules/fmodf: New file.
5192         * tests/test-math-c++.cc: Check the declaration of fmodf.
5193         * doc/posix-functions/fmodf.texi: Mention the new module.
5194
5195         fmod: Use a .m4 file.
5196         * m4/fmod.m4: New file.
5197         * modules/fmod (Files): Add it.
5198         (configure.ac): Just invoke gl_FUNC_FMOD.
5199
5200 2011-10-05  Bruno Haible  <bruno@clisp.org>
5201
5202         Tests for module 'fabsf'.
5203         * modules/fabsf-tests: New file.
5204         * tests/test-fabsf.c: New file.
5205
5206         New module 'fabsf'.
5207         * lib/math.in.h (fabsf): New declaration.
5208         * lib/fabsf.c: New file.
5209         * m4/fabsf.m4: New file.
5210         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
5211         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
5212         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
5213         * modules/fabsf: New file.
5214         * tests/test-math-c++.cc: Check the declaration of fabsf.
5215         * doc/posix-functions/fabsf.texi: Mention the new module.
5216
5217         fabs: Use a .m4 file.
5218         * m4/fabs.m4: New file.
5219         * modules/fabs (Files): Add it.
5220         (configure.ac): Just invoke gl_FUNC_FABS.
5221
5222 2011-10-05  Jim Meyering  <meyering@redhat.com>
5223
5224         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
5225         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
5226         ls -lL regression introduced in coreutils-8.12, it does so at the
5227         cost of an additional stat call in the common case.  Besides, now
5228         that the kernel change that prompted commit 95f7c57f has been reverted
5229         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
5230         we have no use for commit 95f7c57f, "file-has-acl: use
5231         acl_extended_file_nofollow if available".
5232
5233 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
5234
5235         file-has-acl: revert unintended change in behavior of ls -L
5236         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
5237         derived from...
5238         (file_has_acl): ...code here.  Call it.
5239         This problem was introduced with 2011-07-22 commit 95f7c57f,
5240         "file-has-acl: use acl_extended_file_nofollow if available".
5241         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
5242
5243 2011-10-03  Bruno Haible  <bruno@clisp.org>
5244
5245         poll: Avoid link errors on MSVC.
5246         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
5247         * modules/poll (Depends-on): Add sockets.
5248         (Link): New section.
5249         * NEWS: Mention the change.
5250         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
5251         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
5252         $(LIB_POLL) instead of $(LIBSOCKET).
5253
5254 2011-10-03  Bruno Haible  <bruno@clisp.org>
5255
5256         sys_select tests: Fix link error on MSVC 9.
5257         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
5258         with $(LIB_SELECT) instead of $(LIBSOCKET).
5259
5260 2011-10-03  Bruno Haible  <bruno@clisp.org>
5261
5262         sys_select: Fix compilation error on mingw.
5263         * lib/sys_select.in.h: On native Windows, include <io.h>.
5264
5265 2011-10-03  Bruno Haible  <bruno@clisp.org>
5266
5267         wmemset: Support for MSVC.
5268         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
5269         whether wmemset() exists.
5270
5271 2011-10-03  Bruno Haible  <bruno@clisp.org>
5272
5273         wmemmove: Support for MSVC.
5274         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
5275         whether wmemmove() exists.
5276
5277 2011-10-03  Bruno Haible  <bruno@clisp.org>
5278
5279         wmemcpy: Support for MSVC.
5280         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
5281         whether wmemcpy() exists.
5282
5283 2011-10-03  Bruno Haible  <bruno@clisp.org>
5284
5285         wmemcmp: Support for MSVC.
5286         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
5287         whether wmemcmp() exists.
5288
5289 2011-10-03  Bruno Haible  <bruno@clisp.org>
5290
5291         wmemchr: Support for MSVC.
5292         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
5293         whether wmemchr() exists.
5294
5295 2011-10-03  Bruno Haible  <bruno@clisp.org>
5296
5297         glthread/*, strsignal: Support for MSVC.
5298         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
5299         including <winsock.h> on MSVC 9.
5300         * lib/glthread/lock.h: Likewise.
5301         * lib/glthread/thread.h: Likewise.
5302         * lib/glthread/tls.h: Likewise.
5303         * lib/glthread/yield.h: Likewise.
5304         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
5305         if HAVE_UNISTD_H is false.
5306         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
5307
5308 2011-10-03  Bruno Haible  <bruno@clisp.org>
5309
5310         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
5311         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
5312         Set to 100000.
5313
5314 2011-10-03  Bruno Haible  <bruno@clisp.org>
5315
5316         acl: Fix specification.
5317         * lib/file-has-acl.c (file_has_acl): Fix specification.
5318
5319 2011-10-03  Bruno Haible  <bruno@clisp.org>
5320
5321         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
5322         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
5323         (compute_curr_prefix, shared_library_fullname,
5324         find_shared_library_fullname, get_shared_library_fullname, relocate):
5325         Use it together with PIC && INSTALLDIR.
5326         Reported by <jojelino@gmail.com>
5327         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
5328
5329 2011-10-01  Jim Meyering  <meyering@redhat.com>
5330
5331         maint.mk: adjust a release-related rule not to require use of gzip
5332         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
5333         Instead, check each file in $(DIST_ARCHIVES).  This is better for
5334         projects that build only .tar.xz files.  Also fix an erroneous test.
5335
5336         test-linkat: don't leave behind a temporary file
5337         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
5338         Otherwise, coreutils' "make distcheck" would fail with this:
5339           Only in /c/cu/tests/torture/coreutils/test/\
5340             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
5341           make[2]: *** [my-distcheck] Error 1
5342
5343         float, math: add omitted file
5344         * lib/itold.c: Add file, required for yesterday's float change.
5345
5346 2011-10-01  Bruno Haible  <bruno@clisp.org>
5347
5348         isinf: Fix for OpenBSD/x86.
5349         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
5350         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
5351         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
5352
5353 2011-10-01  Bruno Haible  <bruno@clisp.org>
5354
5355         isfinite: Fix syntax error in configure test.
5356         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
5357
5358         isfinite: Fix typo.
5359         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
5360         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
5361
5362 2011-10-01  Bruno Haible  <bruno@clisp.org>
5363
5364         nonblocking tests: Fix test failure on Linux/IA-64.
5365         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
5366         Set to 270000.
5367
5368 2011-10-01  Bruno Haible  <bruno@clisp.org>
5369
5370         mkfifoat tests: Fix a test failure on mingw.
5371         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
5372         with error ENOSYS.
5373
5374 2011-09-30  Bruno Haible  <bruno@clisp.org>
5375
5376         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
5377         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
5378         'long double'. Set REPLACE_ITOLD.
5379         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
5380         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
5381         * lib/itold.c: New file.
5382         * modules/float (Files): Add lib/itold.c.
5383         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
5384         (Makefile.am): Substitute REPLACE_ITOLD.
5385         * modules/math (Depends-on): Add float.
5386         (Makefile.am): Substitute REPLACE_ITOLD.
5387         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
5388         * doc/posix-headers/math.texi: Likewise.
5389         * doc/posix-functions/logl.texi: Likewise.
5390
5391 2011-09-30  Bruno Haible  <bruno@clisp.org>
5392
5393         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
5394         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
5395         Set to 140000.
5396
5397 2011-09-30  Bruno Haible  <bruno@clisp.org>
5398
5399         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
5400         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
5401         invocation, say "right after AC_PROG_CC_STDC", not "right after
5402         AC_PROG_CC".
5403         Reported by Gary V. Vaughan <gary@gnu.org>.
5404
5405 2011-09-30  Bruno Haible  <bruno@clisp.org>
5406
5407         Centralize C99 requirement.
5408         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
5409         * modules/stdarg (configure.ac-early): Invoke it instead of
5410         AC_PROG_CC_STDC.
5411         Reported by Gary V. Vaughan and Paul Eggert.
5412
5413 2011-09-29  Bruno Haible  <bruno@clisp.org>
5414
5415         float: Fix LDBL_MAX value on Linux/PowerPC.
5416         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
5417         on Linux/PowerPC.
5418         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
5419         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
5420         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
5421         platform.
5422         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
5423
5424 2011-09-29  Bruno Haible  <bruno@clisp.org>
5425
5426         doc: Improve doc about gl_EARLY.
5427         * doc/gnulib-tool.texi (Initial import): Mention where to place an
5428         AC_PROG_CC_STDC invocation.
5429         Reported by Gary V. Vaughan <gary@gnu.org>.
5430
5431 2011-09-28  Bruno Haible  <bruno@clisp.org>
5432
5433         fgetc, fputc, fread, fwrite tests: Fix link error.
5434         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
5435         on non-MSVC platforms.
5436         * tests/test-fputc.c (main): Likewise.
5437         * tests/test-fread.c (main): Likewise.
5438         * tests/test-fwrite.c (main): Likewise.
5439         Reported by Jim Meyering.
5440
5441 2011-09-27  Bruno Haible  <bruno@clisp.org>
5442
5443         fputc, fwrite tests: Avoid test failure on MSVC.
5444         * tests/test-fgetc.c: Include msvc-inval.h.
5445         (main): Invoke gl_msvc_inval_ensure_handler.
5446         * tests/test-fputc.c: Include msvc-inval.h.
5447         (main): Invoke gl_msvc_inval_ensure_handler.
5448         * tests/test-fread.c: Include msvc-inval.h.
5449         (main): Invoke gl_msvc_inval_ensure_handler.
5450         * tests/test-fwrite.c: Include msvc-inval.h.
5451         (main): Invoke gl_msvc_inval_ensure_handler.
5452         * modules/fgetc-tests (Depends-on): Add msvc-inval.
5453         * modules/fputc-tests (Depends-on): Likewise.
5454         * modules/fread-tests (Depends-on): Likewise.
5455         * modules/fwrite-tests (Depends-on): Likewise.
5456
5457 2011-09-27  Bruno Haible  <bruno@clisp.org>
5458
5459         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
5460         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
5461         (raise): Remove older, duplicated declaration.
5462         (_gl_raise_SIGPIPE): New declaration.
5463         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
5464         (rpl_raise): Remove function.
5465         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
5466         a gnulib-defined SIGPIPE here.
5467         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
5468         'sigprocmask' has detected missing signal-blocking and the module
5469         'sigpipe' is enabled.
5470         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
5471
5472 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
5473
5474         base64-tests: avoid memory leak
5475         * tests/test-base64.c (main): Plug memory leak.
5476
5477         base32: new module
5478         * modules/base32: New module.
5479         * lib/base32.c: New file.
5480         * lib/base32.h: Likewise.
5481         * m4/base32.m4: Likewise.
5482         * modules/base32-tests: New test.
5483         * tests/test-base32.c: Likewise.
5484         * MODULES.html.sh (Misc): Mention it.
5485
5486 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
5487
5488         gnulib: use more-standard license notice wording
5489         * gnulib-tool (func_emit_copyright_notice): When emitting a
5490         license notice into a file, use the standard wording as suggested
5491         by the current information for GNU maintainers, except say "file"
5492         rather than "program".  The new wording gives a license version
5493         number, which addresses an issue raised by Glenn Morris in
5494         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
5495         * m4/onceonly.m4: Use that same wording here, too.
5496
5497         dup2: minor simplification
5498         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
5499         as lib/dup2.c no longer uses 'inline'.
5500
5501 2011-09-25  Bruno Haible  <bruno@clisp.org>
5502
5503         strings: Fix compilation error on MSVC.
5504         * lib/strings.in.h: Include <stddef.h> for size_t.
5505
5506 2011-09-25  Bruno Haible  <bruno@clisp.org>
5507
5508         fflush et al.: Document limitation on MSVC.
5509         * doc/posix-functions/fflush.texi: Document possible crash in handling
5510         mode other than DEFAULT_HANDLING.
5511         * doc/posix-functions/fgetc.texi: Likewise.
5512         * doc/posix-functions/fputc.texi: Likewise.
5513         * doc/posix-functions/fread.texi: Likewise.
5514         * doc/posix-functions/fwrite.texi: Likewise.
5515
5516 2011-09-25  Bruno Haible  <bruno@clisp.org>
5517
5518         msvc-inval: Allow three invalid parameter handling modes.
5519         * lib/msvc-inval.h: Don't include <stdlib.h> here.
5520         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
5521         macros.
5522         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
5523         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
5524         SANE_LIBRARY_HANDLING as a no-op.
5525         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
5526         <stdlib.h>.
5527         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
5528
5529 2011-09-25  Bruno Haible  <bruno@clisp.org>
5530
5531         msvc-inval: Make handler multithread-safe.
5532         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
5533         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
5534         declarations.
5535         (gl_msvc_inval_current): New declaration.
5536         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
5537         Operate on the structure returned by gl_msvc_inval_current().
5538         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
5539         Remove varaiables.
5540         (tls_index, tls_initialized): New variables.
5541         (not_per_thread): New variable.
5542         (gl_msvc_inval_current): New function.
5543         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
5544         returned by gl_msvc_inval_current().
5545
5546 2011-09-25  Bruno Haible  <bruno@clisp.org>
5547
5548         msvc-inval: Install handler globally.
5549         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
5550         !_MSC_VER.
5551         (gl_msvc_invalid_parameter_handler): Remove declaration.
5552         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
5553         declarations.
5554         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
5555         Install the handler globally, don't uninstall it.
5556         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
5557         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
5558         currently valid, call RaiseException instead.
5559         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
5560         for !_MSC_VER.
5561
5562 2011-09-25  Bruno Haible  <bruno@clisp.org>
5563
5564         strerror_r-posix: Fix for MSVC 9.
5565         * lib/strerror_r.c (local_snprintf): New function.
5566         (snprintf): Define to local_snprintf, not to _snprintf.
5567
5568 2011-09-25  Bruno Haible  <bruno@clisp.org>
5569
5570         ftruncate: Support for MSVC 9.
5571         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
5572         (chsize_nothrow): New function.
5573         (chsize): Redefine as a macro.
5574         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
5575         * modules/ftruncate (Depends-on): Add msvc-inval.
5576
5577 2011-09-25  Bruno Haible  <bruno@clisp.org>
5578
5579         New module 'fstat'.
5580         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
5581         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
5582         * lib/fchdir.c (rpl_fstat): Remove function.
5583         * m4/fstat.m4: New file.
5584         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
5585         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
5586         declared.
5587         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
5588         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
5589         * modules/fstat: New file.
5590         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
5591         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
5592         is set.
5593         * doc/posix-functions/fstat.texi: Mention the new module and the
5594         problem on MSVC.
5595         * NEWS: Mention the change.
5596         * modules/acl (Depends-on): Add fstat.
5597         * modules/chdir-safer (Depends-on): Likewise.
5598         * modules/chown (Depends-on): Likewise.
5599         * modules/copy-file (Depends-on): Likewise.
5600         * modules/fchdir (Depends-on): Likewise.
5601         * modules/fdopendir (Depends-on): Likewise.
5602         * modules/fopen (Depends-on): Likewise.
5603         * modules/fts (Depends-on): Likewise.
5604         * modules/getcwd (Depends-on): Likewise.
5605         * modules/isapipe (Depends-on): Likewise.
5606         * modules/linkat (Depends-on): Likewise.
5607         * modules/lseek (Depends-on): Likewise.
5608         * modules/mkdir-p (Depends-on): Likewise.
5609         * modules/open (Depends-on): Likewise.
5610         * modules/openat (Depends-on): Likewise.
5611         * modules/read-file (Depends-on): Likewise.
5612         * modules/renameat (Depends-on): Likewise.
5613         * modules/utimens (Depends-on): Likewise.
5614
5615 2011-09-25  Bruno Haible  <bruno@clisp.org>
5616
5617         linkat: Fix compilation on MSVC 9.
5618         * lib/linkat.c: Don't include <stdint.h>.
5619
5620 2011-09-25  Bruno Haible  <bruno@clisp.org>
5621
5622         fclose: Support for MSVC 9.
5623         * lib/fclose.c: Include msvc-inval.h.
5624         (fclose_nothrow): New function.
5625         (rpl_fclose): Use it.
5626         * modules/fclose (Depends-on): Add msvc-inval.
5627         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
5628
5629 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
5630
5631         dup2: minor simplifications
5632         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
5633         that it's a performance win.
5634         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
5635         ! defined __CYGWIN__)" to "ifdef F_GETFL".
5636
5637 2011-09-24  Jim Meyering  <meyering@redhat.com>
5638
5639         test-futimens: avoid a warning from gcc -Wshadow
5640         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
5641         to avoid a shadowing warning.
5642
5643 2011-09-24  Bruno Haible  <bruno@clisp.org>
5644
5645         fdopen: Support for MSVC 9.
5646         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
5647         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
5648         * lib/fdopen.c: Include msvc-inval.h.
5649         (fdopen_nothrow): New function.
5650         (rpl_fdopen): Use it.
5651         * modules/fdopen (Depends-on): Add msvc-inval.
5652         * modules/fclose-tests (Depends-on): Add fdopen.
5653         * modules/fflush-tests (Depends-on): Likewise.
5654         * modules/fgetc-tests (Depends-on): Likewise.
5655         * modules/fputc-tests (Depends-on): Likewise.
5656         * modules/fread-tests (Depends-on): Likewise.
5657         * modules/freopen-tests (Depends-on): Likewise.
5658         * modules/fseeko-tests (Depends-on): Likewise.
5659         * modules/ftello-tests (Depends-on): Likewise.
5660         * modules/fwrite-tests  (Depends-on): Likewise.
5661         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
5662
5663 2011-09-24  Bruno Haible  <bruno@clisp.org>
5664
5665         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
5666         * modules/fgetc-tests (Depends-on): Add unistd.
5667         * modules/fputc-tests (Depends-on): Likewise.
5668         * modules/fread-tests (Depends-on): Likewise.
5669         * modules/fwrite-tests (Depends-on): Likewise.
5670
5671 2011-09-24  Bruno Haible  <bruno@clisp.org>
5672
5673         dup: Simplify autoconf test.
5674         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
5675         on gl_MSVC_INVAL's result.
5676
5677 2011-09-24  Bruno Haible  <bruno@clisp.org>
5678
5679         Tests for function fwrite().
5680         * modules/fwrite-tests: New file.
5681         * tests/test-fwrite.c: New file.
5682         * modules/stdio-tests (Depends-on): Add fwrite-tests.
5683
5684         Tests for function fread().
5685         * modules/fread-tests: New file.
5686         * tests/test-fread.c: New file.
5687         * modules/stdio-tests (Depends-on): Add fread-tests.
5688
5689         Activate fputc tests.
5690         * modules/stdio-tests (Depends-on): Add fputc-tests.
5691
5692         Enhance fgetc, fputc tests.
5693         * tests/test-fgetc.c (main): Also test the stream's error indicator.
5694         * tests/test-fputc.c (main): Likewise.
5695
5696 2011-09-24  Bruno Haible  <bruno@clisp.org>
5697
5698         write: Support for MSVC 9.
5699         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
5700         is not 1.
5701         * lib/write.c (write_nothrow): New function.
5702         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
5703         not 1. Use write_nothrow.
5704         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
5705         invalid parameter handler.
5706         (gl_PREREQ_WRITE): New macro.
5707         * modules/write (Depends-on): Add msvc-inval.
5708         (configure.ac): Invoke gl_PREREQ_WRITE.
5709         * doc/posix-functions/write.texi: Mention the problem on MSVC.
5710
5711 2011-09-24  Bruno Haible  <bruno@clisp.org>
5712
5713         read: Fix last commit.
5714         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
5715
5716 2011-09-24  Bruno Haible  <bruno@clisp.org>
5717
5718         dup2: Fix last commit.
5719         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
5720         (rpl_dup2): Disable fcntl workaround on native Windows.
5721
5722         sigprocmask: Make code safer.
5723         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
5724         section that changes macro definitions for this compilation unit.
5725
5726 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
5727
5728         dup2: clarify by coalescing Windows-specific material
5729         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
5730         "msvc-nothrow.h"' to the Windows-specific section, so that the
5731         Emacs source need not contain these include files.
5732         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
5733         Windows-specific fixes into this function rather than just the
5734         nothrow fix, as this shortens and clarifies the code.  Always
5735         define as a function, as that's a bit cleaner than having it be
5736         sometimes a function and sometimes a macro.
5737         (rpl_dup2): Move the Windows-specific stuff out of here and into
5738         ms_windows_dup2.  Don't protect the Haiku-related fix with
5739         "#if !defined __linux__", as the same code also works around
5740         a Linux kernel bug, and it doesn't add any system calls on any
5741         platform.  Add comment about FreeBSD 6.1.
5742
5743         sigprocmask: move #include directive
5744         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
5745         Windows-specific section, so that the Emacs source need not
5746         contain msvc-inval.h.
5747
5748 2011-09-23  Bruno Haible  <bruno@clisp.org>
5749
5750         read: Support for MSVC 9.
5751         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
5752         is not 1.
5753         * lib/read.c (read_nothrow): New function.
5754         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
5755         read_nothrow.
5756         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
5757         invalid parameter handler.
5758         (gl_PREREQ_READ): New macro.
5759         * modules/read (Depends-on): Add msvc-inval.
5760         (configure.ac): Invoke gl_PREREQ_READ.
5761         * doc/posix-functions/read.texi: Mention the problem on MSVC.
5762
5763 2011-09-23  Bruno Haible  <bruno@clisp.org>
5764
5765         close: Support for MSVC 9.
5766         * lib/close.c: Include <errno.h>, msvc-inval.h.
5767         (close_nothrow): New function.
5768         (rpl_close): Use it.
5769         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
5770         invalid parameter handler.
5771         * modules/close (Depends-on): Add msvc-inval.
5772         * modules/dup2-tests (Depends-on): Add close.
5773         * modules/dup3-tests (Depends-on): Likewise.
5774         * modules/fcntl-tests (Depends-on): Likewise.
5775         * modules/spawn-pipe-tests (Depends-on): Likewise.
5776         * modules/unistd-safer-tests (Depends-on): Likewise.
5777         * doc/posix-functions/close.texi: Mention the problem on MSVC.
5778
5779 2011-09-23  Bruno Haible  <bruno@clisp.org>
5780
5781         New module 'dup'.
5782         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
5783         Allow replacement.
5784         * lib/dup.c: New file.
5785         * lib/fchdir.c (rpl_dup): Remove function.
5786         * m4/dup.m4: New file.
5787         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
5788         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
5789         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
5790         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
5791         * modules/dup: New file.
5792         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
5793         'dup' module is in use.
5794         * modules/fdopendir (Depends-on): Add dup.
5795         * modules/fdutimensat-tests (Depends-on): Likewise.
5796         * modules/fts (Depends-on): Likewise.
5797         * modules/futimens-tests (Depends-on): Likewise.
5798         * modules/posix_spawnp-tests (Depends-on): Likewise.
5799         * modules/unistd-safer-tests (Depends-on): Likewise.
5800         * modules/utimens-tests (Depends-on): Likewise.
5801         * doc/posix-functions/dup.texi: Mention the new module and the problem
5802         on MSVC.
5803
5804 2011-09-23  Bruno Haible  <bruno@clisp.org>
5805
5806         getdtablesize: Support for MSVC 9.
5807         * lib/getdtablesize.c: Include msvc-inval.h.
5808         (_setmaxstdio_nothrow): New function.
5809         (_setmaxstdio): Redefine it.
5810         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
5811         * modules/getdtablesize (Depends-on): Add msvc-inval.
5812         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
5813
5814 2011-09-23  Bruno Haible  <bruno@clisp.org>
5815
5816         signal-h: Rename from signal.
5817         * modules/signal-h: Renamed from modules/signal.
5818         * modules/pthread_sigmask (Depends-on): Update.
5819         * modules/raise (Depends-on): Likewise.
5820         * modules/sigaction (Depends-on): Likewise.
5821         * modules/sigpipe (Depends-on): Likewise.
5822         * modules/sigprocmask (Depends-on): Likewise.
5823         * modules/sys_select (Depends-on): Likewise.
5824         * modules/signal-h-tests: Renamed from modules/signal-tests.
5825         (Files, Depends-on, Makefile.am): Update.
5826         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
5827         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
5828         (Files, Makefile.am): Update.
5829         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
5830         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
5831         * modules/signal: New placeholder file.
5832         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
5833         * doc/posix-headers/signal.texi: Update.
5834         * NEWS: Mention the change.
5835
5836 2011-09-23  Bruno Haible  <bruno@clisp.org>
5837
5838         sigprocmask: Avoid crashes through signal() on MSVC 9.
5839         * lib/sigprocmask.c: Include msvc-inval.h.
5840         (signal_nothrow): New function.
5841         (signal): Redefine it.
5842         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
5843         * modules/sigprocmask (Depends-on): Add msvc-inval.
5844         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
5845
5846 2011-09-23  Bruno Haible  <bruno@clisp.org>
5847
5848         Tests for module 'raise'.
5849         * modules/raise-tests: New file.
5850         * tests/test-raise.c: New file.
5851
5852         raise: Support for MSVC.
5853         * lib/signal.in.h (raise): New declaration.
5854         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
5855         for native Windows platforms.
5856         * m4/raise.m4: New file.
5857         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
5858         HAVE_RAISE, REPLACE_RAISE.
5859         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
5860         REPLACE_RAISE.
5861         * modules/raise (Status, Notice): Remove fields.
5862         (Files): Add m4/raise.m4.
5863         (Depends-on): Add signal, msvc-inval.
5864         (configure.ac): Use the common idioms.
5865         (Maintainer): Add me.
5866         * tests/test-signal-c++.cc: Check the signature of raise.
5867         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
5868
5869 2011-09-23  Bruno Haible  <bruno@clisp.org>
5870
5871         pipe2: Fix compilation on pre-C99 compilers.
5872         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
5873
5874 2011-09-23  Bruno Haible  <bruno@clisp.org>
5875
5876         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
5877         * lib/msvc-nothrow.h: New file.
5878         * lib/msvc-nothrow.c: New file.
5879         * m4/msvc-nothrow.m4: New file.
5880         * modules/msvc-nothrow: New file.
5881         * lib/dup2.c: Include msvc-nothrow.h.
5882         (rpl_dup2): No need to protect _get_osfhandle call here.
5883         * lib/accept4.c: Include msvc-nothrow.h.
5884         * lib/error.c: Likewise.
5885         * lib/fcntl.c: Likewise.
5886         * lib/lseek.c: Likewise.
5887         * lib/nonblocking.c: Likewise.
5888         * lib/poll.c: Likewise.
5889         * lib/read.c: Likewise.
5890         * lib/select.c: Likewise.
5891         * lib/sockets.h: Likewise.
5892         * lib/sockets.c: Likewise.
5893         * lib/stdio-read.c: Likewise.
5894         * lib/stdio-write.c: Likewise.
5895         * lib/write.c: Likewise.
5896         * lib/w32sock.h: Likewise.
5897         * lib/w32spawn.h: Likewise.
5898         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
5899         * lib/fsync.c: Likewise.
5900         * lib/isapipe.c: Likewise.
5901         * modules/dup2 (Depends-on): Add msvc-nothrow.
5902         * modules/accept4 (Depends-on): Likewise.
5903         * modules/error (Depends-on): Likewise.
5904         * modules/fcntl (Depends-on): Likewise.
5905         * modules/lseek (Depends-on): Likewise.
5906         * modules/nonblocking (Depends-on): Likewise.
5907         * modules/poll (Depends-on): Likewise.
5908         * modules/read (Depends-on): Likewise.
5909         * modules/select (Depends-on): Likewise.
5910         * modules/sockets (Depends-on): Likewise.
5911         * modules/sigpipe (Depends-on): Likewise.
5912         * modules/write (Depends-on): Likewise.
5913         * modules/accept (Depends-on): Likewise.
5914         * modules/bind (Depends-on): Likewise.
5915         * modules/connect (Depends-on): Likewise.
5916         * modules/gethostname (Depends-on): Likewise.
5917         * modules/getpeername (Depends-on): Likewise.
5918         * modules/getsockname (Depends-on): Likewise.
5919         * modules/getsockopt (Depends-on): Likewise.
5920         * modules/ioctl (Depends-on): Likewise.
5921         * modules/listen (Depends-on): Likewise.
5922         * modules/recv (Depends-on): Likewise.
5923         * modules/recvfrom (Depends-on): Likewise.
5924         * modules/send (Depends-on): Likewise.
5925         * modules/sendto (Depends-on): Likewise.
5926         * modules/setsockopt (Depends-on): Likewise.
5927         * modules/shutdown (Depends-on): Likewise.
5928         * modules/socket (Depends-on): Likewise.
5929         * modules/execute (Depends-on): Likewise.
5930         * modules/spawn-pipe (Depends-on): Likewise.
5931         * modules/flock (Depends-on): Likewise.
5932         * modules/fsync (Depends-on): Likewise.
5933         * modules/isapipe (Depends-on): Likewise.
5934         * tests/test-cloexec.c: Include msvc-nothrow.h.
5935         * tests/test-dup-safer.c: Likewise.
5936         * tests/test-dup2.c: Likewise.
5937         * tests/test-dup3.c: Likewise.
5938         * tests/test-fcntl.c: Likewise.
5939         * tests/test-pipe.c: Likewise.
5940         * tests/test-pipe2.c: Likewise.
5941         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
5942         * modules/unistd-safer-tests (Depends-on): Likewise.
5943         * modules/dup2-tests (Depends-on): Likewise.
5944         * modules/dup3-tests (Depends-on): Likewise.
5945         * modules/fcntl-tests (Depends-on): Likewise.
5946         * modules/pipe-posix-tests (Depends-on): Likewise.
5947         * modules/pipe2-tests (Depends-on): Likewise.
5948
5949 2011-09-23  Bruno Haible  <bruno@clisp.org>
5950
5951         dup2: Make code more maintainable.
5952         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
5953         (rpl_dup2): Use it.
5954         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
5955         * modules/dup2 (configure.ac): Invoke it.
5956         Reported by Paul Eggert.
5957
5958 2011-09-23  Bruno Haible  <bruno@clisp.org>
5959
5960         msvc-inval: Fix compilation error.
5961         * lib/msvc-inval.h: Include <excpt.h>.
5962
5963 2011-09-23  Bruno Haible  <bruno@clisp.org>
5964
5965         mkdir: Tweak for MSVC 9.
5966         * lib/sys_stat.in.h: Update comments.
5967         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
5968
5969         Tests for module 'chdir'.
5970         * modules/chdir-tests: New file.
5971         * tests/test-chdir.c: New file.
5972
5973         New module 'chdir'.
5974         * modules/chdir: New file.
5975         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
5976         (chdir): New declaration.
5977         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
5978         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
5979         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
5980         * tests/test-unistd-c++.cc: Check signature of chdir.
5981         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
5982         * modules/chdir-long (Depends-on): Add chdir.
5983         * modules/fchdir (Depends-on): Likewise.
5984         * modules/rename (Depends-on): Likewise.
5985         * modules/savewd (Depends-on): Likewise.
5986
5987         rmdir: Support for mingw, MSVC 9.
5988         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
5989         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
5990
5991         getcwd: Tweak for MSVC 9.
5992         * lib/unistd.in.h: Update comments.
5993         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
5994
5995 2011-09-22  Bruno Haible  <bruno@clisp.org>
5996
5997         strerror_r-posix: Avoid a link error on MSVC.
5998         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
5999         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
6000
6001 2011-09-22  Bruno Haible  <bruno@clisp.org>
6002
6003         select: Avoid link errors on MSVC.
6004         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
6005         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
6006         * modules/pselect (Link): Likewise.
6007         * NEWS: Mention the change.
6008         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
6009         test-select-stdin against $(LIB_SELECT).
6010         * modules/pselect-tests (Makefile.am): Link test-pselect against
6011         $(LIB_SELECT).
6012
6013 2011-09-22  Bruno Haible  <bruno@clisp.org>
6014
6015         select: Avoid compilation error on MSVC.
6016         * lib/select.c: Don't include <stdbool.h>.
6017
6018 2011-09-21  Bruno Haible  <bruno@clisp.org>
6019
6020         Consolidate all uses of PATH_MAX in *.m4 files.
6021         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
6022         macros.
6023         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
6024         and gl_PATHMAX_SNIPPET.
6025         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
6026         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6027         * modules/chdir-long (Files): Add m4/pathmax.m4.
6028         * modules/getcwd (Files): Likewise.
6029
6030 2011-09-21  Bruno Haible  <bruno@clisp.org>
6031
6032         ftruncate: Un-deprecate, concentrate on Win32 support.
6033         * modules/ftruncate (Status, Notice): Remove sections.
6034         (Depends-on): Add largefile.
6035         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
6036         non-mingw platforms.
6037         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
6038         include <io.h>.
6039         * modules/perror-tests (Depends-on): Add ftruncate.
6040         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
6041         'ftruncate' module.
6042
6043 2011-09-21  Bruno Haible  <bruno@clisp.org>
6044
6045         Add dependencies to new dirent related modules.
6046         * modules/opendir (Depends-on): Add closedir.
6047         * modules/getcwd (Depends-on): Add opendir, closedir.
6048         * modules/dirent-safer-tests (Depends-on): Likewise.
6049         * modules/fdopendir-tests (Depends-on): Likewise.
6050         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
6051         * modules/renameat-tests (Depends-on): Likewise.
6052
6053 2011-09-21  Bruno Haible  <bruno@clisp.org>
6054
6055         opendir: Avoid compilation error on mingw.
6056         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
6057         * modules/opendir (Depends-on): Add unistd.
6058
6059 2011-09-21  Bruno Haible  <bruno@clisp.org>
6060
6061         ftruncate tests: Avoid a test failure on mingw.
6062         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
6063
6064 2011-09-21  Bruno Haible  <bruno@clisp.org>
6065
6066         select tests: Avoid test failures on OSF/1 5.1 and mingw.
6067         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
6068         native Windows.
6069
6070 2011-09-21  Bruno Haible  <bruno@clisp.org>
6071
6072         New module 'fdopen'.
6073         * lib/stdio.in.h (fdopen): New declaration.
6074         * lib/fdopen.c: New file.
6075         * m4/fdopen.m4: New file.
6076         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
6077         REPLACE_FDOPEN.
6078         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
6079         REPLACE_FDOPEN.
6080         * modules/fdopen: New file.
6081         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
6082         * tests/test-stdio-c++.cc: Check signature of fdopen.
6083         * doc/posix-functions/fdopen.texi: Mention the new module.
6084
6085 2011-09-21  Bruno Haible  <bruno@clisp.org>
6086
6087         unlockpt tests: Avoid test failure on NetBSD 5.1.
6088         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
6089         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
6090
6091 2011-09-21  Bruno Haible  <bruno@clisp.org>
6092
6093         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
6094         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
6095         * tests/test-getlogin_r.c (main): Likewise.
6096
6097 2011-09-20  Bruno Haible  <bruno@clisp.org>
6098
6099         time tests: Don't require pid_t.
6100         * doc/posix-headers/time.texi: Revert last change.
6101         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
6102         * tests/test-time.c: Comment out the check for pid_t.
6103
6104 2011-09-20  Bruno Haible  <bruno@clisp.org>
6105
6106         fsync tests: Avoid a test failure on mingw.
6107         * tests/test-fsync.c (main): Allow a failure with EIO.
6108
6109 2011-09-20  Bruno Haible  <bruno@clisp.org>
6110
6111         euidaccess: Update comments.
6112         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
6113
6114 2011-09-20  Bruno Haible  <bruno@clisp.org>
6115
6116         Ensure EBADF returns for socket functions on mingw.
6117         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
6118         descriptor is invalid.
6119         * lib/bind.c (rpl_bind): Likewise.
6120         * lib/connect.c (rpl_connect): Likewise.
6121         * lib/getpeername.c (rpl_getpeername): Likewise.
6122         * lib/getsockname.c (rpl_getsockname): Likewise.
6123         * lib/getsockopt.c (rpl_getsockopt): Likewise.
6124         * lib/listen.c (rpl_listen): Likewise.
6125         * lib/recv.c (rpl_recv): Likewise.
6126         * lib/recvfrom.c (rpl_recvfrom): Likewise.
6127         * lib/send.c (rpl_send): Likewise.
6128         * lib/sendto.c (rpl_sendto): Likewise.
6129         * lib/setsockopt.c (rpl_setsockopt): Likewise.
6130         * lib/shutdown.c (rpl_shutdown): Likewise.
6131
6132 2011-09-20  Bruno Haible  <bruno@clisp.org>
6133
6134         select tests: EBADF tests.
6135         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
6136         test_bad_fd): New functions.
6137         (test_function): Invoke also test_bad_fd.
6138
6139 2011-09-20  Bruno Haible  <bruno@clisp.org>
6140
6141         Tests for module 'posix_spawn_file_actions_addopen.
6142         * modules/posix_spawn_file_actions_addopen-tests: New file.
6143         * tests/test-posix_spawn_file_actions_addopen.c: New file.
6144
6145         Tests for module 'posix_spawn_file_actions_adddup2'.
6146         * modules/posix_spawn_file_actions_adddup2-tests: New file.
6147         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
6148
6149         Tests for module 'posix_spawn_file_actions_addclose'.
6150         * modules/posix_spawn_file_actions_addclose-tests: New file.
6151         * tests/test-posix_spawn_file_actions_addclose.c: New file.
6152
6153 2011-09-20  Bruno Haible  <bruno@clisp.org>
6154
6155         Tests for module 'unlockpt'.
6156         * modules/unlockpt-tests: New file.
6157         * tests/test-unlockpt.c: New file.
6158         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
6159
6160         Tests for module 'grantpt'.
6161         * modules/grantpt-tests: New file.
6162         * tests/test-grantpt.c: New file.
6163         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
6164
6165 2011-09-20  Bruno Haible  <bruno@clisp.org>
6166
6167         freopen tests: EBADF tests.
6168         * tests/test-freopen.c: Include errno.h, unistd.h.
6169         (main): Add tests for EBADF, commented out for the moment.
6170
6171         fclose tests: EBADF tests.
6172         * tests/test-fclose.c (main): Add tests for EBADF.
6173
6174         fflush tests: EBADF tests.
6175         * tests/test-fflush.c: Include errno.h, macros.h.
6176         (main): Add tests for EBADF.
6177
6178         ftello tests: EBADF tests.
6179         * tests/test-ftello4.sh: New file.
6180         * tests/test-ftello4.c: New file.
6181         * modules/ftello-tests (Files): Add them.
6182         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
6183
6184         fseeko tests: EBADF tests.
6185         * tests/test-fseeko4.sh: New file.
6186         * tests/test-fseeko4.c: New file.
6187         * modules/fseeko-tests (Files): Add them.
6188         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
6189
6190         Tests for function fputc().
6191         * modules/fputc-tests: New file.
6192         * tests/test-fputc.c: New file.
6193         * modules/stdio-tests (Depends-on): Add fputc-tests.
6194
6195         Tests for function fgetc().
6196         * modules/fgetc-tests: New file.
6197         * tests/test-fgetc.c: New file.
6198         * modules/stdio-tests (Depends-on): Add fgetc-tests.
6199
6200         Tests for function fdopen().
6201         * modules/fdopen-tests: New file.
6202         * tests/test-fdopen.c: New file.
6203         * modules/stdio-tests (Depends-on): Add fdopen-tests.
6204
6205         Tests for module 'vdprintf'.
6206         * modules/vdprintf-tests: New file.
6207         * tests/test-vdprintf.c: New file.
6208
6209         Tests for module 'dprintf'.
6210         * modules/dprintf-tests: New file.
6211         * tests/test-dprintf.c: New file.
6212
6213 2011-09-20  Bruno Haible  <bruno@clisp.org>
6214
6215         Tests for module 'ioctl'.
6216         * modules/ioctl-tests: New file.
6217         * tests/test-ioctl.c: New file.
6218
6219 2011-09-20  Bruno Haible  <bruno@clisp.org>
6220
6221         fcntl tests: EBADF tests.
6222         * tests/test-fcntl.c (main): Add more tests for EBADF.
6223
6224 2011-09-20  Bruno Haible  <bruno@clisp.org>
6225
6226         utimensat tests: EBADF tests.
6227         * tests/test-utimensat.c (main): Add tests for EBADF.
6228
6229         renameat tests: EBADF tests.
6230         * tests/test-renameat.c (main): Add tests for EBADF.
6231
6232         mkfifoat tests: EBADF tests.
6233         * tests/test-mkfifoat.c (main): Add tests for EBADF.
6234
6235         readlinkat tests: EBADF tests.
6236         * tests/test-readlinkat.c (main): Add tests for EBADF.
6237
6238         symlinkat tests: EBADF tests.
6239         * tests/test-symlinkat.c (main): Add tests for EBADF.
6240
6241         linkat tests: EBADF tests.
6242         * tests/test-linkat.c (main): Add tests for EBADF.
6243
6244         Tests for module 'faccessat'.
6245         * modules/faccessat-tests: New file.
6246         * tests/test-faccessat.c: New file.
6247
6248         fdopendir tests: EBADF tests.
6249         * tests/test-fdopendir.c (main): Add more tests for EBADF.
6250
6251         openat tests: EBADF tests.
6252         * tests/test-fchownat.c (main): Add tests for EBADF.
6253         * tests/test-fstatat.c (main): Likewise.
6254         * tests/test-mkdirat.c (main): Likewise.
6255         * tests/test-openat.c (main): Likewise.
6256         * tests/test-unlinkat.c (main): Likewise.
6257         * tests/test-fchmodat.c: New file.
6258         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
6259         (Makefile.am): Also run 'test-fchmodat'.
6260
6261 2011-09-20  Bruno Haible  <bruno@clisp.org>
6262
6263         utimens, futimens, fdutimensat tests: EBADF tests.
6264         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
6265
6266         Tests for function fstat().
6267         * modules/fstat-tests: New file.
6268         * tests/test-fstat.c: New file.
6269         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
6270
6271 2011-09-20  Bruno Haible  <bruno@clisp.org>
6272
6273         test-ttyname_r tests: EBADF tests.
6274         * tests/test-ttyname_r.c (main): Add tests for EBADF.
6275
6276         Tests for module 'isatty'.
6277         * modules/isatty-tests: New file.
6278         * tests/test-isatty.c: New file.
6279
6280         Tests for module 'write'.
6281         * modules/write-tests: New file.
6282         * tests/test-write.c: New file.
6283
6284         Tests for module 'read'.
6285         * modules/read-tests: New file.
6286         * tests/test-read.c: New file.
6287
6288         pwrite tests: EBADF tests.
6289         * tests/test-pwrite.c (main): Add tests for EBADF.
6290
6291         pread tests: EBADF tests.
6292         * tests/test-pread.c (main): Add tests for EBADF.
6293
6294         lseek tests: EBADF tests.
6295         * tests/test-lseek.c (main): Add more tests for EBADF.
6296
6297         Tests for module 'ftruncate'.
6298         * modules/ftruncate-tests: New file.
6299         * tests/test-ftruncate.sh: New file.
6300         * tests/test-ftruncate.c: New file.
6301
6302         fsync tests: EBADF tests.
6303         * tests/test-fsync.c (main): Add more tests for EBADF.
6304
6305         fdatasync tests: EBADF tests.
6306         * tests/test-fdatasync.c (main): Add more tests for EBADF.
6307
6308         Tests for module 'fchown'.
6309         * modules/fchown-tests: New file.
6310         * tests/test-fchown.c: New file.
6311
6312         Tests for module 'fchmod'.
6313         * modules/fchmod-tests: New file.
6314         * tests/test-fchmod.c: New file.
6315
6316         fchdir tests: EBADF tests.
6317         * tests/test-fchdir.c (main): Add more tests for EBADF.
6318
6319         dup2 tests: EBADF tests.
6320         * tests/test-dup2.c (main): Add more tests for EBADF.
6321
6322         Tests for module 'dup'.
6323         * modules/dup-tests: New file.
6324         * tests/test-dup.c: New file.
6325
6326         Tests for module 'close'.
6327         * modules/close-tests: New file.
6328         * tests/test-close.c: New file.
6329
6330 2011-09-20  Bruno Haible  <bruno@clisp.org>
6331
6332         Tests for module 'shutdown'.
6333         * modules/shutdown-tests: New file.
6334         * tests/test-shutdown.c: New file.
6335
6336         Tests for module 'setsockopt'.
6337         * modules/setsockopt-tests: New file.
6338         * tests/test-setsockopt.c: New file.
6339
6340         Tests for module 'sendto'.
6341         * modules/sendto-tests: New file.
6342         * tests/test-sendto.c: New file.
6343
6344         Tests for module 'send'.
6345         * modules/send-tests: New file.
6346         * tests/test-send.c: New file.
6347
6348         Tests for module 'recvfrom'.
6349         * modules/recvfrom-tests: New file.
6350         * tests/test-recvfrom.c: New file.
6351
6352         Tests for module 'recv'.
6353         * modules/recv-tests: New file.
6354         * tests/test-recv.c: New file.
6355
6356         Tests for module 'listen'.
6357         * modules/listen-tests: New file.
6358         * tests/test-listen.c: New file.
6359
6360         Tests for module 'getsockopt'.
6361         * modules/getsockopt-tests: New file.
6362         * tests/test-getsockopt.c: New file.
6363
6364         Tests for module 'getsockname'.
6365         * modules/getsockname-tests: New file.
6366         * tests/test-getsockname.c: New file.
6367
6368         Tests for module 'getpeername'.
6369         * modules/getpeername-tests: New file.
6370         * tests/test-getpeername.c: New file.
6371
6372         Tests for module 'connect'.
6373         * modules/connect-tests: New file.
6374         * tests/test-connect.c: New file.
6375
6376         Tests for module 'bind'.
6377         * modules/bind-tests: New file.
6378         * tests/test-bind.c: New file.
6379
6380         accept4 tests: Fix for native Windows.
6381         * tests/test-accept4.c: Include sockets.h.
6382         (main): Invoke gl_sockets_startup.
6383         * modules/accept4-tests (Depends-on): Add sockets.
6384
6385         accept tests: Fix for native Windows.
6386         * tests/test-accept.c: Include sockets.h.
6387         (main): Invoke gl_sockets_startup.
6388         * modules/accept-tests (Depends-on): Add sockets.
6389
6390 2011-09-19  Bruno Haible  <bruno@clisp.org>
6391
6392         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
6393         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
6394         do...while(0).
6395         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
6396         Suggested by Paul Eggert.
6397
6398 2011-09-19  Bruno Haible  <bruno@clisp.org>
6399
6400         sched: Ensure pid_t is defined.
6401         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
6402         not define pid_t.
6403         * lib/sched.in.h: Include <sys/types.h>.
6404         * doc/posix-headers/sched.texi: Mention the pid_t problem.
6405         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6406
6407 2011-09-19  Bruno Haible  <bruno@clisp.org>
6408
6409         msvc-inval: Ensure the entire expansion is a single statement.
6410         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
6411         of braces.
6412
6413 2011-09-19  Jim Meyering  <meyering@redhat.com>
6414
6415         tests: use printf, not echo in init.sh's warn_ function
6416         * tests/init.sh (warn_): Use printf, not echo.  The latter would
6417         misbehave when given strings containing a backslash or starting
6418         with e.g., -n.  James Youngman suggested setting IFS.
6419
6420 2011-09-19  Eric Blake  <eblake@redhat.com>
6421
6422         futimens: enhance test
6423         * tests/test-futimens.h (test_futimens): Also check for EBADF on
6424         closed non-negative fd.
6425
6426         date: accept 'hence' as opposite of 'ago'
6427         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
6428         * tests/test-parse-datetime.c (main): Enhance test.
6429         Suggested by Jesse Wilson.
6430
6431 2011-09-19  Jim Meyering  <meyering@redhat.com>
6432
6433         getcwd: don't fail in a deep directory on a system without openat
6434         Before this change, getcwd would fail when called from a directory
6435         of depth PATH_MAX / 3 or greater.  That was due to the fact that
6436         the non-openat implementation used "..", "../..", "../../..", etc.
6437         to access ancestor directories.  With too many, that string would
6438         be longer than PATH_MAX.
6439         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
6440         using gnulib's openat replacement.
6441         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
6442         we're using the replacement function.
6443
6444 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
6445
6446         maint.mk: avoid warnings from perl about missing files
6447         * top/maint.mk (def_sym_regex): Ignore files listed in
6448         $(gl_other_headers_) that do not exist, say because a project
6449         does not use a corresponding module.
6450
6451 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
6452
6453         stat: use pathmax.h only if needed
6454         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
6455         This is better for Emacs, which does not have a mingw port and
6456         therefore can avoid the pathmax module.
6457
6458         utimens: remove dependency on dup2
6459         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
6460         to work around the Linux kernel bug.
6461         * modules/utimens (Depends-on): Remove dup2.
6462
6463 2011-09-18  Bruno Haible  <bruno@clisp.org>
6464
6465         inet_ntop, inet_pton: Look for it also in libresolv.
6466         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
6467         libnsl, search for it in libresolv.
6468         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6469         Needed on Solaris 7.
6470
6471 2011-09-18  Bruno Haible  <bruno@clisp.org>
6472
6473         accept, accept4 tests: Avoid link error on Solaris.
6474         * modules/accept-tests (Makefile.am): Link test-accept against
6475         $(LIBSOCKET).
6476         * modules/accept4-tests (Makefile.am): Link test-accept4 against
6477         $(LIBSOCKET).
6478
6479         accept4: Avoid link error on Solaris.
6480         * modules/accept4 (Link): New section.
6481
6482         socket functions: Avoid link errors on Solaris.
6483         * modules/accept (Depends-on): Add socketlib.
6484         (Link): New section.
6485         * modules/bind (Depends-on): Add socketlib.
6486         (Link): New section.
6487         * modules/connect (Depends-on): Add socketlib.
6488         (Link): New section.
6489         * modules/getpeername (Depends-on): Add socketlib.
6490         (Link): New section.
6491         * modules/getsockname (Depends-on): Add socketlib.
6492         (Link): New section.
6493         * modules/getsockopt (Depends-on): Add socketlib.
6494         (Link): New section.
6495         * modules/listen (Depends-on): Add socketlib.
6496         (Link): New section.
6497         * modules/recv (Depends-on): Add socketlib.
6498         (Link): New section.
6499         * modules/recvfrom (Depends-on): Add socketlib.
6500         (Link): New section.
6501         * modules/send (Depends-on): Add socketlib.
6502         (Link): New section.
6503         * modules/sendto (Depends-on): Add socketlib.
6504         (Link): New section.
6505         * modules/setsockopt (Depends-on): Add socketlib.
6506         (Link): New section.
6507         * modules/shutdown (Depends-on): Add socketlib.
6508         (Link): New section.
6509         * modules/socket (Depends-on): Add socketlib.
6510         (Link): New section.
6511
6512 2011-09-18  Bruno Haible  <bruno@clisp.org>
6513
6514         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
6515         * tests/test-ptsname.c (main): Terminate the test if it takes longer
6516         than 5 seconds.
6517         * modules/ptsname-tests (configure.ac): Test for alarm.
6518
6519 2011-09-18  Bruno Haible  <bruno@clisp.org>
6520
6521         posix_spawn_file_actions_add*: Fix module dependencies.
6522         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
6523         posix_spawn_file_actions_init.
6524         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
6525         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
6526
6527 2011-09-18  Bruno Haible  <bruno@clisp.org>
6528
6529         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
6530         * tests/test-rename.h (test_rename): Allow error code EEXIST.
6531         * tests/test-renameat.c (main): Likewise.
6532
6533 2011-09-18  Bruno Haible  <bruno@clisp.org>
6534
6535         Tests for module 'accept4'.
6536         * modules/accept4-tests: New file.
6537         * tests/test-accept4.c: New file.
6538
6539 2011-09-18  Bruno Haible  <bruno@clisp.org>
6540
6541         Tests for module 'accept'.
6542         * modules/accept-tests: New file.
6543         * tests/test-accept.c: New file.
6544
6545 2011-09-18  Bruno Haible  <bruno@clisp.org>
6546
6547         dup2: Support for MSVC.
6548         * lib/dup2.c: Include msvc-inval.h.
6549         (rpl_dup2): Handle invalid parameter notifications during dup2 and
6550         _get_osfhandle calls.
6551         * modules/dup2 (Depends-on): Add msvc-inval.
6552         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
6553
6554         New module 'msvc-inval'.
6555         * lib/msvc-inval.h: New file.
6556         * lib/msvc-inval.c: New file.
6557         * m4/msvc-inval.m4: New file.
6558         * modules/msvc-inval: New file.
6559
6560 2011-09-17  Bruno Haible  <bruno@clisp.org>
6561
6562         Tests for module 'pclose'.
6563         * modules/pclose-tests: New file.
6564
6565         New module 'pclose'.
6566         * lib/stdio.in.h (pclose): New declaration.
6567         * lib/pclose.c: New file.
6568         * m4/pclose.m4: New file.
6569         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
6570         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
6571         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
6572         * modules/pclose: New file.
6573         * modules/popen-tests (Depends-on): Add pclose.
6574         * modules/popen-safer-tests (Depends-on): Likewise.
6575         * doc/posix-functions/pclose.texi: Mention the new module.
6576
6577 2011-09-17  Bruno Haible  <bruno@clisp.org>
6578
6579         popen: Support for MSVC.
6580         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
6581         * lib/popen.c (popen): Provide alternate definition for native Windows.
6582         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
6583         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
6584         * modules/popen (Depends-on, configure.ac): Update condition.
6585         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
6586         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
6587         fixed.
6588
6589 2011-09-17  Bruno Haible  <bruno@clisp.org>
6590
6591         isnanl, isnand, isnanf: Work around MSVC bug.
6592         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
6593
6594 2011-09-17  Bruno Haible  <bruno@clisp.org>
6595
6596         sys_socket tests: Fix recent mistake.
6597         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
6598
6599 2011-09-17  Bruno Haible  <bruno@clisp.org>
6600
6601         putenv: Support for MSVC.
6602         * modules/putenv (Depends-on): Add environ.
6603         * lib/putenv.c (environ): Disable declaration.
6604         * lib/unistd.in.h: Update comment.
6605
6606 2011-09-17  Bruno Haible  <bruno@clisp.org>
6607
6608         math: Avoid macro redefinition warnings on MSVC.
6609         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
6610         Undefine before redefining.
6611
6612 2011-09-17  Bruno Haible  <bruno@clisp.org>
6613
6614         doc: Mention functions which are declared as macros.
6615         * doc/posix-functions/*[fl].texi: Mention that some functions are
6616         defined as macros with arguments only.
6617
6618 2011-09-17  Bruno Haible  <bruno@clisp.org>
6619
6620         Add dependencies to new dirent related modules.
6621         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
6622         * modules/fts (Depends-on): Likewise.
6623         * modules/glob (Depends-on): Likewise.
6624         * modules/savedir (Depends-on): Likewise.
6625         * modules/scandir (Depends-on): Likewise.
6626         * modules/dirent-safer (Depends-on): Add opendir, closedir.
6627         * modules/fdopendir (Depends-on): Add opendir.
6628
6629 2011-09-17  Bruno Haible  <bruno@clisp.org>
6630
6631         inet_pton: Support for MSVC on Windows Vista or newer.
6632         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
6633         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
6634         HAVE_DECL_INET_PTON is defined.
6635         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
6636         On platforms with <winsock2.h>, test whether inet_pton is declared in
6637         <ws2tcpip.h>. If so, arrange to replace it.
6638         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
6639         REPLACE_INET_PTON.
6640         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
6641         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
6642         (Depends-on, configure.ac): Update condition.
6643         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
6644
6645 2011-09-17  Bruno Haible  <bruno@clisp.org>
6646
6647         inet_ntop: Support for MSVC on Windows Vista or newer.
6648         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
6649         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
6650         HAVE_DECL_INET_NTOP is defined.
6651         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
6652         On platforms with <winsock2.h>, test whether inet_ntop is declared in
6653         <ws2tcpip.h>. If so, arrange to replace it.
6654         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
6655         REPLACE_INET_NTOP.
6656         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
6657         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
6658         (Depends-on, configure.ac): Update condition.
6659         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
6660
6661 2011-09-16  Eric Blake  <eblake@redhat.com>
6662
6663         test-fsync: yet another enhancement
6664         * tests/test-fsync.c (main): Also test behavior on read-only text
6665         file.
6666
6667 2011-09-16  Bruno Haible  <bruno@clisp.org>
6668
6669         Enhance fsync, fdatasync tests.
6670         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
6671         * tests/test-fdatasync.c (main): Likewise.
6672
6673 2011-09-16  Bruno Haible  <bruno@clisp.org>
6674
6675         Support for MSVC compiler: Ensure mode_t gets defined.
6676         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
6677         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6678         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
6679         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
6680         * tests/test-fcntl-h.c: Check that mode_t is defined.
6681         * tests/test-sys_stat.c: Likewise.
6682         * tests/test-sys_types.c: Likewise.
6683         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
6684         * doc/posix-headers/sys_stat.texi: Likewise.
6685         * doc/posix-headers/sys_types.texi: Likewise.
6686
6687 2011-09-16  Bruno Haible  <bruno@clisp.org>
6688
6689         sys_stat: Support for MSVC.
6690         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
6691         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
6692         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
6693         MSVC.
6694
6695 2011-09-16  Bruno Haible  <bruno@clisp.org>
6696
6697         Support for MSVC compiler: Ensure off_t gets defined.
6698         * lib/unistd.in.h: Include <sys/types.h>.
6699         * tests/test-fcntl-h.c: Check that off_t is defined.
6700         * tests/test-sys_stat.c: Likewise.
6701         * tests/test-sys_types.c: Likewise.
6702
6703 2011-09-16  Eric Blake  <eblake@redhat.com>
6704
6705         fdatasync: port to Solaris
6706         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
6707         * modules/fdatasync (Link): Document it.
6708         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
6709
6710         fdatasync: port to MacOS X 10.7
6711         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
6712         declared.
6713         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
6714         * modules/unistd (Makefile.am): Substitute it.
6715         * lib/unistd.in.h (fdatasync): Declare on MacOS.
6716         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
6717
6718         fdatasync: minor improvements
6719         * modules/fdatasync (Depends-on): Add condition for fsync.
6720         * lib/fdatasync.c (fdatasync): Add comment.
6721         * tests/test-unistd-c++.cc: Test fdatasync.
6722
6723         unistd: update refs to newer POSIX
6724         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
6725         Suggested by Bruno Haible.
6726
6727         fdatasync: new module
6728         * modules/fsync (Description): Document difference to fdatasync.
6729         * modules/fdatasync: New module.
6730         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
6731         * lib/fdatasync.c (fdatasync): Likewise.
6732         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
6733         defaults.
6734         * modules/unistd (Makefile.am): Set witnesses.
6735         * lib/unistd.in.h (fdatasync): Declare.
6736         * MODULES.html.sh: Document it.
6737         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
6738         * modules/fdatasync-tests: New test.
6739         * tests/test-fdatasync.c: Likewise.
6740
6741 2011-09-16  Eric Blake  <eblake@redhat.com>
6742
6743         test-fsync: enhance tests
6744         * modules/fsync-tests (Depends-on): Add errno, for mingw.
6745         * tests/test-fsync.c (main): Enhance test.
6746
6747 2011-09-15  Bruno Haible  <bruno@clisp.org>
6748
6749         Support for MSVC compiler: Ensure ssize_t gets defined.
6750         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
6751         * doc/posix-headers/stdio.texi: Likewise.
6752         * modules/stdio (Depends-on): Add ssize_t.
6753         * modules/sys_socket (Depends-on): Likewise.
6754         * modules/sys_types (Depends-on): Likewise.
6755         * modules/sys_uio (Depends-on): Likewise.
6756         * modules/unistd (Depends-on): Likewise.
6757         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
6758         * tests/test-sys_types.c: Check that ssize_t is defined.
6759
6760 2011-09-14  Bruno Haible  <bruno@clisp.org>
6761
6762         Avoid using #, the m4 comment starter character, near brackets.
6763         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
6764         delimiter character in sed expressions.
6765         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
6766         Suggested by Eric Blake.
6767
6768         Properly quote AC_CHECK_DECLS' 4th argument.
6769         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
6770         argument.
6771         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6772         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6773         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6774         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
6775         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
6776         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
6777         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
6778         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
6779         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
6780         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
6781         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
6782         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6783         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
6784         * m4/isinf.m4 (gl_ISINF): Likewise.
6785         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
6786         * m4/readutmp.m4 (gl_READUTMP): Likewise.
6787         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
6788         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6789         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6790         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6791         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
6792         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
6793         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
6794         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6795         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6796         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6797         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
6798         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6799         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6800         Reported by Eric Blake.
6801
6802         Properly quote AC_CHECK_DECL's 4th argument.
6803         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
6804         argument.
6805         * m4/argp.m4 (gl_ARGP): Likewise.
6806         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
6807         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
6808         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
6809         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6810         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
6811         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
6812         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
6813         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
6814         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
6815         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
6816         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
6817         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
6818         Reported by Eric Blake.
6819
6820 2011-09-14  Eric Blake  <eblake@redhat.com>
6821
6822         opendir: avoid compile warning
6823         * lib/opendir.c (includes): Always include errno.h.
6824         Reported by Tatsuro MATSUOKA.
6825
6826 2011-09-14  Jim Meyering  <meyering@redhat.com>
6827
6828         maint.mk: sc_tight_scope: propagate failure from sub-make
6829         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
6830         Reported by Martin von Gagern.
6831
6832 2011-09-13  Bruno Haible  <bruno@clisp.org>
6833
6834         tempname: Support for MSVC.
6835         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
6836         MSVC.
6837         * modules/tempname (Depends-on): Add fcntl-h.
6838
6839 2011-09-13  Bruno Haible  <bruno@clisp.org>
6840
6841         sys_time: Support for MSVC.
6842         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
6843         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
6844         include <winsock2.h>.
6845         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
6846         function declarations that collide with POSIX.
6847         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
6848         (Makefile.am): Substitute HAVE_WINSOCK2_H.
6849
6850 2011-09-13  Bruno Haible  <bruno@clisp.org>
6851
6852         stat: Support for MSVC.
6853         * lib/stat.c: Include pathmax.h.
6854         * modules/stat (Depends-on): Add pathmax.
6855
6856         pathmax: Support for native Windows.
6857         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
6858
6859 2011-09-12  Bruno Haible  <bruno@clisp.org>
6860
6861         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
6862         * lib/dirent.in.h (struct dirent): New type.
6863         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
6864         DT_WHT): New macros.
6865         (DIR): New type.
6866         (opendir, closedir): Declare only if the module 'opendir' is enabled.
6867         (readdir, rewinddir): New declarations.
6868         * lib/dirent-private.h: New file.
6869         * lib/opendir.c: New file.
6870         * lib/readdir.c: New file.
6871         * lib/rewinddir.c: New file.
6872         * lib/closedir.c: New file.
6873         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
6874         * m4/opendir.m4: New file.
6875         * m4/readdir.m4: New file.
6876         * m4/rewinddir.m4: New file.
6877         * m4/closedir.m4: New file.
6878         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
6879         REPLACE_CLOSEDIR here.
6880         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
6881         readdir, rewinddir are declared.
6882         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
6883         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
6884         HAVE_REWINDDIR, HAVE_CLOSEDIR.
6885         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
6886         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
6887         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
6888         * modules/opendir: New file.
6889         * modules/readdir: New file.
6890         * modules/rewinddir: New file.
6891         * modules/closedir: New file.
6892         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
6893         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
6894         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
6895         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
6896         * NEWS: Mention the 'fchdir' change.
6897
6898 2011-09-11  Bruno Haible  <bruno@clisp.org>
6899
6900         asm-underscore.m4: Support for MSVC.
6901         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
6902         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
6903
6904 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
6905
6906         Doc about crypt functions.
6907         * doc/posix-functions/crypt.texi: Expand range of glibc versions
6908         needing for _GNU_SOURCE to get crypt.
6909         * doc/posix-functions/encrypt.texi: Likewise.
6910         * doc/posix-functions/setkey.texi: Likewise.
6911
6912 2011-09-11  Bruno Haible  <bruno@clisp.org>
6913
6914         doc: Update regarding MSVC 9.
6915         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
6916         tested".
6917         * doc/posix-functions/*.texi: Update with info about MSVC 9.
6918         * doc/posix-headers/*.texi: Likewise.
6919         * doc/pastposix-functions/*.texi: Likewise.
6920         * doc/glibc-functions/*.texi: Likewise.
6921         * doc/glibc-headers/*.texi: Likewise.
6922
6923 2011-09-11  Bruno Haible  <bruno@clisp.org>
6924
6925         unistd et al.: Don't assume <unistd.h> exists.
6926         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
6927         does not exist.
6928         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
6929         exist. But include <stdlib.h>.
6930         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
6931         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
6932         symlink() does not exist.
6933         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
6934         include <io.h> instead.
6935         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
6936         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
6937         include <direct.h> instead.
6938         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
6939         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6940         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
6941         <io.h> instead.
6942         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
6943         correctly if the system does not have hard links.
6944         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
6945         <direct.h> instead.
6946         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
6947         it when looking for function declarations.
6948         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
6949         <direct.h> and <io.h> instead.
6950         * doc/posix-headers/unistd.texi: More details about MSVC problem.
6951
6952 2011-09-11  Bruno Haible  <bruno@clisp.org>
6953
6954         strcase: Support for MSVC.
6955         * modules/strcase (Status, Notice): Remove obsoletion mark.
6956         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
6957         * doc/posix-functions/strncasecmp.texi: Likewise.
6958
6959         strings: Don't assume <strings.h> exists.
6960         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
6961         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
6962         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
6963         * doc/posix-headers/strings.texi: Mention the MSVC problem.
6964
6965 2011-09-11  Bruno Haible  <bruno@clisp.org>
6966
6967         dirent: Don't assume <dirent.h> exists.
6968         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
6969         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
6970         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
6971         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
6972
6973 2011-09-11  Bruno Haible  <bruno@clisp.org>
6974
6975         Fix wint_t on MSVC.
6976         * lib/wchar.in.h (wint_t): On MSVC, override it.
6977         * lib/wctype.in.h (wint_t): Likewise.
6978         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
6979         MSVC.
6980         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
6981         * doc/posix-headers/wctype.texi: Likewise.
6982
6983 2011-09-11  Bruno Haible  <bruno@clisp.org>
6984
6985         sys_types: Fix typo.
6986         * lib/sys_types.in.h: Fix typo in comment.
6987         Reported by Paul Eggert.
6988
6989         Support for MSVC compiler: Ensure size_t gets defined.
6990         * modules/strings (Depends-on): Add 'sys_types'.
6991         * modules/sys_uio (Depends-on): Likewise.
6992         * lib/sys_uio.in.h: Update comment.
6993
6994         C++ tests for module 'sys_types'.
6995         * modules/sys_types-c++-tests: New file.
6996         * tests/test-sys_types-c++.cc: New file.
6997
6998         Tests for module 'sys_types'.
6999         * modules/sys_types-tests: New file.
7000         * tests/test-sys_types.c: New file.
7001
7002         New module 'sys_types'.
7003         * lib/sys_types.in.h: New file.
7004         * m4/sys_types_h.m4: New file.
7005         * modules/sys_types: New file.
7006         * doc/posix-headers/sys_types.texi: Mention the new module and the
7007         size_t problem on MSVC 9.
7008
7009 2011-09-11  Bruno Haible  <bruno@clisp.org>
7010
7011         Support for MSVC compiler: Avoid division by a literal 0.
7012         * lib/math.in.h (NAN): Define through a function call also on MSVC.
7013         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
7014         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
7015         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
7016         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
7017         * tests/infinity.h: New file.
7018         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
7019         on MSVC.
7020         * tests/test-ceilf1.c: Include infinity.h.
7021         (main): Use Infinityf.
7022         * tests/test-ceil1.c: Include infinity.h.
7023         (main): Use Infinityd.
7024         * tests/test-ceill.c: Include infinity.h.
7025         (main): Use Infinityl.
7026         * tests/test-dprintf-posix.c: Include infinity.h.
7027         (test_function): Use Infinityd.
7028         * tests/test-floorf1.c: Include infinity.h.
7029         (main): Use Infinityf.
7030         * tests/test-floor1.c: Include infinity.h.
7031         (main): Use Infinityd.
7032         * tests/test-floorl.c: Include infinity.h.
7033         (main): Use Infinityl.
7034         * tests/test-fprintf-posix.c: Include infinity.h.
7035         (test_function): Use Infinityd.
7036         * tests/test-frexp.c: Include infinity.h.
7037         (main): Use Infinityd.
7038         * tests/test-frexpl.c: Include infinity.h.
7039         (main): Use Infinityl.
7040         * tests/test-isfinite.c: Include infinity.h.
7041         (test_isfinitef): Use Infinityf.
7042         (test_isfinited): Use Infinityd.
7043         (test_isfinitel): Use Infinityl.
7044         * tests/test-isinf.c: Include infinity.h.
7045         (test_isinff): Use Infinityf.
7046         (test_isinfd): Use Infinityd.
7047         (test_isinfl): Use Infinityl.
7048         * tests/test-isnan.c: Include infinity.h.
7049         (test_float): Use Infinityf.
7050         (test_double): Use Infinityd.
7051         (test_long_double): Use Infinityl.
7052         * tests/test-isnanf.h: Include infinity.h.
7053         (main): Use Infinityf.
7054         * tests/test-isnand.h: Include infinity.h.
7055         (main): Use Infinityd.
7056         * tests/test-isnanl.h: Include infinity.h.
7057         (main): Use Infinityl.
7058         * tests/test-ldexpl.c: Include infinity.h.
7059         (main): Use Infinityl.
7060         * tests/test-printf-posix.h: Include infinity.h.
7061         (test_function): Use Infinityd.
7062         * tests/test-roundf1.c: Include infinity.h.
7063         (main): Use Infinityf.
7064         * tests/test-round1.c: Include infinity.h.
7065         (main): Use Infinityd.
7066         * tests/test-roundl.c: Include infinity.h.
7067         (main): Use Infinityl.
7068         * tests/test-signbit.c: Include infinity.h.
7069         (test_signbitf): Use Infinityf.
7070         (test_signbitd): Use Infinityd.
7071         (test_signbitl): Use Infinityl.
7072         * tests/test-snprintf-posix.h: Include infinity.h.
7073         (test_function): Use Infinityd, Infinityl.
7074         * tests/test-sprintf-posix.h: Include infinity.h.
7075         (test_function): Use Infinityd, Infinityl.
7076         * tests/test-truncf1.c: Include infinity.h.
7077         (main): Use Infinityf.
7078         * tests/test-trunc1.c: Include infinity.h.
7079         (main): Use Infinityd.
7080         * tests/test-truncl.c: Include infinity.h.
7081         (main): Use Infinityl.
7082         * tests/test-vasnprintf-posix.c: Include infinity.h.
7083         (test_function): Use Infinityd, Infinityl.
7084         * tests/test-vasprintf-posix.c: Include infinity.h.
7085         (test_function): Use Infinityd, Infinityl.
7086         * modules/ceilf-tests (Files): Add tests/infinity.h.
7087         * modules/ceil-tests (Files): Likewise.
7088         * modules/ceill-tests (Files): Likewise.
7089         * modules/dprintf-posix-tests (Files): Likewise.
7090         * modules/floorf-tests (Files): Likewise.
7091         * modules/floor-tests (Files): Likewise.
7092         * modules/floorl-tests (Files): Likewise.
7093         * modules/fprintf-posix-tests (Files): Likewise.
7094         * modules/frexp-tests (Files): Likewise.
7095         * modules/frexp-nolibm-tests (Files): Likewise.
7096         * modules/frexpl-tests (Files): Likewise.
7097         * modules/frexpl-nolibm-tests (Files): Likewise.
7098         * modules/isfinite-tests (Files): Likewise.
7099         * modules/isinf-tests (Files): Likewise.
7100         * modules/isnan-tests (Files): Likewise.
7101         * modules/isnanf-tests (Files): Likewise.
7102         * modules/isnanf-nolibm-tests (Files): Likewise.
7103         * modules/isnand-tests (Files): Likewise.
7104         * modules/isnand-nolibm-tests (Files): Likewise.
7105         * modules/isnanl-tests (Files): Likewise.
7106         * modules/isnanl-nolibm-tests (Files): Likewise.
7107         * modules/ldexpl-tests (Files): Likewise.
7108         * modules/printf-posix-tests (Files): Likewise.
7109         * modules/roundf-tests (Files): Likewise.
7110         * modules/round-tests (Files): Likewise.
7111         * modules/roundl-tests (Files): Likewise.
7112         * modules/signbit-tests (Files): Likewise.
7113         * modules/snprintf-posix-tests (Files): Likewise.
7114         * modules/sprintf-posix-tests (Files): Likewise.
7115         * modules/truncf-tests (Files): Likewise.
7116         * modules/trunc-tests (Files): Likewise.
7117         * modules/truncl-tests (Files): Likewise.
7118         * modules/vasnprintf-posix-tests (Files): Likewise.
7119         * modules/vasprintf-posix-tests (Files): Likewise.
7120         * modules/vdprintf-posix-tests (Files): Likewise.
7121         * modules/vfprintf-posix-tests (Files): Likewise.
7122         * modules/vprintf-posix-tests (Files): Likewise.
7123         * modules/vsnprintf-posix-tests (Files): Likewise.
7124         * modules/vsprintf-posix-tests (Files): Likewise.
7125         * modules/xprintf-posix-tests (Files): Likewise.
7126
7127 2011-09-11  Bruno Haible  <bruno@clisp.org>
7128
7129         Ensure pid_t gets defined.
7130         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
7131         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
7132         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
7133         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7134         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
7135         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
7136         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
7137         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7138         * tests/test-fcntl-h.c: Check that pid_t is defined.
7139         * tests/test-sched.c: Likewise.
7140         * tests/test-termios.c: Likewise.
7141         * tests/test-time.c: Likewise.
7142         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
7143         * doc/posix-headers/signal.texi: Likewise.
7144         * doc/posix-headers/sys_types.texi: Likewise.
7145         * doc/posix-headers/time.texi: Likewise.
7146
7147 2011-09-11  Bruno Haible  <bruno@clisp.org>
7148
7149         acl: Fix compilation on Solaris 10 (older version).
7150         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
7151         of ACE_EVERYONE.
7152         * lib/set-mode-acl.c (qset_acl): Likewise.
7153         Reported by Christian Jullien <eligis@orange.fr>.
7154
7155 2011-09-10  Bruno Haible  <bruno@clisp.org>
7156
7157         iconv, unsetenv: Add support for MSVC compiler.
7158         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
7159         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
7160
7161 2011-09-10  Bruno Haible  <bruno@clisp.org>
7162
7163         *printf: Add support for MSVC compiler.
7164         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
7165         handles the exception caused by the %n directive. When cross-compiling,
7166         guess no on native Windows.
7167         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
7168         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
7169         emulate it through vsnprintf.
7170         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
7171         * doc/posix-functions/dprintf.texi: Update documentation regarding
7172         MSVC 9.
7173         * doc/posix-functions/fprintf.texi: Likewise.
7174         * doc/posix-functions/printf.texi: Likewise.
7175         * doc/posix-functions/snprintf.texi: Likewise.
7176         * doc/posix-functions/sprintf.texi: Likewise.
7177         * doc/posix-functions/swprintf.texi: Likewise.
7178         * doc/posix-functions/vdprintf.texi: Likewise.
7179         * doc/posix-functions/vfprintf.texi: Likewise.
7180         * doc/posix-functions/vprintf.texi: Likewise.
7181         * doc/posix-functions/vsnprintf.texi: Likewise.
7182         * doc/posix-functions/vsprintf.texi: Likewise.
7183         * doc/glibc-functions/asprintf.texi: Likewise.
7184         * doc/glibc-functions/obstack_printf.texi: Likewise.
7185         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
7186         * doc/glibc-functions/vasprintf.texi: Likewise.
7187
7188 2011-09-10  Bruno Haible  <bruno@clisp.org>
7189
7190         nocrash: Add support for native Windows.
7191         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
7192
7193 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
7194             Bruno Haible  <bruno@clisp.org>
7195
7196         absolute-header, include-next: Add support for MSVC compiler.
7197         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
7198         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
7199         directory separator in #line directives.
7200         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
7201         recognize also backslash as directory separator in #line directives.
7202
7203 2011-09-08  Jim Meyering  <meyering@redhat.com>
7204
7205         maint.mk: mark the post-release commit log with "maint: " prefix
7206         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
7207         one-line commit-log summary.
7208
7209 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
7210             Bruno Haible  <bruno@clisp.org>
7211
7212         Doc about crypt functions.
7213         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
7214         systems.
7215         * doc/posix-functions/encrypt.texi: Likewise.
7216         * doc/posix-functions/setkey.texi: Likewise.
7217
7218 2011-09-08  Simon Josefsson  <simon@josefsson.org>
7219
7220         * lib/gc.h: Fix copyright header.
7221
7222 2011-09-07  Bruno Haible  <bruno@clisp.org>
7223
7224         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
7225         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
7226         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
7227
7228 2011-09-07  Bruno Haible  <bruno@clisp.org>
7229
7230         openat: Work around compilation error with OSF/1 5.1 DTK cc.
7231         * lib/fopen.c: Use different syntax for include of <stdio.h>.
7232         * lib/freopen.c: Likewise.
7233         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
7234         * lib/lstat.c: Likewise.
7235         * lib/stat.c: Likewise.
7236         * lib/open.c: Use different syntax for include of <fcntl.h>.
7237         * lib/openat.c: Include fcntl.h again, explicitly.
7238
7239 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
7240
7241         parse-datetime: document the newly accepted format
7242         * doc/parse-datetime.texi (Combined date and time of day items):
7243         New section.
7244
7245 2011-09-06  Bruno Haible  <bruno@clisp.org>
7246
7247         acl: Fix a test failure on newer Solaris 10 with ZFS.
7248         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
7249         ENOSYS as no ACL.
7250         Reported by Jim Meyering.
7251
7252 2011-09-06  Bruno Haible  <bruno@clisp.org>
7253
7254         acl: Update for AIX >= 5.3 with NFS.
7255         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
7256         ENOSYS as no ACL.
7257
7258         acl: Fix a test failure on AIX >= 5.3 with NFS.
7259         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
7260         as no ACL.
7261
7262 2011-09-06  Bruno Haible  <bruno@clisp.org>
7263
7264         acl: Fix a test failure on IRIX 6.5 with NFS.
7265         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
7266         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
7267         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
7268         * lib/copy-acl.c (qcopy_acl): Likewise.
7269
7270 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
7271
7272         openat: port to AIX 7.1 with large files
7273         AIX 7.1 does a "#define openat open64at" if large files are in use,
7274         so we can't simply #undef openat.  Use the orig_openat trick (similar
7275         to orig_open in lib/open.c) to work around the problem.  Problem
7276         reported by Kevin Brott for GNU tar, in the thread containing
7277         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
7278         * lib/openat.c (__need_system_fcntl_h): Define first.
7279         Include <fcntl.h> and <sys/types.h> before undefining.
7280         (orig_openat) [HAVE_OPENAT]: New inline function.
7281         (openat) [HAVE_OPENAT]: Do not undef.
7282         (rpl_openat): Use orig_openat, not openat.
7283
7284 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
7285             Bruno Haible  <bruno@clisp.org>
7286
7287         acl: Avoid errors on NonStop Kernel.
7288         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
7289         ENOTSUP errors.
7290
7291 2011-09-05  Bruno Haible  <bruno@clisp.org>
7292
7293         acl: Clean up Solaris code.
7294         * lib/acl-internal.h: Remove no-op #if.
7295         * lib/file-has-acl.c: Likewise.
7296         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
7297         * lib/copy-acl.c (qcopy_acl): Likewise.
7298
7299 2011-09-05  Bruno Haible  <bruno@clisp.org>
7300
7301         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
7302         binaries built on the original Solaris 10.
7303         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
7304         trivial.
7305
7306 2011-09-05  Bruno Haible  <bruno@clisp.org>
7307
7308         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
7309         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
7310         10.
7311         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
7312         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
7313         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
7314         instead of acl_get, facl_get, acl_set, facl_set.
7315
7316 2011-09-05  Bruno Haible  <bruno@clisp.org>
7317
7318         copy-file: Try unit tests on more file systems.
7319         * tests/test-copy-file-1.sh: New file.
7320         * tests/test-copy-file-2.sh: New file.
7321         * modules/copy-file-tests (Files): Add them.
7322         (Makefile.am): Add them to TESTS.
7323
7324         acl: Try unit tests on more file systems.
7325         * tests/test-file-has-acl-1.sh: New file.
7326         * tests/test-file-has-acl-2.sh: New file.
7327         * tests/test-set-mode-acl-1.sh: New file.
7328         * tests/test-set-mode-acl-2.sh: New file.
7329         * tests/test-copy-acl-1.sh: New file.
7330         * tests/test-copy-acl-2.sh: New file.
7331         * modules/acl-tests (Files): Add them.
7332         (Makefile.am): Add them to TESTS.
7333
7334 2011-09-04  Bruno Haible  <bruno@clisp.org>
7335
7336         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
7337         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
7338         10.
7339         (OLD_ALLOW, OLD_DENY): New macros.
7340         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
7341         ACE_ACCESS_ALLOWED_ACE_TYPE.
7342         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
7343         ACE_ACCESS_DENIED_ACE_TYPE.
7344         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
7345         (NEW_ACE_EXECUTE): Fix value.
7346         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
7347         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
7348         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
7349         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
7350         NEW_ACE_SYNCHRONIZE): New macros.
7351         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
7352         instead of acl_fromtext, acl_set, facl_set.
7353         Fixes a coreutils/tests/cp/perm failure.
7354
7355 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
7356
7357         openat: test for fstatat (..., 0) bug
7358         Further testing with tar suggests that fstatat (..., 0)
7359         does not work in general, on AIX 7.1; see
7360         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
7361         So, give up entirely on AIX 7.1's fstatat, and fall back on our
7362         replacement fstatat (which is what older AIX releases were using
7363         anyway).
7364         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
7365         use is now changed to orig_fstatat.  This was probably the right
7366         thing to do anyway.
7367         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
7368         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
7369         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
7370         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
7371         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
7372         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
7373         if the bug is found.
7374
7375         openat: test for fstatat (AT_FDCWD, ..., 0) bug
7376         This tests for another fstatat bug on AIX 7.1:
7377         fstatat (AT_FDCWD, ..., 0) does not work.  See
7378         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
7379         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
7380         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
7381         (rpl_fstatat): Adjust so that it works around either (or both)
7382         bugs if present.
7383         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
7384
7385 2011-09-03  Karl Berry  <karl@gnu.org>
7386
7387         * doc/regex.texi (Character Class Operators): Avoid literal ":"
7388         in index entries.
7389
7390 2011-09-02  Bruno Haible  <bruno@clisp.org>
7391
7392         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
7393         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
7394         values of AR, ARFLAGS, RANLIB.
7395         Reported by John W. Eaton <jwe@gnu.org> for Octave.
7396
7397 2011-09-02  Bruno Haible  <bruno@clisp.org>
7398
7399         Find 'ar' program that fits with --host argument.
7400         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
7401
7402 2011-09-02  Bruno Haible  <bruno@clisp.org>
7403
7404         tests: init.sh: Support any non-GNU diff.
7405         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
7406         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
7407         Solaris 8.
7408
7409 2011-09-02  Bruno Haible  <bruno@clisp.org>
7410
7411         tests: init.sh: work also with any non-GNU diff that supports -u
7412         * tests/init.sh: Relax check for diff -u support.
7413         Rather than checking for GNU diff via --version, simply check
7414         for support for -u itself.  Useful at least on OpenBSD 4.9,
7415         AIX 7.1, IRIX 6.5, and Solaris 10.
7416
7417 2011-09-01  Bruno Haible  <bruno@clisp.org>
7418
7419         strtoimax, strtoumax: Document problem on HP-UX 11.
7420         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
7421         * doc/posix-functions/strtoumax.texi: Likewise.
7422
7423 2011-09-01  Bruno Haible  <bruno@clisp.org>
7424
7425         strtoumax: Avoid link error on OSF/1 with DTK cc.
7426         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
7427         defined as a function.
7428         * modules/strtoumax (Depends-on, configure.ac): Test only whether
7429         strtoumax is defined, not whether it is declared.
7430
7431 2011-09-01  Bruno Haible  <bruno@clisp.org>
7432
7433         strtoimax: Avoid link error on OSF/1 with DTK cc.
7434         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
7435         defined as a function.
7436         * modules/strtoimax (Depends-on, configure.ac): Test only whether
7437         strtoimax is defined, not whether it is declared.
7438
7439 2011-09-01  Bruno Haible  <bruno@clisp.org>
7440
7441         imaxdiv: Avoid link error on OSF/1 with DTK cc.
7442         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
7443         as a function.
7444         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
7445         whether it is declared.
7446
7447 2011-09-01  Bruno Haible  <bruno@clisp.org>
7448
7449         imaxabs: Avoid link error on OSF/1 with DTK cc.
7450         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
7451         as a function.
7452         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
7453         whether it is declared.
7454
7455 2011-09-01  Bruno Haible  <bruno@clisp.org>
7456
7457         Tests for module 'strtoumax'.
7458         * modules/strtoumax-tests: New file.
7459         * tests/test-strtoumax.c: New file.
7460
7461         Tests for module 'strtoimax'.
7462         * modules/strtoimax-tests: New file.
7463         * tests/test-strtoimax.c: New file.
7464
7465         Tests for module 'imaxdiv'.
7466         * modules/imaxdiv-tests: New file.
7467         * tests/test-imaxdiv.c: New file.
7468
7469         Tests for module 'imaxabs'.
7470         * modules/imaxabs-tests: New file.
7471         * tests/test-imaxabs.c: New file.
7472
7473 2011-09-01  Bruno Haible  <bruno@clisp.org>
7474
7475         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
7476         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
7477         pthread_create.
7478
7479 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
7480
7481         openat: work around AIX 7.1 fstatat issue
7482         This should fix the problem that was not properly fixed
7483         in the previous change, dated 2011-08-30.
7484         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
7485         __need_system_stat_h defined.
7486         (orig_fstatat) [HAVE_FSTATAT]: New function.
7487         (rpl_fstatat): Go back to the old way of doing things,
7488         except call orig_fstatat instead of fstatat.
7489         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
7490         Remove unnecessary check whether fstatat fills in st_size etc.
7491
7492 2011-09-01  Bruno Haible  <bruno@clisp.org>
7493
7494         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
7495         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
7496         just include the system's header.
7497
7498 2011-08-31  Jim Meyering  <meyering@redhat.com>
7499
7500         tests: avoid spurious assertion failure in test-float.c on ppc64
7501         * tests/test-float.c (test_long_double): Comment out an assertion,
7502         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
7503         with gcc-4.4.4.
7504
7505         maint: indent with spaces, not TABs
7506         I need to get in the habit of running gnulib's "make check".
7507         Both of these would have been caught.
7508         * m4/largefile.m4: Indent with spaces, not TABs.
7509         * lib/parse-datetime.y (iso_8601_time): Likewise.
7510         Spotted by Pádraig Brady.
7511
7512         test-parse-datetime.c: accommodate a relatively strict gcc warning
7513         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
7514         to avoid a warning from gcc's -Werror=missing-declarations.
7515         Insert a few spaces-before-funcall-parenthesis.
7516
7517 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
7518
7519         parse-datetime: accept ISO 8601 date and time rep with "T" separator
7520         The parser now accepts ISO 8601 date-time strings with "T" as the
7521         separator.  It has long parsed dates like "2004-02-29 16:21:42"
7522         with a space between the date and time strings.  Now it also parses
7523         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
7524         variants like "2004-02-29T16:21:42.333-07:00"
7525         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
7526         of day representation using the 'T' separator character.
7527         * doc/parse-datetime.texi (General date syntax): replace use of
7528         deprecated --iso-8601 option with --rfc-3339 in example of date
7529         command output formats that can be parsed.
7530         * tests/test-parse-datetime.c (tm_diff): New function, taken from
7531         lib/parse-datetime.y.
7532         (gmt_offset): New function.
7533         (main): Add additional test cases to validate ISO8601 extended
7534         date and time of day parsing.
7535
7536 2011-08-31  Bruno Haible  <bruno@clisp.org>
7537
7538         freopen: Documentation.
7539         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
7540         name.
7541         Reported by Claudio Bley <claudio.bley@gmail.com>.
7542
7543 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
7544
7545         freopen: Don't crash if the filename argument is NULL.
7546         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
7547         NULL.
7548
7549 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
7550
7551         openat: work around AIX 7.1 fstatat bug
7552         Problem reported by Kevin Brott for GNU tar, in the thread containing
7553         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
7554         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
7555         FSTATAT_ST_SIZE_ETC_BROKEN.
7556         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
7557         rpl_fstatat.
7558         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
7559         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
7560         AC_CHECK_FUNCS_ONCE for fstatat.
7561         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
7562         fchmodat, mkdirat, openat and unlinkat.
7563
7564 2011-08-30  Bruno Haible  <bruno@clisp.org>
7565
7566         Avoid endless recursions if config.h includes some header files.
7567         * lib/fopen.c (__need_FILE): Define already before including config.h.
7568         * lib/freopen.c (__need_FILE): Likewise.
7569         * lib/open.c (__need_system_fcntl_h): Likewise.
7570         * lib/stat.c (__need_system_sys_stat_h): Likewise.
7571         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
7572         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7573
7574 2011-08-25  Karl Berry  <karl@gnu.org>
7575
7576         * config/srclist.txt (ylwrap): new try.
7577         * build-aux/ylwrap: new file.
7578
7579 2011-08-23  Bruno Haible  <bruno@clisp.org>
7580
7581         tmpdir: Use a good default directory on native Windows.
7582         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
7583         (P_tmpdir): Default to _P_tmpdir on native Windows.
7584         (path_search): On native Windows, try the value returned by GetTempPath
7585         before trying P_tmpdir.
7586         * modules/tmpdir (Depends-on): Add pathmax.
7587         Suggested by John Darrington <john@darrington.wattle.id.au>.
7588
7589 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
7590
7591         doc: fix typo in README-release
7592         * top/README-release: Capitalize first word of a sentence.
7593
7594 2011-08-19  Jim Meyering  <meyering@redhat.com>
7595
7596         fts: do not exhaust memory when processing million-entry directories
7597         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
7598         directory would require about 256*N bytes of memory.  Thus, it was
7599         easy to construct a directory too large to be processed by any of
7600         those tools.  With this change, fts' maximum memory utilization is
7601         now limited to around 30MB.
7602         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
7603         (fts_read): When we've processed the final entry (i.e., when
7604         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
7605         using the parent entry to read any remaining entries.  Dispatch
7606         depending on what fts_build returns:
7607         - NULL+stop, aka failure: stop
7608         - NULL otherwise: move up in the dir hierarchy
7609         - non-NULL: handle this new entry
7610         (fts_build): Declare and use new local, continue_readdir.
7611         Prepare to be called from fts_read, when the entries
7612         from a partially-read directory have just been exhausted.
7613         In that case, we'll skip the opendir and instead use the parent's
7614         fts_dirp and derive dir_fd from that.
7615         Finally, in the readdir loop, if we read max_entries entries,
7616         exit the loop ensuring *not* to call closedir.  This is required
7617         so that fts_dirp can be reused on a subsequent call.
7618         Prompted by Ben England's report of memory exhaustion in find
7619         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
7620
7621         maint: fts: move decl of `dp' down into while loop; split a long line
7622         * lib/fts.c (fts_build): No semantic change.
7623
7624         fts: add/use new struct member, fts_dirp
7625         We are about to use this to manage any directory with
7626         too many entries to read all of them into memory at once.
7627         To do that, we'll need to save the DIR* pointer in each
7628         affected FTSENT struct.
7629         * lib/fts_.h: Include <dirent.h>.
7630         (struct FTSENT) [fts_dirp]: New member.
7631         * lib/fts.c (closedir_and_clear): Define.
7632         Use it in place of closedir so that we are sure to
7633         clear the new fts_dirp member when done with it.
7634         (fts_alloc): Initialize the new member.
7635         (fts_lfree): Free, if needed.
7636
7637         maint: fts: give __opendir2 a new parameter and rename
7638         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
7639         than surreptitiously using sole caller's "dir_fd".
7640         (fts_opendir): Rename from __opendir2.
7641
7642         maint: fts.c: remove __opendir2's now-unused parameter, oflag
7643         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
7644
7645         maint: fts.c: correct off-by-one indentation
7646         * lib/fts.c (fts_build): Correct indentation, change style
7647         of a couple of block comments, and bracing style.
7648
7649         maint: fts.c: move __opendir2 #define "up" out of function body
7650         * lib/fts.c (__opendir2): Move "up".  No semantic change.
7651
7652         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
7653         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
7654         out for a long time and besides was useful only on BSD systems.
7655
7656 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
7657
7658         regex: port to Stratus OpenVOS
7659         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
7660         define to empty, rather than attempting nonportable optimizations.
7661         Problem reported by Paul Green in:
7662         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
7663         and fix suggested by Eric Blake in:
7664         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
7665
7666 2011-08-17  Eric Blake  <eblake@redhat.com>
7667
7668         getcwd: fix test failures on mingw
7669         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
7670         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
7671         test if long directory cannot be created, and allow mingw errno.
7672
7673         getcwd-lgpl: fix m4 to match relaxed test for BSD
7674         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
7675         (gl_FUNC_GETCWD_SIGNATURE): New macro.
7676         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
7677         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
7678         signature problem.
7679
7680         getcwd: fix compilation on mingw64
7681         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
7682         getcwd.
7683         Reported by Marc-André Lureau.
7684
7685         pipe2: silence compiler warning
7686         * lib/pipe2.c (pipe2): Hide label if it is not used.
7687
7688 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
7689
7690         relocatable-prog: fix link error
7691         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
7692         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
7693         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
7694         into modules/relocatable-lib without noticing that
7695         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
7696         also needs to build relocatable.c.
7697
7698 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
7699
7700         getaddrinfo: fix sh typo in gai_strerrorA decl checking
7701         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
7702         shell code: it contained a 'break' that was not in a loop.
7703         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
7704         via a shell-language loop; this may have been true in old Autoconf
7705         versions, but it's not true in Autoconf 2.68.  I found this bug
7706         when testing coreutils git on Solaris 8, whose shell complains
7707         about the syntax error.
7708
7709 2011-08-12  Simon Josefsson  <simon@josefsson.org>
7710
7711         * lib/base64.c: Fix comment to reference RFC 4648.
7712         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
7713         <gvtulder@gmail.com>.
7714
7715 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
7716
7717         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
7718
7719         po/Makefile.in.in: fix make -q problem
7720         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
7721         rule, since there's no file named 'check-macro-version' and its
7722         use as a file breaks make -q.
7723         (all): Don't depend on check-macro-version.
7724         (CHECK_MACRO_VERSION): New macro.
7725         (stamp-po): Use it.
7726
7727         configmake: fix make -q problem
7728         * modules/configmake (configmake.h): Update configmake.h's time stamp
7729         even if the file does not change.  Otherwise, 'make -q' fails.
7730         Problem reported by Simon Josefsson in
7731         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
7732
7733 2011-08-11  Jim Meyering  <meyering@redhat.com>
7734
7735         git-version-gen: correct the advice in a comment
7736         * build-aux/git-version-gen: Correct comment.
7737         Don't recommend to list .tarball-version in .gitignore.
7738
7739 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
7740
7741         base64: fix off-by-one buffer size bug
7742         Problem and (trivial) fix reported by Gijs van Tulder in
7743         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
7744         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
7745         * tests/test-base64.c (main): Catch the bug.
7746
7747 2011-08-10  Eric Blake  <eblake@redhat.com>
7748
7749         closein: correct comments
7750         * lib/closein.c (close_stdin): Improve comments.
7751
7752 2011-08-09  Bruno Haible  <bruno@clisp.org>
7753
7754         More tests for 'fseeko'.
7755         * tests/test-fseeko3.c: New file, from Eric Blake.
7756         * tests/test-fseeko3.sh: New file.
7757         * modules/fseeko-tests (Files): Add them.
7758         (TESTS): Add test-fseeko3.sh.
7759         (check_PROGRAMS): Add test-fseeko3.
7760
7761 2011-08-09  Eric Blake  <eblake@redhat.com>
7762
7763         fseeko: remove unneeded hack
7764         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
7765
7766         fseeko: fix bug on glibc
7767         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
7768         Reported by John W. Eaton.
7769
7770 2011-08-08  Bruno Haible  <bruno@clisp.org>
7771
7772         unictype/base: Fix interoperability with preinstalled libunistring.
7773         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
7774         Reported by Simon Josefsson.
7775
7776 2011-08-08  Bruno Haible  <bruno@clisp.org>
7777
7778         iswblank: Detect declaration correctly.
7779         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
7780         AC_CHECK_DECLS invocation.
7781
7782 2011-08-08  Bruno Haible  <bruno@clisp.org>
7783
7784         tcgetsid: Detect declaration correctly.
7785         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
7786         AC_CHECK_DECLS invocation.
7787         Reported by Simon Josefsson.
7788
7789 2011-08-08  Eric Blake  <eblake@redhat.com>
7790
7791         largefile: fix typo that regressed large file support
7792         * modules/largefile (configure.ac-early): Fix section name.
7793
7794 2011-08-06  Karl Berry  <karl@gnu.org>
7795
7796         * MODULES.html.sh (func_all_files): _Noreturn is no longer
7797         a separate module.
7798
7799 2011-08-05  Simon Josefsson  <simon@josefsson.org>
7800
7801         openat: Fix warnings and commens when building unlinkat.c on Hurd.
7802         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
7803         get prototype for free.
7804
7805 2011-08-04  Bruno Haible  <bruno@clisp.org>
7806
7807         Tests for module 'pathmax'.
7808         * modules/pathmax-tests: New file.
7809         * tests/test-pathmax.c: New file.
7810
7811         canonicalize-lgpl: Support larger filenames on the Hurd.
7812         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
7813         Reported by Paul Eggert.
7814
7815         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
7816         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
7817         * lib/chdir-long.h: Include pathmax.h.
7818         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
7819         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
7820         (PATH_MAX): Remove code that is done by pathmax.h.
7821         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
7822         * lib/tmpfile.c: Add a comment.
7823         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
7824         * modules/chdir-long (Depends-on): Add pathmax.
7825         * modules/getcwd (Depends-on): Add pathmax.
7826         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
7827         is not defined.
7828         * doc/posix-headers/limits.texi: Mention the pathmax module.
7829         * NEWS: Mention the change.
7830
7831 2011-08-02  Bruno Haible  <bruno@clisp.org>
7832
7833         pthread_sigmask: Actually use results of gl_THREADLIB.
7834         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
7835         gl_THREADLIB, not gl_[]THREADLIB.
7836         Reported by Eric Blake.
7837
7838 2011-08-02  Jim Meyering  <meyering@redhat.com>
7839
7840         maint.mk: relax the default _gl_TS_function_match regexp
7841         * top/maint.mk (_gl_TS_function_match): Don't require at least one
7842         space between function name and "(" in an "extern" declaration.
7843         That would fail to match a decl with no space there: extern void foo();
7844
7845 2011-07-31  Iain Nicol  <iain@thenicols.net>
7846
7847         git-version-gen: document that EXTRA_DIST must include .version
7848         * build-aux/git-version-gen: In the how-to-use comment, document
7849         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
7850         will fail when run from an unpacked distribution tarball.
7851
7852 2011-08-01  Bruno Haible  <bruno@clisp.org>
7853
7854         wctype-h: Fix last change.
7855         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
7856         REPLACE_TOWLOWER to 0.
7857         Reported by Sam Steingold <sds@gnu.org>.
7858
7859 2011-07-31  Bruno Haible  <bruno@clisp.org>
7860
7861         frexpl: Update autoconf test.
7862         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
7863         according to changes of 2011-06-20.
7864
7865 2011-07-31  Bruno Haible  <bruno@clisp.org>
7866
7867         sys_utsname: Add support for Minix.
7868         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
7869         <sys/utsname.h>.
7870         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
7871         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
7872
7873 2011-07-31  Bruno Haible  <bruno@clisp.org>
7874
7875         strings: Add support for Minix.
7876         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
7877         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
7878         * doc/posix-headers/strings.texi: Document the Minix problem.
7879
7880 2011-07-31  Bruno Haible  <bruno@clisp.org>
7881
7882         wctype-h: Add support for Minix.
7883         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
7884         REPLACE_TOWLOWER.
7885         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
7886         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
7887         REPLACE_ISWCNTRL.
7888
7889 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
7890
7891         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
7892         This is a performance improvement for 64-bit hosts: it causes the
7893         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
7894
7895 2011-07-31  Bruno Haible  <bruno@clisp.org>
7896
7897         stdioext: Add support for Minix.
7898         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
7899         * lib/fpurge.c (fpurge): Likewise.
7900         * lib/freadahead.c (freadahead): Likewise.
7901         * lib/freadable.c (freadable): Likewise.
7902         * lib/freading.c (freading): Likewise.
7903         * lib/freadptr.c (freadptr): Likewise.
7904         * lib/freadseek.c (freadptrinc): Likewise.
7905         * lib/fseeko.c (rpl_fseeko): Likewise.
7906         * lib/fseterr.c (fseterr): Likewise.
7907         * lib/fwritable.c (fwritable): Likewise.
7908         * lib/fwriting.c (fwriting): Likewise.
7909         * lib/fflush.c (clear_ungetc_buffer): Update comment.
7910         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
7911
7912 2011-07-31  Bruno Haible  <bruno@clisp.org>
7913
7914         errno: Port to Minix.
7915         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
7916         ECONNABORTED are defined.
7917         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
7918         GNULIB_defined_ECONNABORTED): New macros.
7919         * lib/strerror-override.h (strerror_override): Test also
7920         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
7921         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
7922         ECONNABORTED.
7923         * doc/posix-headers/errno.texi: Mention the Minix problem.
7924
7925 2011-07-31  Bruno Haible  <bruno@clisp.org>
7926
7927         Work around declaration collisions on Minix.
7928         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
7929         defined, set REPLACE_MBSINIT.
7930         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
7931         defined, set REPLACE_MBRTOWC.
7932         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
7933         set REPLACE_MBRLEN.
7934         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
7935         defined, set REPLACE_MBSRTOWCS.
7936         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
7937         defined, set REPLACE_WCRTOMB.
7938         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
7939         defined, set REPLACE_WCSRTOMBS.
7940
7941 2011-07-31  Bruno Haible  <bruno@clisp.org>
7942
7943         Add support for Minix with ACK compiler.
7944         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
7945         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
7946         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
7947
7948 2011-07-31  Bruno Haible  <bruno@clisp.org>
7949
7950         Documentation about Minix.
7951         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
7952         * doc/glibc-headers/*.texi: Likewise.
7953         * doc/posix-functions/*.texi: Likewise.
7954         * doc/glibc-functions/*.texi: Likewise.
7955
7956 2011-07-31  Bruno Haible  <bruno@clisp.org>
7957
7958         snippet/warn-on-use: Fix indentation.
7959         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
7960
7961 2011-07-25  Jim Meyering  <meyering@redhat.com>
7962
7963         tests: test-update-copyright.sh: remove unnecessary "rm" commands
7964         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
7965         commands.
7966
7967 2011-07-27  Jim Meyering  <meyering@redhat.com>
7968
7969         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
7970         * top/maint.mk (gl_extract_significant_defines_): Now that
7971         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
7972         gnulib/lib/signal.in.h, and now that we recommend to
7973         define-if-undefined those two symbols in application code,
7974         we must filter them out of the "significant" list.
7975         This avoids a "make syntax-check" failure in coreutils.
7976
7977 2011-07-26  Eric Blake  <eblake@redhat.com>
7978
7979         warnings: add comments about previous patch
7980         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
7981         * m4/include_next.m4: Likewise.
7982         * m4/warn-on-use.m4: Likewise.
7983         * m4/warnings.m4: Likewise, and simplify use.
7984         Suggested by Stefano Lattarini.
7985
7986         include-next, warnings: support older autoconf
7987         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
7988         AS_VAR_PUSHDEF in a way that works with older autoconf.
7989         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
7990         Reported by Daniel P. Berrange.
7991
7992 2011-07-25  Bruno Haible  <bruno@clisp.org>
7993
7994         fseek, ftell: Fix doc.
7995         * doc/posix-functions/fseek.texi: Reword statement about
7996         AC_SYS_LARGEFILE.
7997         * doc/posix-functions/ftell.texi: Likewise.
7998
7999 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
8000             Bruno Haible  <bruno@clisp.org>
8001
8002         Add dependencies to the 'largefile' module.
8003         * modules/fopen (Depends-on): Add 'largefile'.
8004         * modules/freopen (Depends-on): Likewise.
8005         * modules/fseeko (Depends-on): Likewise.
8006         * modules/ftello (Depends-on): Likewise.
8007         * modules/glob (Depends-on): Likewise.
8008         * modules/lseek (Depends-on): Likewise.
8009         * modules/lstat (Depends-on): Likewise.
8010         * modules/mkostemp (Depends-on): Likewise.
8011         * modules/mkostemps (Depends-on): Likewise.
8012         * modules/mkstemp (Depends-on): Likewise.
8013         * modules/mkstemps (Depends-on): Likewise.
8014         * modules/open (Depends-on): Likewise.
8015         * modules/openat (Depends-on): Likewise.
8016         * modules/pread (Depends-on): Likewise.
8017         * modules/pwrite (Depends-on): Likewise.
8018         * modules/scandir (Depends-on): Likewise.
8019         * modules/stat (Depends-on): Likewise.
8020         * modules/tmpfile (Depends-on): Likewise.
8021         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
8022         since the containing module now depends on the largefile module.
8023         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
8024         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
8025         off_t is fixed by gnulib.
8026         * doc/posix-functions/freopen.texi: Likewise.
8027         * doc/posix-functions/fseeko.texi: Likewise.
8028         * doc/posix-functions/fstatat.texi: Likewise.
8029         * doc/posix-functions/ftello.texi: Likewise.
8030         * doc/posix-functions/glob.texi: Likewise.
8031         * doc/posix-functions/lseek.texi: Likewise.
8032         * doc/posix-functions/lstat.texi: Likewise.
8033         * doc/posix-functions/mkstemp.texi: Likewise.
8034         * doc/posix-functions/open.texi: Likewise.
8035         * doc/posix-functions/openat.texi: Likewise.
8036         * doc/posix-functions/pread.texi: Likewise.
8037         * doc/posix-functions/pwrite.texi: Likewise.
8038         * doc/posix-functions/scandir.texi: Likewise.
8039         * doc/posix-functions/stat.texi: Likewise.
8040         * doc/posix-functions/tmpfile.texi: Likewise.
8041         * doc/glibc-functions/mkostemp.texi: Likewise.
8042         * doc/glibc-functions/mkostemps.texi: Likewise.
8043         * doc/glibc-functions/mkstemps.texi: Likewise.
8044
8045 2011-07-25  Bruno Haible  <bruno@clisp.org>
8046
8047         fcntl: Move AC_LIBOBJ invocation to module description.
8048         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
8049         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
8050
8051         fcntl: Remove call-in from fchdir.m4.
8052         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
8053         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
8054
8055         dup3: Remove potential call-in from fchdir.m4.
8056         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
8057         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
8058
8059         dup2: Move AC_LIBOBJ invocation to module description.
8060         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
8061         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
8062         Don't invoke AC_LIBOBJ.
8063         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
8064
8065         dup2: Remove call-in from fchdir.m4.
8066         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
8067         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
8068
8069         fclose: Move AC_LIBOBJ invocation to module description.
8070         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
8071         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
8072         to 1.
8073         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
8074
8075         fclose: Remove call-in from close.m4.
8076         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
8077         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
8078
8079         close: Move AC_LIBOBJ invocation to module description.
8080         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
8081         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
8082         1.
8083         * modules/close (configure.ac): Invoke AC_LIBOBJ.
8084
8085         close: Remove call-in from fchdir.m4.
8086         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
8087         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
8088
8089         open: Move AC_LIBOBJ invocation to module description.
8090         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
8091         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
8092         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
8093
8094         open: Remove call-in from fchdir.m4.
8095         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
8096         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
8097
8098         fchdir: Start to remove gl_REPLACE_* idiom.
8099         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
8100         (gl_FUNC_FCHDIR): Invoke it.
8101
8102 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
8103
8104         * lib/ftell.c (ftell): Comment out cast.
8105
8106         close: use gl_REPLACE_FCLOSE only if defined
8107         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
8108         is defined.  The close module doesn't depend on the fclose module
8109         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
8110         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
8111         I reproduced the problem with "./gnulib-tool --test close sys_socket".
8112
8113 2011-07-24  Jim Meyering  <meyering@redhat.com>
8114
8115         test-select.h: avoid warning when using gcc's -Wmissing-declarations
8116         * tests/test-select.h (test_function): Declare as "static".
8117
8118 2011-07-24  Bruno Haible  <bruno@clisp.org>
8119
8120         doc: Mention the effects of AC_SYS_LARGEFILE.
8121         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
8122         on this function.
8123         * doc/posix-functions/aio_error.texi: Likewise.
8124         * doc/posix-functions/aio_fsync.texi: Likewise.
8125         * doc/posix-functions/aio_read.texi: Likewise.
8126         * doc/posix-functions/aio_return.texi: Likewise.
8127         * doc/posix-functions/aio_suspend.texi: Likewise.
8128         * doc/posix-functions/aio_write.texi: Likewise.
8129         * doc/posix-functions/fgetpos.texi: Likewise.
8130         * doc/posix-functions/fopen.texi: Likewise.
8131         * doc/posix-functions/freopen.texi: Likewise.
8132         * doc/posix-functions/fsetpos.texi: Likewise.
8133         * doc/posix-functions/fstatvfs.texi: Likewise.
8134         * doc/posix-functions/ftruncate.texi: Likewise.
8135         * doc/posix-functions/ftw.texi: Likewise.
8136         * doc/posix-functions/getrlimit.texi: Likewise.
8137         * doc/posix-functions/glob.texi: Likewise.
8138         * doc/posix-functions/lio_listio.texi: Likewise.
8139         * doc/posix-functions/lockf.texi: Likewise.
8140         * doc/posix-functions/mkstemp.texi: Likewise.
8141         * doc/posix-functions/mmap.texi: Likewise.
8142         * doc/posix-functions/nftw.texi: Likewise.
8143         * doc/posix-functions/openat.texi: Likewise.
8144         * doc/posix-functions/opendir.texi: Likewise.
8145         * doc/posix-functions/posix_fadvise.texi: Likewise.
8146         * doc/posix-functions/posix_fallocate.texi: Likewise.
8147         * doc/posix-functions/pread.texi: Likewise.
8148         * doc/posix-functions/pwrite.texi: Likewise.
8149         * doc/posix-functions/readdir.texi: Likewise.
8150         * doc/posix-functions/readdir_r.texi: Likewise.
8151         * doc/posix-functions/rewinddir.texi: Likewise.
8152         * doc/posix-functions/scandir.texi: Likewise.
8153         * doc/posix-functions/seekdir.texi: Likewise.
8154         * doc/posix-functions/setrlimit.texi: Likewise.
8155         * doc/posix-functions/statvfs.texi: Likewise.
8156         * doc/posix-functions/telldir.texi: Likewise.
8157         * doc/posix-functions/tmpfile.texi: Likewise.
8158         * doc/posix-functions/truncate.texi: Likewise.
8159         * doc/glibc-functions/fallocate.texi: Likewise.
8160         * doc/glibc-functions/fstatfs.texi: Likewise.
8161         * doc/glibc-functions/fts_children.texi: Likewise.
8162         * doc/glibc-functions/fts_read.texi: Likewise.
8163         * doc/glibc-functions/getdirentries.texi: Likewise.
8164         * doc/glibc-functions/mkostemp.texi: Likewise.
8165         * doc/glibc-functions/mkostemps.texi: Likewise.
8166         * doc/glibc-functions/mkstemps.texi: Likewise.
8167         * doc/glibc-functions/preadv.texi: Likewise.
8168         * doc/glibc-functions/pwritev.texi: Likewise.
8169         * doc/glibc-functions/sendfile.texi: Likewise.
8170         * doc/glibc-functions/statfs.texi: Likewise.
8171
8172 2011-07-24  Bruno Haible  <bruno@clisp.org>
8173
8174         doc: Fix typo.
8175         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
8176
8177 2011-07-24  Bruno Haible  <bruno@clisp.org>
8178
8179         doc: Mention fsusage.
8180         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
8181
8182 2011-07-24  Bruno Haible  <bruno@clisp.org>
8183
8184         doc: Mention new glibc headers and functions.
8185         * doc/glibc-headers/gshadow.texi: New file.
8186         * doc/glibc-functions/endsgent.texi: New file.
8187         * doc/glibc-functions/fgetsgent.texi: New file.
8188         * doc/glibc-functions/fgetsgent_r.texi: New file.
8189         * doc/glibc-functions/getsgent.texi: New file.
8190         * doc/glibc-functions/getsgent_r.texi: New file.
8191         * doc/glibc-functions/getsgnam.texi: New file.
8192         * doc/glibc-functions/getsgnam_r.texi: New file.
8193         * doc/glibc-functions/putsgent.texi: New file.
8194         * doc/glibc-functions/setsgent.texi: New file.
8195         * doc/glibc-functions/sgetsgent.texi: New file.
8196         * doc/glibc-functions/sgetsgent_r.texi: New file.
8197         * doc/glibc-functions/malloc_info.texi: New file.
8198         * doc/glibc-functions/preadv.texi: New file.
8199         * doc/glibc-functions/pwritev.texi: New file.
8200         * doc/glibc-functions/register_printf_modifier.texi: New file.
8201         * doc/glibc-functions/register_printf_specifier.texi: New file.
8202         * doc/glibc-functions/register_printf_type.texi: New file.
8203         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
8204         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
8205         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
8206         * doc/glibc-functions/pthread_getname_np.texi: New file.
8207         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
8208         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
8209         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
8210         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
8211         * doc/glibc-functions/pthread_setname_np.texi: New file.
8212         * doc/glibc-functions/pthread_sigqueue.texi: New file.
8213         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
8214         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
8215         * doc/glibc-functions/qsort_r.texi: New file.
8216         * doc/glibc-functions/quick_exit.texi: New file.
8217         * doc/glibc-functions/syncfs.texi: New file.
8218         * doc/gnulib.texi: Include them.
8219         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
8220         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
8221         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
8222         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
8223         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
8224         * doc/glibc-functions/execvpe.texi: Likewise.
8225
8226 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
8227
8228         ftell: don't include <unistd.h>
8229         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
8230         guaranteed to define off_t, and the ftell module depends on the
8231         stdio module.
8232
8233         ftell: do not assume wraparound signed arithmetic
8234         * lib/ftell.c: Include <limits.h>.
8235         (ftell): Don't assume wraparound signed arithmetic.
8236
8237 2011-07-24  Bruno Haible  <bruno@clisp.org>
8238
8239         close: No longer depend on module 'fclose'.
8240         * modules/close (Depends-on): Remove fclose.
8241         * NEWS: Mention the change.
8242         Suggested by Sam Steingold <sds@gnu.org>.
8243
8244 2011-07-24  Bruno Haible  <bruno@clisp.org>
8245
8246         fsusage: Enable large volume support on AIX >= 5.2.
8247         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
8248         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
8249         instead of STAT_STATVFS.
8250         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
8251
8252         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
8253         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
8254         f_blocks field only on MacOS X.
8255
8256         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
8257         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
8258         * modules/fsusage (Depends-on): Add largefile.
8259
8260 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
8261
8262         * README: Modernize discussion of signed integers.
8263         Assuming overflow wraparound is no longer safe.
8264         Mention ones' complement and signed magnitude.
8265
8266 2011-07-22  Bruno Haible  <bruno@clisp.org>
8267
8268         select tests, pselect tests: Refactor.
8269         * tests/test-select.h: New file, extracted from tests/test-select.c.
8270         (select_fn): New type.
8271         (test, do_select, do_select_nowait, do_select_wait, test_tty,
8272         test_connect_first, test_accept_first, test_pair, test_socket_pair,
8273         test_pipe): Add my_select argument.
8274         (test_function): Renamed from main. Add my_select argument.
8275         * tests/test-select.c: Move most code to tests/test-select.h. Include
8276         test-select.h.
8277         * modules/select-tests (Files): Add tests/test-select.h.
8278         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
8279         (my_select, main): New functions.
8280         * modules/pselect-tests (Files): Add tests/test-select.h,
8281         tests/macros.h, tests/signature.h.
8282         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
8283         (configure.ac): Check for <sys/wait.h>.
8284
8285 2011-07-22  Bruno Haible  <bruno@clisp.org>
8286
8287         sys_select tests: Check the signature of FD_*.
8288         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
8289         signature tests from here...
8290         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
8291         here.
8292         * modules/sys_select-tests (Files): Add tests/signature.h.
8293
8294 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
8295
8296         largefile: new module, replacing large-inode
8297         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
8298         * MODULES.html.sh: Add largefile, remove large-inode.
8299         * modules/largefile, m4/largefile.m4: New files.
8300         * modules/large-inode, m4/large-inode.m4: Remove.
8301
8302         fsusage: port to MacOS X 10.7 with 4 TiB file systems
8303         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
8304         implementations that use only 32 bits to count blocks.
8305         On typical hosts with 1024-byte blocks, this fails with file
8306         systems as small as 4 TiB.  Problem reported by Herb Wartens
8307         <http://debbugs.gnu.org/9140> and this should also fix a similar
8308         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
8309
8310         large-inode: New module
8311         * MODULES.html.sh: Add it.
8312         * modules/large-inode, m4/large-inode.m4: New files.
8313
8314         extensions: Enable extensions on MacOS X 10.5 and later.
8315         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
8316
8317 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
8318
8319         file-has-acl: use acl_extended_file_nofollow if available
8320         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
8321         (acl_extended_file): New macro.
8322         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
8323         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
8324
8325 2011-07-21  Bruno Haible  <bruno@clisp.org>
8326
8327         Declare system functions in a way that works with C++.
8328         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
8329         declare fdopendir as extern "C".
8330         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
8331         declare frexpl as extern "C".
8332         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
8333         declare gai_strerror as extern "C".
8334         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
8335         programs, declare gai_strerror as extern "C".
8336         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
8337         declare getlogin_r as extern "C".
8338         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
8339         as extern "C".
8340         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
8341         declare ldexpl as extern "C".
8342         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
8343         as extern "C".
8344         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
8345         program, declare getmntinfo as extern "C".
8346         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
8347         stpncpy as extern "C".
8348         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
8349         program, declare __xpg_strerror_r as extern "C".
8350         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
8351         strndup as extern "C".
8352         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
8353         declare memset and bzero as extern "C".
8354         Reported by Sam Steingold <sds@gnu.org>.
8355
8356 2011-07-12  Jim Meyering  <meyering@redhat.com>
8357
8358         maint.mk: prohibit inclusion of "verify.h" without use
8359         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
8360
8361 2011-07-19  Pádraig Brady  <P@draigBrady.com>
8362
8363         timer-time: A new module to check for timer_settime()
8364         * m4/timer_time.m4: Check for the posix function.
8365         * modules/timer-time: Add the new module.
8366         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
8367         Mention it.
8368
8369 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
8370             Bruno Haible  <bruno@clisp.org>
8371
8372         pthread_sigmask: assume POSIX threads if --avoid=threadlib
8373         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
8374         not defined, assume POSIX threads and look for pthread_sigmask in
8375         $LIBS, without changing $CPPFLAGS.
8376
8377 2011-07-19  Bruno Haible  <bruno@clisp.org>
8378
8379         strstr: Update cross-compilation guess.
8380         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
8381         CPUs, guess no, in view of glibc
8382         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
8383         Suggested by Eric Blake. Reported by Reuben Thomas.
8384
8385 2011-07-19  Pádraig Brady  <P@draigBrady.com>
8386
8387         getopt-gnu: suppress core dumps from detection code
8388         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
8389         to suppress core dumps that may well occur on glibc systems.
8390         * modules/getopt-gnu: Depend on nocrash.
8391
8392 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
8393
8394         pthread_sigmask: ensure usleep is declared
8395         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
8396         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
8397
8398 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
8399
8400         doc: Document NonStop portability issues.
8401         * doc/posix-functions/sigaction.texi (sigaction):
8402         * doc/posix-headers/signal.texi (signal.h):
8403         Document NonStop.  See Joachim Schmitz in
8404         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
8405
8406 2011-07-15  Bruno Haible  <bruno@clisp.org>
8407
8408         ffsl, ffsll: Avoid unportable behaviour.
8409         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
8410
8411 2011-07-15  Bruno Haible  <bruno@clisp.org>
8412
8413         ffs: More tests.
8414         * tests/test-ffs.c (NBITS): New macro.
8415         (main): Add more tests.
8416         * tests/test-ffsl.c (NBITS): New macro.
8417         (main): Add more tests.
8418         * tests/test-ffsll.c (NBITS): New macro.
8419         (main): Add more tests.
8420
8421 2011-07-15  Eric Blake  <eblake@redhat.com>
8422
8423         ffsl, ffsll: new modules
8424         * modules/ffsl: New file.
8425         * modules/ffsll: Likewise.
8426         * m4/ffsl.m4: Likewise.
8427         * m4/ffsll.m4: Likewise.
8428         * lib/ffsl.c: Likewise.
8429         * lib/ffsl.h: Likewise.
8430         * lib/ffsll.c: Likewise.
8431         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
8432         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
8433         * modules/string (Makefile.am): Substitute witnesses.
8434         * lib/strings.in.h (ffsl, ffsll): Declare.
8435         * modules/ffsl-tests: New test file.
8436         * modules/ffsll-tests: Likewise.
8437         * tests/test-ffsl.c: Likewise.
8438         * tests/test-ffsll.c: Likewise.
8439         * MODULES.html.sh (Integer arithmetic functions): Mention it.
8440         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
8441         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
8442
8443         ffs: fix m4 prerequisite
8444         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
8445
8446         ffs: avoid undefined behavior
8447         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
8448         * tests/test-ffs.c (naive, main): Avoid signed shifts.
8449         Reported by Bruno Haible.
8450
8451 2011-07-12  Bruno Haible  <bruno@clisp.org>
8452
8453         pthread_sigmask: Rely on module 'threadlib'.
8454         * modules/pthread_sigmask (Depends-on): Add threadlib.
8455         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
8456         is defined.
8457
8458 2011-07-12  Bruno Haible  <bruno@clisp.org>
8459
8460         regex: Depend on module 'strcase'.
8461         * modules/regex (Depends-on): Add strcase, for strcasecmp().
8462
8463 2011-07-12  Jim Meyering  <meyering@redhat.com>
8464
8465         warn-on-use: fix typo in file name
8466         * modules/snippet/warn-on-use (Files): Correct file name:
8467         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
8468
8469 2011-07-12  Bruno Haible  <bruno@clisp.org>
8470
8471         strings: Document module.
8472         * doc/posix-headers/strings.texi: Mention module 'strings'.
8473
8474 2011-07-12  Bruno Haible  <bruno@clisp.org>
8475
8476         Rename module '_Noreturn' to 'snippet/_Noreturn'.
8477         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
8478         (Files, Makefile.am): Update.
8479         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
8480         * modules/stdlib (Depends-on): Update.
8481
8482 2011-07-12  Bruno Haible  <bruno@clisp.org>
8483
8484         * NEWS: Mention the changes.
8485
8486         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
8487         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
8488         (Files, Makefile.am): Update.
8489         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
8490         * modules/arpa_inet (Depends-on): Update.
8491         * modules/ctype (Depends-on): Update.
8492         * modules/dirent (Depends-on): Update.
8493         * modules/fcntl-h (Depends-on): Update.
8494         * modules/glob (Depends-on): Update.
8495         * modules/iconv-h (Depends-on): Update.
8496         * modules/inttypes-incomplete (Depends-on): Update.
8497         * modules/langinfo (Depends-on): Update.
8498         * modules/locale (Depends-on): Update.
8499         * modules/math (Depends-on): Update.
8500         * modules/netdb (Depends-on): Update.
8501         * modules/poll-h (Depends-on): Update.
8502         * modules/pty (Depends-on): Update.
8503         * modules/search (Depends-on): Update.
8504         * modules/signal (Depends-on): Update.
8505         * modules/spawn (Depends-on): Update.
8506         * modules/stdio (Depends-on): Update.
8507         * modules/stdlib (Depends-on): Update.
8508         * modules/string (Depends-on): Update.
8509         * modules/strings (Depends-on): Update.
8510         * modules/sys_file (Depends-on): Update.
8511         * modules/sys_ioctl (Depends-on): Update.
8512         * modules/sys_select (Depends-on): Update.
8513         * modules/sys_socket (Depends-on): Update.
8514         * modules/sys_stat (Depends-on): Update.
8515         * modules/sys_time (Depends-on): Update.
8516         * modules/sys_times (Depends-on): Update.
8517         * modules/sys_utsname (Depends-on): Update.
8518         * modules/sys_wait (Depends-on): Update.
8519         * modules/termios (Depends-on): Update.
8520         * modules/time (Depends-on): Update.
8521         * modules/unistd (Depends-on): Update.
8522         * modules/wchar (Depends-on): Update.
8523         * modules/wctype-h (Depends-on): Update.
8524         * MODULES.html.sh (Support for building libraries and executables):
8525         Update.
8526
8527         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
8528         * modules/snippet/unused-parameter: Renamed from
8529         modules/unused-parameter.
8530         (Files, Makefile.am): Update.
8531         * build-aux/snippet/unused-parameter.h: Renamed from
8532         build-aux/unused-parameter.h.
8533         * modules/selinux-h (Depends-on): Update.
8534         * modules/unistr/base (Depends-on): Update.
8535         * MODULES.html.sh (Core language properties): Update.
8536
8537         Rename module 'link-warning' to 'snippet/link-warning'.
8538         * modules/snippet/link-warning: Renamed from modules/link-warning.
8539         (Files, Makefile.am): Update.
8540         * build-aux/snippet/link-warning.h: Renamed from
8541         build-aux/link-warning.h.
8542         * MODULES.html.sh (Support for building libraries and executables):
8543         Update.
8544
8545         Rename module 'c++defs' to 'snippet/c++defs'.
8546         * modules/snippet/c++defs: Renamed from modules/c++defs.
8547         (Files, Makefile.am): Update.
8548         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
8549         * modules/arpa_inet (Depends-on): Update.
8550         * modules/ctype (Depends-on): Update.
8551         * modules/dirent (Depends-on): Update.
8552         * modules/fcntl-h (Depends-on): Update.
8553         * modules/glob (Depends-on): Update.
8554         * modules/iconv-h (Depends-on): Update.
8555         * modules/langinfo (Depends-on): Update.
8556         * modules/locale (Depends-on): Update.
8557         * modules/math (Depends-on): Update.
8558         * modules/netdb (Depends-on): Update.
8559         * modules/poll-h (Depends-on): Update.
8560         * modules/pty (Depends-on): Update.
8561         * modules/search (Depends-on): Update.
8562         * modules/signal (Depends-on): Update.
8563         * modules/spawn (Depends-on): Update.
8564         * modules/stdio (Depends-on): Update.
8565         * modules/stdlib (Depends-on): Update.
8566         * modules/string (Depends-on): Update.
8567         * modules/strings (Depends-on): Update.
8568         * modules/sys_ioctl (Depends-on): Update.
8569         * modules/sys_select (Depends-on): Update.
8570         * modules/sys_socket (Depends-on): Update.
8571         * modules/sys_stat (Depends-on): Update.
8572         * modules/sys_time (Depends-on): Update.
8573         * modules/sys_wait (Depends-on): Update.
8574         * modules/termios (Depends-on): Update.
8575         * modules/time (Depends-on): Update.
8576         * modules/unistd (Depends-on): Update.
8577         * modules/wchar (Depends-on): Update.
8578         * modules/wctype-h (Depends-on): Update.
8579
8580         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
8581         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
8582         (Files, Makefile.am): Update.
8583         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
8584         * modules/argv-iter (Depends-on): Update.
8585         * modules/arpa_inet (Depends-on): Update.
8586         * modules/dirent (Depends-on): Update.
8587         * modules/fcntl-h (Depends-on): Update.
8588         * modules/fnmatch (Depends-on): Update.
8589         * modules/getopt-posix (Depends-on): Update.
8590         * modules/glob (Depends-on): Update.
8591         * modules/iconv-h (Depends-on): Update.
8592         * modules/inttypes-incomplete (Depends-on): Update.
8593         * modules/locale (Depends-on): Update.
8594         * modules/math (Depends-on): Update.
8595         * modules/netdb (Depends-on): Update.
8596         * modules/search (Depends-on): Update.
8597         * modules/signal (Depends-on): Update.
8598         * modules/spawn (Depends-on): Update.
8599         * modules/stdio (Depends-on): Update.
8600         * modules/stdlib (Depends-on): Update.
8601         * modules/string (Depends-on): Update.
8602         * modules/strings (Depends-on): Update.
8603         * modules/sys_socket (Depends-on): Update.
8604         * modules/sys_stat (Depends-on): Update.
8605         * modules/sys_time (Depends-on): Update.
8606         * modules/sys_times (Depends-on): Update.
8607         * modules/sys_utsname (Depends-on): Update.
8608         * modules/time (Depends-on): Update.
8609         * modules/unistd (Depends-on): Update.
8610         * modules/wchar (Depends-on): Update.
8611         * MODULES.html.sh (Support for building libraries and executables):
8612         Update.
8613
8614 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
8615
8616         Improvements on _Noreturn and related modules.
8617
8618         modules/_Exit-tests: test _Noreturn too
8619         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
8620         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
8621         (main): Use them.
8622
8623         stdnoreturn, stdnoreturn-tests: remove modules
8624         They're not needed here and a bit premature for use elsewhere.  See
8625         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
8626         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
8627         * tests/test-stdnoreturn.c: Remove files.
8628         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
8629         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
8630         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
8631         and using noreturn.
8632         * modules/openat, modules/sigpipe-die, modules/xalloc:
8633         * modules/xmemdup0, modules/xstrtol:
8634         Remove dependency on stdnoreturn.
8635
8636         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
8637         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
8638         Reparenthesize to avoid GCC warning.
8639         Support Microsoft's syntax.
8640         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
8641
8642         _Noreturn-tests: remove module
8643         * modules/_Noreturn-tests: Remove.
8644         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
8645         * tests/test-_Noreturn.c: Remove.
8646         * tests/test-stdnoreturn.c: Merge from the old
8647         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
8648
8649 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
8650
8651         _Noreturn, stdnoreturn, and related modules.
8652
8653         * top/maint.mk: Adjust to new noreturn support.
8654         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
8655         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
8656
8657         xalloc: use stdnoreturn.h
8658         * lib/xalloc.h: Include <stdnoreturn.h>.
8659         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8660         * modules/xalloc (Depends-on): Add stdnoreturn.
8661
8662         xstrtol: use stdnoreturn.h
8663         * lib/xstrtol.h: Include <stdnoreturn.h>.
8664         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8665         * modules/xstrtol (Depends-on): Add stdnoreturn.
8666
8667         xmemdup0: use stdnoreturn.h
8668         * lib/xmemdup0.h: Include <stdnoreturn.h>.
8669         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8670         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
8671
8672         sigpipe-die: use stdnoreturn.h
8673         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
8674         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8675         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
8676
8677         openat: use stdnoreturn.h
8678         * lib/openat.h: Include <stdnoreturn.h>.
8679         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8680         * modules/openat (Depends-on): Add stdnoreturn.
8681
8682         * lib/openat-die.c (openat_save_fail): Modernize comment.
8683
8684         * lib/xalloc-die.c (xalloc_die): Modernize comment.
8685
8686         * lib/glthread/thread.h: Modernize comment.
8687
8688         obstack: use _Noreturn
8689         * lib/obstack.c (__attribute__): Remove macro.
8690         (print_and_abort): Use _Noreturn.
8691
8692         c-stack: use _Noreturn
8693         * lib/c-stack.c (die, overflow_handler, segv_handler):
8694         Use _Noreturn rather than __attribute__((noreturn)).
8695
8696         argmatch-tests, exclude_tests: use _Noreturn
8697         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
8698         Remove.
8699         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
8700
8701         stdlib: use _Noreturn
8702         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
8703         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
8704         * modules/stdlib (Depends-on): Add _Noreturn.
8705         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
8706
8707         stdnoreturn-tests: new module
8708         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
8709
8710         stdnoreturn: new module
8711         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
8712         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
8713
8714         _Noreturn-tests: new module
8715         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
8716
8717         _Noreturn: new module
8718         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
8719         New section, mentioning it.
8720         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
8721
8722         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
8723
8724 2011-07-11  Eric Blake  <eblake@redhat.com>
8725
8726         ffs: new module
8727         * modules/ffs: New file.
8728         * m4/ffs.m4: Likewise.
8729         * lib/ffs.c: Likewise.
8730         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
8731         * modules/strings (Makefile.am): Substitute witness.
8732         (Depends-on): Add c++defs.
8733         * lib/strings.in.h (ffs): Declare.
8734         * modules/ffs-tests: New test file.
8735         * tests/test-ffs.c: Test new module.
8736         * MODULES.html.sh (Integer arithmetic functions): Mention it.
8737         * doc/posix-functions/ffs.texi (ffs): Likewise.
8738
8739         regex: avoid compiler warning
8740         * lib/regex.c (includes): Include <strings.h>, for use of
8741         strcasecmp in regcomp.c.
8742         Reported by Joachim Schmitz.
8743
8744 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
8745
8746         stdint: respect system's intmax_t if INTMAX_MAX
8747         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
8748         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
8749         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
8750         long but int64_t is long long, and where we will clash with the
8751         system intmax_t if we override it.  See
8752         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
8753         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
8754         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
8755         similarly for UINTMAX_C.
8756
8757 2011-07-08  Bruno Haible  <bruno@clisp.org>
8758
8759         pthread_sigmask tests: Avoid a compiler warning.
8760         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
8761         non-zero.
8762
8763         sigprocmask tests: A better way to avoid a compiler warning.
8764         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
8765         (main): Complain if system() returns non-zero.
8766         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
8767
8768 2011-07-08  Bruno Haible  <bruno@clisp.org>
8769
8770         pthread_sigmask: Work around IRIX bug.
8771         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
8772         bug.
8773         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
8774         there may be unblocked pending signals.
8775         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
8776
8777 2011-07-08  Bruno Haible  <bruno@clisp.org>
8778
8779         pthread_sigmask: Work around Cygwin bug.
8780         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
8781         bug.
8782         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
8783         the system's pthread_sigmask function.
8784         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
8785
8786 2011-07-08  Bruno Haible  <bruno@clisp.org>
8787
8788         pthread_sigmask: Work around bug in single-threaded implementation.
8789         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
8790         FreeBSD, HP-UX, Solaris bug.
8791         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
8792         * lib/pthread_sigmask.c: Include <stddef.h>.
8793         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
8794         the system's pthread_sigmask function.
8795         * modules/pthread_sigmask (configure.ac): Invoke
8796         gl_PREREQ_PTHREAD_SIGMASK.
8797         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
8798         HP-UX, Solaris.
8799
8800 2011-07-08  Eric Blake  <eblake@redhat.com>
8801
8802         test-sigprocmask: avoid compiler warning
8803         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
8804         * tests/test-sigprocmask.c (main): Use it to silence warning.
8805         Reported by Jim Meyering.
8806
8807         test-snprintf: avoid compiler warning
8808         * tests/test-snprintf.c (main): Avoid shadowed declaration.
8809         * tests/test-vsnprintf.c (main): Likewise.
8810         Reported by Jim Meyering.
8811
8812 2011-07-08  Bruno Haible  <bruno@clisp.org>
8813
8814         Tests for module 'pthread_sigmask'.
8815         * modules/pthread_sigmask-tests: New file.
8816         * tests/test-pthread_sigmask1.c: New file, based on
8817         tests/test-sigprocmask.c.
8818         * tests/test-pthread_sigmask2.c: New file.
8819
8820 2011-07-08  Jim Meyering  <meyering@redhat.com>
8821
8822         test-getopt.h: avoid warning about an unused variable
8823         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
8824
8825 2011-07-07  Jim Meyering  <meyering@redhat.com>
8826
8827         maint: reduce list of files exempt from sc_prohibit_leading_TABs
8828         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
8829         now that it no longer contains leading TABs.
8830         Remove unused "url=FIXME" statement.
8831
8832 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
8833
8834         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
8835         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
8836         When gl_THREADLIB is not in use, assume that the POSIX sematics
8837         are desired.  This is better for Emacs, which uses POSIX semantics
8838         on GNUish and/or POSIXish platforms, and does not use threads at
8839         all otherwise.
8840
8841         pthread_sigmask: fix typo when testing for libraries
8842         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
8843         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
8844
8845 2011-07-08  Eric Blake  <eblake@redhat.com>
8846
8847         fts: introduce FTS_NOATIME
8848         * lib/fts_.h (FTS_NOATIME): New bit flag.
8849         (FTS_OPTIONMASK): Adjust.
8850         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
8851         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
8852
8853 2011-07-08  Bruno Haible  <bruno@clisp.org>
8854
8855         Tests for module 'thread'.
8856         * modules/thread-tests: New file.
8857         * tests/test-thread_self.c: New file.
8858         * tests/test-thread_create.cc: New file.
8859
8860 2011-07-08  Bruno Haible  <bruno@clisp.org>
8861
8862         thread: Avoid gcc warnings when using gl_thread_self().
8863         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
8864         'void *'.
8865         (gl_thread_self_pointer): Update.
8866
8867 2011-07-07  Bruno Haible  <bruno@clisp.org>
8868
8869         signal-c++-tests: Check declaration of pthread_sigmask.
8870         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
8871         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
8872         $(LIB_PTHREAD_SIGMASK).
8873
8874 2011-07-07  Bruno Haible  <bruno@clisp.org>
8875
8876         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
8877         * lib/signal.in.h (pthread_sigmask): Override if
8878         REPLACE_PTHREAD_SIGMASK is 1.
8879         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
8880         REPLACE_PTHREAD_SIGMASK.
8881         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
8882         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
8883         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
8884         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
8885         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
8886
8887 2011-07-07  Bruno Haible  <bruno@clisp.org>
8888
8889         pthread_sigmask: Ensure declaration in <signal.h>.
8890         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
8891         include <pthread.h>.
8892         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
8893         problem.
8894
8895 2011-07-07  Bruno Haible  <bruno@clisp.org>
8896
8897         pthread_sigmask: Document the module.
8898         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
8899
8900 2011-07-07  Bruno Haible  <bruno@clisp.org>
8901
8902         pthread_sigmask: Follow gnulib conventions.
8903         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
8904         gl_PTHREAD_SIGMASK.
8905         * modules/pthread_sigmask (configure.ac): Update.
8906
8907 2011-07-07  Bruno Haible  <bruno@clisp.org>
8908
8909         pthread_sigmask: Make declaration C++ safe.
8910         * lib/signal.in.h: In two special conditions, just do an #include_next.
8911         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
8912         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
8913         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
8914         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
8915         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
8916         not REPLACE_PTHREAD_MASK.
8917         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
8918         not REPLACE_PTHREAD_MASK.
8919         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
8920
8921 2011-07-07  Bruno Haible  <bruno@clisp.org>
8922
8923         pthread_sigmask: Fix return value.
8924         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
8925         * lib/pthread_sigmask.c: New file.
8926         * modules/pthread_sigmask (Files): Add it.
8927         (configure.ac): Invoke AC_LIBOBJ.
8928
8929 2011-07-07  Eric Blake  <eblake@redhat.com>
8930
8931         getopt: more portable argv creation
8932         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
8933         const, use char arrays rather than strings.
8934         Suggested by Paul Eggert.
8935
8936 2011-07-07  Bruno Haible  <bruno@clisp.org>
8937
8938         Tests for module 'sigprocmask'.
8939         * modules/sigprocmask-tests: New file.
8940         * tests/test-sigprocmask.c: New file.
8941
8942 2011-07-07  Bruno Haible  <bruno@clisp.org>
8943
8944         float tests: Tweak.
8945         * tests/test-float.c (main): Tweak skip message.
8946
8947 2011-07-07  Eric Blake  <eblake@redhat.com>
8948
8949         getopt: avoid compiler warning during configure
8950         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
8951         assigning string literals to non-const pointer.
8952
8953         getopt-gnu: avoid crash in glibc getopt
8954         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
8955         * tests/test-getopt.h (test_getopt): Enhance test.
8956         * tests/test-getopt_long.h (test_getopt_long): Likewise.
8957         * doc/posix-functions/getopt.texi (getopt): Document it.
8958         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
8959         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8960         Likewise.
8961
8962 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
8963
8964         getopt: handle W; without long options in getopt [BZ #12922]
8965         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
8966         but no long options are defined, just return 'W'.
8967
8968 2011-07-07  Bruno Haible  <bruno@clisp.org>
8969
8970         Avoid literal tabs.
8971         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
8972         variable containing a tab instead of a literal tab.
8973         Reported by Jim Meyering.
8974
8975 2011-07-07  Bruno Haible  <bruno@clisp.org>
8976
8977         Comments.
8978         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
8979
8980 2011-07-06  Bruno Haible  <bruno@clisp.org>
8981
8982         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
8983         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
8984         <winsock2.h>.
8985         (rpl_fd_isset, FD_ISSET): New definitions, copied from
8986         lib/sys_socket.in.h.
8987         (close, gethostname): Hide declarations from <winsock2.h>.
8988         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
8989         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
8990         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
8991         (select): Don't override if gnulib's <sys/select.h> was already
8992         included.
8993         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
8994         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
8995         setsockopt, shutdown, select): Tweak indentation.
8996
8997 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
8998
8999         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
9000         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
9001         in an application that does not use the sys_select module.
9002
9003 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
9004
9005         poll: do not return 0 on timeout=-1
9006         * lib/poll.c: Loop with yield if no events occured
9007
9008 2011-07-06  Eric Blake  <eblake@redhat.com>
9009
9010         pthread_sigmask: always replace when not using pthread
9011         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
9012         replacement when using some threading other than pthread.  Fix
9013         logic bug.
9014
9015 2011-07-06  Bruno Haible  <bruno@clisp.org>
9016
9017         Comments.
9018         * m4/printf.m4: Update comments about mingw.
9019
9020 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
9021
9022         sys_select: define sigset_t more portably
9023         * lib/sys_select.in.h: Always include <sys/types.h>, since
9024         we now need sigset_t and mingw defines it there.
9025         Include <signal.h> before split inclusion guard, to avoid
9026         mishaps on Solaris, whose <signal.h> eventually includes us.
9027         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
9028         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
9029         which come from ...
9030         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
9031         gl_CHECK_TYPE_SIGSET_T.
9032         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
9033         does the real work.
9034         * modules/sys_select (Depends-on): Add 'signal'.
9035
9036         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
9037         Suggested by Bruno Haible.
9038
9039         pselect: Use pthread_sigmask, not sigprocmask.
9040         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
9041         multithreaded apps better than sigprocmask does.
9042         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
9043         sigprocmask directly.
9044
9045 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
9046
9047         * lib/pselect.c (pselect): Use plain name, without "rpl_".
9048         Don't #undef,  since we don't need any underlying pselect.
9049         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
9050         (Depends-on): Add select.
9051         (Link): Add $(LIBSOCKET).
9052         These changes suggested by Bruno Haible.
9053
9054         pselect: document better
9055         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
9056         * doc/posix-functions/pselect.texi (pselect): Document new module.
9057
9058         pthread_sigmask: new module
9059         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
9060         * doc/posix-functions/pthread_sigmask.texi: Document new module.
9061         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
9062         This is done only as a macro; I don't know how well that'll
9063         work for C++.  Move <sys/types.h> include before the include_next,
9064         to avoid mishap on Solaris.
9065         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
9066         * modules/signal (Makefile.am): Substitute the check's results.
9067         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
9068
9069         test-pselect: new module
9070         * modules/pselect-tests, tests/test-pselect.c: New files.
9071         * tests/test-select.c, tests/test-sys_select-c++.cc:
9072         If TEST_PSELECT is defined, test pselect instead of testing select.
9073
9074         * tests/test-sys_select.c (sigset_t): Test for it, too.
9075         Suggested by Bruno Haible.
9076
9077 2011-07-05  Eric Blake  <eblake@redhat.com>
9078
9079         snprintf: guarantee %1$d, for libintl
9080         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
9081         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
9082         * doc/posix-functions/snprintf.texi (snprintf): Update.
9083         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
9084         * tests/test-snprintf.c (main): Enhance test.
9085         * tests/test-vsnprintf.c (main): Likewise.
9086
9087 2011-07-05  Jim Meyering  <meyering@redhat.com>
9088
9089         maint: exempt stdio-read.c and stdio-write.c from the cppi check
9090         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
9091         per Bruno's request, to accommodate this idiom (no space after "#")
9092         even when the function is inside an #if block:
9093         char *
9094         gets (char *s)
9095         #undef gets
9096         {
9097           ...
9098         }
9099
9100 2011-07-04  Jim Meyering  <meyering@redhat.com>
9101
9102         maint: indent with spaces, not TABs, and add a rule to check this
9103         * tests/test-userspec.c: Indent with spaces, not TABs.
9104         * tests/test-argp.c: Likewise.
9105         * tests/test-c-stack2.sh: Likewise.
9106         * tests/test-parse-duration.sh: Likewise
9107         * m4/strtod.m4: Likewise.
9108         * m4/alloca.m4: Likewise.
9109         * m4/pselect.m4: Likewise.
9110         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
9111
9112 2011-07-03  Jim Meyering  <meyering@redhat.com>
9113
9114         maint.mk: correct omissions in prohibit_argmatch_without_use check
9115         This rule would mistakenly report that argmatch.h is included without
9116         use even when both the argmatch and invalid_arg macro were used.
9117         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
9118         of argmatch and invalid_arg.
9119
9120 2011-07-03  Bruno Haible  <bruno@clisp.org>
9121
9122         Comments about EINTR.
9123         * lib/safe-read.h: Explain the purpose of this module.
9124         * lib/safe-write.h: Likewise.
9125         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
9126         module.
9127         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
9128         module.
9129         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9130
9131 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
9132
9133         xnanosleep: Rewrite to use new dtotimespec module.
9134         It has the conversion code that used to be in xnanosleep.
9135         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
9136         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
9137         (TIME_T_MAX): Remove.
9138         (xnanosleep): Rewrite in terms of dtotimespec.
9139         * modules/xnanosleep (Depends-on): Add dtotimespec.
9140         Remove intprops, stdbool.
9141
9142         timespec-add, timespec-sub: new modules
9143         * lib/timespec.h (timespec_add, timespec_sub): New decls.
9144         * lib/timespec-add.c, lib/timespec-sub.c:
9145         * modules/timespec-add, modules/timespec-sub: New files.
9146
9147         dtotimespec: new module
9148         * lib/timespec.h (dtotimespec): New decl.
9149         * lib/dtotimespec.c, modules/dtotimespec: New files.
9150
9151         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
9152
9153         pselect: new module
9154         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
9155         (pselect): New decls.
9156         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
9157         since the standard pselect decl uses 'restrict'.
9158         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
9159         HAVE_PSELECT, REPLACE_PSELECT.
9160         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
9161         HAVE_PSELECT, REPLACE_PSELECT.
9162         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
9163
9164         sys_select: don't depend on sys_socket
9165         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
9166         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
9167         This fix works on GNU and GNU-like platforms, but has not been tested
9168         on native Windows.
9169         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
9170         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
9171         gl_HEADER_SYS_SOCKET.
9172         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
9173         gl_PREREQ_SYS_H_WINSOCK2.
9174
9175 2011-06-29  Eric Blake  <eblake@redhat.com>
9176
9177         pipe2: fix C89 compile problem
9178         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
9179         Reported by Bruno Haible.
9180
9181         pipe, pipe2: don't corrupt fd on error
9182         * lib/pipe.c (pipe): Leave fd unchanged on error.
9183         * lib/pipe2.c (pipe2): Likewise.
9184         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
9185         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
9186
9187 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
9188
9189         mmap-anon: do not use regular expressions inadvertently
9190         * m4/mmap-anon.m4: Remove trailing period from strings sought
9191         in the output.
9192
9193 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
9194
9195         nanosleep: fix integer overflow problem
9196         * lib/nanosleep.c (my_usleep): Don't assume signed integer
9197         arithmetic wraps around on overflow.
9198
9199         nanosleep: simplify carrying
9200         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
9201         first call to the underyling nanosleep, not for the last one.
9202         This doesn't fix any bugs, but it simplifies the computation of
9203         the remaining delay.  Found while auditing integer overflow issues.
9204
9205         dup2: remove test for existence of fcntl
9206         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
9207         "#if HAVE_FCNTL", in the configure-time test program.
9208         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
9209         and therefore speeds up "configure" a bit.  Found while
9210         adding the dup2 module to Emacs.
9211
9212 2011-06-24  Eric Blake  <eblake@redhat.com>
9213
9214         maint.mk: enhance useless header checks
9215         * top/maint.mk (_sc_header_without_use): Check both include
9216         styles.
9217         (sc_prohibit_assert_without_use)
9218         (sc_prohibit_close_stream_without_use)
9219         (sc_prohibit_getopt_without_use)
9220         (sc_prohibit_quotearg_without_use)
9221         (sc_prohibit_quote_without_use)
9222         (sc_prohibit_long_options_without_use)
9223         (sc_prohibit_inttostr_without_use)
9224         (sc_prohibit_ignore_value_without_use)
9225         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
9226         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
9227         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
9228         (sc_prohibit_hash_pjw_without_use)
9229         (sc_prohibit_safe_read_without_use)
9230         (sc_prohibit_argmatch_without_use)
9231         (sc_prohibit_canonicalize_without_use)
9232         (sc_prohibit_root_dev_ino_without_use)
9233         (sc_prohibit_openat_without_use)
9234         (sc_prohibit_c_ctype_without_use)
9235         (sc_prohibit_signal_without_use)
9236         (sc_prohibit_stdio--_without_use)
9237         (sc_prohibit_stdio-safer_without_use)
9238         (sc_prohibit_strings_without_use)
9239         (sc_prohibit_intprops_without_use)
9240         (sc_prohibit_stddef_without_use)
9241         (sc_prohibit_xfreopen_without_use): Update clients.
9242
9243 2011-06-24  Jim Meyering  <meyering@redhat.com>
9244
9245         syntax-check: keep one maint.mk rule in sync with its header
9246         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
9247         of the bug Eric has just fixed, with today's commit 25e4c2ec.
9248         I prefer to avoid temporary files here, so use <(...), but that
9249         is not supported by /bin/sh, so...
9250         (SHELL): Define to /bin/bash.
9251
9252 2011-06-24  Eric Blake  <eblake@redhat.com>
9253
9254         maint.mk: update sc_prohibit_intprops_without_use
9255         * top/maint.mk (_intprops_names): Match recent changes.
9256
9257 2011-06-24  Bruno Haible  <bruno@clisp.org>
9258
9259         strerror-override: No-op tweak.
9260         * lib/strerror-override.h (strerror_override): Reorder conditions,
9261         for consistency with lib/strerror-override.c.
9262
9263 2011-06-23  Eric Blake  <eblake@redhat.com>
9264
9265         maint.mk: test further PATH_MAX issues
9266         * top/maint.mk (sc_prohibit_path_max_array): Rename...
9267         (sc_prohibit_path_max_allocation): ...and also test alloca.
9268         Suggested by Jim Meyering.
9269
9270 2011-06-22  Eric Blake  <eblake@redhat.com>
9271
9272         maint.mk: add syntax-check to avoid char[PATH_MAX]
9273         * top/maint.mk (sc_prohibit_path_max_array): New rule.
9274
9275         stat: be robust to PATH_MAX definition
9276         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
9277         * modules/stat (Depends-on): Add verify.
9278
9279         link: work around IRIX bug
9280         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
9281         * lib/link.c (rpl_link): Work around it.
9282         * tests/test-link.h (test_link): Enhance test.
9283         * doc/posix-functions/link.texi (link): Document the bug.
9284
9285         getopt: silence clang warning
9286         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
9287         dereference.
9288         Reported by Gustavo Martin Domato.
9289
9290 2011-06-22  Jim Meyering  <meyering@redhat.com>
9291
9292         bootstrap: do not insert a blank line into each .gitignore file
9293         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
9294
9295 2011-06-21  Eric Blake  <eblake@redhat.com>
9296
9297         perror: test for output mismatch
9298         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
9299         perror on IRIX.
9300
9301         strerror_r: fix OpenBSD behavior on out-of-range
9302         * lib/strerror_r.c (strerror_r): Always use maximal string.
9303         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
9304
9305         strerror_r: fix OpenBSD behavior on 0
9306         * lib/strerror-override.c (strerror_override): Also override 0
9307         when needed.
9308         * lib/strerror-override.h (strerror_override): Likewise.
9309         * lib/strerror.c (strerror): Simplify, now that 0 override is done
9310         earlier.
9311         * lib/strerror_r.c (strerror_r): Likewise.
9312         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
9313         behavior...
9314         (gl_FUNC_STRERROR_0): ...into new macro.
9315         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
9316         is overridden.
9317         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
9318         * modules/strerror-override (Files): Add strerror.m4.
9319         (configure.ac): Also provide override for 0 when needed.
9320         * doc/posix-functions/strerror.texi (strerror): Document this.
9321         * doc/posix-functions/perror.texi (perror): Likewise.
9322
9323         perror: adjust array size
9324         * modules/perror (Depends-on): Add strerror-override.
9325         * lib/perror.c (perror): Use it to avoid magic number.
9326
9327         strerror-override: reduce size
9328         * lib/strerror-override.c (strerror_override): Use fewer lines.
9329
9330 2011-06-20  Bruno Haible  <bruno@clisp.org>
9331
9332         pathmax: Ensure correct value for PATH_MAX on HP-UX.
9333         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
9334
9335 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
9336
9337         alloca: port to compilers that can optimize like GCC 4.6.0
9338         * lib/alloca.c (find_stack_direction): New signature, taken from
9339         Autoconf git.  This works with GCC 4.6.0.  This code should never
9340         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
9341         be used with other compilers that optimize as well as GCC 4.6.0 does.
9342         (alloca): Adjust to new signature.
9343         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
9344         New macro, which patches Autoconf in a similar way.
9345
9346         c-stack: stop worrying about stack direction
9347         * lib/c-stack.c (find_stack_direction): Remove.
9348         (segv_handler): Don't worry about stack direction growth, as it's
9349         too much of a pain to configure this correctly, given how compilers
9350         are optimizing-away our stack-growth detection code.  Instead, assume
9351         that any access to just before or just after the stack is OK.
9352         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
9353         Don't require AC_FUNC_ALLOCA; no longer needed.
9354
9355 2011-06-20  Eric Blake  <eblake@redhat.com>
9356
9357         test-stat: don't allocate PATH_MAX bytes
9358         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
9359         PATH_MAX-sized buffer.
9360         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
9361         * modules/stat-tests (Depends-on): Likewise.
9362         * tests/test-fstatat.c (includes): Drop pathmax.h.
9363         * tests/test-stat.c (includes): Likewise.
9364         Reported by Bruno Haible.
9365
9366 2011-06-20  Bruno Haible  <bruno@clisp.org>
9367
9368         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
9369         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
9370         * lib/float.c: New file.
9371         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
9372         REPLACE_FLOAT_LDBL.
9373         * modules/float (Files): Add lib/float.c.
9374         (configure.ac): Invoke AC_LIBOBJ.
9375         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
9376
9377 2011-06-20  Bruno Haible  <bruno@clisp.org>
9378
9379         Tests for module 'float'.
9380         * modules/float-tests: New file.
9381         * tests/test-float.c: New file.
9382
9383 2011-06-19  Bruno Haible  <bruno@clisp.org>
9384
9385         isinf: Coding style.
9386         * lib/isinf.c: Use GNU coding style.
9387
9388 2011-06-19  Bruno Haible  <bruno@clisp.org>
9389
9390         linkat test: Avoid test failure on AIX 7.1.
9391         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
9392         * tests/test-link.h (test_link): Likewise.
9393
9394 2011-06-19  Bruno Haible  <bruno@clisp.org>
9395
9396         pread test: Avoid test failure on OpenBSD 4.9.
9397         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
9398
9399 2011-06-19  Bruno Haible  <bruno@clisp.org>
9400
9401         sprintf-posix: Fix test failure on AIX 7.1.
9402         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
9403         * doc/posix-functions/dprintf.texi: Mention limited precision problem
9404         on AIX.
9405         * doc/posix-functions/fprintf.texi: Likewise.
9406         * doc/posix-functions/printf.texi: Likewise.
9407         * doc/posix-functions/snprintf.texi: Likewise.
9408         * doc/posix-functions/sprintf.texi: Likewise.
9409         * doc/posix-functions/vdprintf.texi: Likewise.
9410         * doc/posix-functions/vfprintf.texi: Likewise.
9411         * doc/posix-functions/vprintf.texi: Likewise.
9412         * doc/posix-functions/vsnprintf.texi: Likewise.
9413         * doc/posix-functions/vsprintf.texi: Likewise.
9414
9415 2011-06-19  Bruno Haible  <bruno@clisp.org>
9416
9417         roundl-ieee: Fix test failure on AIX 7.1.
9418         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
9419         * doc/posix-functions/roundl.texi: Mention problem with negative
9420         arguments.
9421
9422 2011-06-19  Bruno Haible  <bruno@clisp.org>
9423
9424         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
9425         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
9426         * doc/posix-functions/round.texi: Mention problem with negative
9427         arguments.
9428         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
9429
9430 2011-06-19  Bruno Haible  <bruno@clisp.org>
9431
9432         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
9433         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
9434         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
9435         * doc/posix-functions/roundf.texi: Mention problem with negative
9436         arguments.
9437         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
9438
9439 2011-06-19  Bruno Haible  <bruno@clisp.org>
9440
9441         ceilf-ieee: Work around bug on MacOS X 10.5.
9442         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
9443
9444         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
9445         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
9446         IEEE compliant, avoid compiler optimizations.
9447         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
9448         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9449         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
9450         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9451         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9452         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9453         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9454         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9455         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9456         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9457
9458 2011-06-19  Bruno Haible  <bruno@clisp.org>
9459
9460         ceilf-ieee: Work around bug on AIX 7.1.
9461         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
9462         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
9463
9464 2011-06-19  Bruno Haible  <bruno@clisp.org>
9465
9466         ceil-ieee: Work around bug on AIX 7.1.
9467         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
9468         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
9469
9470 2011-06-18  Bruno Haible  <bruno@clisp.org>
9471
9472         fsync test: Avoid test failure on MacOS X and AIX.
9473         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
9474         EINVAL.
9475
9476 2011-06-18  Bruno Haible  <bruno@clisp.org>
9477
9478         openat, fdopendir tests: Fix link errors.
9479         * modules/openat-tests (Depends-on): Add progname.
9480         * modules/fdopendir-tests (Depends-on): Likewise.
9481         * tests/test-fchownat.c: Include progname.h.
9482         (main): Call set_program_name.
9483         * tests/test-fstatat.c: Include progname.h.
9484         (main): Call set_program_name.
9485         * tests/test-mkdirat.c: Include progname.h.
9486         (main): Call set_program_name.
9487         * tests/test-openat.c: Include progname.h.
9488         (main): Call set_program_name.
9489         * tests/test-unlinkat.c: Include progname.h.
9490         (main): Call set_program_name.
9491         * tests/test-fdopendir.c: Include progname.h.
9492         (main): Call set_program_name.
9493
9494 2011-06-18  Bruno Haible  <bruno@clisp.org>
9495
9496         Doc update.
9497         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
9498         HP-UX.
9499         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
9500
9501 2011-06-18  Bruno Haible  <bruno@clisp.org>
9502
9503         getcwd tests: Avoid compilation error on HP-UX 11.31.
9504         * modules/getcwd-tests (Depends-on): Add pathmax.
9505         * tests/test-getcwd.c: Include pathmax.h.
9506
9507 2011-06-18  Bruno Haible  <bruno@clisp.org>
9508
9509         isfinite, isinf: Fix link error on AIX 6 and 7.
9510         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
9511         needed, also test the macro with a 'float' argument.
9512         * m4/isinf.m4 (gl_ISINF): Likewise.
9513
9514 2011-06-18  Bruno Haible  <bruno@clisp.org>
9515
9516         getloadavg: Don't clobber LIBS. Regression from previous commit.
9517         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
9518         AC_CHECK_LIB from here...
9519         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
9520         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
9521         gl_func_getloadavg_done.
9522         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9523
9524 2011-06-18  Bruno Haible  <bruno@clisp.org>
9525
9526         clean-temp: Improve documentation.
9527         * lib/clean-temp.h: Explain better how to use this module.
9528         Reported by John Darrington <john@darrington.wattle.id.au>.
9529
9530 2011-06-17  Bruno Haible  <bruno@clisp.org>
9531
9532         pread, pwrite: Avoid cc warning on AIX.
9533         * lib/unistd.in.h (pread): Undefine before defining as a macro.
9534         (pwrite): Likewise.
9535
9536 2011-06-17  Bruno Haible  <bruno@clisp.org>
9537
9538         spawn-pipe tests: Fix link error.
9539         * tests/test-spawn-pipe-child.c: Undefine fprintf.
9540         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9541
9542 2011-06-17  Bruno Haible  <bruno@clisp.org>
9543
9544         Tests: Remove unnecessary dependency.
9545         * modules/canonicalize-tests (Depends-on): Remove progname.
9546         * modules/chown-tests (Depends-on): Likewise.
9547         * modules/dirname-tests (Depends-on): Likewise.
9548         * modules/fdopendir-tests (Depends-on): Likewise.
9549         * modules/fdutimensat-tests (Depends-on): Likewise.
9550         * modules/hash-tests (Depends-on): Likewise.
9551         * modules/lchown-tests (Depends-on): Likewise.
9552         * modules/linkat-tests (Depends-on): Likewise.
9553         * modules/renameat-tests (Depends-on): Likewise.
9554         * modules/spawn-pipe-tests (Depends-on): Likewise.
9555         * modules/utimensat-tests (Depends-on): Likewise.
9556
9557 2011-06-17  Bruno Haible  <bruno@clisp.org>
9558
9559         spawn-pipe tests: Fix link error.
9560         * tests/test-spawn-pipe-child.c: Undefine fflush.
9561
9562 2011-06-17  Bruno Haible  <bruno@clisp.org>
9563
9564         Fix tests link errors.
9565         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
9566         * modules/chown-tests (Makefile.am): Don't link test-chown with
9567         LIBINTL.
9568         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
9569         LIBINTL.
9570         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
9571         LIBINTL.
9572         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
9573         LIBINTL.
9574
9575 2011-06-16  Bruno Haible  <bruno@clisp.org>
9576
9577         crypto/gc-sha1: Fix recent regression.
9578         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
9579         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
9580
9581         crypto/gc-md5: Fix recent regression.
9582         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
9583
9584         crypto/gc-md4: Fix recent regression.
9585         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
9586         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
9587
9588         crypto/gc-arctwo: Fix recent regression.
9589         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
9590         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
9591
9592         crypto/gc-rijndael: Fix recent regression.
9593         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
9594         (configure.ac): Invoke AC_LIBOBJ here.
9595         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
9596         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9597
9598         crypto/gc-hmac-sha1: Fix recent regression.
9599         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
9600         (configure.ac): Invoke AC_LIBOBJ here.
9601         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
9602         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9603
9604         crypto/gc-hmac-md5: Fix recent regression.
9605         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
9606         (configure.ac): Invoke AC_LIBOBJ here.
9607         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
9608         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9609
9610         crypto/gc-des: Fix recent regression.
9611         * modules/crypto/gc-des (Files): Remove m4/des.m4.
9612         (configure.ac): Invoke AC_LIBOBJ here.
9613         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
9614         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9615
9616         crypto/gc-arcfour: Fix recent regression.
9617         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
9618         (configure.ac): Invoke AC_LIBOBJ here.
9619         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
9620         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9621
9622 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
9623
9624         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
9625         After the 2011-05-21 change, this macro requires
9626         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
9627         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
9628
9629 2011-06-16  Bruno Haible  <bruno@clisp.org>
9630
9631         fprintftime: Move AC_LIBOBJ invocations to module description.
9632         * m4/fprintftime.m4: Remove file.
9633         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
9634         (configure.ac): Remove gl_FPRINTFTIME call.
9635         (Makefile.am): Augment lib_SOURCES.
9636         Reported by Jim Meyering.
9637
9638 2011-06-16  Bruno Haible  <bruno@clisp.org>
9639
9640         tmpfile-safer: Finish 2011-05-23 commit.
9641         * m4/stdio-safer.m4: Really remove file.
9642         Reported by Jim Meyering.
9643
9644 2011-06-16  Bruno Haible  <bruno@clisp.org>
9645
9646         syntax-check: Fix typo.
9647         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
9648         printf-posix.m4.
9649         Reported by Jim Meyering.
9650
9651 2011-06-13  Jim Meyering  <meyering@redhat.com>
9652
9653         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
9654         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
9655
9656 2011-05-23  Bruno Haible  <bruno@clisp.org>
9657
9658         yesno: Move AC_LIBOBJ invocations to module description.
9659         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
9660         * modules/yesno (Makefile.am): Augment lib_SOURCES.
9661
9662 2011-05-23  Bruno Haible  <bruno@clisp.org>
9663
9664         xstrtol: Move AC_LIBOBJ invocations to module description.
9665         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
9666         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
9667
9668 2011-05-23  Bruno Haible  <bruno@clisp.org>
9669
9670         xstrtold: Move AC_LIBOBJ invocations to module description.
9671         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
9672         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
9673
9674 2011-05-23  Bruno Haible  <bruno@clisp.org>
9675
9676         xstrtod: Move AC_LIBOBJ invocations to module description.
9677         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
9678         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
9679
9680 2011-05-23  Bruno Haible  <bruno@clisp.org>
9681
9682         xnanosleep: Move AC_LIBOBJ invocations to module description.
9683         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
9684         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
9685
9686 2011-05-23  Bruno Haible  <bruno@clisp.org>
9687
9688         xgetcwd: Move AC_LIBOBJ invocations to module description.
9689         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
9690         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
9691
9692 2011-05-23  Bruno Haible  <bruno@clisp.org>
9693
9694         xalloc: Move AC_LIBOBJ invocations to module description.
9695         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
9696         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
9697
9698 2011-05-23  Bruno Haible  <bruno@clisp.org>
9699
9700         write-any-file: Move AC_LIBOBJ invocations to module description.
9701         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
9702         invocation.
9703         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
9704
9705 2011-05-23  Bruno Haible  <bruno@clisp.org>
9706
9707         utimens: Move AC_LIBOBJ invocations to module description.
9708         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
9709         * modules/utimens (Makefile.am): Augment lib_SOURCES.
9710
9711 2011-05-23  Bruno Haible  <bruno@clisp.org>
9712
9713         utimecmp: Move AC_LIBOBJ invocations to module description.
9714         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
9715         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
9716
9717 2011-05-23  Bruno Haible  <bruno@clisp.org>
9718
9719         userspec: Move AC_LIBOBJ invocations to module description.
9720         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
9721         * modules/userspec (Makefile.am): Augment lib_SOURCES.
9722
9723 2011-05-23  Bruno Haible  <bruno@clisp.org>
9724
9725         unlinkdir: Move AC_LIBOBJ invocations to module description.
9726         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
9727         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
9728
9729 2011-05-23  Bruno Haible  <bruno@clisp.org>
9730
9731         unistd-safer: Move AC_LIBOBJ invocations to module description.
9732         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
9733         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
9734
9735 2011-05-23  Bruno Haible  <bruno@clisp.org>
9736
9737         tempname: Move AC_LIBOBJ invocations to module description.
9738         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
9739         * modules/tempname (Makefile.am): Augment lib_SOURCES.
9740
9741 2011-05-23  Bruno Haible  <bruno@clisp.org>
9742
9743         strftime: Move AC_LIBOBJ invocations to module description.
9744         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
9745         * modules/strftime (Makefile.am): Augment lib_SOURCES.
9746
9747 2011-05-23  Bruno Haible  <bruno@clisp.org>
9748
9749         stdlib-safer: Move AC_LIBOBJ invocations to module description.
9750         * m4/stdlib-safer.m4: Remove file.
9751         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
9752         (configure.ac): Remove gl_STDLIB_SAFER call.
9753         (Makefile.am): Augment lib_SOURCES.
9754
9755 2011-05-23  Bruno Haible  <bruno@clisp.org>
9756
9757         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
9758         * m4/stdio-safer.m4: Remove file.
9759         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
9760         (configure.ac): Remove gl_TMPFILE_SAFER call.
9761         (Makefile.am): Augment lib_SOURCES.
9762
9763 2011-05-23  Bruno Haible  <bruno@clisp.org>
9764
9765         popen-safer: Move AC_LIBOBJ invocations to module description.
9766         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
9767         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
9768         (configure.ac): Remove gl_POPEN_SAFER call.
9769         (Makefile.am): Augment lib_SOURCES.
9770
9771 2011-05-23  Bruno Haible  <bruno@clisp.org>
9772
9773         freopen-safer: Move AC_LIBOBJ invocations to module description.
9774         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
9775         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
9776         (configure.ac): Remove gl_FREOPEN_SAFER call.
9777         (Makefile.am): Augment lib_SOURCES.
9778
9779 2011-05-23  Bruno Haible  <bruno@clisp.org>
9780
9781         fopen-safer: Move AC_LIBOBJ invocations to module description.
9782         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
9783         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
9784         (configure.ac): Remove gl_FOPEN_SAFER call.
9785         (Makefile.am): Augment lib_SOURCES.
9786
9787 2011-05-23  Bruno Haible  <bruno@clisp.org>
9788
9789         crypto/sha512: Move AC_LIBOBJ invocations to module description.
9790         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
9791         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
9792
9793 2011-05-23  Bruno Haible  <bruno@clisp.org>
9794
9795         crypto/sha256: Move AC_LIBOBJ invocations to module description.
9796         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
9797         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
9798
9799 2011-05-23  Bruno Haible  <bruno@clisp.org>
9800
9801         crypto/sha1: Move AC_LIBOBJ invocations to module description.
9802         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
9803         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
9804
9805 2011-05-23  Bruno Haible  <bruno@clisp.org>
9806
9807         settime: Move AC_LIBOBJ invocations to module description.
9808         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
9809         * modules/settime (Makefile.am): Augment lib_SOURCES.
9810
9811 2011-05-23  Bruno Haible  <bruno@clisp.org>
9812
9813         savedir: Move AC_LIBOBJ invocations to module description.
9814         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
9815         * modules/savedir (Makefile.am): Augment lib_SOURCES.
9816
9817 2011-05-23  Bruno Haible  <bruno@clisp.org>
9818
9819         save-cwd: Move AC_LIBOBJ invocations to module description.
9820         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
9821         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
9822
9823 2011-05-23  Bruno Haible  <bruno@clisp.org>
9824
9825         same: Move AC_LIBOBJ invocations to module description.
9826         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
9827         * modules/same (Makefile.am): Augment lib_SOURCES.
9828
9829 2011-05-23  Bruno Haible  <bruno@clisp.org>
9830
9831         safe-write: Move AC_LIBOBJ invocations to module description.
9832         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
9833         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
9834         instead of gl_SAFE_WRITE.
9835         (Makefile.am): Augment lib_SOURCES.
9836
9837 2011-05-23  Bruno Haible  <bruno@clisp.org>
9838
9839         safe-read: Move AC_LIBOBJ invocations to module description.
9840         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
9841         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
9842         of gl_SAFE_READ.
9843         (Makefile.am): Augment lib_SOURCES.
9844
9845 2011-05-23  Bruno Haible  <bruno@clisp.org>
9846
9847         safe-alloc: Move AC_LIBOBJ invocations to module description.
9848         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
9849         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
9850
9851 2011-05-23  Bruno Haible  <bruno@clisp.org>
9852
9853         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
9854         * m4/rijndael.m4: Remove file.
9855         * modules/crypto/rijndael (Files): Remove it.
9856         (configure.ac): Remove gl_RIJNDAEL call.
9857         (Makefile.am): Augment lib_SOURCES.
9858
9859 2011-05-23  Bruno Haible  <bruno@clisp.org>
9860
9861         readtokens: Move AC_LIBOBJ invocations to module description.
9862         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
9863         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
9864
9865 2011-05-23  Bruno Haible  <bruno@clisp.org>
9866
9867         read-file: Move AC_LIBOBJ invocations to module description.
9868         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
9869         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
9870         of gl_FUNC_READ_FILE.
9871         (Makefile.am): Augment lib_SOURCES.
9872
9873 2011-05-23  Bruno Haible  <bruno@clisp.org>
9874
9875         quotearg: Move AC_LIBOBJ invocations to module description.
9876         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
9877         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
9878
9879 2011-05-23  Bruno Haible  <bruno@clisp.org>
9880
9881         quote: Move AC_LIBOBJ invocations to module description.
9882         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
9883         * modules/quote (Makefile.am): Augment lib_SOURCES.
9884
9885 2011-05-23  Bruno Haible  <bruno@clisp.org>
9886
9887         posixver: Move AC_LIBOBJ invocations to module description.
9888         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
9889         * modules/posixver (Makefile.am): Augment lib_SOURCES.
9890
9891 2011-05-23  Bruno Haible  <bruno@clisp.org>
9892
9893         posixtm: Move AC_LIBOBJ invocations to module description.
9894         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
9895         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
9896
9897 2011-05-23  Bruno Haible  <bruno@clisp.org>
9898
9899         physmem: Move AC_LIBOBJ invocations to module description.
9900         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
9901         * modules/physmem (Makefile.am): Augment lib_SOURCES.
9902
9903 2011-05-23  Bruno Haible  <bruno@clisp.org>
9904
9905         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
9906         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
9907         invocation.
9908         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
9909
9910 2011-05-23  Bruno Haible  <bruno@clisp.org>
9911
9912         mpsort: Move AC_LIBOBJ invocations to module description.
9913         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
9914         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
9915
9916 2011-05-23  Bruno Haible  <bruno@clisp.org>
9917
9918         modechange: Move AC_LIBOBJ invocations to module description.
9919         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
9920         * modules/modechange (Makefile.am): Augment lib_SOURCES.
9921
9922 2011-05-23  Bruno Haible  <bruno@clisp.org>
9923
9924         mkdir-p: Move AC_LIBOBJ invocations to module description.
9925         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
9926         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
9927
9928 2011-05-23  Bruno Haible  <bruno@clisp.org>
9929
9930         mkancesdirs: Move AC_LIBOBJ invocations to module description.
9931         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
9932         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
9933
9934 2011-05-23  Bruno Haible  <bruno@clisp.org>
9935
9936         mgetgroups: Move AC_LIBOBJ invocations to module description.
9937         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
9938         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
9939
9940 2011-05-23  Bruno Haible  <bruno@clisp.org>
9941
9942         memxor: Move AC_LIBOBJ invocations to module description.
9943         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
9944         * modules/memxor (Makefile.am): Augment lib_SOURCES.
9945
9946 2011-05-23  Bruno Haible  <bruno@clisp.org>
9947
9948         memcoll: Move AC_LIBOBJ invocations to module description.
9949         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
9950         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
9951
9952 2011-05-23  Bruno Haible  <bruno@clisp.org>
9953
9954         memcasecmp: Move AC_LIBOBJ invocations to module description.
9955         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
9956         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
9957
9958 2011-05-23  Bruno Haible  <bruno@clisp.org>
9959
9960         crypto/md5: Move AC_LIBOBJ invocations to module description.
9961         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
9962         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
9963
9964 2011-05-23  Bruno Haible  <bruno@clisp.org>
9965
9966         crypto/md4: Move AC_LIBOBJ invocations to module description.
9967         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
9968         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
9969
9970 2011-05-23  Bruno Haible  <bruno@clisp.org>
9971
9972         crypto/md2: Move AC_LIBOBJ invocations to module description.
9973         * m4/md2.m4: Remove file.
9974         * modules/crypto/md2 (Files): Remove it.
9975         (configure.ac): Remove gl_MD2 call.
9976         (Makefile.am): Augment lib_SOURCES.
9977
9978 2011-05-23  Bruno Haible  <bruno@clisp.org>
9979
9980         long-options: Move AC_LIBOBJ invocations to module description.
9981         * m4/long-options.m4: Remove file.
9982         * modules/long-options (Files): Remove it.
9983         (configure.ac): Remove gl_LONG_OPTIONS call.
9984         (Makefile.am): Augment lib_SOURCES.
9985
9986 2011-05-23  Bruno Haible  <bruno@clisp.org>
9987
9988         i-ring: Move AC_LIBOBJ invocations to module description.
9989         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
9990         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
9991
9992 2011-05-23  Bruno Haible  <bruno@clisp.org>
9993
9994         idcache: Move AC_LIBOBJ invocations to module description.
9995         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
9996         * modules/idcache (Makefile.am): Augment lib_SOURCES.
9997
9998 2011-05-23  Bruno Haible  <bruno@clisp.org>
9999
10000         human: Move AC_LIBOBJ invocations to module description.
10001         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
10002         * modules/human (Makefile.am): Augment lib_SOURCES.
10003
10004 2011-05-23  Bruno Haible  <bruno@clisp.org>
10005
10006         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
10007         * m4/hmac-sha1.m4: Remove file.
10008         * modules/crypto/hmac-sha1 (Files): Remove it.
10009         (configure.ac): Remove gl_HMAC_SHA1 call.
10010         (Makefile.am): Augment lib_SOURCES.
10011
10012 2011-05-23  Bruno Haible  <bruno@clisp.org>
10013
10014         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
10015         * m4/hmac-md5.m4: Remove file.
10016         * modules/crypto/hmac-md5 (Files): Remove it.
10017         (configure.ac): Remove gl_HMAC_MD5 call.
10018         (Makefile.am): Augment lib_SOURCES.
10019
10020 2011-05-23  Bruno Haible  <bruno@clisp.org>
10021
10022         hash: Move AC_LIBOBJ invocations to module description.
10023         * m4/hash.m4: Remove file.
10024         * modules/hash (Files): Remove it.
10025         (configure.ac): Remove gl_HASH call.
10026         (Makefile.am): Augment lib_SOURCES.
10027
10028 2011-05-23  Bruno Haible  <bruno@clisp.org>
10029
10030         hard-locale: Move AC_LIBOBJ invocations to module description.
10031         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
10032         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
10033
10034 2011-05-23  Bruno Haible  <bruno@clisp.org>
10035
10036         getugroups: Move AC_LIBOBJ invocations to module description.
10037         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
10038         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
10039
10040 2011-05-23  Bruno Haible  <bruno@clisp.org>
10041
10042         gettime: Move AC_LIBOBJ invocations to module description.
10043         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
10044         * modules/gettime (Makefile.am): Augment lib_SOURCES.
10045
10046 2011-05-23  Bruno Haible  <bruno@clisp.org>
10047
10048         getndelim2: Move AC_LIBOBJ invocations to module description.
10049         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
10050         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
10051
10052 2011-05-23  Bruno Haible  <bruno@clisp.org>
10053
10054         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
10055         * m4/gc-pbkdf2-sha1.m4: Remove file.
10056         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
10057         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
10058         (Makefile.am): Augment lib_SOURCES.
10059
10060 2011-05-23  Bruno Haible  <bruno@clisp.org>
10061
10062         fts: Move AC_LIBOBJ invocations to module description.
10063         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
10064         * modules/fts (configure.ac): ... to here.
10065
10066 2011-05-23  Bruno Haible  <bruno@clisp.org>
10067
10068         file-type: Move AC_LIBOBJ invocations to module description.
10069         * m4/file-type.m4: Remove file.
10070         * modules/file-type (Files): Remove it.
10071         (configure.ac): Remove gl_FILE_TYPE call.
10072         (Makefile.am): Augment lib_SOURCES.
10073
10074 2011-05-23  Bruno Haible  <bruno@clisp.org>
10075
10076         filenamecat*: Respect rules for use of AC_LIBOBJ.
10077         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
10078         Remove AC_LIBOBJ invocation.
10079         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
10080         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
10081
10082 2011-05-23  Bruno Haible  <bruno@clisp.org>
10083
10084         filemode: Move AC_LIBOBJ invocations to module description.
10085         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
10086         * modules/filemode (Makefile.am): Augment lib_SOURCES.
10087
10088 2011-05-23  Bruno Haible  <bruno@clisp.org>
10089
10090         openat-safer: Move AC_LIBOBJ invocations to module description.
10091         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
10092         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
10093
10094 2011-05-23  Bruno Haible  <bruno@clisp.org>
10095
10096         fcntl-safer: Move AC_LIBOBJ invocations to module description.
10097         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
10098         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
10099
10100 2011-05-23  Bruno Haible  <bruno@clisp.org>
10101
10102         exclude: Move AC_LIBOBJ invocations to module description.
10103         * m4/exclude.m4: Remove file.
10104         * modules/exclude (Files): Remove it.
10105         (configure.ac): Remove gl_EXCLUDE call.
10106         (Makefile.am): Augment lib_SOURCES.
10107
10108 2011-05-23  Bruno Haible  <bruno@clisp.org>
10109
10110         dirname*: Respect rules for use of AC_LIBOBJ.
10111         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
10112         invocations.
10113         * modules/dirname (Makefile.am): Augment lib_SOURCES.
10114         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
10115
10116 2011-05-23  Bruno Haible  <bruno@clisp.org>
10117
10118         dirent-safer: Move AC_LIBOBJ invocations to module description.
10119         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
10120         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
10121
10122 2011-05-23  Bruno Haible  <bruno@clisp.org>
10123
10124         crypto/des: Move AC_LIBOBJ invocations to module description.
10125         * m4/des.m4: Remove file.
10126         * modules/crypto/des (Files): Remove it.
10127         (configure.ac): Remove gl_DES call.
10128         (Makefile.am): Augment lib_SOURCES.
10129
10130 2011-05-23  Bruno Haible  <bruno@clisp.org>
10131
10132         cycle-check: Move AC_LIBOBJ invocations to module description.
10133         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
10134         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
10135
10136 2011-05-23  Bruno Haible  <bruno@clisp.org>
10137
10138         c-strtold: Move AC_LIBOBJ invocations to module description.
10139         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
10140         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
10141
10142 2011-05-23  Bruno Haible  <bruno@clisp.org>
10143
10144         c-strtod: Move AC_LIBOBJ invocations to module description.
10145         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
10146         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
10147
10148 2011-05-23  Bruno Haible  <bruno@clisp.org>
10149
10150         crc: Move AC_LIBOBJ invocations to module description.
10151         * m4/crc.m4: Remove file.
10152         * modules/crc (Files): Remove it.
10153         (configure.ac): Remove gl_CRC call.
10154         (Makefile.am): Augment lib_SOURCES.
10155
10156 2011-05-23  Bruno Haible  <bruno@clisp.org>
10157
10158         close-stream: Move AC_LIBOBJ invocations to module description.
10159         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
10160         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
10161
10162 2011-05-23  Bruno Haible  <bruno@clisp.org>
10163
10164         closeout: Move AC_LIBOBJ invocations to module description.
10165         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
10166         * modules/closeout (Makefile.am): Augment lib_SOURCES.
10167
10168 2011-05-23  Bruno Haible  <bruno@clisp.org>
10169
10170         closein: Move AC_LIBOBJ invocations to module description.
10171         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
10172         * modules/closein (Makefile.am): Augment lib_SOURCES.
10173
10174 2011-05-23  Bruno Haible  <bruno@clisp.org>
10175
10176         cloexec: Move AC_LIBOBJ invocations to module description.
10177         * m4/cloexec.m4: Remove file.
10178         * modules/cloexec (Files): Remove it.
10179         (configure.ac): Remove gl_CLOEXEC call.
10180         (Makefile.am): Augment lib_SOURCES.
10181
10182 2011-05-23  Bruno Haible  <bruno@clisp.org>
10183
10184         check-version: Move AC_LIBOBJ invocations to module description.
10185         * m4/check-version.m4: Remove file.
10186         * modules/check-version (Files): Remove it.
10187         (configure.ac): Remove gl_CHECK_VERSION call.
10188         (Makefile.am): Augment lib_SOURCES.
10189
10190 2011-05-23  Bruno Haible  <bruno@clisp.org>
10191
10192         chdir-safer: Move AC_LIBOBJ invocations to module description.
10193         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
10194         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
10195
10196 2011-05-23  Bruno Haible  <bruno@clisp.org>
10197
10198         canonicalize: Move AC_LIBOBJ invocations to module description.
10199         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
10200         AC_LIBOBJ invocation.
10201         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
10202
10203 2011-05-23  Bruno Haible  <bruno@clisp.org>
10204
10205         canon-host: Move AC_LIBOBJ invocations to module description.
10206         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
10207         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
10208         instead of gl_CANON_HOST.
10209         (Makefile.am): Augment lib_SOURCES.
10210
10211 2011-05-23  Bruno Haible  <bruno@clisp.org>
10212
10213         backupfile: Move AC_LIBOBJ invocations to module description.
10214         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
10215         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
10216
10217 2011-05-23  Bruno Haible  <bruno@clisp.org>
10218
10219         argmatch: Move AC_LIBOBJ invocations to module description.
10220         * m4/argmatch.m4: Remove file.
10221         * modules/argmatch (Files): Remove it.
10222         (configure.ac): Remove gl_ARGMATCH call.
10223         (Makefile.am): Augment lib_SOURCES.
10224
10225 2011-05-23  Bruno Haible  <bruno@clisp.org>
10226
10227         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
10228         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
10229         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
10230
10231 2011-05-23  Bruno Haible  <bruno@clisp.org>
10232
10233         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
10234         * m4/arcfour.m4: Remove file.
10235         * modules/crypto/arcfour (Files): Remove it.
10236         (configure.ac): Remove gl_ARCFOUR call.
10237         (Makefile.am): Augment lib_SOURCES.
10238
10239 2011-05-22  Bruno Haible  <bruno@clisp.org>
10240
10241         write: Move AC_LIBOBJ invocations to module description.
10242         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
10243         * modules/write (configure.ac): ... to here.
10244
10245 2011-05-22  Bruno Haible  <bruno@clisp.org>
10246
10247         wmemset: Move AC_LIBOBJ invocations to module description.
10248         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
10249         here...
10250         * modules/wmemset (configure.ac): ... to here.
10251
10252 2011-05-22  Bruno Haible  <bruno@clisp.org>
10253
10254         wmemmove: Move AC_LIBOBJ invocations to module description.
10255         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
10256         here...
10257         * modules/wmemmove (configure.ac): ... to here.
10258
10259 2011-05-22  Bruno Haible  <bruno@clisp.org>
10260
10261         wmemcpy: Move AC_LIBOBJ invocations to module description.
10262         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
10263         here...
10264         * modules/wmemcpy (configure.ac): ... to here.
10265
10266 2011-05-22  Bruno Haible  <bruno@clisp.org>
10267
10268         wmemcmp: Move AC_LIBOBJ invocations to module description.
10269         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
10270         here...
10271         * modules/wmemcmp (configure.ac): ... to here.
10272
10273 2011-05-22  Bruno Haible  <bruno@clisp.org>
10274
10275         wmemchr: Move AC_LIBOBJ invocations to module description.
10276         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
10277         here...
10278         * modules/wmemchr (configure.ac): ... to here.
10279
10280 2011-05-22  Bruno Haible  <bruno@clisp.org>
10281
10282         wcswidth: Move AC_LIBOBJ invocations to module description.
10283         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
10284         here...
10285         * modules/wcswidth (configure.ac): ... to here.
10286
10287 2011-05-22  Bruno Haible  <bruno@clisp.org>
10288
10289         wcwidth: Respect rules for use of AC_LIBOBJ.
10290         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
10291         invocation from here...
10292         * modules/wcwidth (configure.ac): ... to here.
10293         (Depends-on): Update conditions.
10294
10295 2011-05-22  Bruno Haible  <bruno@clisp.org>
10296
10297         wctype: Move AC_LIBOBJ invocations to module description.
10298         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
10299         invocation from here...
10300         * modules/wctype (configure.ac): ... to here.
10301         (Depends-on): Update conditions.
10302
10303 2011-05-22  Bruno Haible  <bruno@clisp.org>
10304
10305         wctrans: Move AC_LIBOBJ invocations to module description.
10306         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
10307         invocation from here...
10308         * modules/wctrans (configure.ac): ... to here.
10309
10310 2011-05-22  Bruno Haible  <bruno@clisp.org>
10311
10312         wctomb: Move AC_LIBOBJ invocations to module description.
10313         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
10314         invocations from here...
10315         * modules/wctomb (configure.ac): ... to here.
10316
10317 2011-05-22  Bruno Haible  <bruno@clisp.org>
10318
10319         wctob: Move AC_LIBOBJ invocations to module description.
10320         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
10321         gl_PREREQ_WCTOB invocations from here...
10322         * modules/wctob (configure.ac): ... to here.
10323         (Depends-on): Update conditions.
10324
10325 2011-05-22  Bruno Haible  <bruno@clisp.org>
10326
10327         wcsxfrm: Move AC_LIBOBJ invocations to module description.
10328         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
10329         here...
10330         * modules/wcsxfrm (configure.ac): ... to here.
10331
10332 2011-05-22  Bruno Haible  <bruno@clisp.org>
10333
10334         wcstok: Move AC_LIBOBJ invocations to module description.
10335         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
10336         * modules/wcstok (configure.ac): ... to here.
10337
10338 2011-05-22  Bruno Haible  <bruno@clisp.org>
10339
10340         wcsstr: Move AC_LIBOBJ invocations to module description.
10341         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
10342         * modules/wcsstr (configure.ac): ... to here.
10343
10344 2011-05-22  Bruno Haible  <bruno@clisp.org>
10345
10346         wcsspn: Move AC_LIBOBJ invocations to module description.
10347         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
10348         * modules/wcsspn (configure.ac): ... to here.
10349
10350 2011-05-22  Bruno Haible  <bruno@clisp.org>
10351
10352         wcsrtombs: Move AC_LIBOBJ invocations to module description.
10353         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
10354         gl_PREREQ_WCSRTOMBS invocations from here...
10355         * modules/wcsrtombs (configure.ac): ... to here.
10356
10357 2011-05-22  Bruno Haible  <bruno@clisp.org>
10358
10359         wcsrchr: Move AC_LIBOBJ invocations to module description.
10360         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
10361         here...
10362         * modules/wcsrchr (configure.ac): ... to here.
10363
10364 2011-05-22  Bruno Haible  <bruno@clisp.org>
10365
10366         wcspbrk: Move AC_LIBOBJ invocations to module description.
10367         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
10368         here...
10369         * modules/wcspbrk (configure.ac): ... to here.
10370
10371 2011-05-22  Bruno Haible  <bruno@clisp.org>
10372
10373         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
10374         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
10375         gl_PREREQ_WCSNRTOMBS invocations from here...
10376         * modules/wcsnrtombs (configure.ac): ... to here.
10377
10378 2011-05-22  Bruno Haible  <bruno@clisp.org>
10379
10380         wcsnlen: Move AC_LIBOBJ invocations to module description.
10381         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
10382         here...
10383         * modules/wcsnlen (configure.ac): ... to here.
10384
10385 2011-05-22  Bruno Haible  <bruno@clisp.org>
10386
10387         wcsncpy: Move AC_LIBOBJ invocations to module description.
10388         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
10389         here...
10390         * modules/wcsncpy (configure.ac): ... to here.
10391
10392 2011-05-22  Bruno Haible  <bruno@clisp.org>
10393
10394         wcsncmp: Move AC_LIBOBJ invocations to module description.
10395         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
10396         here...
10397         * modules/wcsncmp (configure.ac): ... to here.
10398
10399 2011-05-22  Bruno Haible  <bruno@clisp.org>
10400
10401         wcsncat: Move AC_LIBOBJ invocations to module description.
10402         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
10403         here...
10404         * modules/wcsncat (configure.ac): ... to here.
10405
10406 2011-05-22  Bruno Haible  <bruno@clisp.org>
10407
10408         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
10409         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
10410         from here...
10411         * modules/wcsncasecmp (configure.ac): ... to here.
10412
10413 2011-05-22  Bruno Haible  <bruno@clisp.org>
10414
10415         wcslen: Move AC_LIBOBJ invocations to module description.
10416         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
10417         * modules/wcslen (configure.ac): ... to here.
10418
10419 2011-05-22  Bruno Haible  <bruno@clisp.org>
10420
10421         wcsdup: Move AC_LIBOBJ invocations to module description.
10422         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
10423         * modules/wcsdup (configure.ac): ... to here.
10424
10425 2011-05-22  Bruno Haible  <bruno@clisp.org>
10426
10427         wcscspn: Move AC_LIBOBJ invocations to module description.
10428         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
10429         here...
10430         * modules/wcscspn (configure.ac): ... to here.
10431
10432 2011-05-22  Bruno Haible  <bruno@clisp.org>
10433
10434         wcscpy: Move AC_LIBOBJ invocations to module description.
10435         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
10436         * modules/wcscpy (configure.ac): ... to here.
10437
10438 2011-05-22  Bruno Haible  <bruno@clisp.org>
10439
10440         wcscoll: Move AC_LIBOBJ invocations to module description.
10441         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
10442         here...
10443         * modules/wcscoll (configure.ac): ... to here.
10444
10445 2011-05-22  Bruno Haible  <bruno@clisp.org>
10446
10447         wcscmp: Move AC_LIBOBJ invocations to module description.
10448         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
10449         * modules/wcscmp (configure.ac): ... to here.
10450
10451 2011-05-22  Bruno Haible  <bruno@clisp.org>
10452
10453         wcschr: Move AC_LIBOBJ invocations to module description.
10454         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
10455         * modules/wcschr (configure.ac): ... to here.
10456
10457 2011-05-22  Bruno Haible  <bruno@clisp.org>
10458
10459         wcscat: Move AC_LIBOBJ invocations to module description.
10460         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
10461         * modules/wcscat (configure.ac): ... to here.
10462
10463 2011-05-22  Bruno Haible  <bruno@clisp.org>
10464
10465         wcscasecmp: Move AC_LIBOBJ invocations to module description.
10466         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
10467         here...
10468         * modules/wcscasecmp (configure.ac): ... to here.
10469
10470 2011-05-22  Bruno Haible  <bruno@clisp.org>
10471
10472         wcrtomb: Move AC_LIBOBJ invocations to module description.
10473         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
10474         invocations from here...
10475         * modules/wcrtomb (configure.ac): ... to here.
10476
10477 2011-05-22  Bruno Haible  <bruno@clisp.org>
10478
10479         wcpncpy: Move AC_LIBOBJ invocations to module description.
10480         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
10481         here...
10482         * modules/wcpncpy (configure.ac): ... to here.
10483
10484 2011-05-22  Bruno Haible  <bruno@clisp.org>
10485
10486         wcpcpy: Move AC_LIBOBJ invocations to module description.
10487         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
10488         * modules/wcpcpy (configure.ac): ... to here.
10489
10490 2011-05-22  Bruno Haible  <bruno@clisp.org>
10491
10492         waitpid: Move AC_LIBOBJ invocations to module description.
10493         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
10494         invocation from here...
10495         * modules/waitpid (configure.ac): ... to here.
10496
10497 2011-05-22  Bruno Haible  <bruno@clisp.org>
10498
10499         utimensat: Move AC_LIBOBJ invocations to module description.
10500         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
10501         here...
10502         * modules/utimensat (configure.ac): ... to here.
10503
10504 2011-05-22  Bruno Haible  <bruno@clisp.org>
10505
10506         usleep: Move AC_LIBOBJ invocations to module description.
10507         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
10508         here...
10509         * modules/usleep (configure.ac): ... to here.
10510
10511 2011-05-22  Bruno Haible  <bruno@clisp.org>
10512
10513         unlockpt: Move AC_LIBOBJ invocations to module description.
10514         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
10515         gl_PREREQ_UNLOCKPT invocations from here...
10516         * modules/unlockpt (configure.ac): ... to here.
10517
10518 2011-05-22  Bruno Haible  <bruno@clisp.org>
10519
10520         unlink: Respect rules for use of AC_LIBOBJ.
10521         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
10522         * modules/unlink (configure.ac): ... to here.
10523
10524 2011-05-22  Bruno Haible  <bruno@clisp.org>
10525
10526         uname: Move AC_LIBOBJ invocations to module description.
10527         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
10528         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
10529         here...
10530         * modules/uname (configure.ac): ... to here.
10531
10532 2011-05-22  Bruno Haible  <bruno@clisp.org>
10533
10534         ttyname_r: Move AC_LIBOBJ invocations to module description.
10535         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
10536         gl_PREREQ_TTYNAME_R invocations from here...
10537         * modules/ttyname_r (configure.ac): ... to here.
10538
10539 2011-05-22  Bruno Haible  <bruno@clisp.org>
10540
10541         tsearch: Move AC_LIBOBJ invocations to module description.
10542         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
10543         invocations from here...
10544         * modules/tsearch (configure.ac): ... to here.
10545
10546 2011-05-22  Bruno Haible  <bruno@clisp.org>
10547
10548         towctrans: Move AC_LIBOBJ invocations to module description.
10549         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
10550         AC_LIBOBJ invocation from here...
10551         * modules/towctrans (configure.ac): ... to here.
10552
10553 2011-05-22  Bruno Haible  <bruno@clisp.org>
10554
10555         tmpfile: Move AC_LIBOBJ invocations to module description.
10556         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
10557         invocations from here...
10558         * modules/tmpfile (configure.ac): ... to here.
10559
10560 2011-05-22  Bruno Haible  <bruno@clisp.org>
10561
10562         times: Move AC_LIBOBJ invocations to module description.
10563         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
10564         * modules/times (configure.ac): ... to here.
10565
10566 2011-05-22  Bruno Haible  <bruno@clisp.org>
10567
10568         time_r: Move AC_LIBOBJ invocations to module description.
10569         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
10570         invocations from here...
10571         * modules/time_r (configure.ac): ... to here.
10572
10573 2011-05-22  Bruno Haible  <bruno@clisp.org>
10574
10575         timegm: Move AC_LIBOBJ invocations to module description.
10576         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
10577         invocations from here...
10578         * modules/timegm (configure.ac): ... to here.
10579
10580 2011-05-22  Bruno Haible  <bruno@clisp.org>
10581
10582         tcgetsid: Move AC_LIBOBJ invocations to module description.
10583         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
10584         and gl_PREREQ_TCGETSID invocations from here...
10585         * modules/tcgetsid (configure.ac): ... to here.
10586         (Depends-on): Update conditions.
10587
10588 2011-05-22  Bruno Haible  <bruno@clisp.org>
10589
10590         symlinkat: Move AC_LIBOBJ invocations to module description.
10591         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
10592         here...
10593         * modules/symlinkat (configure.ac): ... to here.
10594
10595 2011-05-22  Bruno Haible  <bruno@clisp.org>
10596
10597         symlink: Move AC_LIBOBJ invocations to module description.
10598         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
10599         here...
10600         * modules/symlink (configure.ac): ... to here.
10601
10602 2011-05-22  Bruno Haible  <bruno@clisp.org>
10603
10604         strverscmp: Move AC_LIBOBJ invocations to module description.
10605         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
10606         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
10607         from here...
10608         * modules/strverscmp (configure.ac): ... to here.
10609
10610 2011-05-22  Bruno Haible  <bruno@clisp.org>
10611
10612         strtok_r: Move AC_LIBOBJ invocations to module description.
10613         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
10614         and gl_PREREQ_STRTOK_R invocations from here...
10615         * modules/strtok_r (configure.ac): ... to here.
10616         (Depends-on): Update conditions.
10617
10618 2011-05-22  Bruno Haible  <bruno@clisp.org>
10619
10620         strtoumax: Move AC_LIBOBJ invocations to module description.
10621         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
10622         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
10623         from here...
10624         * modules/strtoumax (configure.ac): ... to here.
10625
10626 2011-05-22  Bruno Haible  <bruno@clisp.org>
10627
10628         strtoimax: Move AC_LIBOBJ invocations to module description.
10629         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
10630         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
10631         from here...
10632         * modules/strtoimax (configure.ac): ... to here.
10633
10634 2011-05-22  Bruno Haible  <bruno@clisp.org>
10635
10636         strtoull: Move AC_LIBOBJ invocations to module description.
10637         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
10638         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
10639         from here...
10640         * modules/strtoull (configure.ac): ... to here.
10641
10642 2011-05-22  Bruno Haible  <bruno@clisp.org>
10643
10644         strtoll: Move AC_LIBOBJ invocations to module description.
10645         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
10646         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
10647         here...
10648         * modules/strtoll (configure.ac): ... to here.
10649
10650 2011-05-22  Bruno Haible  <bruno@clisp.org>
10651
10652         strtoul: Move AC_LIBOBJ invocations to module description.
10653         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
10654         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
10655         * modules/strtoul (configure.ac): ... to here.
10656
10657 2011-05-22  Bruno Haible  <bruno@clisp.org>
10658
10659         strtol: Move AC_LIBOBJ invocations to module description.
10660         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
10661         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
10662         * modules/strtol (configure.ac): ... to here.
10663
10664 2011-05-22  Bruno Haible  <bruno@clisp.org>
10665
10666         strtod: Move AC_LIBOBJ invocations to module description.
10667         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
10668         invocations from here...
10669         * modules/strtod (configure.ac): ... to here.
10670
10671 2011-05-22  Bruno Haible  <bruno@clisp.org>
10672
10673         strstr*: Move AC_LIBOBJ invocations to module description.
10674         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
10675         invocations from here...
10676         * modules/strstr-simple (configure.ac): ... to here.
10677         * modules/strstr (configure.ac): ... and here.
10678
10679 2011-05-22  Bruno Haible  <bruno@clisp.org>
10680
10681         strsignal: Move AC_LIBOBJ invocations to module description.
10682         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
10683         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
10684         * modules/strsignal (configure.ac): ... to here.
10685         (Depends-on): Update conditions.
10686
10687 2011-05-22  Bruno Haible  <bruno@clisp.org>
10688
10689         strsep: Move AC_LIBOBJ invocations to module description.
10690         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
10691         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
10692         here...
10693         * modules/strsep (configure.ac): ... to here.
10694
10695 2011-05-22  Bruno Haible  <bruno@clisp.org>
10696
10697         strptime: Move AC_LIBOBJ invocations to module description.
10698         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
10699         gl_PREREQ_STRPTIME invocations from here...
10700         * modules/strptime (configure.ac): ... to here.
10701
10702 2011-05-22  Bruno Haible  <bruno@clisp.org>
10703
10704         strpbrk: Move AC_LIBOBJ invocations to module description.
10705         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
10706         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
10707         here...
10708         * modules/strpbrk (configure.ac): ... to here.
10709
10710 2011-05-22  Bruno Haible  <bruno@clisp.org>
10711
10712         strnlen: Move AC_LIBOBJ invocations to module description.
10713         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
10714         invocations from here...
10715         * modules/strnlen (configure.ac): ... to here.
10716
10717 2011-05-22  Bruno Haible  <bruno@clisp.org>
10718
10719         strndup: Move AC_LIBOBJ invocations to module description.
10720         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
10721         invocations from here...
10722         * modules/strndup (configure.ac): ... to here.
10723         (Depends-on): Update conditions.
10724
10725 2011-05-22  Bruno Haible  <bruno@clisp.org>
10726
10727         strncat: Move AC_LIBOBJ invocations to module description.
10728         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
10729         invocations from here...
10730         * modules/strncat (configure.ac): ... to here.
10731
10732 2011-05-22  Bruno Haible  <bruno@clisp.org>
10733
10734         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
10735         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
10736         invocations from here...
10737         * modules/strdup (configure.ac): ... to here.
10738         * modules/strdup-posix (configure.ac): ... and here.
10739
10740 2011-05-22  Bruno Haible  <bruno@clisp.org>
10741
10742         strcspn: Move AC_LIBOBJ invocations to module description.
10743         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
10744         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
10745         here...
10746         * modules/strcspn (configure.ac): ... to here.
10747
10748 2011-05-22  Bruno Haible  <bruno@clisp.org>
10749
10750         strchrnul: Move AC_LIBOBJ invocations to module description.
10751         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
10752         gl_PREREQ_STRCHRNUL invocations from here...
10753         * modules/strchrnul (configure.ac): ... to here.
10754
10755 2011-05-22  Bruno Haible  <bruno@clisp.org>
10756
10757         strcasestr*: Move AC_LIBOBJ invocations to module description.
10758         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
10759         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
10760         * modules/strcasestr-simple (configure.ac): ... to here.
10761         * modules/strcasestr (configure.ac): ... and here.
10762
10763 2011-05-22  Bruno Haible  <bruno@clisp.org>
10764
10765         strcase: Move AC_LIBOBJ invocations to module description.
10766         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
10767         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
10768         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
10769         gl_PREREQ_STRNCASECMP invocations from here...
10770         * modules/strcase (configure.ac): ... to here.
10771
10772 2011-05-22  Bruno Haible  <bruno@clisp.org>
10773
10774         stpncpy: Move AC_LIBOBJ invocations to module description.
10775         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
10776         here...
10777         * modules/stpncpy (configure.ac): ... to here.
10778
10779 2011-05-22  Bruno Haible  <bruno@clisp.org>
10780
10781         stpcpy: Move AC_LIBOBJ invocations to module description.
10782         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
10783         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
10784         here...
10785         * modules/stpcpy (configure.ac): ... to here.
10786
10787 2011-05-21  Bruno Haible  <bruno@clisp.org>
10788
10789         stat: Move AC_LIBOBJ invocations to module description.
10790         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
10791         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
10792         here...
10793         * modules/stat (configure.ac): ... to here.
10794
10795 2011-05-21  Bruno Haible  <bruno@clisp.org>
10796
10797         sleep: Move AC_LIBOBJ invocations to module description.
10798         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
10799         * modules/sleep (configure.ac): ... to here.
10800
10801 2011-05-21  Bruno Haible  <bruno@clisp.org>
10802
10803         signbit: Move AC_LIBOBJ invocations to module description.
10804         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
10805         * modules/signbit (configure.ac): ... to here.
10806
10807 2011-05-21  Bruno Haible  <bruno@clisp.org>
10808
10809         sigprocmask: Move AC_LIBOBJ invocations to module description.
10810         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
10811         gl_PREREQ_SIGPROMASK invocations from here...
10812         * modules/sigprocmask (configure.ac): ... to here.
10813
10814 2011-05-21  Bruno Haible  <bruno@clisp.org>
10815
10816         sigaction: Move AC_LIBOBJ invocations to module description.
10817         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
10818         gl_PREREQ_SIGACTION invocations from here...
10819         * modules/sigaction (configure.ac): ... to here.
10820
10821 2011-05-21  Bruno Haible  <bruno@clisp.org>
10822
10823         sig2str: Move AC_LIBOBJ invocations to module description.
10824         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
10825         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
10826         here...
10827         * modules/sig2str (configure.ac): ... to here.
10828
10829 2011-05-21  Bruno Haible  <bruno@clisp.org>
10830
10831         setlocale: Move AC_LIBOBJ invocations to module description.
10832         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
10833         gl_PREREQ_SETLOCALE invocations from here...
10834         * modules/setlocale (configure.ac): ... to here.
10835
10836 2011-05-21  Bruno Haible  <bruno@clisp.org>
10837
10838         unsetenv: Move AC_LIBOBJ invocations to module description.
10839         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
10840         and gl_PREREQ_UNSETENV invocations from here...
10841         * modules/unsetenv (configure.ac): ... to here.
10842         (Depends-on): Update.
10843
10844 2011-05-21  Bruno Haible  <bruno@clisp.org>
10845
10846         setenv: Move AC_LIBOBJ invocations to module description.
10847         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
10848         here...
10849         * modules/setenv (configure.ac): ... to here.
10850
10851 2011-05-21  Bruno Haible  <bruno@clisp.org>
10852
10853         selinux-h: Move AC_LIBOBJ invocations to module description.
10854         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
10855         AC_LIBOBJ invocation from here...
10856         * modules/selinux-h (configure.ac): ... to here.
10857
10858 2011-05-21  Bruno Haible  <bruno@clisp.org>
10859
10860         select: Respect rules for use of AC_LIBOBJ.
10861         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
10862         here...
10863         * modules/select (configure.ac): ... to here.
10864
10865 2011-05-21  Bruno Haible  <bruno@clisp.org>
10866
10867         scandir: Move AC_LIBOBJ invocations to module description.
10868         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
10869         invocations from here...
10870         * modules/scandir (configure.ac): ... to here.
10871
10872 2011-05-21  Bruno Haible  <bruno@clisp.org>
10873
10874         rpmatch: Move AC_LIBOBJ invocations to module description.
10875         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
10876         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
10877         here...
10878         * modules/rpmatch (configure.ac): ... to here.
10879
10880 2011-05-21  Bruno Haible  <bruno@clisp.org>
10881
10882         rmdir: Respect rules for use of AC_LIBOBJ.
10883         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
10884         * modules/rmdir (configure.ac): ... to here.
10885
10886 2011-05-21  Bruno Haible  <bruno@clisp.org>
10887
10888         renameat: Move AC_LIBOBJ invocations to module description.
10889         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
10890         here...
10891         * modules/renameat (configure.ac): ... to here.
10892
10893 2011-05-21  Bruno Haible  <bruno@clisp.org>
10894
10895         rename: Respect rules for use of AC_LIBOBJ.
10896         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
10897         here...
10898         * modules/rename (configure.ac): ... to here.
10899
10900 2011-05-21  Bruno Haible  <bruno@clisp.org>
10901
10902         remove: Move AC_LIBOBJ invocations to module description.
10903         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
10904         here...
10905         * modules/remove (configure.ac): ... to here.
10906
10907 2011-05-21  Bruno Haible  <bruno@clisp.org>
10908
10909         relocatable-lib: Move AC_LIBOBJ invocations to module description.
10910         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
10911         macro.
10912         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
10913         * modules/relocatable-lib (configure.ac): ... to here.
10914         * modules/relocatable-prog-wrapper (configure.ac): Invoke
10915         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
10916
10917 2011-05-21  Bruno Haible  <bruno@clisp.org>
10918
10919         relocatable-prog: Move AC_LIBOBJ invocations to module description.
10920         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
10921         here...
10922         * modules/relocatable-prog (configure.ac): ... to here.
10923
10924 2011-05-21  Bruno Haible  <bruno@clisp.org>
10925
10926         regex: Move AC_LIBOBJ invocations to module description.
10927         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
10928         invocations from here...
10929         * modules/regex (configure.ac): ... to here.
10930
10931 2011-05-21  Bruno Haible  <bruno@clisp.org>
10932
10933         realloc-*: Move AC_LIBOBJ invocations to module description.
10934         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
10935         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
10936         AC_LIBOBJ invocations from here...
10937         * modules/realloc-gnu (configure.ac): ... to here.
10938         * modules/realloc-posix (configure.ac): ... and here.
10939
10940 2011-05-21  Bruno Haible  <bruno@clisp.org>
10941
10942         readutmp: Move AC_LIBOBJ invocations to module description.
10943         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
10944         * modules/readutmp (configure.ac): ... to here.
10945
10946 2011-05-21  Bruno Haible  <bruno@clisp.org>
10947
10948         readlinkat: Move AC_LIBOBJ invocations to module description.
10949         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
10950         here...
10951         * modules/readlinkat (configure.ac): ... to here.
10952
10953 2011-05-21  Bruno Haible  <bruno@clisp.org>
10954
10955         readlink: Move AC_LIBOBJ invocations to module description.
10956         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
10957         gl_PREREQ_READLINK invocations from here...
10958         * modules/readlink (configure.ac): ... to here.
10959
10960 2011-05-21  Bruno Haible  <bruno@clisp.org>
10961
10962         readline: Move AC_LIBOBJ invocations to module description.
10963         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
10964         gl_PREREQ_READLINE invocations from here...
10965         * modules/readline (configure.ac): ... to here.
10966
10967 2011-05-21  Bruno Haible  <bruno@clisp.org>
10968
10969         read: Move AC_LIBOBJ invocations to module description.
10970         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
10971         * modules/read (configure.ac): ... to here.
10972
10973 2011-05-21  Bruno Haible  <bruno@clisp.org>
10974
10975         rawmemchr: Move AC_LIBOBJ invocations to module description.
10976         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
10977         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
10978         from here...
10979         * modules/rawmemchr (configure.ac): ... to here.
10980
10981 2011-05-21  Bruno Haible  <bruno@clisp.org>
10982
10983         random_r: Move AC_LIBOBJ invocations to module description.
10984         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
10985         gl_PREREQ_RANDOM_R invocations from here...
10986         * modules/random_r (configure.ac): ... to here.
10987
10988 2011-05-21  Bruno Haible  <bruno@clisp.org>
10989
10990         pwrite: Move AC_LIBOBJ invocations to module description.
10991         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
10992         * modules/pwrite (configure.ac): ... to here.
10993
10994 2011-05-21  Bruno Haible  <bruno@clisp.org>
10995
10996         putenv: Move AC_LIBOBJ invocations to module description.
10997         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
10998         * modules/putenv (configure.ac): ... to here.
10999
11000 2011-05-21  Bruno Haible  <bruno@clisp.org>
11001
11002         login_tty: Move AC_LIBOBJ invocations to module description.
11003         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
11004         * modules/login_tty (configure.ac): ... to here.
11005
11006 2011-05-21  Bruno Haible  <bruno@clisp.org>
11007
11008         openpty: Move AC_LIBOBJ invocations to module description.
11009         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
11010         * modules/openpty (configure.ac): ... to here.
11011
11012 2011-05-21  Bruno Haible  <bruno@clisp.org>
11013
11014         forkpty: Move AC_LIBOBJ invocations to module description.
11015         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
11016         * modules/forkpty (configure.ac): ... to here.
11017
11018 2011-05-21  Bruno Haible  <bruno@clisp.org>
11019
11020         ptsname: Move AC_LIBOBJ invocations to module description.
11021         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
11022         invocations from here...
11023         * modules/ptsname (configure.ac): ... to here.
11024
11025 2011-05-21  Bruno Haible  <bruno@clisp.org>
11026
11027         pread: Move AC_LIBOBJ invocations to module description.
11028         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
11029         * modules/pread (configure.ac): ... to here.
11030
11031 2011-05-21  Bruno Haible  <bruno@clisp.org>
11032
11033         posix_spawn*: Move AC_LIBOBJ invocations to module description.
11034         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
11035         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
11036         * modules/posix_spawn (configure.ac): ... to here.
11037         * modules/posix_spawnp (configure.ac): ... and here.
11038
11039 2011-05-21  Bruno Haible  <bruno@clisp.org>
11040
11041         popen: Move AC_LIBOBJ invocations to module description.
11042         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
11043         invocations from here...
11044         * modules/popen (configure.ac): ... to here.
11045
11046 2011-05-21  Bruno Haible  <bruno@clisp.org>
11047
11048         poll: Move AC_LIBOBJ invocations to module description.
11049         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
11050         invocations from here...
11051         * modules/poll (configure.ac): ... to here.
11052
11053 2011-05-21  Bruno Haible  <bruno@clisp.org>
11054
11055         pipe-posix: Move AC_LIBOBJ invocations to module description.
11056         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
11057         * modules/pipe-posix (configure.ac): ... to here.
11058
11059 2011-05-21  Bruno Haible  <bruno@clisp.org>
11060
11061         openat: Respect rules for use of AC_LIBOBJ.
11062         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
11063         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
11064         * modules/openat (configure.ac): ... to here.
11065
11066 2011-05-21  Bruno Haible  <bruno@clisp.org>
11067
11068         obstack-printf*: Move AC_LIBOBJ invocations to module description.
11069         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
11070         invocation from here...
11071         * modules/obstack-printf (configure.ac): ... to here.
11072         * modules/obstack-printf-posix (configure.ac): ... and here.
11073
11074 2011-05-21  Bruno Haible  <bruno@clisp.org>
11075
11076         nl_langinfo: Move AC_LIBOBJ invocations to module description.
11077         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
11078         from here...
11079         * modules/nl_langinfo (configure.ac): ... to here.
11080
11081 2011-05-21  Bruno Haible  <bruno@clisp.org>
11082
11083         nanosleep: Move AC_LIBOBJ invocations to module description.
11084         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
11085         gl_PREREQ_NANOSLEEP invocations from here...
11086         * modules/nanosleep (configure.ac): ... to here.
11087
11088 2011-05-21  Bruno Haible  <bruno@clisp.org>
11089
11090         mountlist: Move AC_LIBOBJ invocations to module description.
11091         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
11092         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
11093         * modules/mountlist (configure.ac): ... to here.
11094
11095 2011-05-21  Bruno Haible  <bruno@clisp.org>
11096
11097         mktime: Respect rules for use of AC_LIBOBJ.
11098         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
11099         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
11100         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
11101         (gl_FUNC_MKTIME_INTERNAL): ... and here...
11102         * modules/mktime (configure.ac): ... to here.
11103         * modules/mktime-internal (configure.ac): ... and here.
11104         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
11105
11106 2011-05-21  Bruno Haible  <bruno@clisp.org>
11107
11108         mkstemps: Move AC_LIBOBJ invocations to module description.
11109         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
11110         here...
11111         * modules/mkstemps (configure.ac): ... to here.
11112
11113 2011-05-21  Bruno Haible  <bruno@clisp.org>
11114
11115         mkstemp: Move AC_LIBOBJ invocations to module description.
11116         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
11117         gl_PREREQ_MKSTEMP invocations from here...
11118         * modules/mkstemp (configure.ac): ... to here.
11119
11120 2011-05-21  Bruno Haible  <bruno@clisp.org>
11121
11122         mkostemps: Move AC_LIBOBJ invocations to module description.
11123         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
11124         here...
11125         * modules/mkostemps (configure.ac): ... to here.
11126
11127 2011-05-21  Bruno Haible  <bruno@clisp.org>
11128
11129         mkostemp: Move AC_LIBOBJ invocations to module description.
11130         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
11131         gl_PREREQ_MKOSTEMP invocations from here...
11132         * modules/mkostemp (configure.ac): ... to here.
11133
11134 2011-05-21  Bruno Haible  <bruno@clisp.org>
11135
11136         mknod: Move AC_LIBOBJ invocations to module description.
11137         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
11138         * modules/mknod (configure.ac): ... to here.
11139
11140 2011-05-21  Bruno Haible  <bruno@clisp.org>
11141
11142         mkfifoat: Move AC_LIBOBJ invocations to module description.
11143         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
11144         here...
11145         * modules/mkfifoat (configure.ac): ... to here.
11146
11147 2011-05-21  Bruno Haible  <bruno@clisp.org>
11148
11149         mkfifo: Respect rules for use of AC_LIBOBJ.
11150         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
11151         here...
11152         * modules/mkfifo (configure.ac): ... to here.
11153
11154 2011-05-21  Bruno Haible  <bruno@clisp.org>
11155
11156         mkdtemp: Move AC_LIBOBJ invocations to module description.
11157         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
11158         invocations from here...
11159         * modules/mkdtemp (configure.ac): ... to here.
11160
11161 2011-05-21  Bruno Haible  <bruno@clisp.org>
11162
11163         mkdir: Move AC_LIBOBJ invocations to module description.
11164         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
11165         * modules/mkdir (configure.ac): ... to here.
11166
11167 2011-05-21  Bruno Haible  <bruno@clisp.org>
11168
11169         memset: Move AC_LIBOBJ invocations to module description.
11170         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
11171         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
11172         here...
11173         * modules/memset (configure.ac): ... to here.
11174
11175 2011-05-21  Bruno Haible  <bruno@clisp.org>
11176
11177         memrchr: Move AC_LIBOBJ invocations to module description.
11178         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
11179         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
11180         here...
11181         * modules/memrchr (configure.ac): ... to here.
11182
11183 2011-05-21  Bruno Haible  <bruno@clisp.org>
11184
11185         mempcpy: Move AC_LIBOBJ invocations to module description.
11186         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
11187         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
11188         here...
11189         * modules/mempcpy (configure.ac): ... to here.
11190
11191 2011-05-21  Bruno Haible  <bruno@clisp.org>
11192
11193         memmove: Move AC_LIBOBJ invocations to module description.
11194         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
11195         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
11196         here...
11197         * modules/memmove (configure.ac): ... to here.
11198
11199 2011-05-21  Bruno Haible  <bruno@clisp.org>
11200
11201         memmem*: Move AC_LIBOBJ invocations to module description.
11202         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
11203         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
11204         here...
11205         (gl_FUNC_MEMMEM): ... and here...
11206         * modules/memmem-simple (configure.ac): ... to here.
11207         * modules/memmem (configure.ac): ... and here.
11208
11209 2011-05-21  Bruno Haible  <bruno@clisp.org>
11210
11211         memcpy: Move AC_LIBOBJ invocations to module description.
11212         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
11213         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
11214         here...
11215         * modules/memcpy (configure.ac): ... to here.
11216
11217 2011-05-21  Bruno Haible  <bruno@clisp.org>
11218
11219         memcmp: Simplify autoconf macro.
11220         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
11221         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
11222         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
11223
11224 2011-05-21  Bruno Haible  <bruno@clisp.org>
11225
11226         memcmp: Move AC_LIBOBJ invocations to module description.
11227         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
11228         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
11229         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
11230         * modules/memcmp (configure.ac): ... to here.
11231         (Depends-on): Update conditions.
11232
11233 2011-05-21  Bruno Haible  <bruno@clisp.org>
11234
11235         memchr: Respect rules for use of AC_LIBOBJ.
11236         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
11237         invocations from here...
11238         * modules/memchr (configure.ac): ... to here.
11239
11240 2011-05-21  Bruno Haible  <bruno@clisp.org>
11241
11242         mbtowc: Move AC_LIBOBJ invocations to module description.
11243         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
11244         invocations from here...
11245         * modules/mbtowc (configure.ac): ... to here.
11246
11247 2011-05-21  Bruno Haible  <bruno@clisp.org>
11248
11249         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
11250         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
11251         gl_PREREQ_MBSRTOWCS invocations from here...
11252         * modules/mbsrtowcs (configure.ac): ... to here.
11253
11254 2011-05-21  Bruno Haible  <bruno@clisp.org>
11255
11256         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
11257         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
11258         gl_PREREQ_MBSNRTOWCS invocations from here...
11259         * modules/mbsnrtowcs (configure.ac): ... to here.
11260
11261 2011-05-21  Bruno Haible  <bruno@clisp.org>
11262
11263         mbsinit: Move AC_LIBOBJ invocations to module description.
11264         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
11265         invocations from here...
11266         * modules/mbsinit (configure.ac): ... to here.
11267
11268 2011-05-21  Bruno Haible  <bruno@clisp.org>
11269
11270         mbrlen: Move AC_LIBOBJ invocations to module description.
11271         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
11272         invocations from here...
11273         * modules/mbrlen (configure.ac): ... to here.
11274
11275 2011-05-21  Bruno Haible  <bruno@clisp.org>
11276
11277         mbrtowc: Respect rules for use of AC_LIBOBJ.
11278         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
11279         invocations from here...
11280         * modules/mbrtowc (configure.ac): ... to here.
11281
11282 2011-05-21  Bruno Haible  <bruno@clisp.org>
11283
11284         malloc-*: Move AC_LIBOBJ invocations to module description.
11285         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
11286         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
11287         AC_LIBOBJ invocations from here...
11288         * modules/malloc-gnu (configure.ac): ... to here.
11289         * modules/malloc-posix (configure.ac): ... and here.
11290
11291 2011-05-21  Bruno Haible  <bruno@clisp.org>
11292
11293         lstat, openat: Respect rules for use of AC_LIBOBJ.
11294         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
11295         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
11296         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
11297         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
11298         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
11299         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
11300         here.
11301         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
11302
11303 2011-05-21  Bruno Haible  <bruno@clisp.org>
11304
11305         lseek: Move AC_LIBOBJ invocations to module description.
11306         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
11307         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
11308         * modules/lseek (configure.ac): ... to here.
11309
11310 2011-05-21  Bruno Haible  <bruno@clisp.org>
11311
11312         linkat: Move AC_LIBOBJ invocations to module description.
11313         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
11314         here...
11315         * modules/linkat (configure.ac): ... to here.
11316
11317 2011-05-21  Bruno Haible  <bruno@clisp.org>
11318
11319         link: Respect rules for use of AC_LIBOBJ.
11320         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
11321         * modules/link (configure.ac): ... to here.
11322
11323 2011-05-21  Bruno Haible  <bruno@clisp.org>
11324
11325         lchown: Move AC_LIBOBJ invocations to module description.
11326         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
11327         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
11328         * modules/lchown (configure.ac): ... to here.
11329
11330 2011-05-21  Bruno Haible  <bruno@clisp.org>
11331
11332         iswctype: Move AC_LIBOBJ invocations to module description.
11333         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
11334         here...
11335         * modules/iswctype (configure.ac): ... to here.
11336
11337 2011-05-21  Bruno Haible  <bruno@clisp.org>
11338
11339         iswblank: Move AC_LIBOBJ invocations to module description.
11340         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
11341         here...
11342         * modules/iswblank (configure.ac): ... to here.
11343
11344 2011-05-21  Bruno Haible  <bruno@clisp.org>
11345
11346         atanl: Move AC_LIBOBJ invocations to module description.
11347         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
11348         * modules/atanl (configure.ac): ... to here.
11349
11350 2011-05-21  Bruno Haible  <bruno@clisp.org>
11351
11352         acosl: Move AC_LIBOBJ invocations to module description.
11353         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
11354         * modules/acosl (configure.ac): ... to here.
11355
11356 2011-05-21  Bruno Haible  <bruno@clisp.org>
11357
11358         asinl: Respect rules for use of AC_LIBOBJ.
11359         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
11360         * modules/asinl (configure.ac): ... to here.
11361
11362 2011-05-21  Bruno Haible  <bruno@clisp.org>
11363
11364         tanl: Move AC_LIBOBJ invocations to module description.
11365         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
11366         * modules/tanl (configure.ac): ... to here.
11367
11368 2011-05-21  Bruno Haible  <bruno@clisp.org>
11369
11370         cosl: Move AC_LIBOBJ invocations to module description.
11371         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
11372         * modules/cosl (configure.ac): ... to here.
11373
11374 2011-05-21  Bruno Haible  <bruno@clisp.org>
11375
11376         sinl: Move AC_LIBOBJ invocations to module description.
11377         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
11378         * modules/sinl (configure.ac): ... to here.
11379
11380 2011-05-21  Bruno Haible  <bruno@clisp.org>
11381
11382         logl: Move AC_LIBOBJ invocations to module description.
11383         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
11384         * modules/logl (configure.ac): ... to here.
11385
11386 2011-05-21  Bruno Haible  <bruno@clisp.org>
11387
11388         expl: Move AC_LIBOBJ invocations to module description.
11389         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
11390         * modules/expl (configure.ac): ... to here.
11391
11392 2011-05-21  Bruno Haible  <bruno@clisp.org>
11393
11394         roundl: Move AC_LIBOBJ invocations to module description.
11395         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
11396         * modules/roundl (configure.ac): ... to here.
11397
11398 2011-05-21  Bruno Haible  <bruno@clisp.org>
11399
11400         round: Move AC_LIBOBJ invocations to module description.
11401         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
11402         * modules/round (configure.ac): ... to here.
11403
11404 2011-05-21  Bruno Haible  <bruno@clisp.org>
11405
11406         roundf: Move AC_LIBOBJ invocations to module description.
11407         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
11408         * modules/roundf (configure.ac): ... to here.
11409
11410 2011-05-21  Bruno Haible  <bruno@clisp.org>
11411
11412         truncl: Move AC_LIBOBJ invocations to module description.
11413         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
11414         * modules/truncl (configure.ac): ... to here.
11415
11416 2011-05-21  Bruno Haible  <bruno@clisp.org>
11417
11418         trunc: Move AC_LIBOBJ invocations to module description.
11419         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
11420         * modules/trunc (configure.ac): ... to here.
11421
11422 2011-05-21  Bruno Haible  <bruno@clisp.org>
11423
11424         truncf: Move AC_LIBOBJ invocations to module description.
11425         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
11426         * modules/truncf (configure.ac): ... to here.
11427
11428 2011-05-21  Bruno Haible  <bruno@clisp.org>
11429
11430         ceill: Move AC_LIBOBJ invocations to module description.
11431         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
11432         * modules/ceill (configure.ac): ... to here.
11433
11434 2011-05-21  Bruno Haible  <bruno@clisp.org>
11435
11436         ceil: Move AC_LIBOBJ invocations to module description.
11437         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
11438         * modules/ceil (configure.ac): ... to here.
11439
11440 2011-05-21  Bruno Haible  <bruno@clisp.org>
11441
11442         ceilf: Move AC_LIBOBJ invocations to module description.
11443         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
11444         * modules/ceilf (configure.ac): ... to here.
11445
11446 2011-05-21  Bruno Haible  <bruno@clisp.org>
11447
11448         floorl: Respect rules for use of AC_LIBOBJ.
11449         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
11450         * modules/floorl (configure.ac): ... to here.
11451
11452 2011-05-21  Bruno Haible  <bruno@clisp.org>
11453
11454         floor: Respect rules for use of AC_LIBOBJ.
11455         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
11456         * modules/floor (configure.ac): ... to here.
11457
11458 2011-05-21  Bruno Haible  <bruno@clisp.org>
11459
11460         floorf: Move AC_LIBOBJ invocations to module description.
11461         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
11462         * modules/floorf (configure.ac): ... to here.
11463
11464 2011-05-20  Bruno Haible  <bruno@clisp.org>
11465
11466         sqrtl: Respect rules for use of AC_LIBOBJ.
11467         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
11468         * modules/sqrtl (configure.ac): ... to here.
11469
11470 2011-05-20  Bruno Haible  <bruno@clisp.org>
11471
11472         ldexpl: Respect rules for use of AC_LIBOBJ.
11473         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
11474         * modules/ldexpl (configure.ac): ... to here.
11475
11476 2011-05-20  Bruno Haible  <bruno@clisp.org>
11477
11478         frexpl*: Respect rules for use of AC_LIBOBJ.
11479         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
11480         invocation from here...
11481         * modules/frexpl (configure.ac): ... to here.
11482         * modules/frexpl-nolibm (configure.ac): ... and here.
11483
11484 2011-05-20  Bruno Haible  <bruno@clisp.org>
11485
11486         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
11487         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
11488         invocation from here...
11489         * modules/frexp (configure.ac): ... to here.
11490         * modules/frexp-nolibm (configure.ac): ... and here.
11491
11492 2011-05-20  Bruno Haible  <bruno@clisp.org>
11493
11494         isnan: Respect rules for use of AC_LIBOBJ.
11495         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
11496         invocations here.
11497         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
11498         REPLACE_ISNAN.
11499         * modules/isnand (configure.ac): Likewise.
11500         * modules/isnanl (configure.ac): Likewise.
11501
11502 2011-05-20  Bruno Haible  <bruno@clisp.org>
11503
11504         isnanl*: Respect rules for use of AC_LIBOBJ.
11505         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
11506         invocation from here...
11507         * modules/isnanl (configure.ac): ... to here.
11508         * modules/isnanl-nolibm (configure.ac): ... and here.
11509
11510 2011-05-20  Bruno Haible  <bruno@clisp.org>
11511
11512         isnand*: Move AC_LIBOBJ invocations to module description.
11513         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
11514         invocation from here...
11515         * modules/isnand (configure.ac): ... to here.
11516         * modules/isnand-nolibm (configure.ac): ... and here.
11517
11518 2011-05-20  Bruno Haible  <bruno@clisp.org>
11519
11520         isnanf*: Move AC_LIBOBJ invocations to module description.
11521         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
11522         invocation from here...
11523         * modules/isnanf (configure.ac): ... to here.
11524         * modules/isnanf-nolibm (configure.ac): ... and here.
11525
11526 2011-05-20  Bruno Haible  <bruno@clisp.org>
11527
11528         isnan*: Separate the AC_LIBOBJ invocations.
11529         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
11530         AC_LIBOBJ invocation.
11531         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
11532         here.
11533         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
11534         AC_LIBOBJ invocation.
11535         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
11536         here.
11537         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
11538         AC_LIBOBJ invocation.
11539         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
11540         here.
11541         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
11542
11543 2011-05-08  Bruno Haible  <bruno@clisp.org>
11544
11545         isinf: Move AC_LIBOBJ invocations to module description.
11546         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
11547         * modules/isinf (configure.ac): ... to here.
11548
11549 2011-05-08  Bruno Haible  <bruno@clisp.org>
11550
11551         isfinite: Move AC_LIBOBJ invocations to module description.
11552         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
11553         * modules/isfinite (configure.ac): ... to here.
11554
11555 2011-05-08  Bruno Haible  <bruno@clisp.org>
11556
11557         isblank: Move AC_LIBOBJ invocations to module description.
11558         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
11559         here...
11560         * modules/isblank (configure.ac): ... to here.
11561
11562 2011-05-08  Bruno Haible  <bruno@clisp.org>
11563
11564         isapipe: Move AC_LIBOBJ invocations to module description.
11565         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
11566         gl_PREREQ_ISAPIPE invocations from here...
11567         * modules/isapipe (configure.ac): ... to here.
11568         (Depends-on): Update condition.
11569
11570 2011-05-08  Bruno Haible  <bruno@clisp.org>
11571
11572         ioctl: Move AC_LIBOBJ invocations to module description.
11573         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
11574         invocations from here...
11575         * modules/ioctl (configure.ac): ... to here.
11576         (Depends-on): Update condition.
11577
11578 2011-05-08  Bruno Haible  <bruno@clisp.org>
11579
11580         imaxdiv: Move AC_LIBOBJ invocations to module description.
11581         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
11582         invocations from here...
11583         * modules/imaxdiv (configure.ac): ... to here.
11584
11585 2011-05-08  Bruno Haible  <bruno@clisp.org>
11586
11587         imaxabs: Move AC_LIBOBJ invocations to module description.
11588         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
11589         invocations from here...
11590         * modules/imaxabs (configure.ac): ... to here.
11591
11592 2011-05-08  Bruno Haible  <bruno@clisp.org>
11593
11594         getaddrinfo: Move AC_LIBOBJ invocations to module description.
11595         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
11596         AC_LIBOBJ invocations from here...
11597         * modules/getaddrinfo (configure.ac): ... to here.
11598         (Depends-on): Add conditions.
11599
11600 2011-05-08  Bruno Haible  <bruno@clisp.org>
11601
11602         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
11603         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
11604         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
11605         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
11606         (gl_PREREQ_INET_PTON): ... from here.
11607         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
11608         gl_PREREQ_INET_PTON here.
11609         (Depends-on): Update condition.
11610
11611 2011-05-08  Bruno Haible  <bruno@clisp.org>
11612
11613         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
11614         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
11615         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
11616         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
11617         (gl_PREREQ_INET_NTOP): ... from here.
11618         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
11619         gl_PREREQ_INET_NTOP here.
11620         (Depends-on): Update condition.
11621
11622 2011-05-08  Bruno Haible  <bruno@clisp.org>
11623
11624         iconv_open: Move AC_LIBOBJ invocations to module description.
11625         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
11626         AC_LIBOBJ invocations from here...
11627         * modules/iconv_open (configure.ac): ... to here.
11628
11629 2011-05-08  Bruno Haible  <bruno@clisp.org>
11630
11631         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
11632         If module 'iconv_open' is among the main modules and module
11633         'iconv_open-utf' is among the tests dependencies, then
11634         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
11635         return the special iconv_t values. Therefore iconv() and iconv_close()
11636         must support these special iconv_t values, already in lib, not only in
11637         tests.
11638         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
11639         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
11640         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
11641         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
11642         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
11643         (Depends-on): Add the dependencies of iconv_open-utf.
11644         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
11645         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
11646         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
11647
11648 2011-05-08  Bruno Haible  <bruno@clisp.org>
11649
11650         group-member: Move AC_LIBOBJ invocations to module description.
11651         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
11652         gl_PREREQ_GROUP_MEMBER invocations from here...
11653         * modules/group-member (configure.ac): ... to here.
11654
11655 2011-05-08  Bruno Haible  <bruno@clisp.org>
11656
11657         grantpt: Move AC_LIBOBJ invocations to module description.
11658         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
11659         invocations from here...
11660         * modules/grantpt (configure.ac): ... to here.
11661
11662 2011-05-08  Bruno Haible  <bruno@clisp.org>
11663
11664         glob: Move AC_LIBOBJ invocations to module description.
11665         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
11666         from here...
11667         * modules/glob (configure.ac): ... to here.
11668
11669 2011-05-08  Bruno Haible  <bruno@clisp.org>
11670
11671         getusershell: Move AC_LIBOBJ invocations to module description.
11672         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
11673         Move AC_LIBOBJ invocation from here...
11674         * modules/getusershell (configure.ac): ... to here.
11675         (Depends-on): Update condition.
11676
11677 2011-05-08  Bruno Haible  <bruno@clisp.org>
11678
11679         gettimeofday: Move AC_LIBOBJ invocations to module description.
11680         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
11681         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
11682         gl_PREREQ_GETTIMEOFDAY invocations from here...
11683         * modules/gettimeofday (configure.ac): ... to here.
11684
11685 2011-05-08  Bruno Haible  <bruno@clisp.org>
11686
11687         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
11688         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
11689         just gl_FUNC_TZSET.
11690         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
11691         (gl_FUNC_TZSET_CLOBBER): Remove actions.
11692         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
11693         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
11694
11695 2011-05-08  Bruno Haible  <bruno@clisp.org>
11696
11697         getsubopt: Move AC_LIBOBJ invocations to module description.
11698         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
11699         gl_PREREQ_GETSUBOPT invocations from here...
11700         * modules/getsubopt (configure.ac): ... to here.
11701
11702 2011-05-08  Bruno Haible  <bruno@clisp.org>
11703
11704         getpass-gnu: Move AC_LIBOBJ invocations to module description.
11705         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
11706         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
11707         * modules/getpass-gnu (configure.ac): ... to here.
11708
11709 2011-05-08  Bruno Haible  <bruno@clisp.org>
11710
11711         getpass: Move AC_LIBOBJ invocations to module description.
11712         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
11713         gl_PREREQ_GETPASS invocations from here...
11714         * modules/getpass (configure.ac): ... to here.
11715
11716 2011-05-08  Bruno Haible  <bruno@clisp.org>
11717
11718         getpagesize: Move AC_LIBOBJ invocations to module description.
11719         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
11720         from here...
11721         * modules/getpagesize (configure.ac): ... to here.
11722
11723 2011-05-08  Bruno Haible  <bruno@clisp.org>
11724
11725         getopt: Move AC_LIBOBJ invocations to module description.
11726         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
11727         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
11728         invocations from here...
11729         * modules/getopt-gnu (configure.ac): ... to here.
11730         * modules/getopt-posix (configure.ac): ... and here.
11731         (Depends-on): Update condition.
11732
11733 2011-05-08  Bruno Haible  <bruno@clisp.org>
11734
11735         getopt, argp: Respect rules for use of AC_LIBOBJ.
11736         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
11737         (gl_REPLACE_GETOPT_ALWAYS): New macro.
11738         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
11739         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
11740
11741 2011-05-08  Bruno Haible  <bruno@clisp.org>
11742
11743         getlogin_r: Move AC_LIBOBJ invocations to module description.
11744         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
11745         gl_PREREQ_GETLOGIN_R invocations from here...
11746         * modules/getlogin_r (configure.ac): ... to here.
11747
11748 2011-05-08  Bruno Haible  <bruno@clisp.org>
11749
11750         getlogin: Move AC_LIBOBJ invocations to module description.
11751         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
11752         here...
11753         * modules/getlogin (configure.ac): ... to here.
11754
11755 2011-05-08  Bruno Haible  <bruno@clisp.org>
11756
11757         getloadavg: Move AC_LIBOBJ invocations to module description.
11758         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
11759         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
11760         * modules/getloadavg (configure.ac): ... to here.
11761
11762 2011-05-08  Bruno Haible  <bruno@clisp.org>
11763
11764         gethrxtime: Move AC_LIBOBJ invocations to module description.
11765         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
11766         LIB_GETHRXTIME from here...
11767         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
11768         invocations from here...
11769         * modules/gethrxtime (configure.ac): ... to here.
11770
11771 2011-05-08  Bruno Haible  <bruno@clisp.org>
11772
11773         gethostname: Move AC_LIBOBJ invocations to module description.
11774         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
11775         gl_PREREQ_GETHOSTNAME invocations from here...
11776         * modules/gethostname (configure.ac): ... to here.
11777
11778 2011-05-08  Bruno Haible  <bruno@clisp.org>
11779
11780         getgroups: Move AC_LIBOBJ invocations to module description.
11781         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
11782         here...
11783         * modules/getgroups (configure.ac): ... to here.
11784
11785 2011-05-08  Bruno Haible  <bruno@clisp.org>
11786
11787         getdtablesize: Move AC_LIBOBJ invocations to module description.
11788         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
11789         invocation from here...
11790         * modules/getdtablesize (configure.ac): ... to here.
11791
11792 2011-05-08  Bruno Haible  <bruno@clisp.org>
11793
11794         getdomainname: Move AC_LIBOBJ invocations to module description.
11795         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
11796         gl_PREREQ_GETDOMAINNAME invocations from here...
11797         * modules/getdomainname (configure.ac): ... to here.
11798
11799 2011-05-08  Bruno Haible  <bruno@clisp.org>
11800
11801         getline: Move AC_LIBOBJ invocations to module description.
11802         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
11803         invocations from here...
11804         * modules/getline (configure.ac): ... to here.
11805
11806 2011-05-08  Bruno Haible  <bruno@clisp.org>
11807
11808         getline: Simplify.
11809         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
11810         It's already handled through the module dependency.
11811
11812 2011-05-08  Bruno Haible  <bruno@clisp.org>
11813
11814         getdelim: Move AC_LIBOBJ invocations to module description.
11815         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
11816         and gl_PREREQ_GETDELIM invocations from here...
11817         * modules/getdelim (configure.ac): ... to here.
11818         (Depends-on): Fix condition.
11819
11820 2011-05-08  Bruno Haible  <bruno@clisp.org>
11821
11822         getcwd: Move AC_LIBOBJ invocations to module description.
11823         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
11824         invocations from here...
11825         * modules/getcwd (configure.ac): ... to here.
11826
11827 2011-05-08  Bruno Haible  <bruno@clisp.org>
11828
11829         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
11830         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
11831         here...
11832         * modules/getcwd-lgpl (configure.ac): ... to here.
11833
11834 2011-05-07  Bruno Haible  <bruno@clisp.org>
11835
11836         crypto/gc: Move AC_LIBOBJ invocations to module description.
11837         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
11838         * modules/crypto/gc (configure.ac): ... to here.
11839
11840 2011-05-07  Bruno Haible  <bruno@clisp.org>
11841
11842         fwriting: Move AC_LIBOBJ invocations to module description.
11843         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
11844         here...
11845         * modules/fwriting (configure.ac): ... to here.
11846
11847 2011-05-07  Bruno Haible  <bruno@clisp.org>
11848
11849         fwritable: Move AC_LIBOBJ invocations to module description.
11850         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
11851         here...
11852         * modules/fwritable (configure.ac): ... to here.
11853
11854 2011-05-07  Bruno Haible  <bruno@clisp.org>
11855
11856         futimens: Move AC_LIBOBJ invocations to module description.
11857         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
11858         here...
11859         * modules/futimens (configure.ac): ... to here.
11860
11861 2011-05-07  Bruno Haible  <bruno@clisp.org>
11862
11863         ftruncate: Move AC_LIBOBJ invocations to module description.
11864         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
11865         gl_PREREQ_FTRUNCATE invocations from here...
11866         * modules/ftruncate (configure.ac): ... to here.
11867
11868 2011-05-07  Bruno Haible  <bruno@clisp.org>
11869
11870         fsync: Move AC_LIBOBJ invocations to module description.
11871         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
11872         invocations from here...
11873         * modules/fsync (configure.ac): ... to here.
11874
11875 2011-05-07  Bruno Haible  <bruno@clisp.org>
11876
11877         fsusage: Move AC_LIBOBJ invocations to module description.
11878         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
11879         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
11880         * modules/fsusage (configure.ac): ... to here.
11881
11882 2011-05-07  Bruno Haible  <bruno@clisp.org>
11883
11884         freopen: Move AC_LIBOBJ invocations to module description.
11885         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
11886         invocations from here...
11887         * modules/freopen (configure.ac): ... to here.
11888
11889 2011-05-07  Bruno Haible  <bruno@clisp.org>
11890
11891         free: Move AC_LIBOBJ invocations to module description.
11892         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
11893         invocations from here...
11894         * modules/free (configure.ac): ... to here.
11895
11896 2011-05-07  Bruno Haible  <bruno@clisp.org>
11897
11898         freadable: Move AC_LIBOBJ invocations to module description.
11899         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
11900         here...
11901         * modules/freadable (configure.ac): ... to here.
11902
11903 2011-05-07  Bruno Haible  <bruno@clisp.org>
11904
11905         fpurge: Move AC_LIBOBJ invocations to module description.
11906         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
11907         invocations from here...
11908         * modules/fpurge (configure.ac): ... to here.
11909
11910 2011-05-07  Bruno Haible  <bruno@clisp.org>
11911
11912         fpending: Move AC_LIBOBJ invocations to module description.
11913         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
11914         gl_FUNC_FPENDING.
11915         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
11916         invocations from here...
11917         * modules/fpending (configure.ac): ... to here.
11918
11919 2011-05-07  Bruno Haible  <bruno@clisp.org>
11920
11921         fopen: Move AC_LIBOBJ invocations to module description.
11922         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
11923         invocations from here...
11924         * modules/fopen (configure.ac): ... to here.
11925
11926 2011-05-07  Bruno Haible  <bruno@clisp.org>
11927
11928         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
11929         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
11930         gl_FUNC_FNMATCH_POSIX.
11931         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
11932         invocations from here...
11933         * modules/fnmatch (configure.ac): ... to here.
11934         * modules/fnmatch-gnu (configure.ac): ... and here.
11935
11936 2011-05-07  Bruno Haible  <bruno@clisp.org>
11937
11938         flock: Move AC_LIBOBJ invocations to module description.
11939         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
11940         invocations from here...
11941         * modules/flock (configure.ac): ... to here.
11942
11943 2011-05-07  Bruno Haible  <bruno@clisp.org>
11944
11945         fileblocks: Move AC_LIBOBJ invocations to module description.
11946         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
11947         gl_PREREQ_FILEBLOCKS invocations from here...
11948         * modules/fileblocks (configure.ac): ... to here.
11949
11950 2011-05-06  Bruno Haible  <bruno@clisp.org>
11951
11952         fflush: Move AC_LIBOBJ invocations to module description.
11953         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
11954         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
11955         invocations from here...
11956         * modules/fflush (configure.ac): ... to here.
11957
11958 2011-05-06  Bruno Haible  <bruno@clisp.org>
11959
11960         fdopendir: Move AC_LIBOBJ invocations to module description.
11961         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
11962         here...
11963         * modules/fdopendir (configure.ac): ... to here.
11964         (Depends-on): Improve conditions.
11965
11966 2011-05-06  Bruno Haible  <bruno@clisp.org>
11967
11968         _Exit: Move AC_LIBOBJ invocations to module description.
11969         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
11970         invocations from here...
11971         * modules/_Exit (configure.ac): ... to here.
11972
11973 2011-05-21  Bruno Haible  <bruno@clisp.org>
11974
11975         euidaccess: Respect rules for use of AC_LIBOBJ.
11976         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
11977         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
11978         from here...
11979         * modules/euidaccess (configure.ac): ... to here.
11980
11981 2011-05-06  Bruno Haible  <bruno@clisp.org>
11982
11983         error: Move AC_LIBOBJ invocations to module description.
11984         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
11985         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
11986         invocations from here...
11987         * modules/error (configure.ac): ... to here.
11988
11989 2011-05-06  Bruno Haible  <bruno@clisp.org>
11990
11991         duplocale: Move AC_LIBOBJ invocations to module description.
11992         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
11993         gl_PREREQ_DUPLOCALE invocations from here...
11994         * modules/duplocale (configure.ac): ... to here.
11995
11996 2011-05-05  Bruno Haible  <bruno@clisp.org>
11997
11998         dirfd: Move AC_LIBOBJ invocations to module description.
11999         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
12000         gl_FUNC_DIRFD.
12001         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
12002         here...
12003         * modules/dirfd (configure.ac): ... to here.
12004         (Depends-on): Fix condition.
12005
12006 2011-05-05  Bruno Haible  <bruno@clisp.org>
12007
12008         chown: Respect rules for use of AC_LIBOBJ.
12009         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
12010         * modules/chown (configure.ac): ... to here.
12011
12012 2011-05-05  Bruno Haible  <bruno@clisp.org>
12013
12014         chdir-long: Move AC_LIBOBJ invocations to module description.
12015         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
12016         gl_PREREQ_CHDIR_LONG invocations from here...
12017         * modules/chdir-long (configure.ac): ... to here.
12018
12019 2011-05-05  Bruno Haible  <bruno@clisp.org>
12020
12021         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
12022         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
12023         from here...
12024         * modules/canonicalize-lgpl (configure.ac): ... to here.
12025
12026 2011-05-05  Bruno Haible  <bruno@clisp.org>
12027
12028         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
12029         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
12030         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
12031         REPLACE_CALLOC.
12032         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
12033         * modules/calloc-gnu (configure.ac): Likewise.
12034
12035 2011-05-05  Bruno Haible  <bruno@clisp.org>
12036
12037         btowc: Move AC_LIBOBJ invocations to module description.
12038         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
12039         invocations from here...
12040         * modules/btowc (configure.ac): ... to here.
12041
12042 2011-05-21  Bruno Haible  <bruno@clisp.org>
12043
12044         atexit: Move AC_LIBOBJ invocations to module description.
12045         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
12046         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
12047         here...
12048         * modules/atexit (configure.ac): ... to here.
12049
12050 2011-05-05  Bruno Haible  <bruno@clisp.org>
12051
12052         atoll: Move AC_LIBOBJ invocations to module description.
12053         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
12054         invocations from here...
12055         * modules/atoll (configure.ac): ... to here.
12056
12057 2011-05-05  Bruno Haible  <bruno@clisp.org>
12058
12059         argz: Move AC_LIBOBJ invocations to module description.
12060         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
12061         * modules/argz (configure.ac): ... to here.
12062
12063 2011-05-05  Bruno Haible  <bruno@clisp.org>
12064
12065         alphasort: Move AC_LIBOBJ invocations to module description.
12066         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
12067         gl_PREREQ_ALPHASORT invocations from here...
12068         * modules/alphasort (configure.ac): ... to here.
12069
12070 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
12071
12072         verify: new macro verify_expr; verify_true deprecated
12073         * NEWS: Mention this.
12074         * doc/verify.texi (Compile-time Assertions): Document this.
12075         * lib/verify.h (verify_true): Deprecate.
12076         (verify_expr): New macro.
12077         * tests/test-verify.c (function): Test verify_expr.
12078
12079 2011-06-14  Jim Meyering  <meyering@redhat.com>
12080
12081         init.sh: give more portable redirection-related advice in a comment
12082         * tests/init.sh (stderr_fileno_): Update the advice in comments.
12083         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
12084         for lots of discussion.  Stefano Lattarini suggested the solution
12085         of putting "9>&2" after the command.  Reported by Bruno Haible.
12086
12087 2011-06-13  Bruno Haible  <bruno@clisp.org>
12088
12089         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
12090         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
12091         'none'.
12092
12093 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
12094
12095         ftoastr: use strtof only if HAVE_STRTOF
12096         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
12097         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
12098         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
12099         * modules/ftoastr (configure.ac): Check for strtof.
12100
12101 2011-06-13  Bruno Haible  <bruno@clisp.org>
12102
12103         gnulib-tool: Addendum to 2011-06-08 commit.
12104         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
12105         and --witness-c-macro have been given, augment AM_CPPFLAGS.
12106
12107 2011-06-13  Bruno Haible  <bruno@clisp.org>
12108
12109         fseeko: Provide a non-inline replacement of fseek().
12110         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
12111         * modules/fseeko (Depends-on): Add fseek.
12112         * modules/fseek (License): Change to LGPLv2+.
12113
12114 2011-06-13  Bruno Haible  <bruno@clisp.org>
12115
12116         ftello: Provide a non-inline replacement of ftell().
12117         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
12118         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
12119         not have ftello() (such as on mingw).
12120         * modules/ftello (Depends-on): Add ftell.
12121         * modules/ftell (License): Change to LGPLv2+.
12122
12123 2011-05-07  Bruno Haible  <bruno@clisp.org>
12124
12125         ftell: Move AC_LIBOBJ invocations to module description.
12126         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
12127         * modules/ftell (configure.ac): ... to here.
12128
12129 2011-05-07  Bruno Haible  <bruno@clisp.org>
12130
12131         ftello: Respect rules for use of AC_LIBOBJ.
12132         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
12133         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
12134         here...
12135         * modules/ftello (configure.ac): ... to here.
12136
12137 2011-05-07  Bruno Haible  <bruno@clisp.org>
12138
12139         fseeko: Simplify.
12140         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
12141         (gl_FUNC_FSEEKO): Inline it here.
12142
12143 2011-05-07  Bruno Haible  <bruno@clisp.org>
12144
12145         fseek: Move AC_LIBOBJ invocations to module description.
12146         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
12147         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
12148         * modules/fseek (configure.ac): ... to here.
12149
12150 2011-05-07  Bruno Haible  <bruno@clisp.org>
12151
12152         fseek: Respect rules for use of AC_LIBOBJ.
12153         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
12154         here...
12155         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
12156
12157 2011-05-07  Bruno Haible  <bruno@clisp.org>
12158
12159         fseeko: Respect rules for use of AC_LIBOBJ.
12160         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
12161         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
12162         here...
12163         * modules/fseeko (configure.ac): ... to here.
12164
12165 2011-06-13  Bruno Haible  <bruno@clisp.org>
12166
12167         gnulib-tool: Allow comments in the 'Depends-on' section.
12168         * doc/gnulib.texi (Module description): Mention comment syntax in the
12169         Depends-on section.
12170         * gnulib-tool (func_get_dependencies): Filter out comment lines.
12171
12172 2011-06-13  Bruno Haible  <bruno@clisp.org>
12173
12174         file-set.h: guard __attibute__ use, now that it's not always defined
12175         * lib/file-set.h (record_file): Use __attribute__ only with compiler
12176         versions that support it.  This fixes a coreutils build failure with
12177         the vendor cc on HP-UX 11.31.
12178
12179 2011-06-12  Bruno Haible  <bruno@clisp.org>
12180
12181         acl: Add support for HP-UX >= 11.11 JFS ACLs.
12182         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
12183         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
12184         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
12185         (acl, aclsort): New declarations.
12186         (aclv_nontrivial): New declaration.
12187         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
12188         (file_has_acl): Read also the second kind of HP-UX ACLs.
12189         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
12190         kind of HP-UX ACLs if the first kind fails.
12191         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
12192         second kind of HP-UX ACLs.
12193         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
12194         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
12195         agree.
12196         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
12197         hpuxjfs.
12198         Handle hpuxjfs.
12199         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
12200         hpuxjfs.
12201         Handle hpuxjfs.
12202         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
12203         (func_test_same_acls): Use both lsacl and getacl.
12204         Handle hpuxjfs.
12205         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
12206         (func_test_same_acls): Use both lsacl and getacl.
12207         Handle hpuxjfs.
12208
12209 2011-06-12  Bruno Haible  <bruno@clisp.org>
12210
12211         acl: Complete the 2010-08-10 fix.
12212         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
12213         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
12214         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
12215         explicitly.
12216         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
12217         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
12218
12219 2011-06-12  Bruno Haible  <bruno@clisp.org>
12220
12221         spawn-pipe tests: Comments.
12222         * tests/test-spawn-pipe-child.c (main): Update comment.
12223         Reported by James Youngman <jay@gnu.org>.
12224
12225 2011-06-11  James Youngman  <jay@gnu.org>
12226
12227         New module 'stat-size'.
12228         * modules/stat-size: New module.  Provides macros for accessing
12229         file size information in instances of struct stat.  Depends on the
12230         fileblocks module because it calls st_blocks.
12231         * lib/stat-size.h: New file, adapted from coreutils' system.h.
12232         * doc/gnulib.texi: Include stat-size.texi.
12233         * doc/stat-size.texi: Documentation for this module.
12234         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
12235         * m4/fileblocks.m4: Mention that stat-size depends on the call to
12236         AC_STRUCT_ST_BLOCKS.
12237
12238 2011-06-09  Bruno Haible  <bruno@clisp.org>
12239
12240         thread: Support pthreads-win32.
12241         * lib/glthread/thread.h (gl_thread_self): Define differently on
12242         pthreads-win32.
12243         (gl_null_thread): New declaration.
12244         (gl_thread_self_pointer): New macro.
12245         * lib/glthread/thread.c (gl_null_thread): New constant.
12246         * tests/test-lock.c: Use gl_thread_self_pointer instead of
12247         gl_thread_self.
12248         * tests/test-tls.c: Likewise.
12249         Suggested by Paul Eggert. Reported by Eric Blake.
12250
12251 2011-06-09  Bruno Haible  <bruno@clisp.org>
12252
12253         thread: Fix confusion between NULL and 0.
12254         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
12255         Reported by Paul Eggert.
12256
12257 2011-06-09  Bruno Haible  <bruno@clisp.org>
12258
12259         spawn-pipe tests: Avoid test failure on HP-UX 11.
12260         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
12261         is closed.
12262
12263 2011-06-09  Bruno Haible  <bruno@clisp.org>
12264
12265         acl tests: Fix compilation error on HP-UX 11.
12266         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
12267
12268 2011-06-09  Bruno Haible  <bruno@clisp.org>
12269
12270         rmdir: Avoid test failure on HP-UX 10.20.
12271         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
12272         EEXIST.
12273
12274 2011-06-08  Eric Blake  <eblake@redhat.com>
12275
12276         perror: fix test on mingw
12277         * modules/perror-tests (Depends-on): Add dup2.
12278
12279         strerror_r-posix: fix on MacOS
12280         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
12281         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
12282         logic bug.
12283         * lib/strerror_r.c (strerror_r): Fix the bug.
12284         * lib/strerror.c (strerror): Likewise.
12285         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
12286         problem.
12287         * doc/posix-functions/strerror.texi (strerror): Likewise.
12288         * doc/posix-functions/perror.texi (perror): Likewise.
12289         * tests/test-strerror.c (main): Enhance test.
12290         * tests/test-strerror_r.c (main): Likewise.
12291
12292 2011-06-08  Bruno Haible  <bruno@clisp.org>
12293
12294         gnulib-tool: Better isolation between different gnulib-tool invocations.
12295         * gnulib-tool: New option --witness-c-macro.
12296         (witness_c_macro): New variable.
12297         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
12298         AM_CPPFLAGS define it as a C macro.
12299         (func_emit_tests_Makefile_am): Likewise.
12300         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
12301         read it from there.
12302         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
12303         m4_define, not AC_DEFUN.
12304         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
12305         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
12306         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
12307         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
12308         s|...|...|, to substitute the values of the GNULIB_* module indicator
12309         variables.
12310         * modules/dirent (Makefile.am): Likewise.
12311         * modules/fcntl-h (Makefile.am): Likewise.
12312         * modules/iconv-h (Makefile.am): Likewise.
12313         * modules/langinfo (Makefile.am): Likewise.
12314         * modules/locale (Makefile.am): Likewise.
12315         * modules/math (Makefile.am): Likewise.
12316         * modules/netdb (Makefile.am): Likewise.
12317         * modules/poll-h (Makefile.am): Likewise.
12318         * modules/pty (Makefile.am): Likewise.
12319         * modules/search (Makefile.am): Likewise.
12320         * modules/signal (Makefile.am): Likewise.
12321         * modules/spawn (Makefile.am): Likewise.
12322         * modules/stdio (Makefile.am): Likewise.
12323         * modules/stdlib (Makefile.am): Likewise.
12324         * modules/string (Makefile.am): Likewise.
12325         * modules/sys_ioctl (Makefile.am): Likewise.
12326         * modules/sys_select (Makefile.am): Likewise.
12327         * modules/sys_socket (Makefile.am): Likewise.
12328         * modules/sys_stat (Makefile.am): Likewise.
12329         * modules/sys_times (Makefile.am): Likewise.
12330         * modules/sys_utsname (Makefile.am): Likewise.
12331         * modules/sys_wait (Makefile.am): Likewise.
12332         * modules/termios (Makefile.am): Likewise.
12333         * modules/time (Makefile.am): Likewise.
12334         * modules/unistd (Makefile.am): Likewise.
12335         * modules/wchar (Makefile.am): Likewise.
12336
12337 2011-06-08  Eric Blake  <eblake@redhat.com>
12338
12339         strerror: simplify replacement
12340         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
12341         * modules/strerror (configure.ac): No prereqs needed here...
12342         * modules/strerror-override (configure.ac): ...but this needs it.
12343         (Files): Add file for needed prereq macro.
12344
12345 2011-06-08  Bruno Haible  <bruno@clisp.org>
12346
12347         strerror_r-posix: Tweaks.
12348         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
12349         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
12350         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
12351         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
12352         (gl_FUNC_STRERROR_R): ... to here.
12353         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
12354
12355 2011-06-07  Eric Blake  <eblake@redhat.com>
12356
12357         perror: document fixed bugs
12358         * doc/posix-functions/perror.texi (perror): Document recent
12359         patches.
12360
12361 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
12362
12363         stat-time: get_stat_birthtime failure is better-defined
12364         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
12365         return a timestamp whose tv_sec and tv_nsec values are both -1.
12366         Previously, the spec said only that the tv_nsec value was negative.
12367         This upward-compatible change simplifies GNU tar a bit.
12368
12369 2011-06-07  Eric Blake  <eblake@redhat.com>
12370
12371         strerror_r-posix: work around cygwin 1.7.9
12372         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
12373         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
12374         bug without replacing strerror_r.
12375         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
12376         strerror_r is buggy, but without requiring strerror_r compilation.
12377         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
12378
12379         test-perror: relax test to ignore cygwin bug
12380         * tests/test-perror2.c (main): Relax test on requiring detection
12381         of stream errors, and use unbuffered stream.
12382         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
12383         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
12384         * doc/posix-functions/fputc.texi (fputc): Likewise.
12385         * doc/posix-functions/fputs.texi (fputs): Likewise.
12386         * doc/posix-functions/fputws.texi (fputws): Likewise.
12387         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
12388         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
12389         * doc/posix-functions/getopt.texi (getopt): Likewise.
12390         * doc/posix-functions/perror.texi (perror): Likewise.
12391         * doc/posix-functions/printf.texi (printf): Likewise.
12392         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
12393         * doc/posix-functions/psignal.texi (psignal): Likewise.
12394         * doc/posix-functions/putc.texi (putc): Likewise.
12395         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
12396         Likewise.
12397         * doc/posix-functions/putchar.texi (putchar): Likewise.
12398         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
12399         Likewise.
12400         * doc/posix-functions/puts.texi (puts): Likewise.
12401         * doc/posix-functions/putwc.texi (putwc): Likewise.
12402         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
12403         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
12404         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
12405         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
12406         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
12407         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
12408         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
12409         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
12410
12411 2011-05-22  Bruno Haible  <bruno@clisp.org>
12412
12413         strerror: Move AC_LIBOBJ invocations to module description.
12414         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
12415         gl_PREREQ_STRERROR invocations from here...
12416         * modules/strerror (configure.ac): ... to here.
12417
12418 2011-05-21  Bruno Haible  <bruno@clisp.org>
12419
12420         perror: Use common idiom.
12421         * modules/perror (configure.ac): Reorder statements.
12422
12423 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
12424
12425         tests: fix usage message in 'mktempd_'
12426         * tests/init.sh (mktempd_): In the usage message, use literal
12427         'mktempd_', not '$ME' (which is even undefined), as the name of
12428         the subroutine.
12429
12430 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
12431
12432         tests init: new function 'fatal_', for hard errors
12433         Before this patch, the only way offered by tests/init.sh to
12434         properly signal a hard error was the `framework_failure_'
12435         function.  But the error message issued by that function,
12436         as its name would suggest, refers to a set-up failure in the
12437         testsuite, while hard errors can obviously also be due to
12438         other reasons.  The best way to fix this inconsistency is to
12439         introduce a new function with a more general error message.
12440         * tests/init.sh (fatal_): New function.
12441
12442 2011-06-06  Eric Blake  <eblake@redhat.com>
12443
12444         canonicalize-lgpl: use common idiom
12445         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
12446         over newer POSIX -Rf.
12447         Reported by Bruno Haible.
12448
12449         canonicalize-lgpl: work around AIX realpath bug
12450         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
12451         * doc/posix-functions/realpath.texi (realpath): Document it.
12452         Reported by Bruno Haible.
12453
12454         strerror: work around FreeBSD bug
12455         * lib/strerror.c (strerror): Special case 0.
12456         Reported by Bruno Haible.
12457
12458         strerror-override: avoid bloating errno module
12459         * modules/errno (Files, configure.ac): Move replacement strings...
12460         * modules/strerror-override: ...to new module.
12461         * modules/strerror (Depends-on): Add strerror-override.
12462         * modules/strerror_r-posix (Depends-on): Likewise.
12463         * MODULES.html.sh: Document new module.
12464         Reported by Bruno Haible.
12465
12466 2011-06-06  Bruno Haible  <bruno@clisp.org>
12467
12468         spawn-pipe tests: Rename program.
12469         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
12470         * tests/test-spawn-pipe-child.c: Update comment.
12471         * tests/test-spawn-pipe.sh: Update.
12472         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
12473
12474         spawn-pipe tests: Link the child program only against libc.
12475         * tests/test-spawn-pipe-child.c: New file, extracted from
12476         tests/test-spawn-pipe.c.
12477         (main): Expect only one argument.
12478         (is_open): New function, copied from tests/test-pipe.c.
12479         * tests/test-spawn-pipe.c: Don't include <errno.h>.
12480         (child_main): Remove function.
12481         (test_pipe): Pass only one argument to the child program.
12482         (main): Remove child process code. Expect the child program's name as
12483         first argument.
12484         * tests/test-spawn-pipe.sh: Pass the child program's name as first
12485         argument.
12486         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
12487         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
12488         test-spawn-pipe-child against no libraries.
12489
12490 2011-06-06  Bruno Haible  <bruno@clisp.org>
12491
12492         careadlinkat: Avoid mismatch between ssize_t and int.
12493         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
12494         * lib/careadlinkat.c (careadlinkatcwd): Define always.
12495
12496 2011-06-06  Jim Meyering  <meyering@redhat.com>
12497
12498         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
12499         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
12500         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
12501
12502 2011-06-05  Bruno Haible  <bruno@clisp.org>
12503
12504         ansi-c++-opt: Interoperability with libtool.
12505         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
12506         set the variable to "no", not to ":".
12507         * NEWS: Mention the change.
12508
12509 2011-06-05  Bruno Haible  <bruno@clisp.org>
12510
12511         acl: Fix test failure on AIX 7.
12512         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
12513         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
12514
12515 2011-06-05  Bruno Haible  <bruno@clisp.org>
12516
12517         pipe-filter-ii: Fix test failure on AIX and IRIX.
12518         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
12519         with EAGAIN, retry with a smaller buffer size.
12520
12521 2011-06-05  Bruno Haible  <bruno@clisp.org>
12522
12523         localename: Fix link dependencies.
12524         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
12525         * modules/localename-tests (Makefile.am): Link test-localename with
12526         $(LIBTHREAD).
12527
12528 2011-06-05  Bruno Haible  <bruno@clisp.org>
12529
12530         error: Avoid gcc warning.
12531         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
12532
12533 2011-06-05  Bruno Haible  <bruno@clisp.org>
12534
12535         unsetenv: Avoid gcc warning.
12536         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
12537
12538 2011-06-05  Bruno Haible  <bruno@clisp.org>
12539
12540         setenv: Avoid gcc warning.
12541         * lib/setenv.c (setenv): Provide declaration if system lacks it.
12542
12543 2011-06-05  Bruno Haible  <bruno@clisp.org>
12544
12545         sys_select: Ensure memset is declared also on AIX 7.
12546         * lib/sys_select.in.h: Include <string.h> also on AIX.
12547         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
12548         self-contained also on AIX 7.1.
12549
12550 2011-06-04  Jim Meyering  <meyering@redhat.com>
12551
12552         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
12553         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
12554         function name, "error".
12555         (_gl_translatable_diag_func_re): New configurable variable.
12556
12557 2011-06-04  Bruno Haible  <bruno@clisp.org>
12558
12559         getopt: Avoid gcc warning.
12560         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
12561
12562 2011-06-04  Bruno Haible  <bruno@clisp.org>
12563
12564         strerror_r: Fix comments.
12565         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
12566         commit.
12567
12568 2011-06-04  Bruno Haible  <bruno@clisp.org>
12569
12570         perror: Fix compilation error.
12571         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
12572         Undefine fprintf, not sprintf.
12573         * modules/perror (Depends-on): Remove intprops, verify.
12574
12575 2011-06-04  Bruno Haible  <bruno@clisp.org>
12576
12577         setlocale: Enable replacement on Cygwin 1.5.
12578         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
12579         Cygwin 1.5.x.
12580         * doc/posix-functions/setlocale.texi: Mention that the problem with the
12581         LC_CTYPE category also exists on Cygwin 1.5.x.
12582
12583 2011-06-04  Bruno Haible  <bruno@clisp.org>
12584
12585         strerror-override: Don't disable symbol renamings.
12586         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
12587         * lib/strerror-override.c: Include config.h.
12588         (strerror_override): Don't undefine.
12589
12590 2011-06-03  Bruno Haible  <bruno@clisp.org>
12591
12592         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
12593         * lib/localename.h: Update copyright header.
12594         * lib/localename.c: Likewise.
12595         * lib/relocatable.h: Likewise.
12596         * lib/relocatable.c: Likewise.
12597
12598 2011-06-02  Bruno Haible  <bruno@clisp.org>
12599
12600         doc: Fix a module name.
12601         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
12602
12603 2011-06-02  Bruno Haible  <bruno@clisp.org>
12604
12605         pipe2: Remove dependency on 'nonblocking' module.
12606         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
12607         O_NONBLOCK is defined by gnulib.
12608         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
12609         is zero.
12610         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
12611         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
12612         defined by gnulib.
12613         (get_nonblocking_flag): New function.
12614         (main): Test O_NONBLOCK flag only if it is nonzero.
12615         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
12616
12617 2011-06-03  Jim Meyering  <meyering@redhat.com>
12618
12619         maint: three new prohibit-header-without-use rules
12620         Prohibit use of cloexec.h, posixver.h, same.h without use.
12621         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
12622         (sc_prohibit_posixver_without_use): Likewise.
12623         (sc_prohibit_same_without_use): Likewise.
12624
12625 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
12626
12627         allocator: 'die' routine is now given requested size
12628         * lib/allocator.h (struct allocator.die): New size arg.
12629         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
12630         If the actual problem is an ssize_t limitation, not a size_t or
12631         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
12632
12633 2011-06-01  Eric Blake  <eblake@redhat.com>
12634
12635         strerror: drop strerror_r dependency
12636         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
12637         * lib/strerror-override.c (strerror_override): ...to new file.
12638         * lib/strerror-override.h: Add prototype.
12639         * lib/strerror-impl.h: Delete.
12640         * lib/strerror.c (strerror): New implementation.
12641         * modules/errno (Files): Add new files.
12642         (configure.ac): Compile new file as appropriate.
12643         * modules/strerror (Files): Drop unused file.
12644         (Depends-on): Drop strerror_r-posix.
12645         * MODULES.html.sh: Document strerror_r-posix.
12646         Requested by Sam Steingold.
12647
12648         perror: call strerror_r directly
12649         * modules/perror (Files): Drop strerror-impl.h.
12650         * lib/perror.c (perror): Use our own stack buffer, rather than
12651         calling a wrapper that uses static storage.
12652         * doc/posix-functions/perror.texi (perror): Document a limitation
12653         of our replacement.
12654
12655         strerror_r: fix includes for FreeBSD
12656         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
12657         since we use abort on some platforms.
12658         Reported by Matthias Bolte.
12659
12660 2011-05-31  Bruno Haible  <bruno@clisp.org>
12661
12662         Fix link errors in tests: openat-die uses gettext-h.
12663         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
12664         against $(LIBINTL).
12665         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
12666         against $(LIBINTL).
12667         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
12668         $(LIBINTL).
12669         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
12670         against $(LIBINTL).
12671         * modules/linkat-tests (Makefile.am): Link test-linkat against
12672         $(LIBINTL).
12673         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
12674         $(LIBINTL).
12675         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
12676         against $(LIBINTL).
12677         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
12678         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
12679         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
12680         $(LIBINTL).
12681         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
12682         $(LIBINTL).
12683         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
12684         $(LIBINTL).
12685         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12686
12687 2011-05-31  Bruno Haible  <bruno@clisp.org>
12688
12689         Fix link errors in tests: wait-process uses gettext-h.
12690         * modules/nonblocking-pipe-tests (Makefile.am): Set
12691         test_nonblocking_pipe_main_LDADD.
12692         * modules/nonblocking-socket-tests (Makefile.am): Link
12693         test-nonblocking-socket-main against $(LIBINTL).
12694         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12695
12696 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
12697
12698         assert-h: work around 'verify' incompatibility
12699         * lib/verify.h: Use @...@ directives, not ifdef.
12700         * modules/assert-h (assert.h): Implement the directives.
12701         (assert.h): Substitute the symbol-prefix more consistently.
12702
12703 2011-05-29  Jim Meyering  <meyering@redhat.com>
12704
12705         trim: remove three superfluous assignments
12706         * lib/trim.c (trim2): Remove three superfluous assignments
12707         and correct brace positioning.
12708
12709 2011-05-29  Bruno Haible  <bruno@clisp.org>
12710
12711         wctype-h: Avoid namespace pollution on Solaris 2.6.
12712         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
12713         identifiers.
12714         * doc/posix-headers/wctype.texi: Mention the problem.
12715         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12716
12717 2011-05-28  Jim Meyering  <meyering@redhat.com>
12718
12719         parse-datetime.y: accommodate -Wstrict-overflow
12720         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
12721         placate -Wstrict-overflow.
12722
12723         trim: avoid a warning from -O2 -Wstrict-overflow
12724         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
12725
12726 2011-05-29  Bruno Haible  <bruno@clisp.org>
12727
12728         gnulib-tool: Fix bug in yesterday's commit.
12729         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
12730         twice.
12731
12732 2011-05-29  Bruno Haible  <bruno@clisp.org>
12733
12734         Allow multiple gnulib generated include files to be combined.
12735         * gnulib-tool (func_compute_include_guard_prefix): New function.
12736         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
12737         ${gl_include_guard_prefix} references.
12738         (func_import, func_create_testdir): Invoke
12739         func_compute_include_guard_prefix.
12740         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
12741         * lib/ctype.in.h: Likewise.
12742         * lib/dirent.in.h: Likewise.
12743         * lib/errno.in.h: Likewise.
12744         * lib/fcntl.in.h: Likewise.
12745         * lib/float.in.h: Likewise.
12746         * lib/getopt.in.h: Likewise.
12747         * lib/iconv.in.h: Likewise.
12748         * lib/langinfo.in.h: Likewise.
12749         * lib/locale.in.h: Likewise.
12750         * lib/math.in.h: Likewise.
12751         * lib/netdb.in.h: Likewise.
12752         * lib/netinet_in.in.h: Likewise.
12753         * lib/poll.in.h: Likewise.
12754         * lib/pthread.in.h: Likewise.
12755         * lib/pty.in.h: Likewise.
12756         * lib/sched.in.h: Likewise.
12757         * lib/se-selinux.in.h: Likewise.
12758         * lib/search.in.h: Likewise.
12759         * lib/signal.in.h: Likewise.
12760         * lib/spawn.in.h: Likewise.
12761         * lib/stdarg.in.h: Likewise.
12762         * lib/stddef.in.h: Likewise.
12763         * lib/stdint.in.h: Likewise.
12764         * lib/stdio.in.h: Likewise.
12765         * lib/stdlib.in.h: Likewise.
12766         * lib/string.in.h: Likewise.
12767         * lib/strings.in.h: Likewise.
12768         * lib/sys_file.in.h: Likewise.
12769         * lib/sys_ioctl.in.h: Likewise.
12770         * lib/sys_select.in.h: Likewise.
12771         * lib/sys_socket.in.h: Likewise.
12772         * lib/sys_stat.in.h: Likewise.
12773         * lib/sys_time.in.h: Likewise.
12774         * lib/sys_times.in.h: Likewise.
12775         * lib/sys_uio.in.h: Likewise.
12776         * lib/sys_utsname.in.h: Likewise.
12777         * lib/sys_wait.in.h: Likewise.
12778         * lib/sysexits.in.h: Likewise.
12779         * lib/termios.in.h: Likewise.
12780         * lib/time.in.h: Likewise.
12781         * lib/unistd.in.h: Likewise.
12782         * lib/wchar.in.h: Likewise.
12783         * lib/wctype.in.h: Likewise.
12784         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
12785         * modules/ctype (Makefile.am): Likewise.
12786         * modules/dirent (Makefile.am): Likewise.
12787         * modules/errno (Makefile.am): Likewise.
12788         * modules/fcntl-h (Makefile.am): Likewise.
12789         * modules/float (Makefile.am): Likewise.
12790         * modules/getopt-posix (Makefile.am): Likewise.
12791         * modules/iconv-h (Makefile.am): Likewise.
12792         * modules/langinfo (Makefile.am): Likewise.
12793         * modules/locale (Makefile.am): Likewise.
12794         * modules/math (Makefile.am): Likewise.
12795         * modules/netdb (Makefile.am): Likewise.
12796         * modules/netinet_in (Makefile.am): Likewise.
12797         * modules/poll-h (Makefile.am): Likewise.
12798         * modules/pthread (Makefile.am): Likewise.
12799         * modules/pty (Makefile.am): Likewise.
12800         * modules/sched (Makefile.am): Likewise.
12801         * modules/search (Makefile.am): Likewise.
12802         * modules/selinux-h (Makefile.am): Likewise.
12803         * modules/signal (Makefile.am): Likewise.
12804         * modules/spawn (Makefile.am): Likewise.
12805         * modules/stdarg (Makefile.am): Likewise.
12806         * modules/stddef (Makefile.am): Likewise.
12807         * modules/stdint (Makefile.am): Likewise.
12808         * modules/stdio (Makefile.am): Likewise.
12809         * modules/stdlib (Makefile.am): Likewise.
12810         * modules/string (Makefile.am): Likewise.
12811         * modules/strings (Makefile.am): Likewise.
12812         * modules/sys_file (Makefile.am): Likewise.
12813         * modules/sys_ioctl (Makefile.am): Likewise.
12814         * modules/sys_select (Makefile.am): Likewise.
12815         * modules/sys_socket (Makefile.am): Likewise.
12816         * modules/sys_stat (Makefile.am): Likewise.
12817         * modules/sys_time (Makefile.am): Likewise.
12818         * modules/sys_times (Makefile.am): Likewise.
12819         * modules/sys_uio (Makefile.am): Likewise.
12820         * modules/sys_utsname (Makefile.am): Likewise.
12821         * modules/sys_wait (Makefile.am): Likewise.
12822         * modules/sysexits (Makefile.am): Likewise.
12823         * modules/termios (Makefile.am): Likewise.
12824         * modules/time (Makefile.am): Likewise.
12825         * modules/unistd (Makefile.am): Likewise.
12826         * modules/wchar (Makefile.am): Likewise.
12827         * modules/wctype-h (Makefile.am): Likewise.
12828         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
12829
12830 2011-05-29  Bruno Haible  <bruno@clisp.org>
12831
12832         assert-h: Allow multiple gnulib generated replacements to coexist.
12833         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
12834
12835 2011-05-29  Bruno Haible  <bruno@clisp.org>
12836
12837         argp: Allow coexistence with strerror_r-posix module.
12838         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
12839         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
12840         by gnulib's <string.h> replacement), assume it has the POSIX signature,
12841         not the glibc signature.
12842
12843 2011-05-28  Bruno Haible  <bruno@clisp.org>
12844
12845         gnulib-tool: Alternative structure of testdirs, similar to --import.
12846         * gnulib-tool: New option --single-configure.
12847         (func_usage): Document it.
12848         (single_configure): New variable.
12849         (func_modules_transitive_closure_separately,
12850         func_modules_transitive_closure_separately,
12851         func_determine_use_libtests, func_modules_add_dummy_separately,
12852         func_modules_to_filelist_separately): New functions, extracted from
12853         func_import.
12854         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
12855         (func_import): Use the new functions.
12856         (func_create_testdir): Set final_modules. Handle $single_configure =
12857         true case.
12858
12859 2011-05-28  Bruno Haible  <bruno@clisp.org>
12860
12861         getloadavg: Remove an unreliable safety check.
12862         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
12863         getloadavg.c is in place.
12864         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
12865         Reported by Sam Steingold <sds@gnu.org>.
12866
12867 2011-05-28  Bruno Haible  <bruno@clisp.org>
12868
12869         doc: Cleanup yet another file produced by texinfo.tex.
12870         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
12871
12872 2011-05-28  Bruno Haible  <bruno@clisp.org>
12873
12874         Finish the conditional dependencies mechanism.
12875         * gnulib-tool: New option --no-conditional-dependencies.
12876         (func_usage): Document it. Don't mark --conditional-dependencies as
12877         experimental.
12878         (cond_dependencies): The possible values can now be true, false, empty.
12879         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
12880         (func_import): Store setting in gnulib-cache.m4 and read it from there.
12881         * doc/gnulib-tool.texi (Conditional dependencies): New section.
12882
12883 2011-05-28  Bruno Haible  <bruno@clisp.org>
12884
12885         doc: Use a recent texinfo.tex.
12886         * doc/Makefile (tex_opts): New variable.
12887         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
12888
12889 2011-05-28  Jim Meyering  <meyering@redhat.com>
12890
12891         intprops.h: adjust comment to match code change
12892         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
12893         only once, it *may* have side effects.  Also fix an unrelated typo.
12894         (_GL_INT_SIGNED): Likewise.
12895
12896 2011-05-26  Simon Josefsson  <simon@josefsson.org>
12897
12898         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
12899
12900 2011-05-26  Bruno Haible  <bruno@clisp.org>
12901
12902         mbsrchr: Avoid collision with system function on Interix.
12903         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
12904         Reported by Markus Duft <mduft@gentoo.org>.
12905
12906 2011-05-15  James Youngman  <jay@gnu.org>
12907
12908         getopt: for ambiguous options, enumerate the possibilities.
12909         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
12910         the ambiguous options when an ambiguous prefix is given. This was
12911         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
12912         glibc change was
12913         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
12914
12915 2011-05-25  Eric Blake  <eblake@redhat.com>
12916
12917         getcwd: work around mingw bug
12918         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
12919         * doc/posix-functions/getcwd.texi (getcwd): Document it.
12920         Reported by Matthias Bolte.
12921
12922 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
12923
12924         test-intprops: disable -Wtype-limits diagnostics
12925         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
12926         diagnostics.  Otherwise, the integer overflow macros generate many
12927         diagnostics.  Reported by Jim Meyering in
12928         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
12929
12930         intprops: shorten, to pacify gcc -Woverlength-strings
12931         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
12932         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
12933         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
12934         likely to run afoul of C compiler limits for string constant lengths.
12935         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
12936
12937 2011-05-24  Eric Blake  <eblake@redhat.com>
12938
12939         docs: document recently fixed glibc printf bug
12940         * doc/posix-functions/fprintf.texi (fprintf): Document it.
12941         * doc/posix-functions/printf.texi (printf): Likewise.
12942         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
12943         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
12944
12945         closein-tests: convert to init.sh
12946         * modules/closein-tests (Files): Add init.sh
12947         * tests/test-closein.sh Use it.
12948
12949         yesno-tests: convert to init.sh
12950         * modules/yesno-tests (Files): Add init.sh.
12951         * tests/test-yesno.sh: Use it.
12952
12953         atexit-tests: ensure reliable exit status
12954         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
12955         Reported by Bruno Haible.
12956
12957 2011-05-24  Bruno Haible  <bruno@clisp.org>
12958
12959         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
12960         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
12961         gl_PREREQ_STRERROR_R invocations from here...
12962         * modules/strerror_r-posix (configure.ac): ... to here.
12963
12964 2011-05-24  Eric Blake  <eblake@redhat.com>
12965
12966         strerror_r: fix missing header
12967         * lib/strerror_r.c: Avoid compiler warning about snprintf.
12968
12969         strerror_r: fix AIX test failures
12970         * lib/strerror_r.c (strerror_r): Convert silent truncation to
12971         ERANGE failure.
12972
12973         strerror_r: fix Solaris test failures
12974         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
12975         failures.
12976         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
12977
12978         strerror_r: enforce POSIX recommendations
12979         * lib/strerror_r.c (safe_copy): New helper method.
12980         (strerror_r): Guarantee a non-empty string.
12981         * tests/test-strerror_r.c (main): Enhance tests to incorporate
12982         recent POSIX rulings and to match our strerror guarantees.
12983         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
12984
12985 2011-05-24  Jim Meyering  <meyering@redhat.com>
12986
12987         test-perror2.c: avoid warning about unused variable
12988         * tests/test-perror2.c (main): Remove declaration of unused "fp".
12989
12990 2011-05-24  Eric Blake  <eblake@redhat.com>
12991
12992         perror: avoid spurious test failure on HP-UX
12993         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
12994
12995         tests: fix logic bug in init.sh
12996         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
12997         shell.
12998
12999 2011-05-24  Jim Meyering  <meyering@redhat.com>
13000
13001         utimensat: do not reference an out-of-scope buffer
13002         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
13003         declared in an inner scope, yet "times" would be dereferenced outside
13004         the scope in which "ts" was valid.
13005         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
13006         of ts[2] "out/up", so that the use of aliased "times" (via
13007         "times = ts;") does not end up referencing an out-of-scope "ts"
13008
13009         opendir-safer.c: don't clobber errno; don't close negative FD
13010         * lib/opendir-safer.c (opendir_safer):
13011         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
13012         file descriptor, and more importantly, don't clobber the
13013         offending errno value with EINVAL.  Before, upon failure
13014         of dup_safer, we would pass the negative file descriptor to
13015         fdopendir, which would clobber errno.
13016
13017 2011-05-23  Bruno Haible  <bruno@clisp.org>
13018
13019         idcache: Fix module description.
13020         * modules/idcache (Include): Set to "idcache.h".
13021
13022 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
13023
13024         gnulib-tool: fix portability problem with MacOS sed
13025         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
13026         before the "}".  Problem reported by Leo in
13027         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
13028         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
13029         sed_extract_condition1, sed_extract_condition2.
13030
13031 2011-05-23  Bruno Haible  <bruno@clisp.org>
13032
13033         hash: Simplify autoconf macro.
13034         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
13035
13036 2011-05-23  Bruno Haible  <bruno@clisp.org>
13037
13038         getugroups: Fix module description.
13039         * modules/getugroups (Include): Set to "getugroups.h".
13040
13041 2011-05-23  Bruno Haible  <bruno@clisp.org>
13042
13043         linkat: Simplify autoconf macro.
13044         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
13045
13046 2011-05-23  Bruno Haible  <bruno@clisp.org>
13047             Eric Blake  <eblake@redhat.com>
13048
13049         linkat, renameat: Update dependencies.
13050         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
13051         * modules/linkat (Depends-on): Likewise. Remove also readlink,
13052         symlinkat.
13053
13054 2011-05-23  Jim Meyering  <meyering@redhat.com>
13055
13056         maint.mk: more tight_scope improvements
13057         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
13058         (_gl_TS_headers): Define only in if-0'd block.
13059         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
13060         sometimes we must *not* use it.  Adjust uses accordingly.
13061         (sc_tight_scope): Use much simpler grep-based test to determine
13062         whether we skip this rule.
13063
13064         maint.mk: generalize/improve the tight-scope rule
13065         * top/maint.mk: Emit a warning when the test is skipped.
13066         (_gl_TS_dir): Add $(srcdir)/ prefix.
13067         (_gl_TS_function_match): Simplify, rather than trying
13068         to enumerate common types.  Otherwise, it would fail to match an
13069         "extern unsigned char const *" declaration in idutils.
13070         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
13071         a way to support use of that type of macro.
13072         (_gl_TS_var_match): Simplify regexp.
13073         (_gl_TS_obj_files): New configurable variable.
13074         (_gl_TS_headers): Likewise.
13075
13076 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
13077
13078         verify: fix bug when gnulib <assert.h> is also included
13079         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
13080         is defined, not if _GL_STATIC_ASSERT_H is not defined.
13081         Perhaps there's a better way, but this fixes the immediate problem.
13082         Problem reported by Bruno Haible in
13083         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
13084
13085 2011-05-22  Bruno Haible  <bruno@clisp.org>
13086
13087         xgetcwd: Simplify autoconf macro.
13088         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
13089
13090 2011-05-22  Bruno Haible  <bruno@clisp.org>
13091
13092         New module 'mktime-internal'.
13093         * modules/mktime-internal: New file.
13094         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
13095         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
13096         mktime_internal as a C macro if libc has __mktime_internal.
13097         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
13098         conditions.
13099         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
13100
13101 2011-05-22  Bruno Haible  <bruno@clisp.org>
13102
13103         timegm: Correct mktime replacement statements.
13104         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
13105         defining mktime as a C macro. This completes a 2009-07-28 commit.
13106
13107 2011-05-22  Bruno Haible  <bruno@clisp.org>
13108
13109         timegm: Simplify autoconf macro.
13110         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
13111
13112 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
13113
13114         clock-time: change to LGPLv2+.
13115         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
13116         BSD-like but we have no mark for that; this is good enough for now.
13117
13118 2011-05-21  Bruno Haible  <bruno@clisp.org>
13119
13120         strerror_r: Fix comments.
13121         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
13122
13123 2011-05-21  Bruno Haible  <bruno@clisp.org>
13124
13125         relocatable-prog-wrapper: Fix possible link error.
13126         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
13127         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
13128         (gl_FUNC_SETENV): ... to here.
13129         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
13130         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
13131
13132 2011-05-21  Bruno Haible  <bruno@clisp.org>
13133
13134         relocatable-prog-wrapper: Assume strerror() exists.
13135         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
13136         m4/strerror.m4.
13137         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
13138         * lib/relocwrapper.c: Remove mention of strerror module.
13139         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
13140         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
13141         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
13142         C macro.
13143
13144 2011-05-21  Bruno Haible  <bruno@clisp.org>
13145
13146         select: Simplify replacement idiom.
13147         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
13148         Win32 platforms.
13149         * lib/sys_select.in.h (select): Simplify accordingly.
13150         * modules/select (Depends-on): Likewise.
13151
13152 2011-05-21  Bruno Haible  <bruno@clisp.org>
13153
13154         mkdir-p: Simplify autoconf macro.
13155         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
13156         gl_FUNC_LCHOWN.
13157
13158 2011-05-21  Eric Blake  <eblake@redhat.com>
13159
13160         strerror_r: avoid clobbering strerror on cygwin
13161         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
13162         fall back instead to sys_errlist.
13163         * modules/strerror (configure.ac): Add witness.
13164         * tests/test-strerror_r.c (main): Enhance test.
13165         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
13166         * tests/test-perror2.c (main): Free memory before exit.
13167
13168 2011-05-21  Bruno Haible  <bruno@clisp.org>
13169
13170         mkdtemp: Use gnulib naming conventions.
13171         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
13172         * modules/mkdtemp (configure.ac): Update.
13173
13174 2011-05-20  Eric Blake  <eblake@redhat.com>
13175
13176         strerror_r: avoid corrupting errno on Solaris
13177         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
13178         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
13179
13180         strerror_r: avoid compiler warning
13181         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
13182
13183         strerror_r: simplify AIX code
13184         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
13185
13186         test-perror: avoid spurious failure on FreeBSD
13187         * modules/perror-tests (Depends-on): Add strerror, now that
13188         strerror_r no longer pulls it in.
13189
13190 2011-05-20  Bruno Haible  <bruno@clisp.org>
13191
13192         strerror_r-posix: Remove unused dependencies.
13193         * modules/strerror_r-posix (Depends-on): Remove strerror.
13194         Reported by Eric Blake.
13195
13196 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
13197
13198         intprops: remove assumption about A|B representation
13199         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
13200         is a valid integer if both A and B are.  Although this is true for
13201         all known practical hosts, the C standard doesn't guarantee it,
13202         and the code need not assume it.  Also, this change may work around
13203         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
13204         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
13205
13206 2011-05-20  Eric Blake  <eblake@redhat.com>
13207
13208         perror: work around FreeBSD bug
13209         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
13210         is broken.  Move AC_LIBOBJ...
13211         * modules/perror (configure.ac): Here.
13212         * doc/posix-functions/perror.texi (perror): Document this.
13213         * tests/test-perror2.c (main): Enhance test.
13214
13215         test-perror: check for strerror interactions
13216         * tests/macros.h (STREQ): Add macro.
13217         * modules/perror-tests (Files): Add second test.
13218         * tests/test-perror2.c (main): New file.
13219         * doc/posix-functions/perror.texi (perror): Document glibc bug.
13220
13221         test-perror: rewrite to use init script
13222         * modules/perror-tests (Files): Add init.sh.
13223         * tests/test-perror.sh: Use temporary directory.
13224
13225 2011-05-20  Jim Meyering  <meyering@redhat.com>
13226
13227         maint: replace misused "a" with "an"
13228         * doc/intprops.texi: "a integer"
13229         * doc/regex.texi: "a explanation"
13230         * lib/alignof.h: "a object"
13231         * lib/argmatch.h: "a explanation"
13232         * lib/argp-help.c: "a option" and "a OPTION_DOC"
13233         * lib/stdint.in.h: "a integer"
13234         * lib/userspec.c: "a owner"
13235         * doc/gnulib.texi: Fix "a idea", and reword.
13236
13237 2011-05-19  Jim Meyering  <meyering@redhat.com>
13238
13239         maint: correct misuse of "a" and "an"
13240         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
13241         * lib/argp-help.c: "an docum...": s/an/a/
13242         * lib/argp-parse.c: "An vector": s/An/A/
13243         * lib/execute.c: "an native": s/an/a/
13244         * lib/spawn-pipe.c: Likewise.
13245         * lib/gc.h: "an Gc_rc": s/an/a/
13246         * lib/unigbrk.in.h: "an grapheme": s/an/a/
13247         * lib/fts.c: "an stat.st_dev": s/an/a/
13248
13249 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
13250
13251         intprops-tests: work around HP-UX 11.23 cc bug with constants
13252         * tests/test-intprops.c (VERIFY): New macro.
13253         (main): Use it, instead of verify, to work around the compiler bug; see
13254         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
13255
13256         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
13257         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
13258         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
13259         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
13260         (_GL_REMAINDER_OVERFLOW): Use it.
13261
13262         intprops-tests: revert unsigned part of previous change
13263         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
13264         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
13265         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
13266         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
13267
13268 2011-05-19  Bruno Haible  <bruno@clisp.org>
13269
13270         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
13271         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
13272         strerror_r() returned without filling the buffer.
13273         Reported by Eric Blake.
13274
13275 2011-05-19  Eric Blake  <eblake@redhat.com>
13276
13277         strerror_r: guarantee unchanged errno
13278         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
13279         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
13280         failure.
13281         * tests/test-strerror_r.c (main): Enhance test.
13282
13283 2011-05-19  Bruno Haible  <bruno@clisp.org>
13284
13285         strerror_r: Reorder #if blocks.
13286         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
13287         for consistency with the previous commit.
13288
13289 2011-05-19  Bruno Haible  <bruno@clisp.org>
13290
13291         perror: Avoid clobbering the strerror buffer when possible.
13292         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
13293         * lib/strerror.c: Include it.
13294         * modules/strerror (Files): Add lib/strerror-impl.h.
13295         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
13296         (my_strerror): New function, defined through lib/strerror-impl.h.
13297         (perror): Use it instead of strerror.
13298         * modules/perror (Files): Add lib/strerror-impl.h.
13299         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
13300
13301 2011-05-19  Eric Blake  <eblake@redhat.com>
13302
13303         strerror_r: fix on newer cygwin
13304         * lib/strerror_r.c (strerror_r): Cygwin now has
13305         __xpg_strerror_r, use it.
13306
13307 2011-05-19  Bruno Haible  <bruno@clisp.org>
13308
13309         strerror_r: Avoid clobbering the strerror buffer when possible.
13310         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
13311         (sys_nerr, sys_errlist): New declarations.
13312         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
13313         HP-UX, native Win32, IRIX, and 32-bit Solaris.
13314         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
13315
13316 2011-05-19  Bruno Haible  <bruno@clisp.org>
13317
13318         strerror_r: Fix test failure on mingw.
13319         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
13320         EXTEND_STRERROR_R.
13321         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
13322         macros from errno.in.h instead.
13323
13324 2011-05-19  Eric Blake  <eblake@redhat.com>
13325
13326         strerror: relax test for Solaris
13327         * tests/test-strerror.c (main): Permit Solaris behavior.
13328         * tests/test-strerror_r.c (main): Likewise.
13329
13330         strerror: enforce POSIX ruling on strerror(0)
13331         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
13332         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
13333         * lib/strerror_r.c (rpl_strerror_r): Work around it.
13334         * doc/posix-functions/strerror.texi (strerror): Document it.
13335         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
13336         * tests/test-strerror.c (main): Strengthen test.
13337         * tests/test-strerror_r.c (main): Likewise.
13338
13339 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
13340
13341         intprop-tests: port to older and more-pedantic compilers
13342         * modules/intprops-tests (Files): Add tests/macros.h.
13343         * tests/test-intprops.c: Include macros.h.
13344         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
13345         it's no longer documented to expand to an integer constant expression.
13346         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
13347         argument is floating point, as it's no longer documented to expand
13348         to an integer constant expression in that case.
13349         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
13350         compiler bugs reported by Bruno Haible.  See
13351         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
13352         (U0, U1): New constants, to work around the same bugs.  Also,
13353         in tests, use e.g., "(unsigned int) 39" rather than "39u".
13354
13355         intprops: work around C compiler bugs
13356         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
13357         bug in Sun C 5.11 2010/08/13 and other compilers; see
13358         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
13359
13360         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
13361         * doc/intprops.texi (Integer Type Determination): Fix
13362         documentation for TYPE_IS_INTEGER: it returns an constant
13363         expression, not an integer constant expression.  Fix doc for
13364         TYPE_SIGNED: it returns an integer constant expression only if its
13365         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
13366         hardly worth documented that way....)
13367
13368 2011-05-18  Bruno Haible  <bruno@clisp.org>
13369
13370         strerror_r: Avoid clobbering the strerror buffer when possible.
13371         * lib/strerror_r.c (strerror_r): Merge the three implementations.
13372         Handle gnulib defined errno values here. When strerror() returns NULL
13373         or an empty string, return EINVAL.
13374         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
13375         gnulib defined errno values here.
13376         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
13377
13378 2011-05-18  Eric Blake  <eblake@redhat.com>
13379
13380         fnmatch: avoid compiler warning
13381         * lib/fnmatch_loop.c (FCT): Use correct type.
13382         Reported by Matthias Bolte.
13383
13384 2011-05-13  Jim Meyering  <meyering@redhat.com>
13385
13386         maint.mk: three new prohibit_<HDR>_without_use rules
13387         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
13388         (sc_prohibit_stdio-safer_without_use): Likewise.
13389         (sc_prohibit_xfreopen_without_use): Likewise.
13390
13391 2011-05-17  Jim Meyering  <meyering@redhat.com>
13392
13393         announce-gen: fail if the NEWS delta is empty
13394         If there's nothing noteworthy in NEWS, then either you forgot
13395         or you shouldn't be releasing.
13396         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
13397
13398 2011-05-17  Pádraig Brady <P@draigBrady.com>
13399
13400         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
13401         reserved symbols starting with double underscore from the check.
13402
13403 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
13404
13405         intprops: add doc
13406         * doc/intprops.texi: New file, documenting intprops.
13407         * doc/gnulib.texi (Particular Modules): Include it.
13408
13409         verify: add doc to gnulib manual and fix example
13410         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
13411         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
13412         (Compile-time Assertions): Fix example so it can't overflow.
13413
13414 2011-05-17  Jim Meyering  <meyering@redhat.com>
13415
13416         warnings.m4: don't usurp save_CPPFLAGS variable name
13417         * m4/warnings.m4: Prefix local temporary variable name with gl_.
13418
13419         doc: fix typo
13420         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
13421
13422 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
13423             Bruno Haible  <bruno@clisp.org>
13424
13425         doc: Tweak recent change.
13426         * README (Portability guidelines): Tweak new text.
13427         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
13428         Interix 6.1.
13429
13430 2011-05-16  Eric Blake  <eblake@redhat.com>
13431
13432         inttypes: avoid autoconf warning
13433         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
13434         * m4/stdint.m4 (gl_STDINT_H): Likewise.
13435
13436 2011-05-16  Sam Steingold <sds@gnu.org>
13437         and Eric Blake  <eblake@redhat.com>
13438
13439         vc-list-files: accept multiple directory operands
13440         * build-aux/vc-list-files: Iterate over all remaining operands.
13441
13442 2011-05-16  Bruno Haible  <bruno@clisp.org>
13443
13444         Fix confusion regarding deprecated modules.
13445         * modules/calloc (Status, Notice): Mark module as deprecated, not
13446         obsolete.
13447         * modules/fnmatch-posix (Status, Notice): Likewise.
13448         * modules/getdate (Status, Notice): Likewise.
13449         * modules/getopt (Status, Notice): Likewise.
13450         * modules/malloc (Status, Notice): Likewise.
13451         * modules/pipe (Status, Notice): Likewise.
13452         * modules/realloc (Status, Notice): Likewise.
13453         * modules/rename-dest-slash (Status, Notice): Likewise.
13454         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
13455         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
13456         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
13457         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
13458         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
13459
13460 2011-05-16  Bruno Haible  <bruno@clisp.org>
13461
13462         doc: List the target platforms.
13463         * doc/gnulib-intro.texi (Target Platforms): New section.
13464         * doc/gnulib.texi (Introduction): Update menu.
13465         * README (Portability guidelines): Refer to the new section. Update
13466         statement about oldest supported environment. Remove rationale why
13467         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
13468         unportable C89 function.
13469         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
13470         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
13471
13472 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
13473
13474         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
13475
13476 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
13477
13478         intprops-tests: new module
13479         * modules/intprops-tests, tests/test-intprops.c: New files.
13480
13481         intprops: add safe, portable integer overflow checking
13482         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
13483         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
13484         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
13485         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
13486         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
13487         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
13488         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
13489         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
13490         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
13491         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
13492         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
13493
13494 2011-05-12  James Youngman  <jay@gnu.org>
13495
13496         Add a test for glibc's Bugzilla bug #12378.
13497         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
13498         doesn't allow the literal matching of a lone "[" (which is
13499         required by POSIX).
13500         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
13501
13502 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
13503
13504         Sync glibc change fixing Bugzilla bug #12378.
13505         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
13506         beginning and fall back to matching as normal character if the
13507         string ends before the matching ']' is found.  This is what POSIX
13508         requires.
13509
13510 2011-05-13  Eric Blake  <eblake@redhat.com>
13511
13512         getcwd-lgpl: relax test for FreeBSD
13513         * doc/posix-functions/getcwd.texi (getcwd): Document portability
13514         issue.
13515         * tests/test-getcwd-lgpl.c (main): Relax test.
13516         Reported by Matthias Bolte.
13517
13518 2011-05-11  Eric Blake  <eblake@redhat.com>
13519
13520         test-fflush: silence compiler warning
13521         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
13522
13523 2011-05-11  Bruno Haible  <bruno@clisp.org>
13524
13525         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
13526         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
13527         * modules/canonicalize (Depends-on): Add 'nocrash'.
13528         * modules/canonicalize-lgpl (Depends-on): Likewise.
13529         * doc/posix-functions/realpath.texi: Update platforms list.
13530         Reported by Ryan Schmidt <ryandesign@macports.org>.
13531
13532 2011-05-11  Bruno Haible  <bruno@clisp.org>
13533
13534         group-member: Declare function in <unistd.h>.
13535         * lib/unistd.in.h (group_member): New declaration.
13536         * lib/group-member.h: Remove file.
13537         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
13538         * tests/test-unistd-c++.cc: Check signature of group_member.
13539         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
13540         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
13541         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
13542         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
13543         HAVE_GROUP_MEMBER.
13544         * modules/group-member (Files): Remove lib/group-member.h.
13545         (Depends-on): Add unistd. Specify conditions.
13546         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13547         (Include): Change to <unistd.h>.
13548         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
13549         HAVE_GROUP_MEMBER.
13550         * NEWS: Mention the change.
13551         * lib/euidaccess.c: Don't include group-member.h.
13552
13553 2011-05-11  Bruno Haible  <bruno@clisp.org>
13554
13555         group-member: Document module.
13556         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
13557         module.
13558
13559 2011-05-11  Bruno Haible  <bruno@clisp.org>
13560
13561         fclose: Fix mistake earlier today.
13562         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
13563
13564 2011-05-11  Eric Blake  <eblake@redhat.com>
13565
13566         fclose: preserve fflush errors
13567         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
13568         Reported by Jim Meyering.
13569
13570         bootstrap: support a prereq of 'rpcgen -' on RHEL5
13571         * build-aux/bootstrap (check_versions): When no specific version
13572         is required, merely check that the app produces an exit status
13573         that indicates its existence.
13574
13575         maint.mk: drop redundant check
13576         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
13577         the same but better.
13578
13579 2011-05-11  Bruno Haible  <bruno@clisp.org>
13580
13581         fclose: Fix possible link error.
13582         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
13583         unregister_shadow_fd. Improve comments.
13584         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
13585         Eric Blake.
13586
13587 2011-05-11  Jim Meyering  <meyering@redhat.com>
13588
13589         maint.mk: improve "can not" detection and generalize rule name
13590         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
13591         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
13592         Use the same technique as in sc_prohibit_doubled_word, so that
13593         we recognize "can not" also when the words are separated by a newline.
13594         Suggested by Eric Blake.
13595         (perl_filename_lineno_text_): Define.  Factored out of...
13596         (prohibit_doubled_word_): ...here.  Use the new definition.
13597         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
13598         (prohibit_undesirable_word_seq_RE_): New overridable variable.
13599         (ignore_undesirable_word_sequence_RE_): New overridable variable.
13600
13601 2011-05-10  Eric Blake  <eblake@redhat.com>
13602
13603         fclose: avoid double close race when possible
13604         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
13605         all but WINDOWS_SOCKETS.
13606
13607 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
13608
13609         openat: correct new comment
13610         * lib/openat-proc.c (openat_proc_name): Correct the comment.
13611
13612 2011-05-10  Jim Meyering  <meyering@redhat.com>
13613
13614         openat: add comments
13615         * lib/openat-proc.c (openat_proc_name): Add comments,
13616         mostly from Eric Blake.
13617
13618 2011-05-09  Eric Blake  <eblake@redhat.com>
13619
13620         openat: reduce syscalls in first probe of /proc
13621         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
13622         be a directory.  Simplify the probe for .. bugs.
13623         * modules/openat (Depends-on): Drop same-inode.
13624         Reported by Bastien ROUCARIES.
13625
13626 2011-05-09  Jim Meyering  <meyering@redhat.com>
13627
13628         maint.mk: change semantics/name of tight_scope variables
13629         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
13630         Rename variables to align with semantics that make them more useful.
13631
13632         maint.mk: tweak new rule's name not to impinge
13633         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
13634         (sc_tight_scope): Use new rule name rather than $@-0.
13635
13636         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
13637         * top/maint.mk (sc_tight_scope): New rule.
13638         (sc_tight_scope-0): New rule, ifdef'd out.
13639         (_gl_TS_dir): Default.
13640         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
13641         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
13642
13643 2011-05-09  Simon Josefsson  <simon@josefsson.org>
13644
13645         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
13646         Haible <bruno@clisp.org>.
13647
13648 2011-05-08  Bruno Haible  <bruno@clisp.org>
13649
13650         Comments.
13651         * m4/isnanf.m4: Add comment.
13652         * m4/isnanl.m4: Likewise.
13653
13654 2011-05-08  Bruno Haible  <bruno@clisp.org>
13655
13656         glob: Remove obsolete macro.
13657         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
13658
13659 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
13660
13661         intprops: Sun C 5.11 supports __typeof__
13662         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
13663         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
13664         which is new.
13665         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
13666
13667         intprops: switch to usual gnulib indenting and naming
13668         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
13669         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
13670
13671         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
13672
13673 2011-05-08  Jim Meyering  <meyering@redhat.com>
13674
13675         maint.mk: suppress "Entering/Leaving directory" diag in announcement
13676         * top/maint.mk (release-prep): Use make's --no-print-directory
13677         option when generating the announcement.  This eliminates the
13678         pesky "make[2]: Entering/Leaving directory" diagnostics in the
13679         generated announcement template.
13680
13681 2011-05-08  Bruno Haible  <bruno@clisp.org>
13682
13683         tzset: Fix gettimeofday wrapper on Solaris 2.6.
13684         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
13685         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
13686
13687 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
13688
13689         ignore-value, verify: Omit include files from lib_SOURCES.
13690         * modules/ignore-value, modules/verify (Makefile.am):
13691         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
13692         that leads Automake to duplicate use of am__objects_... variables
13693         in Makefile.in.  See
13694         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
13695
13696 2011-05-07  Bruno Haible  <bruno@clisp.org>
13697
13698         fclose: Simplify autoconf macro.
13699         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
13700         defined.
13701
13702 2011-05-07  Bruno Haible  <bruno@clisp.org>
13703
13704         canonicalize-lgpl: Fix autoconf macro ordering bug.
13705         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
13706         gl_STDLIB_H_DEFAULTS.
13707
13708 2011-05-06  Eric Blake  <eblake@redhat.com>
13709
13710         maintainer-makefile: make sc_po_check easier to tune
13711         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
13712         to probe for strings, such as an alternate location for gnulib.
13713
13714         fclose: guarantee behavior on seekable stdin
13715         * modules/fclose (Depends-on): Add fflush.
13716         * doc/posix-functions/fclose.texi (fclose): Document this.
13717         * tests/test-fclose.c (main): Make test for this unconditional.
13718
13719 2011-05-06  Bruno Haible  <bruno@clisp.org>
13720
13721         fflush, fpurge: Relicense under LGPLv2+.
13722         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
13723         * modules/fpurge (License): Likewise.
13724         With permission from Eric Blake and Jim Meyering.
13725         Suggested by Eric Blake.
13726
13727 2011-05-06  Karl Berry  <karl@gnu.org>
13728
13729         * MODULES.html.sh (func_all_modules): remove exit.
13730
13731 2011-05-06  Jim Meyering  <meyering@redhat.com>
13732
13733         maint.mk: use info-gnu@ as the default only for a stable release
13734         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
13735         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
13736         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
13737         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
13738
13739 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13740
13741         assert-h: new module, which supports C1X-style static_assert
13742         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
13743         * lib/verify.h: Revamp so that this can be copied into assert.h,
13744         while retaining the ability to use it standalone as before.
13745         Rename private identifiers so as not to encroach on the
13746         standard C namespace, since this is now used by assert.h.
13747         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
13748         the old verify_true.
13749         (_GL_VERIFY_TRUE): New macro, with much of the contents of
13750         the old verify_true.  Use _GL_VERIFY_TYPE.
13751         (_GL_VERIFY): New macro, with much of the contents of the old verify.
13752         (static_assert): New macro, if _GL_STATIC_ASSERT_H
13753         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
13754         defined when this file is copied into the replacement assert.h.
13755         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
13756         and _Static_assert is not built in.
13757         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
13758         defined, and use the new macros mentioned above.
13759         * doc/posix-headers/assert.texi: Document this.
13760
13761 2011-05-05  Bruno Haible  <bruno@clisp.org>
13762
13763         fclose, fflush: Respect rules for use of AC_LIBOBJ.
13764         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
13765         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
13766         gl_REPLACE_FCLOSE here.
13767         * modules/fflush (Depends-on): Remove fclose.
13768         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
13769         combination with module 'fclose'.
13770
13771 2011-05-05  Bruno Haible  <bruno@clisp.org>
13772
13773         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
13774         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
13775         gl_FUNC_FFLUSH.
13776         (gl_FUNC_FFLUSH): Use it.
13777         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
13778         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
13779         gl_REPLACE_FSEEKO here.
13780
13781 2011-05-05  Bruno Haible  <bruno@clisp.org>
13782
13783         tzset: Relicense under LGPL.
13784         * modules/tzset (License): Change to LGPL.
13785         No agreement needed; it's a no-op.
13786
13787         strtoimax, strtoumax: Relicense under LGPL.
13788         * modules/strtoimax (License): Change to LGPL.
13789         * modules/strtoumax (License): Likewise.
13790         With permission from Jim Meyering, Paul Eggert:
13791         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
13792         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
13793
13794         getgroups: Relicense under LGPL.
13795         * modules/getgroups (License): Change to LGPL.
13796         With permission from Jim Meyering, Paul Eggert, Eric Blake:
13797         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
13798         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
13799         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13800
13801         nanosleep: Relicense under LGPL.
13802         * modules/nanosleep (License): Change to LGPL.
13803         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
13804         Haible:
13805         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
13806         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
13807         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13808         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
13809
13810         futimens: Relicense under LGPL.
13811         * modules/futimens (License): Change to LGPL.
13812         With permission from Eric Blake:
13813         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13814
13815         fflush: Relicense under LGPL.
13816         * modules/fflush (License): Change to LGPL.
13817         With permission from Eric Blake, Bruno Haible, Jim Meyering:
13818         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13819         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
13820         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
13821
13822         tmpfile: Relicense under LGPL.
13823         * modules/tmpfile (License): Change to LGPL.
13824         With permission from Ben Pfaff:
13825         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
13826
13827         isfinite: Relicense under LGPL.
13828         * modules/isfinite (License): Change to LGPL.
13829         With permission from Ben Pfaff, Bruno Haible:
13830         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
13831         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
13832
13833         acosl..tanl: Relicense under LGPL.
13834         * modules/acosl (License): Change to LGPL.
13835         * modules/asinl (License): Likewise.
13836         * modules/atanl (License): Likewise.
13837         * modules/cosl (License): Likewise.
13838         * modules/expl (License): Likewise.
13839         * modules/logl (License): Likewise.
13840         * modules/sinl (License): Likewise.
13841         * modules/sqrtl (License): Likewise.
13842         * modules/tanl (License): Likewise.
13843         Source code originally from glibc and Paolo Bonzini. Agreements:
13844         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
13845         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
13846
13847 2011-05-05  Bruno Haible  <bruno@clisp.org>
13848
13849         signal: Define sighandler_t.
13850         * lib/signal.in.h (sighandler_t): New type.
13851         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
13852         whether sighandler_t is defined.
13853         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
13854         * modules/signal (Depends-on): Add extensions.
13855         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
13856         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
13857         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
13858
13859 2011-05-05  Eric Blake  <eblake@redhat.com>
13860
13861         maint: remove useless REPLACE_*_H macros
13862         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
13863         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
13864         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
13865         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
13866         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
13867         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
13868         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
13869         * m4/btowc.m4: Update callers.
13870         * m4/dirfd.m4: Likewise.
13871         * m4/duplocale.m4: Likewise.
13872         * m4/fchdir.m4: Likewise.
13873         * m4/fdopendir.m4: Likewise.
13874         * m4/inet_ntop.m4: Likewise.
13875         * m4/inet_pton.m4: Likewise.
13876         * m4/ioctl.m4: Likewise.
13877         * m4/mbrlen.m4: Likewise.
13878         * m4/mbrtowc.m4: Likewise.
13879         * m4/mbsinit.m4: Likewise.
13880         * m4/mbsnrtowcs.m4: Likewise.
13881         * m4/mbsrtowcs.m4: Likewise.
13882         * m4/poll.m4: Likewise.
13883         * m4/setlocale.m4: Likewise.
13884         * m4/wcrtomb.m4: Likewise.
13885         * m4/wcsnrtombs.m4: Likewise.
13886         * m4/wcsrtombs.m4: Likewise.
13887         * m4/wctob.m4: Likewise.
13888         * m4/wcwidth.m4: Likewise.
13889         * modules/posix_spawn: Likewise.
13890         * modules/posix_spawn_file_actions_addclose: Likewise.
13891         * modules/posix_spawn_file_actions_adddup2: Likewise.
13892         * modules/posix_spawn_file_actions_addopen: Likewise.
13893         * modules/posix_spawn_file_actions_destroy: Likewise.
13894         * modules/posix_spawn_file_actions_init: Likewise.
13895         * modules/posix_spawnattr_destroy: Likewise.
13896         * modules/posix_spawnattr_getflags: Likewise.
13897         * modules/posix_spawnattr_getpgroup: Likewise.
13898         * modules/posix_spawnattr_getschedparam: Likewise.
13899         * modules/posix_spawnattr_getschedpolicy: Likewise.
13900         * modules/posix_spawnattr_getsigdefault: Likewise.
13901         * modules/posix_spawnattr_getsigmask: Likewise.
13902         * modules/posix_spawnattr_init: Likewise.
13903         * modules/posix_spawnattr_setflags: Likewise.
13904         * modules/posix_spawnattr_setpgroup: Likewise.
13905         * modules/posix_spawnattr_setschedparam: Likewise.
13906         * modules/posix_spawnattr_setschedpolicy: Likewise.
13907         * modules/posix_spawnattr_setsigdefault: Likewise.
13908         * modules/posix_spawnattr_setsigmask: Likewise.
13909         * modules/posix_spawnp: Likewise.
13910
13911 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
13912
13913         Add option to do-release-commit-and-tag to specify branch.
13914         * build-aux/do-release-commit-and-tag: Add --branch.
13915
13916 2011-05-03  Bruno Haible  <bruno@clisp.org>
13917
13918         Avoid unnecessary compilation units, through conditional dependencies.
13919         * modules/accept (Depends-on): Add conditions to the dependencies.
13920         * modules/acosl (Depends-on): Likewise.
13921         * modules/argz (Depends-on): Likewise.
13922         * modules/asinl (Depends-on): Likewise.
13923         * modules/atanl (Depends-on): Likewise.
13924         * modules/atoll (Depends-on): Likewise.
13925         * modules/bind (Depends-on): Likewise.
13926         * modules/btowc (Depends-on): Likewise.
13927         * modules/canonicalize-lgpl (Depends-on): Likewise.
13928         * modules/ceil (Depends-on): Likewise.
13929         * modules/ceilf (Depends-on): Likewise.
13930         * modules/ceill (Depends-on): Likewise.
13931         * modules/chdir-long (Depends-on): Likewise.
13932         * modules/chown (Depends-on): Likewise.
13933         * modules/close (Depends-on): Likewise.
13934         * modules/connect (Depends-on): Likewise.
13935         * modules/cosl (Depends-on): Likewise.
13936         * modules/dirfd (Depends-on): Likewise.
13937         * modules/dprintf (Depends-on): Likewise.
13938         * modules/dprintf-posix (Depends-on): Likewise.
13939         * modules/error (Depends-on): Likewise.
13940         * modules/euidaccess (Depends-on): Likewise.
13941         * modules/expl (Depends-on): Likewise.
13942         * modules/faccessat (Depends-on): Likewise.
13943         * modules/fchdir (Depends-on): Likewise.
13944         * modules/fclose (Depends-on): Likewise.
13945         * modules/fcntl (Depends-on): Likewise.
13946         * modules/fdopendir (Depends-on): Likewise.
13947         * modules/fflush (Depends-on): Likewise.
13948         * modules/floor (Depends-on): Likewise.
13949         * modules/floorf (Depends-on): Likewise.
13950         * modules/floorl (Depends-on): Likewise.
13951         * modules/fnmatch (Depends-on): Likewise.
13952         * modules/fopen (Depends-on): Likewise.
13953         * modules/fprintf-posix (Depends-on): Likewise.
13954         * modules/frexp (Depends-on): Likewise.
13955         * modules/frexp-nolibm (Depends-on): Likewise.
13956         * modules/frexpl (Depends-on): Likewise.
13957         * modules/frexpl-nolibm (Depends-on): Likewise.
13958         * modules/fseek (Depends-on): Likewise.
13959         * modules/fsusage (Depends-on): Likewise.
13960         * modules/ftell (Depends-on): Likewise.
13961         * modules/ftello (Depends-on): Likewise.
13962         * modules/futimens (Depends-on): Likewise.
13963         * modules/getcwd (Depends-on): Likewise.
13964         * modules/getcwd-lgpl (Depends-on): Likewise.
13965         * modules/getdelim (Depends-on): Likewise.
13966         * modules/getdomainname (Depends-on): Likewise.
13967         * modules/getgroups (Depends-on): Likewise.
13968         * modules/gethostname (Depends-on): Likewise.
13969         * modules/getline (Depends-on): Likewise.
13970         * modules/getlogin_r (Depends-on): Likewise.
13971         * modules/getopt-posix (Depends-on): Likewise.
13972         * modules/getpeername (Depends-on): Likewise.
13973         * modules/getsockname (Depends-on): Likewise.
13974         * modules/getsockopt (Depends-on): Likewise.
13975         * modules/getsubopt (Depends-on): Likewise.
13976         * modules/getusershell (Depends-on): Likewise.
13977         * modules/glob (Depends-on): Likewise.
13978         * modules/grantpt (Depends-on): Likewise.
13979         * modules/iconv_open (Depends-on): Likewise.
13980         * modules/iconv_open-utf (Depends-on): Likewise.
13981         * modules/inet_ntop (Depends-on): Likewise.
13982         * modules/inet_pton (Depends-on): Likewise.
13983         * modules/ioctl (Depends-on): Likewise.
13984         * modules/isapipe (Depends-on): Likewise.
13985         * modules/isfinite (Depends-on): Likewise.
13986         * modules/isinf (Depends-on): Likewise.
13987         * modules/lchown (Depends-on): Likewise.
13988         * modules/ldexpl (Depends-on): Likewise.
13989         * modules/link (Depends-on): Likewise.
13990         * modules/linkat (Depends-on): Likewise.
13991         * modules/listen (Depends-on): Likewise.
13992         * modules/logl (Depends-on): Likewise.
13993         * modules/lstat (Depends-on): Likewise.
13994         * modules/mbrlen (Depends-on): Likewise.
13995         * modules/mbrtowc (Depends-on): Likewise.
13996         * modules/mbsinit (Depends-on): Likewise.
13997         * modules/mbsnrtowcs (Depends-on): Likewise.
13998         * modules/mbsrtowcs (Depends-on): Likewise.
13999         * modules/mbtowc (Depends-on): Likewise.
14000         * modules/memcmp (Depends-on): Likewise.
14001         * modules/mkdir (Depends-on): Likewise.
14002         * modules/mkdtemp (Depends-on): Likewise.
14003         * modules/mkfifo (Depends-on): Likewise.
14004         * modules/mkfifoat (Depends-on): Likewise.
14005         * modules/mknod (Depends-on): Likewise.
14006         * modules/mkostemp (Depends-on): Likewise.
14007         * modules/mkostemps (Depends-on): Likewise.
14008         * modules/mkstemp (Depends-on): Likewise.
14009         * modules/mkstemps (Depends-on): Likewise.
14010         * modules/mktime (Depends-on): Likewise.
14011         * modules/nanosleep (Depends-on): Likewise.
14012         * modules/open (Depends-on): Likewise.
14013         * modules/openat (Depends-on): Likewise.
14014         * modules/perror (Depends-on): Likewise.
14015         * modules/poll (Depends-on): Likewise.
14016         * modules/popen (Depends-on): Likewise.
14017         * modules/posix_spawn (Depends-on): Likewise.
14018         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
14019         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
14020         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
14021         * modules/posix_spawnp (Depends-on): Likewise.
14022         * modules/pread (Depends-on): Likewise.
14023         * modules/printf-posix (Depends-on): Likewise.
14024         * modules/ptsname (Depends-on): Likewise.
14025         * modules/putenv (Depends-on): Likewise.
14026         * modules/pwrite (Depends-on): Likewise.
14027         * modules/readline (Depends-on): Likewise.
14028         * modules/readlink (Depends-on): Likewise.
14029         * modules/readlinkat (Depends-on): Likewise.
14030         * modules/recv (Depends-on): Likewise.
14031         * modules/recvfrom (Depends-on): Likewise.
14032         * modules/regex (Depends-on): Likewise.
14033         * modules/remove (Depends-on): Likewise.
14034         * modules/rename (Depends-on): Likewise.
14035         * modules/renameat (Depends-on): Likewise.
14036         * modules/rmdir (Depends-on): Likewise.
14037         * modules/round (Depends-on): Likewise.
14038         * modules/roundf (Depends-on): Likewise.
14039         * modules/roundl (Depends-on): Likewise.
14040         * modules/rpmatch (Depends-on): Likewise.
14041         * modules/select (Depends-on): Likewise.
14042         * modules/send (Depends-on): Likewise.
14043         * modules/sendto (Depends-on): Likewise.
14044         * modules/setenv (Depends-on): Likewise.
14045         * modules/setlocale (Depends-on): Likewise.
14046         * modules/setsockopt (Depends-on): Likewise.
14047         * modules/shutdown (Depends-on): Likewise.
14048         * modules/sigaction (Depends-on): Likewise.
14049         * modules/signbit (Depends-on): Likewise.
14050         * modules/sigprocmask (Depends-on): Likewise.
14051         * modules/sinl (Depends-on): Likewise.
14052         * modules/sleep (Depends-on): Likewise.
14053         * modules/snprintf (Depends-on): Likewise.
14054         * modules/snprintf-posix (Depends-on): Likewise.
14055         * modules/socket (Depends-on): Likewise.
14056         * modules/sprintf-posix (Depends-on): Likewise.
14057         * modules/sqrtl (Depends-on): Likewise.
14058         * modules/stat (Depends-on): Likewise.
14059         * modules/strchrnul (Depends-on): Likewise.
14060         * modules/strdup-posix (Depends-on): Likewise.
14061         * modules/strerror (Depends-on): Likewise.
14062         * modules/strerror_r-posix (Depends-on): Likewise.
14063         * modules/strndup (Depends-on): Likewise.
14064         * modules/strnlen (Depends-on): Likewise.
14065         * modules/strptime (Depends-on): Likewise.
14066         * modules/strsep (Depends-on): Likewise.
14067         * modules/strsignal (Depends-on): Likewise.
14068         * modules/strstr-simple (Depends-on): Likewise.
14069         * modules/strtod (Depends-on): Likewise.
14070         * modules/strtoimax (Depends-on): Likewise.
14071         * modules/strtok_r (Depends-on): Likewise.
14072         * modules/strtoumax (Depends-on): Likewise.
14073         * modules/symlink (Depends-on): Likewise.
14074         * modules/symlinkat (Depends-on): Likewise.
14075         * modules/tanl (Depends-on): Likewise.
14076         * modules/tcgetsid (Depends-on): Likewise.
14077         * modules/tmpfile (Depends-on): Likewise.
14078         * modules/trunc (Depends-on): Likewise.
14079         * modules/truncf (Depends-on): Likewise.
14080         * modules/truncl (Depends-on): Likewise.
14081         * modules/uname (Depends-on): Likewise.
14082         * modules/unlink (Depends-on): Likewise.
14083         * modules/unlockpt (Depends-on): Likewise.
14084         * modules/unsetenv (Depends-on): Likewise.
14085         * modules/usleep (Depends-on): Likewise.
14086         * modules/utimensat (Depends-on): Likewise.
14087         * modules/vasprintf (Depends-on): Likewise.
14088         * modules/vdprintf (Depends-on): Likewise.
14089         * modules/vdprintf-posix (Depends-on): Likewise.
14090         * modules/vfprintf-posix (Depends-on): Likewise.
14091         * modules/vprintf-posix (Depends-on): Likewise.
14092         * modules/vsnprintf (Depends-on): Likewise.
14093         * modules/vsnprintf-posix (Depends-on): Likewise.
14094         * modules/vsprintf-posix (Depends-on): Likewise.
14095         * modules/wcrtomb (Depends-on): Likewise.
14096         * modules/wcscasecmp (Depends-on): Likewise.
14097         * modules/wcscspn (Depends-on): Likewise.
14098         * modules/wcsdup (Depends-on): Likewise.
14099         * modules/wcsncasecmp (Depends-on): Likewise.
14100         * modules/wcsnrtombs (Depends-on): Likewise.
14101         * modules/wcspbrk (Depends-on): Likewise.
14102         * modules/wcsrtombs (Depends-on): Likewise.
14103         * modules/wcsspn (Depends-on): Likewise.
14104         * modules/wcsstr (Depends-on): Likewise.
14105         * modules/wcstok (Depends-on): Likewise.
14106         * modules/wcswidth (Depends-on): Likewise.
14107         * modules/wctob (Depends-on): Likewise.
14108         * modules/wctomb (Depends-on): Likewise.
14109         * modules/wctype (Depends-on): Likewise.
14110         * modules/wcwidth (Depends-on): Likewise.
14111         * modules/write (Depends-on): Likewise.
14112
14113 2011-05-03  Bruno Haible  <bruno@clisp.org>
14114
14115         Support for conditional dependencies.
14116         * doc/gnulib.texi (Module description): Document the syntax of
14117         conditional dependencies.
14118         * gnulib-tool: New option --conditional-dependencies.
14119         (func_usage): Document it.
14120         (cond_dependencies): New variable.
14121         (func_get_automake_snippet_conditional,
14122         func_get_automake_snippet_unconditional): New functions, extracted from
14123         func_get_automake_snippet.
14124         (func_get_automake_snippet): Use them.
14125         (sed_first_32_chars): New variable.
14126         (func_module_shellfunc_name): New function.
14127         (func_module_shellvar_name): New function.
14128         (func_module_conditional_name): New function.
14129         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
14130         func_cond_module_condition): New functions.
14131         (func_modules_transitive_closure): Add support for conditional
14132         dependencies.
14133         (func_emit_lib_Makefile_am): For a conditional module, enclose the
14134         conditional automake snippet in an automake conditional.
14135         (func_emit_autoconf_snippets): Emit shell functions that contain the
14136         code for conditional modules.
14137         (func_import, func_create_testdir): Update specification.
14138
14139 2011-05-03  Eric Blake  <eblake@redhat.com>
14140
14141         test-getaddrinfo: report error information
14142         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
14143
14144 2011-05-03  Jim Meyering  <meyering@redhat.com>
14145
14146         bootstrap: avoid build failure when $GZIP is set
14147         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
14148         program name.  If defined at all, it is supposed to list gzip options.
14149         Reported by Alan Curry in http://debbugs.gnu.org/8609
14150
14151 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
14152
14153         readme-release: new module with release instructions
14154         * modules/readme-release: New module.
14155         * top/README-release: New file, from coreutils, grep, diffutils.
14156         * MODULES.html.sh (Support for maintaining and releasing): Add it.
14157
14158 2011-05-02  Eric Blake  <eblake@redhat.com>
14159
14160         fflush: also replace fclose when fixing fflush
14161         * modules/fflush (Depends-on): Add fclose.
14162         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
14163         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
14164         memstreams with no backing fd.
14165         * doc/posix-functions/fclose.texi (fclose): Document the use of
14166         fflush module to fix the bug.
14167         * tests/test-fclose.c (main): Relax test when fclose is used in
14168         isolation.
14169
14170         fclose: add some tests
14171         * modules/fclose-tests: New test module.
14172         * tests/test-fclose.c: New file.
14173         * doc/posix-functions/fclose.texi (fclose): Document the bug.
14174
14175         fclose: reduced dependencies
14176         * modules/fclose (Depends-on): Switch from fflush/fseeko to
14177         simpler lseek.
14178         * lib/fclose.c (rpl_fclose): Likewise.
14179         Reported by Simon Josefsson.
14180
14181         exit: drop remaining clients
14182         * modules/argmatch (Depends-on): Replace exit with stdlib.
14183         * modules/copy-file (Depends-on): Likewise.
14184         * modules/execute (Depends-on): Likewise.
14185         * modules/exitfail (Depends-on): Likewise.
14186         * modules/obstack (Depends-on): Likewise.
14187         * modules/pagealign_alloc (Depends-on): Likewise.
14188         * modules/pipe-filter-gi (Depends-on): Likewise.
14189         * modules/pipe-filter-ii (Depends-on): Likewise.
14190         * modules/savewd (Depends-on): Likewise.
14191         * modules/spawn-pipe (Depends-on): Likewise.
14192         * modules/wait-process (Depends-on): Likewise.
14193         * modules/xsetenv (Depends-on): Likewise.
14194         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
14195         * modules/git-merge-changelog (Depends-on): Likewise.
14196         * modules/long-options (Depends-on): Likewise.
14197         * modules/pt_chown (Depends-on): Likewise.
14198         * modules/sysexits (Depends-on): Likewise.
14199
14200         freading: relax license from LGPLv3+ to LGPLv2+
14201         * modules/freading (License): Relax LGPL version.
14202
14203 2011-05-02  Bruno Haible  <bruno@clisp.org>
14204
14205         fchdir: Remove unused dependencies.
14206         * modules/fchdir (Depends-on): Remove include_next.
14207
14208 2011-05-02  Bruno Haible  <bruno@clisp.org>
14209
14210         gnulib-tool: Refactor.
14211         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
14212         from func_emit_autoconf_snippets.
14213         (func_emit_autoconf_snippets): Use it.
14214
14215 2011-05-02  Simon Josefsson  <simon@josefsson.org>
14216
14217         * NEWS: Document removal of 'exit'.
14218         * modules/exit: Remove file.
14219
14220 2011-05-01  Bruno Haible  <bruno@clisp.org>
14221
14222         Update DEPENDENCIES.
14223         * DEPENDENCIES (gettext): Recommend the newest release.
14224         Reported by Simon Josefsson.
14225
14226 2011-05-01  Bruno Haible  <bruno@clisp.org>
14227
14228         gnulib-tool: Reduce code duplication.
14229         * gnulib-tool (func_emit_autoconf_snippets): New function.
14230         (func_import, func_create_testdir): Use it.
14231
14232 2011-04-30  Eric Blake  <eblake@redhat.com>
14233
14234         fclose: don't fail on non-seekable input stream
14235         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
14236         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
14237         since fflush is allowed to fail in that case.
14238
14239 2011-04-30  Bruno Haible  <bruno@clisp.org>
14240
14241         dup3: cleanup
14242         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
14243
14244 2011-04-30  Bruno Haible  <bruno@clisp.org>
14245
14246         netdb: Make it work in C++ mode.
14247         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
14248         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
14249         module.
14250         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
14251         gl_MODULE_INDICATOR_FOR_TESTS.
14252         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
14253         * modules/netdb-c++-tests: New file.
14254         * tests/test-netdb-c++.cc: New file.
14255
14256 2011-04-30  Bruno Haible  <bruno@clisp.org>
14257
14258         New modules 'vfscanf', 'vscanf'.
14259         * modules/vfscanf: New file.
14260         * modules/vscanf: New file.
14261         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
14262         here.
14263         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
14264         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
14265
14266 2011-04-30  Bruno Haible  <bruno@clisp.org>
14267
14268         passfd: Add comments.
14269         * lib/passfd.c: Add comments about platforms.
14270
14271 2011-04-30  Bruno Haible  <bruno@clisp.org>
14272
14273         sys_uio: Make <sys/uio.h> self-contained.
14274         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
14275         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
14276
14277 2011-04-30  Bruno Haible  <bruno@clisp.org>
14278
14279         sys_socket: Ensure 'struct iovec' definition.
14280         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
14281         <sys/socket.h>.
14282         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
14283
14284 2011-04-30  Bruno Haible  <bruno@clisp.org>
14285
14286         sys_uio: Protect definition of 'struct iovec'.
14287         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
14288         it as a C struct.
14289
14290 2011-04-30  Bruno Haible  <bruno@clisp.org>
14291
14292         manywarnings: fix indentation
14293         * m4/manywarnings.m4: Indent by 2 spaces consistently.
14294
14295 2011-04-30  Pádraig Brady <P@draigBrady.com>
14296
14297         manywarnings: add -Wno-missing-field-initializers if needed.
14298         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
14299         option if it's needed to allow initialization with { 0, }
14300
14301 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
14302
14303         announce-gen: cosmetic improvement
14304         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
14305
14306 2011-04-29  Jim Meyering  <meyering@redhat.com>
14307
14308         vc-list-files: indent with spaces, not TABs
14309         * build-aux/vc-list-files: Convert leading TABs to spaces,
14310         to match the style of most other files in gnulib.
14311
14312         announce-gen: indent with spaces, not TABs
14313         * build-aux/announce-gen: Convert all TABs to spaces, to match
14314         the style of most other files in gnulib.
14315
14316 2011-04-29  Eric Blake  <eblake@redhat.com>
14317
14318         quotearg: avoid uninitialized variable use
14319         * lib/quotearg.c (quoting_options_from_style): Initialize
14320         remaining fields, and ensure that custom styles are only used via
14321         quoting_options rather than quoting_style.
14322
14323 2011-04-29  Jim Meyering  <meyering@redhat.com>
14324
14325         maint.mk: remove unused VC-tag variable
14326         * top/maint.mk (VC-tag): Remove unused variable.
14327
14328 2011-04-29  Bruno Haible  <bruno@clisp.org>
14329
14330         netdb: fix gai_strerror replacements
14331         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
14332         * modules/netdb: Substitute it.
14333
14334 2011-04-29  Jim Meyering  <meyering@redhat.com>
14335
14336         test-getcwd.c: avoid new set-but-not-used warning
14337         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
14338         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
14339         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
14340         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
14341
14342         test-hash.c: avoid a new shadowing warning
14343         * tests/test-hash.c (main): Don't shadow "dup".
14344
14345 2011-04-28  Eric Blake  <eblake@redhat.com>
14346
14347         getaddrinfo: fix gai_strerror signature
14348         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
14349         and work around mingw with UNICODE defined.
14350         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
14351         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
14352         * modules/netdb (Makefile.am): Substitute it.
14353         * lib/netdb.in.h (gai_strerror): Declare replacement.
14354         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
14355         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
14356         the fix.
14357
14358         getsockopt: avoid compiler warning
14359         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
14360         Reported by Matthias Bolte.
14361
14362         tests: drop unused link dependency
14363         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
14364         * modules/dirent-safer-tests (Makefile.am): Likewise.
14365         * modules/fdopendir-tests (Makefile.am): Likewise.
14366         * modules/mkfifoat-tests (Makefile.am): Likewise.
14367         * modules/openat-safer-tests (Makefile.am): Likewise.
14368         * modules/openat-tests (Makefile.am): Likewise.
14369         * modules/readlinkat-tests (Makefile.am): Likewise.
14370         * modules/symlinkat-tests (Makefile.am): Likewise.
14371         * modules/linkat-tests (Makefile.am): Likewise.
14372         (Depends-on): Switch to filenamecat-lgpl.
14373         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
14374         LIBINTL.
14375         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
14376         * tests/test-linkat.c (main): Don't require xalloc.
14377
14378         hash, mgetgroups: drop xalloc dependency
14379         * lib/hash.c (includes): Adjust includes.
14380         * lib/mgetgroups.c (includes): Likewise.
14381         (xgetgroups): Move...
14382         * lib/xgetgroups.c: ...to new file.
14383         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
14384         * modules/xgetgroups: New file, split from...
14385         * modules/mgetgroups: ...here.
14386         (Depends-on): Add xalloc-oversized.
14387         * modules/hash (Depends-on): Likewise.
14388         * modules/hash-tests (Depends-on): Drop xalloc.
14389         (test_hash_LDADD): Drop unused library.
14390         * tests/test-hash.c (main): Break xalloc dependency.
14391         (includes): Drop unused include.
14392
14393         xalloc-oversized: new module
14394         * modules/xalloc-oversized: New module.
14395         * modules/xalloc (Depends-on): Add it.
14396         * lib/xalloc.h (xalloc_oversized): Move...
14397         * lib/xalloc-oversized.h: ...into new file.
14398
14399         utimecmp: drop dependency on xmalloc
14400         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
14401         due to memory pressure.
14402         * modules/utimecmp (Depends-on): Drop xalloc.
14403
14404 2011-04-27  Eric Blake  <eblake@redhat.com>
14405
14406         getcwd: fix mingw bugs
14407         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
14408         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
14409         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
14410
14411 2011-04-27  Bruno Haible  <bruno@clisp.org>
14412
14413         mkstemps: Ensure declaration on MacOS X 10.5.
14414         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
14415         * doc/glibc-functions/mkstemps.texi: Document header file problem on
14416         MacOS X.
14417
14418 2011-04-27  Bruno Haible  <bruno@clisp.org>
14419
14420         mkstemp: More documentation.
14421         * doc/posix-functions/mkstemp.texi: Document header file problem on
14422         MacOS X.
14423
14424 2011-04-27  Bruno Haible  <bruno@clisp.org>
14425
14426         mkstemp: Tweak configure message when cross-compiling.
14427         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
14428         result as a guess.
14429
14430 2011-04-27  Bruno Haible  <bruno@clisp.org>
14431
14432         clean-temp: Clarify what it does.
14433         * lib/clean-temp.h: Add more comments.
14434         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
14435         module.
14436         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
14437         * doc/glibc-functions/mkstemps.texi: Likewise.
14438         * doc/glibc-functions/mkostemps.texi: Likewise.
14439
14440 2011-04-27  Eric Blake  <eblake@redhat.com>
14441
14442         fchdir: avoid extra chdir and fix test
14443         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
14444         getcwd-lgpl.
14445         * lib/fchdir.c (get_name): Any absolute name will do; it does not
14446         have to be canonical.
14447         (canonicalize_file_name): Drop unused macro.
14448         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
14449
14450         filenamecat-lgpl: fix licence
14451         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
14452         when it was first created.
14453
14454         linkat, renameat: add missing dependency
14455         * modules/linkat (Depends-on): Require getcwd-lgpl.
14456         * modules/renameat (Depends-on): Likewise.
14457
14458         tests: reduce dependencies
14459         * tests/test-linkat.c (main): Use lighter-weight getcwd.
14460         * tests/test-renameat.c (main): Likewise.
14461         * modules/linkat-tests (Depends-on): Relax dependency.
14462         * modules/renameat-tests (Depends-on): Likewise.
14463         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
14464         dependency explicit.
14465
14466         save-cwd: reduce default dependency
14467         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
14468         * lib/save-cwd.c: Update comments.
14469         * NEWS: Document the semantic change.
14470
14471         getcwd: enhance tests
14472         * tests/test-getcwd-lgpl.c: New file, taken from...
14473         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
14474         repeat long path stress tests from m4 probe.
14475         * modules/getcwd-lgpl-tests: New module.
14476         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
14477         * m4/getcwd-abort-bug.m4: Update comment.
14478         * m4/getcwd-path-max.m4: Likewise.
14479
14480         getcwd-lgpl: new module
14481         * modules/getcwd-lgpl: New module.
14482         * lib/getcwd-lgpl.c: New file.
14483         * doc/posix-functions/getcwd.texi (getcwd): Document it.
14484         * MODULES.html.sh (lacking POSIX:2008): Likewise.
14485         * modules/getcwd (configure.ac): Set C witness.
14486         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
14487
14488         getcwd: tweak comments
14489         * m4/getcwd-abort-bug.m4: Fix comments.
14490         * m4/getcwd-path-max.m4: Likewise.
14491         * m4/getcwd.m4: Likewise.
14492
14493 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
14494         and Eric Blake  <eblake@redhat.com>
14495
14496         mkstemp: replace if system version uses wrong permissions
14497         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
14498         read/write mode bits set in file created by mkstemp.
14499         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
14500
14501 2011-04-27  Eric Blake  <eblake@redhat.com>
14502
14503         passfd: avoid compiler warning
14504         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
14505         Reported by Laine Stump.
14506
14507 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
14508
14509         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
14510         required by the NetBSD (and perhaps other 4.4BSD derived) join.
14511
14512 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
14513         and Eric Blake  <eblake@redhat.com>
14514
14515         mkstemp: mention clean-temp module
14516         * lib/mkstemp.c: Add comment.
14517         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
14518
14519 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
14520
14521         inttypes: also provide default values for 32-bit tests
14522         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
14523         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
14524
14525 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
14526
14527         strtoumax: remove dependency on strtoimax
14528         This is like the strtoull change of yesterday.
14529         * modules/strtoumax (Files): Add lib/strtoimax.c.
14530         (Depends-on): Remove strtoimax and add verify.
14531
14532         inttypes-incomplete: new module
14533         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
14534         all but the PRI* and SCN* parts of gl_INTTYPES_H.
14535         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
14536         of gl_INTTYPES_H.
14537         (gl_INTTYPES_H): Rewrite in terms of these new macros.
14538         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
14539         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
14540         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
14541         * modules/strtoumax, modules/xstrtol (Depends-on):
14542         Depend on inttypes-incomplete, not inttypes.
14543         * modules/inttypes-incomplete: New module, containing the contents
14544         of the old modules/inttypes module, except that the Files: section
14545         omits m4/inttypes-pri.m4, and the configure.ac section invokes
14546         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
14547         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
14548         (Depends-on): Depend only on inttypes-incomplete.
14549         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
14550
14551         inttypes: omit now-redundant strtoimax and strtoumax work
14552         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
14553         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
14554
14555         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
14556         This supports apps that need pointers to strtoimax and strtoumax,
14557         and ports to HP-UX 11.00 64.bit, which has macros that expand to
14558         nonexistent functions.  See
14559         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
14560         et seq.
14561         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
14562         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
14563         a macro.
14564         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
14565
14566 2011-04-25  Simon Josefsson  <simon@josefsson.org>
14567
14568         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
14569
14570 2011-04-25  Bruno Haible  <bruno@clisp.org>
14571
14572         strtol, strtoul: Mark modules as obsolete.
14573         * modules/strtol (Status, Notice): New sections.
14574         * modules/strtoul (Status, Notice): New sections.
14575
14576 2011-04-25  Bruno Haible  <bruno@clisp.org>
14577
14578         strtod: Remove check for strtod, unless supporting old platforms.
14579         * modules/strtod-obsolete: New file.
14580         * m4/strtod-obsolete.m4: New file.
14581         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
14582         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
14583         * modules/strtod (Depends-on): Add strtod-obsolete.
14584         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
14585
14586 2011-04-25  Bruno Haible  <bruno@clisp.org>
14587
14588         strcase: Make module obsolete.
14589         * modules/strcase (Status, Notice): New sections.
14590
14591 2011-04-25  Bruno Haible  <bruno@clisp.org>
14592
14593         dup2: Remove check for dup2, unless supporting old obsolete platforms.
14594         * modules/dup2-obsolete: New file.
14595         * m4/dup2-obsolete.m4: New file.
14596         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
14597         gl_FUNC_DUP2_OBSOLETE is not also defined.
14598         * modules/dup2 (Depends-on): Add dup2-obsolete.
14599         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
14600
14601 2011-04-25  Bruno Haible  <bruno@clisp.org>
14602
14603         strnlen: Avoid memchr related link error on old obsolete platforms.
14604         * modules/memchr-obsolete: New file.
14605         * m4/memchr-obsolete.m4: New file.
14606         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
14607         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
14608         * modules/memchr (Depends-on): Add memchr-obsolete.
14609         * modules/strnlen (Depends-on): Likewise.
14610         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
14611
14612 2011-04-25  Jim Meyering  <meyering@redhat.com>
14613
14614         maint.mk: makefile_at_at_check extend and clean up
14615         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
14616         in addition to */Makefile.am.
14617         Exempt legitimate uses of @VAR@ notation, e.g.,
14618         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
14619         Remove obsolete coreutils-specific comment.
14620         Prompted by discussion here:
14621         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
14622
14623 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
14624
14625         strtoul: remove dependency on strtol
14626         This is so that 'configure' need not check for strtol merely because
14627         the application needs strtoul.
14628         * modules/strtoul (Files): Add lib/strtol.c.
14629         (Depends-on): Remove strtol.
14630
14631         strtoull: remove dependency on strtoul
14632         This is like the strtoll change.
14633         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
14634         (Depends-on): Remove strtoul.
14635
14636         strtoll: remove dependency on strtol
14637         This is so that 'configure' need not check for strtol merely because
14638         the application needs strtoll.
14639         * modules/strtoll (Files): Add lib/strtol.c.
14640         (Depends-on): Remove strtol.
14641
14642 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14643
14644         inttypes: Move some configure check to module 'imaxdiv'.
14645         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
14646         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
14647         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
14648
14649 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14650
14651         inttypes: Move some configure check to module 'imaxabs'.
14652         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
14653         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
14654         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
14655
14656 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14657
14658         inttypes: Remove configure tests that are not needed since 2009-12-31.
14659         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
14660         gl_cv_header_working_inttypes_h.
14661
14662 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14663
14664         * modules/strnlen (Depends-on): Remove memchr.
14665         The strnlen implementation doesn't need the memchr module's fixes; see
14666         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
14667
14668         strtol: remove dependency on wchar
14669         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
14670         * modules/strtol (Depends-on): Remove wchar.
14671
14672 2011-04-21  Eric Blake  <eblake@redhat.com>
14673
14674         passfd: fix test regression on Linux
14675         * modules/passfd-tests (configure.ac): Correct socketpair check.
14676
14677         passfd: speed up configure and drop unused code
14678         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
14679         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
14680         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
14681         Instead of probing at configure for unix_scm_rights_bsd44_way,
14682         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
14683         check to a struct member probe.
14684         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
14685         (sendfd, recvfd): Update preprocessor checks.
14686         * modules/passfd (Files): Reflect rename, and drop unused file.
14687         (Depends-on): Drop unused dependency.
14688
14689         passfd: allow compilation on mingw
14690         * modules/sys_socket (Depends-on): Add sys_uio.
14691         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
14692         iovec and a minimal struct msghdr.
14693         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
14694         * tests/test-sys_socket.c (main): Enhance test.
14695         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
14696         guaranteed to provide what we need.
14697         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
14698         * modules/passfd-tests (Depends-on): Add sys_wait.
14699         * tests/test-passfd.c (main): Skip test on mingw, for now.
14700         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
14701         partial 'struct msghdr' implementation.
14702
14703         sys_uio: new module
14704         * modules/sys_uio: New module.
14705         * modules/sys_uio-tests: Likewise.
14706         * lib/sys_uio.in.h: New file.
14707         * m4/sys_uio_h.m4: Likewise.
14708         * tests/test-sys_uio.c: Likewise.
14709         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
14710         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
14711
14712 2011-04-20  Jim Meyering  <meyering@redhat.com>
14713
14714         useless-if-before-free: avoid false-positive
14715         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
14716         disjunct so that it too requires a terminating ";".  Without that,
14717         this script would identify as useless one statement from gcc that
14718         was not:
14719           if (aligned_ptr)
14720             free (((void **) aligned_ptr) [-1]);
14721
14722 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
14723
14724         doc: update users.txt.
14725         * users.txt: Add barcode.
14726
14727 2011-04-19  Bruno Haible  <bruno@clisp.org>
14728
14729         ioctl: Remove link dependency on native Windows.
14730         * lib/fd-hook.h: Renamed from lib/close-hook.h.
14731         (gl_close_fn, gl_ioctl_fn): New types.
14732         (struct fd_hook): Renamed from struct close_hook. Change type of
14733         private_close_fn field. Add private_ioctl_fn field.
14734         (close_hook_fn): Add parameter for primary close method.
14735         (execute_close_hooks, execute_all_close_hooks): Likewise.
14736         (ioctl_hook_fn): New type.
14737         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
14738         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
14739         argument.
14740         (unregister_fd_hook): Renamed from unregister_close_hook.
14741         * lib/fd-hook.c: Renamed from lib/close-hook.c.
14742         Don't include <unistd.h>.
14743         (close): Remove undef.
14744         (anchor): Update.
14745         (execute_close_hooks): Add argument for primary close method.
14746         (execute_all_close_hooks): Likewise.
14747         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
14748         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
14749         argument. Allow each argument to be NULL.
14750         (unregister_fd_hook): Renamed from unregister_close_hook.
14751         * lib/close.c (rpl_close): Pass 'close' function pointer to
14752         execute_all_close_hooks.
14753         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
14754         (primary_ioctl): New function.
14755         (ioctl): Don't call ioctlsocket here. Instead, call
14756         execute_all_ioctl_hooks.
14757         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
14758         close method.
14759         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
14760         (fd_sockets_hook): Renamed from close_sockets_hook.
14761         (gl_sockets_startup, gl_sockets_cleanup): Update.
14762         * modules/fd-hook: Renamed from modules/close-hook. Update.
14763         * modules/close (Depends-on): Add fd-hook, remove close-hook.
14764         * modules/sockets (Depends-on): Likewise.
14765         * modules/ioctl (Depends-on): Add fd-hook.
14766         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
14767         GNULIB_SOCKET.
14768
14769 2011-04-19  Bruno Haible  <bruno@clisp.org>
14770
14771         Move the support of O_NONBLOCK in open() to the 'open' module.
14772         * modules/nonblocking (Depends-on): Remove 'open'.
14773         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
14774         gl_cv_have_open_O_NONBLOCK.
14775         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
14776         O_NONBLOCK support.
14777         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
14778
14779 2011-04-17  Bruno Haible  <bruno@clisp.org>
14780
14781         pipe2: Simplify code.
14782         * lib/pipe2.c (pipe2): Reduce code duplication.
14783
14784 2011-04-17  Bruno Haible  <bruno@clisp.org>
14785
14786         nonblocking: Add comment.
14787         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
14788
14789 2011-04-17  Bruno Haible  <bruno@clisp.org>
14790
14791         nonblocking: Add tests for sockets.
14792         * tests/test-nonblocking-socket.sh: New file.
14793         * tests/test-nonblocking-socket-main.c: New file.
14794         * tests/test-nonblocking-socket-child.c: New file.
14795         * tests/test-nonblocking-socket.h: New file.
14796         * tests/socket-server.h: New file.
14797         * tests/socket-client.h: New file.
14798         * modules/nonblocking-socket-tests: New file.
14799         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
14800
14801 2011-04-17  Bruno Haible  <bruno@clisp.org>
14802
14803         nonblocking: Add tests for pipes.
14804         * tests/test-nonblocking-pipe.sh: New file.
14805         * tests/test-nonblocking-pipe-main.c: New file.
14806         * tests/test-nonblocking-pipe-child.c: New file.
14807         * tests/test-nonblocking-pipe.h: New file.
14808         * tests/test-nonblocking-writer.h: New file.
14809         * tests/test-nonblocking-reader.h: New file.
14810         * tests/test-nonblocking-misc.h: New file.
14811         * modules/nonblocking-pipe-tests: New file.
14812         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
14813
14814 2011-04-16  Bruno Haible  <bruno@clisp.org>
14815
14816         gettext: Clarify the needed programmer actions.
14817         * modules/gettext (Notice): New field.
14818         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
14819
14820 2011-04-16  Bruno Haible  <bruno@clisp.org>
14821
14822         strchrnul: Tweak last commit.
14823         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
14824         bug.
14825         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
14826         as in _GL_FUNCDECL_SYS.
14827         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
14828         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
14829
14830 2011-04-15  Eric Blake  <eblake@redhat.com>
14831
14832         strchrnul: work around cygwin bug
14833         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
14834         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
14835         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
14836         * modules/string (Makefile.am): Substitute it.
14837         * lib/string.in.h (strchrnul): Use it.
14838
14839 2011-04-15  Bruno Haible  <bruno@clisp.org>
14840
14841         Don't require lib/stdio-write.c when only module 'stdio' is used.
14842         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
14843         invocation.
14844         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
14845
14846 2011-04-14  Bruno Haible  <bruno@clisp.org>
14847
14848         Support non-blocking pipe I/O in read() on native Windows.
14849         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
14850         (read): New declaration.
14851         * lib/read.c: New file.
14852         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
14853         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
14854         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
14855         vscanf): New declarations.
14856         * lib/stdio-read.c: New file.
14857         * m4/read.m4: New file.
14858         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
14859         REPLACE_READ.
14860         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
14861         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
14862         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
14863         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
14864         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
14865         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
14866         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
14867         * modules/read: New file.
14868         * modules/nonblocking (Files): Add lib/stdio-read.c.
14869         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
14870         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
14871         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
14872         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
14873         * modules/pread (Depends-on): Add read.
14874         * modules/safe-read (Depends-on): Likewise.
14875         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
14876         gets, scanf, vfscanf, vscanf): Verify signatures.
14877         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
14878         problem with non-blocking pipes.
14879         * doc/posix-functions/fgetc.texi: Likewise.
14880         * doc/posix-functions/fgets.texi: Likewise.
14881         * doc/posix-functions/fread.texi: Likewise.
14882         * doc/posix-functions/fscanf.texi: Likewise.
14883         * doc/posix-functions/getc.texi: Likewise.
14884         * doc/posix-functions/getchar.texi: Likewise.
14885         * doc/posix-functions/gets.texi: Likewise.
14886         * doc/posix-functions/scanf.texi: Likewise.
14887         * doc/posix-functions/vfscanf.texi: Likewise.
14888         * doc/posix-functions/vscanf.texi: Likewise.
14889
14890 2011-04-14  Bruno Haible  <bruno@clisp.org>
14891
14892         Support non-blocking pipe I/O in write() on native Windows.
14893         * lib/write.c (rpl_write): Split a write request that failed merely
14894         because the byte count was larger than the pipe buffer's size.
14895         * doc/posix-functions/write.texi: Mention the problem with large byte
14896         counts.
14897
14898 2011-04-14  Bruno Haible  <bruno@clisp.org>
14899
14900         wchar: Ensure that wchar_t gets defined on uClibc.
14901         * lib/wchar.in.h: On uClibc, include <stddef.h>.
14902         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
14903
14904 2011-04-13  Bruno Haible  <bruno@clisp.org>
14905
14906         safe-write, full-read: Avoid unnecessary compilation units.
14907         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
14908         (Depends-on): Remove safe-read. Add ssize_t.
14909         * modules/full-read (Files): Add lib/full-write.c.
14910         (Depends-on): Add full-write.
14911
14912 2011-04-13  Bruno Haible  <bruno@clisp.org>
14913
14914         Support non-blocking pipe I/O and SIGPIPE in pwrite().
14915         * modules/pwrite (Depends-on): Add 'write'.
14916
14917 2011-04-13  Bruno Haible  <bruno@clisp.org>
14918
14919         Support non-blocking pipe I/O in write() on native Windows.
14920         * lib/unistd.in.h (write): Enable replacement also if
14921         GNULIB_UNISTD_H_NONBLOCKING is 1.
14922         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
14923         (rpl_write): When failing to write on a non-blocking pipe, change
14924         errno from ENOSPC to EAGAIN.
14925         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
14926         putchar, puts, vfprintf, vprintf): Enable replacement also if
14927         GNULIB_STDIO_H_NONBLOCKING is 1.
14928         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
14929         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
14930         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
14931         CALL_WITH_SIGPIPE_EMULATION.
14932         (CALL_WITH_SIGPIPE_EMULATION): Use them.
14933         * m4/nonblocking.m4: New file.
14934         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
14935         for non-blocking I/O support.
14936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14937         GNULIB_UNISTD_H_NONBLOCKING.
14938         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
14939         required for non-blocking I/O support.
14940         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
14941         * modules/nonblocking (Files): Add m4/nonblocking.m4,
14942         lib/stdio-write.c, m4/asm-underscore.m4.
14943         (Depends-on): Add stdio, unistd.
14944         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
14945         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
14946         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
14947         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
14948         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
14949         problem with non-blocking pipes.
14950         * doc/posix-functions/fputc.texi: Likewise.
14951         * doc/posix-functions/fputs.texi: Likewise.
14952         * doc/posix-functions/fwrite.texi: Likewise.
14953         * doc/posix-functions/printf.texi: Likewise.
14954         * doc/posix-functions/putc.texi: Likewise.
14955         * doc/posix-functions/putchar.texi: Likewise.
14956         * doc/posix-functions/puts.texi: Likewise.
14957         * doc/posix-functions/vfprintf.texi: Likewise.
14958         * doc/posix-functions/vprintf.texi: Likewise.
14959         * doc/posix-functions/write.texi: Likewise.
14960
14961 2011-04-10  Jim Meyering  <meyering@redhat.com>
14962
14963         maint.mk: prohibit doubled words
14964         Detect them also when they're separated by a newline.
14965         There are 3 ways to customize it:
14966           - disable the test on a per file basis, as usual with rules using
14967             $(VC_LIST_EXCEPT)
14968           - replace the default doubled-word-selecting regexp (affects all files)
14969           - ignore a particular file-vs-doubled-word match
14970         I nearly used that last one to ignore the "is is" match in
14971         coreutils' NEWS file, since the text was "ls -is is ..."
14972         To do that, I would have added this line to cfg.mk:
14973           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
14974         but it would have ignored any "is is" match in NEWS.
14975         Low probability, but still...
14976         Instead, I changed the text, slightly:
14977           -  ls -is is now consistent with ls -lis in ignoring values returned
14978           +  "ls -is" is now consistent with ls -lis in ignoring values returned
14979         * top/maint.mk (prohibit_double_word_RE_): Provide default.
14980         (prohibit_doubled_word_): Define.
14981         (sc_prohibit_doubled_word): New rule.
14982         (sc_prohibit_the_the): Remove.  Subsumed by the above.
14983
14984 2011-04-10  Jim Meyering  <meyering@redhat.com>
14985
14986         maint: fix doubled-word typo in comment
14987         * m4/gethostname.m4: s/is is/it is/
14988         * m4/getdomainname.m4: Likewise.
14989
14990 2011-04-10  Jim Meyering  <meyering@redhat.com>
14991
14992         maint: remove doubled word: s/it it/it/
14993         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
14994
14995 2011-04-10  Jim Meyering  <meyering@redhat.com>
14996
14997         maint.mk: remove useless semicolon and backslash
14998         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
14999         semicolon and backslash.
15000
15001 2011-04-10  Bruno Haible  <bruno@clisp.org>
15002
15003         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
15004         * modules/stdint-tests (Depends-on): Add wchar.
15005
15006 2011-04-10  Jim Meyering  <meyering@redhat.com>
15007
15008         maint: remove doubled words in comments, e.g., s/a a/a/
15009         * lib/strptime.c (day_of_the_week): s/the the/the/
15010         * tests/test-chown.h (test_chown): s/a a/a/
15011
15012         test-chown.h: correct a cast
15013         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
15014         when the destination is a stat.st_gid.
15015
15016 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
15017
15018         getaddrinfo: Fix test for sa_len member.
15019         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
15020         include <sys/types.h> before <sys/socket.h>.
15021
15022 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
15023
15024         maint: change "can not" to "cannot"
15025         * doc/posix-functions/iconv.texi (iconv): This one crossed line
15026         boundaries.
15027
15028 2011-04-09  Jim Meyering  <meyering@redhat.com>
15029
15030         maint: change "a a" to "a"
15031         * tests/test-lchown.h (test_lchown): s/a a/a/
15032
15033         maint.mk: prohibit \<the the\>
15034         * top/maint.mk (sc_prohibit_the_the): New rule.
15035
15036         maint: fix "the the" in comment
15037         * lib/count-one-bits.h: s/the the/the/
15038
15039         maint: change "can not" to "cannot"
15040         But do not change the occurrences in maintain.texi or in
15041         build-aux/po/Makefile.in.in, which I presume comes from gettext.
15042         * doc/gnulib-tool.texi: s/can not/cannot/
15043         * doc/posix-functions/accept.texi (accept): Likewise.
15044         * doc/posix-functions/socket.texi (socket): Likewise.
15045         * lib/mbrtowc.c: Likewise.
15046
15047         maint.mk: prohibit use of "can not"
15048         * top/maint.mk (sc_prohibit_can_not): New rule.
15049         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
15050
15051 2011-04-09  Bruno Haible  <bruno@clisp.org>
15052
15053         careadlinkat: Guard against misuse of careadlinkatcwd.
15054         * lib/careadlinkat.c: Include <stdlib.h>.
15055         (careadlinkatcwd): Check that the fd argument is as expected.
15056
15057 2011-04-09  Bruno Haible  <bruno@clisp.org>
15058
15059         careadlinkat: Use common coding style.
15060         * lib/careadlinkat.c: Move gnulib includes after system includes.
15061
15062 2011-04-09  Bruno Haible  <bruno@clisp.org>
15063
15064         careadlinkat: Clarify specification.
15065         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
15066         (careadlinkatcwd): Add comment.
15067         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
15068
15069 2011-04-09  Bruno Haible  <bruno@clisp.org>
15070
15071         areadlinkat: Avoid link error on many platforms.
15072         * modules/areadlinkat (Depends-on): Add areadlink.
15073
15074 2011-04-09  Bruno Haible  <bruno@clisp.org>
15075
15076         allocator, careadlinkat: Fix double-inclusion guard.
15077         * lib/allocator.h: Fix double-inclusion guard.
15078         * lib/careadlinkat.h: Likewise.
15079
15080 2011-04-09  Bruno Haible  <bruno@clisp.org>
15081
15082         relocatable-prog-wrapper: Update after module 'areadlink' changed.
15083         * lib/relocwrapper.c: Update dependencies hierarchy.
15084         * build-aux/install-reloc: Update list of files to be compiled.
15085         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
15086         lib/allocator.[hc].
15087
15088 2011-04-08  Eric Blake  <eblake@redhat.com>
15089
15090         strftime: silence gnulib-tool warning
15091         * modules/strftime-tests (Depends-on): Drop automatic dependency.
15092
15093 2011-04-08  Bruno Haible  <bruno@clisp.org>
15094
15095         verify: Fix syntax error with GCC 4.6 in C++ mode.
15096         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
15097         (HAVE_STATIC_ASSERT): New macro.
15098         (verify_true, verify): Use 'static_assert' if it is supported and
15099         '_Static_assert' is not supported.
15100
15101 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
15102
15103         allocator: New module.
15104         * modules/allocator, lib/allocator.c: New files.
15105         * lib/allocator.h (stdlib_allocator): New decl.
15106         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
15107         Remove.  Do not include <stdlib.h>.
15108         (careadlinkat): Use stdlib_allocator instead of rolling our own.
15109         * modules/careadlinkat (Files): Remove lib/allocator.h.
15110         (Depends-on): Add allocator.
15111
15112         stdlib: let modules use system malloc, realloc
15113         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
15114         if !_GL_USE_STDLIB_ALLOC.
15115         (malloc, realloc): Limit this change to a smaller scope.
15116
15117         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
15118         (malloc, realloc): Don't #undef; no longer needed.
15119         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15120         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15121         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
15122         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15123         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15124         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15125         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15126         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
15127
15128         careadlinkat: rename members to avoid problem
15129         * lib/allocator.h (struct allocator): Rename members from
15130         malloc/realloc to allocate/reallocate, to avoid problems if malloc
15131         and realloc are #define'd.  Reported by Eric Blake in
15132         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
15133         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
15134
15135 2011-04-08  Eric Blake  <eblake@redhat.com>
15136
15137         nonblocking: reduce dependency
15138         * tests/test-nonblocking.c: Only test sockets when in use.
15139         * modules/nonblocking-tests (Depends-on): Drop socket.
15140         (Makefile.am): Link even if sockets are not present.
15141         * modules/pipe2-tests (Makefile.am): Likewise.
15142         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
15143
15144         pipe2: fix O_NONBLOCK support on mingw
15145         * modules/pipe2 (Depends-on): Add nonblocking.
15146         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
15147         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
15148         * tests/test-nonblocking.c (main): Likewise.
15149         * modules/pipe2-tests (Makefile.am): Avoid link failure.
15150
15151         fcntl-h: fix O_ACCMODE on cygwin
15152         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
15153         * lib/fcntl.in.h (O_ACCMODE): Fix it.
15154
15155         pipe-filter: drop O_NONBLOCK workarounds
15156         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
15157         * modules/pipe-filter-ii (Depends-on): Likewise.
15158         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
15159
15160         nonblocking: provide O_NONBLOCK for mingw
15161         * modules/nonblocking (Depends-on): Add open.
15162         (configure.ac): Set new witness macro.
15163         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
15164         * modules/fcntl-h (Makefile.am): Substitute it.
15165         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
15166         nonblocking module is in use.
15167         * lib/nonblocking.c: Adjust portability test.
15168         * lib/open.c (open): Don't let native open see gnulib flag.
15169         * tests/test-fcntl-h.c (main): Enhance test.
15170         * tests/test-open.h (test_open): Likewise.
15171         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
15172
15173         careadlinkat: fix compilation error on mingw
15174         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
15175         within struct allocator.
15176
15177 2011-04-06  Eric Blake  <eblake@redhat.com>
15178
15179         binary-io: relicense under LGPLv2+
15180         * modules/binary-io (License): Relax to LGPLv2+.
15181         Requested for libvirt, and required by pipe2.
15182
15183 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
15184
15185         verify: use _Static_assert if available
15186         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
15187         (verify_true, verify): Use it if available.  This generates better
15188         diagnostics with GCC 4.6.0 and later.
15189
15190 2011-04-05  Bruno Haible  <bruno@clisp.org>
15191
15192         Remove leftover generated .h files after config.status changed.
15193
15194         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
15195         GL_GENERATE_ALLOCA_H.
15196         * modules/alloca-opt (Makefile.am): Remove alloca.h if
15197         GL_GENERATE_ALLOCA_H evaluates to false.
15198
15199         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
15200         GL_GENERATE_ARGZ_H.
15201         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
15202         evaluates to false.
15203
15204         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
15205         GL_GENERATE_BYTESWAP_H.
15206         * modules/byteswap (Makefile.am): Remove byteswap.h if
15207         GL_GENERATE_BYTESWAP_H evaluates to false.
15208
15209         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
15210         GL_GENERATE_ERRNO_H.
15211         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
15212         evaluates to false.
15213
15214         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
15215         GL_GENERATE_FLOAT_H.
15216         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
15217         evaluates to false.
15218
15219         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
15220         GL_GENERATE_FNMATCH_H.
15221         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
15222         GL_GENERATE_FNMATCH_H evaluates to false.
15223
15224         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
15225         GL_GENERATE_GLOB_H.
15226         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
15227         evaluates to false.
15228
15229         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
15230         automake conditional GL_GENERATE_ICONV_H.
15231         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
15232         evaluates to false.
15233
15234         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
15235         GL_GENERATE_NETINET_IN_H.
15236         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
15237         GL_GENERATE_NETINET_IN_H evaluates to false.
15238
15239         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
15240         conditional GL_GENERATE_PTHREAD_H.
15241         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
15242         * modules/pthread (Makefile.am): Remove pthread.h if
15243         GL_GENERATE_PTHREAD_H evaluates to false.
15244
15245         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
15246         GL_GENERATE_SCHED_H.
15247         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
15248         evaluates to false.
15249
15250         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
15251         conditional GL_GENERATE_SELINUX_CONTEXT_H.
15252         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
15253         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
15254
15255         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
15256         GL_GENERATE_STDARG_H.
15257         * modules/stdarg (Makefile.am): Remove stdarg.h if
15258         GL_GENERATE_STDARG_H evaluates to false.
15259
15260         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
15261         GL_GENERATE_STDBOOL_H.
15262         * modules/stdbool (Makefile.am): Remove stdbool.h if
15263         GL_GENERATE_STDBOOL_H evaluates to false.
15264
15265         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
15266         conditional GL_GENERATE_STDDEF_H.
15267         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
15268         * modules/stddef (Makefile.am): Remove stddef.h if
15269         GL_GENERATE_STDDEF_H evaluates to false.
15270
15271         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
15272         GL_GENERATE_STDINT_H.
15273         * modules/stdint (Makefile.am): Remove stdint.h if
15274         GL_GENERATE_STDINT_H evaluates to false.
15275
15276         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
15277         GL_GENERATE_SYSEXITS_H.
15278         * modules/sysexits (Makefile.am): Remove sysexits.h if
15279         GL_GENERATE_SYSEXITS_H evaluates to false.
15280
15281         Reported by Karl Berry and Ralf Wildenhues.
15282
15283 2011-04-05  Bruno Haible  <bruno@clisp.org>
15284
15285         Ensure to rebuild generated .h files when config.status has changed.
15286         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
15287         config.status.
15288         * modules/ctype (Makefile.am): Likewise.
15289         * modules/dirent (Makefile.am): Likewise.
15290         * modules/errno (Makefile.am): Likewise.
15291         * modules/fcntl-h (Makefile.am): Likewise.
15292         * modules/float (Makefile.am): Likewise.
15293         * modules/getopt-posix (Makefile.am): Likewise.
15294         * modules/glob (Makefile.am): Likewise.
15295         * modules/iconv-h (Makefile.am): Likewise.
15296         * modules/inttypes (Makefile.am): Likewise.
15297         * modules/langinfo (Makefile.am): Likewise.
15298         * modules/locale (Makefile.am): Likewise.
15299         * modules/math (Makefile.am): Likewise.
15300         * modules/netdb (Makefile.am): Likewise.
15301         * modules/netinet_in (Makefile.am): Likewise.
15302         * modules/poll-h (Makefile.am): Likewise.
15303         * modules/pthread (Makefile.am): Likewise.
15304         * modules/pty (Makefile.am): Likewise.
15305         * modules/sched (Makefile.am): Likewise.
15306         * modules/search (Makefile.am): Likewise.
15307         * modules/selinux-h (Makefile.am): Likewise.
15308         * modules/signal (Makefile.am): Likewise.
15309         * modules/spawn (Makefile.am): Likewise.
15310         * modules/stdarg (Makefile.am): Likewise.
15311         * modules/stdbool (Makefile.am): Likewise.
15312         * modules/stddef (Makefile.am): Likewise.
15313         * modules/stdint (Makefile.am): Likewise.
15314         * modules/stdio (Makefile.am): Likewise.
15315         * modules/stdlib (Makefile.am): Likewise.
15316         * modules/string (Makefile.am): Likewise.
15317         * modules/strings (Makefile.am): Likewise.
15318         * modules/sys_file (Makefile.am): Likewise.
15319         * modules/sys_ioctl (Makefile.am): Likewise.
15320         * modules/sys_select (Makefile.am): Likewise.
15321         * modules/sys_socket (Makefile.am): Likewise.
15322         * modules/sys_stat (Makefile.am): Likewise.
15323         * modules/sys_time (Makefile.am): Likewise.
15324         * modules/sys_times (Makefile.am): Likewise.
15325         * modules/sys_utsname (Makefile.am): Likewise.
15326         * modules/sys_wait (Makefile.am): Likewise.
15327         * modules/sysexits (Makefile.am): Likewise.
15328         * modules/termios (Makefile.am): Likewise.
15329         * modules/time (Makefile.am): Likewise.
15330         * modules/unistd (Makefile.am): Likewise.
15331         * modules/wchar (Makefile.am): Likewise.
15332         * modules/wctype-h (Makefile.am): Likewise.
15333         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
15334
15335 2011-04-05  Bruno Haible  <bruno@clisp.org>
15336
15337         pipe2: Relicense under LGPLv2+.
15338         * modules/pipe2 (License): Change to LGPLv2+.
15339         Requested by Eric Blake, for libvirt.
15340
15341 2011-04-05  Bruce Korb  <bkorb@gnu.org>
15342
15343         bootstrap: compute gnulib_extra_files after updating build_aux
15344         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
15345         change build_aux or also supply gnulib_extra_files.  Handle correctly.
15346
15347 2011-04-05  Eric Blake  <eblake@redhat.com>
15348
15349         bootstrap: preserve git whitelist item sorting
15350         * build-aux/bootstrap (sort_patterns): New function.
15351         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
15352
15353 2011-04-05  Simon Josefsson  <simon@josefsson.org>
15354
15355         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
15356         sc_space_tab check.
15357
15358 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
15359
15360         areadlink, areadlinkat: rewrite in terms of careadlinkat
15361         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
15362         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
15363         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
15364         (malloc, realloc): Remove #undefs.
15365         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
15366         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
15367         readlink, ssize_t, stdint, unistd.
15368         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
15369         areadlink, stdint.
15370
15371         careadlinkat: new module
15372         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
15373         * modules/careadlinkat: New files, written by me with
15374         a review and feedback from Ben Pfaff in
15375         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
15376
15377 2011-04-01  Bruno Haible  <bruno@clisp.org>
15378
15379         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
15380         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
15381         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
15382         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
15383         Reported by Bruce Korb <bruce.korb@gmail.com>.
15384
15385 2011-04-01  Bruno Haible  <bruno@clisp.org>
15386
15387         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
15388         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
15389         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
15390         * modules/wcpcpy (Depends-on): Add extensions.
15391         * modules/wcpncpy (Depends-on): Likewise.
15392         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
15393         systems.
15394         * doc/posix-functions/wcpncpy.texi: Likewise.
15395         * doc/posix-functions/wcwidth.texi: Likewise.
15396
15397 2011-03-31  Eric Blake  <eblake@redhat.com>
15398
15399         nonblocking: fix mingw test failures
15400         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
15401         non-blocking flag on regular file.
15402         (get_nonblocking_flag): Set errno on invalid fd.
15403         * tests/test-nonblocking.c (main): Avoid test failure on
15404         directories if fchdir is not active.
15405         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
15406
15407 2011-03-31  Bruno Haible  <bruno@clisp.org>
15408
15409         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
15410         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
15411         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
15412         Reported by Simon Josefsson <simon@josefsson.org>.
15413
15414 2011-03-31  Bruno Haible  <bruno@clisp.org>
15415         and Eric Blake  <eblake@redhat.com>
15416
15417         nonblocking: new module
15418         * modules/nonblocking: New module.
15419         * modules/nonblocking-tests: Likewise.
15420         * lib/nonblocking.h: New file.
15421         * lib/nonblocking.c: Likewise.
15422         * tests/test-nonblocking.c: New test.
15423         * lib/ioctl.c (ioctl) [mingw]: Update comment.
15424
15425 2011-03-30  Bruno Haible  <bruno@clisp.org>
15426
15427         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
15428         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
15429         instead of 'printf' format for GCC >= 4.4.
15430         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
15431         (fprintf, printf, vfprintf, vprintf): Declare with
15432         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
15433         the system's vfprintf() function.
15434         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
15435
15436 2011-03-30  Eric Blake  <eblake@redhat.com>
15437
15438         passfd: fix scoping bug
15439         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
15440         before sendmsg/recvmsg.
15441
15442         passfd: standardize coding conventions
15443         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
15444         can be learned at compile time.
15445         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
15446         ifdefs.
15447         (sendfd, recvfd): Follow gnulib code conventions.
15448
15449         passfd: fix incorrect sendmsg arguments
15450         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
15451         incorrect msg_controllen value.
15452         * modules/passfd-tests (Depends-on): Check for alarm.
15453         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
15454         Reported by Bastien ROUCARIES.
15455
15456 2011-03-30  Bruno Haible  <bruno@clisp.org>
15457
15458         c-strcasestr: Relicense under LGPLv2+.
15459         * modules/c-strcasestr (License): Change to LGPLv2+.
15460         Requested by Eric Blake, for libvirt.
15461
15462 2011-03-30  Simon Josefsson  <simon@josefsson.org>
15463
15464         * users.txt: Add libidn2.  Fix libtasn1 link.
15465
15466 2011-03-30  Jim Meyering  <meyering@redhat.com>
15467
15468         tests: readlink* ("",... fails with EINVAL on newer kernels
15469         readlink and readlinkat have typically failed with ENOENT for
15470         the invalid, empty file name,  "".  However, with the advent
15471         of linux-2.6.39, they fail with EINVAL.
15472         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
15473         when operating on the empty file name.
15474         * tests/test-readlink.h (test_readlink): Likewise.
15475
15476 2011-03-29  Bruno Haible  <bruno@clisp.org>
15477
15478         Relicense some modules under LGPLv2+, for libidn2.
15479         * modules/array-mergesort (License): Change to LGPLv2+.
15480         * modules/c-strcaseeq (License): Likewise.
15481         * modules/striconveh (License): Likewise.
15482         * modules/striconveha (License): Likewise.
15483         * modules/uniconv/base (License): Likewise.
15484         * modules/uniconv/u8-conv-from-enc (License): Likewise.
15485         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
15486         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
15487         * modules/unictype/base (License): Likewise.
15488         * modules/unictype/bidiclass-of (License): Likewise.
15489         * modules/unictype/category-M (License): Likewise.
15490         * modules/unictype/category-none (License): Likewise.
15491         * modules/unictype/category-of (License): Likewise.
15492         * modules/unictype/category-test (License): Likewise.
15493         * modules/unictype/category-test-withtable (License): Likewise.
15494         * modules/unictype/combining-class (License): Likewise.
15495         * modules/unictype/joiningtype-of (License): Likewise.
15496         * modules/unictype/scripts (License): Likewise.
15497         * modules/uninorm/base (License): Likewise.
15498         * modules/uninorm/canonical-decomposition (License): Likewise.
15499         * modules/uninorm/composition (License): Likewise.
15500         * modules/uninorm/decompose-internal (License): Likewise.
15501         * modules/uninorm/decomposition-table (License): Likewise.
15502         * modules/uninorm/nfc (License): Likewise.
15503         * modules/uninorm/nfd (License): Likewise.
15504         * modules/uninorm/u32-normalize (License): Likewise.
15505         * modules/unistr/base (License): Likewise.
15506         * modules/unistr/u32-cpy (License): Likewise.
15507         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
15508         * modules/unistr/u32-to-u8 (License): Likewise.
15509         * modules/unistr/u32-uctomb (License): Likewise.
15510         * modules/unistr/u8-check (License): Likewise.
15511         * modules/unistr/u8-mblen (License): Likewise.
15512         * modules/unistr/u8-mbtouc (License): Likewise.
15513         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
15514         * modules/unistr/u8-mbtoucr (License): Likewise.
15515         * modules/unistr/u8-prev (License): Likewise.
15516         * modules/unistr/u8-strlen (License): Likewise.
15517         * modules/unistr/u8-to-u32 (License): Likewise.
15518         * modules/unistr/u8-uctomb (License): Likewise.
15519         * modules/unitypes (License): Likewise.
15520         Requested by Simon Josefsson.
15521
15522 2011-03-29  Simon Josefsson  <simon@josefsson.org>
15523
15524         lib-symbol-visibility: Add a notice.
15525         * modules/lib-symbol-visibility (Notice): New field.
15526
15527 2011-03-29  Bruno Haible  <bruno@clisp.org>
15528
15529         getaddrinfo: Doc fix.
15530         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
15531         section "fixed in Gnulib".
15532
15533 2011-03-28  Simon Josefsson  <simon@josefsson.org>
15534
15535         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
15536         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
15537
15538 2011-03-26  Bruno Haible  <bruno@clisp.org>
15539
15540         unictype/property-byname: Reduce the number of load-time relocations.
15541         * lib/unictype/pr_byname.c: Include <stdlib.h>.
15542         (UC_PROPERTY_INDEX_*): New enumeration values.
15543         (uc_property_byname): Convert an index from the lookup table to an
15544         uc_property_t.
15545         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
15546         values.
15547
15548 2011-03-26  Bruno Haible  <bruno@clisp.org>
15549
15550         unictype/property-byname: Allow omitted word separators and aliases.
15551         * lib/unictype/pr_byname.gperf: Add property names without word
15552         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
15553         for 'space'.
15554
15555 2011-03-26  Bruno Haible  <bruno@clisp.org>
15556
15557         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
15558         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
15559         also hyphens to space.
15560         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
15561         without spaces.
15562         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
15563
15564 2011-03-26  Bruno Haible  <bruno@clisp.org>
15565
15566         unictype/joiningtype-byname: Recognize long names as well.
15567         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
15568         a long name.
15569         * lib/unictype/joiningtype_byname.c: Include <string.h>,
15570         unictype/joiningtype_byname.h.
15571         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
15572         * lib/unictype/joiningtype_byname.gperf: New file.
15573         * modules/unictype/joiningtype-byname (Files): Add
15574         lib/unictype/joiningtype_byname.gperf.
15575         (Depends-on): Add gperf.
15576         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
15577         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
15578         long names.
15579
15580         Tests for module 'unictype/joiningtype-longname'.
15581         * modules/unictype/joiningtype-longname-tests: New file.
15582         * tests/unictype/test-joiningtype_longname.c: New file.
15583
15584         New module 'unictype/joiningtype-longname'.
15585         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
15586         * lib/unictype/joiningtype_longname.c: New file.
15587         * modules/unictype/joiningtype-longname: New file.
15588         * modules/unictype/joiningtype-all (Depends-on): Add
15589         unictype/joiningtype-longname.
15590
15591 2011-03-26  Bruno Haible  <bruno@clisp.org>
15592
15593         unictype/bidiclass-byname: Recognize long names as well.
15594         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
15595         name.
15596         * lib/unictype/bidi_byname.c: Include <string.h>,
15597         unictype/bidi_byname.h.
15598         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
15599         * lib/unictype/bidi_byname.gperf: New file.
15600         * modules/unictype/bidiclass-byname (Files): Add
15601         lib/unictype/bidi_byname.gperf.
15602         (Depends-on): Add gperf.
15603         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
15604         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
15605         long names.
15606
15607         Tests for module 'unictype/bidiclass-longname'.
15608         * modules/unictype/bidiclass-longname-tests: New file.
15609         * tests/unictype/test-bidi_longname.c: New file.
15610
15611         New module 'unictype/bidiclass-longname'.
15612         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
15613         * lib/unictype/bidi_longname.c: New file.
15614         * modules/unictype/bidiclass-longname: New file.
15615         * modules/unictype/bidiclass-all (Depends-on): Add
15616         unictype/bidiclass-longname.
15617
15618 2011-03-26  Bruno Haible  <bruno@clisp.org>
15619
15620         unictype/bidi*: Rename modules.
15621         * modules/unictype/bidiclass-all: Renamed from
15622         modules/unictype/bidicategory-all.
15623         * modules/unictype/bidiclass-name: Renamed from
15624         modules/unictype/bidiclass-name.
15625         (Description): Update.
15626         * modules/unictype/bidiclass-name-tests: Renamed from
15627         modules/unictype/bidicategory-name-tests.
15628         * modules/unictype/bidiclass-byname: Renamed from
15629         modules/unictype/bidicategory-byname.
15630         (Description): Update.
15631         * modules/unictype/bidiclass-byname-tests: Renamed from
15632         modules/unictype/bidicategory-byname-tests.
15633         * modules/unictype/bidiclass-of: Renamed from
15634         modules/unictype/bidicategory-of.
15635         (Description): Update.
15636         * modules/unictype/bidiclass-of-tests: Renamed from
15637         modules/unictype/bidicategory-of-tests.
15638         * modules/unictype/bidiclass-test: Renamed from
15639         modules/unictype/bidicategory-test.
15640         (Description): Update.
15641         * modules/unictype/bidiclass-test-tests: Renamed from
15642         modules/unictype/bidicategory-test-tests.
15643         * modules/unictype/bidicategory-all: New file, a simple redirection.
15644         * modules/unictype/bidicategory-name: Likewise.
15645         * modules/unictype/bidicategory-byname: Likewise.
15646         * modules/unictype/bidicategory-of: Likewise.
15647         * modules/unictype/bidicategory-test: Likewise.
15648         * modules/unictype/property-bidi-* (Dependencies): Update.
15649         * lib/unictype/bidi_*.c: Update comment.
15650
15651 2011-03-26  Bruno Haible  <bruno@clisp.org>
15652
15653         unictype/bidi*: Rename functions, part 2.
15654         * modules/unictype/bidicategory-name (configure.ac): Update required
15655         libunistring version.
15656         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
15657
15658 2011-03-25  Bruno Haible  <bruno@clisp.org>
15659
15660         New module 'unictype/combining-class-all'.
15661         * modules/unictype/combining-class-all: New file.
15662
15663         Tests for module 'unictype/combining-class-byname'.
15664         * modules/unictype/combining-class-byname-tests: New file.
15665         * tests/unictype/test-combiningclass_byname.c: New file.
15666
15667         New module 'unictype/combining-class-byname'.
15668         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
15669         * lib/unictype/combiningclass_byname.c: New file.
15670         * lib/unictype/combiningclass_byname.gperf: New file.
15671         * modules/unictype/combining-class-byname: New file.
15672
15673         Tests for module 'unictype/combining-class-longname'.
15674         * modules/unictype/combining-class-longname-tests: New file.
15675         * tests/unictype/test-combiningclass_longname.c: New file.
15676
15677         New module 'unictype/combining-class-longname'.
15678         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
15679         * lib/unictype/combiningclass_longname.c: New file.
15680         * modules/unictype/combining-class-longname: New file.
15681
15682         Tests for module 'unictype/combining-class-name'.
15683         * modules/unictype/combining-class-name-tests: New file.
15684         * tests/unictype/test-combiningclass_name.c: New file.
15685
15686         New module 'unictype/combining-class-name'.
15687         * lib/unictype.in.h (uc_combining_class_name): New declaration.
15688         * lib/unictype/combiningclass_name.c: New file.
15689         * modules/unictype/combining-class-name: New file.
15690
15691 2011-03-25  Bruno Haible  <bruno@clisp.org>
15692
15693         unictype/combining-class: Rename source files.
15694         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
15695         of unictype/combining.h.
15696         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
15697         Update.
15698         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
15699         * modules/unictype/combining-class (Description): Fix.
15700         (Files, Makefile.am): Update.
15701         * tests/unictype/test-combiningclass.c: Renamed from
15702         tests/unictype/test-combining.c.
15703         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
15704
15705 2011-03-25  Bruno Haible  <bruno@clisp.org>
15706
15707         unictype: Update list of canonical combining classes.
15708         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
15709
15710 2011-03-25  Bruno Haible  <bruno@clisp.org>
15711
15712         unictype/category-byname: Recognize long names as well.
15713         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
15714         a long name.
15715         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
15716         unictype/categ_byname.h.
15717         (UC_CATEGORY_INDEX_*): New enumeration values.
15718         (uc_general_category_byname): Use uc_general_category_lookup and
15719         convert from index to value.
15720         * lib/unictype/categ_byname.gperf: New file.
15721         * modules/unictype/category-byname (Files): Add
15722         lib/unictype/categ_byname.gperf.
15723         (Depends-on): Add gperf.
15724         (Makefile.am): Add rule for generating unictype/categ_byname.h.
15725         * tests/unictype/test-categ_byname.c (main): Test the recognition of
15726         long names.
15727
15728         Tests for module 'unictype/category-longname'.
15729         * modules/unictype/category-longname-tests: New file.
15730         * tests/unictype/test-categ_longname.c: New file.
15731
15732         New module 'unictype/category-longname'.
15733         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
15734         * lib/unictype/categ_longname.c: New file.
15735         * modules/unictype/category-longname: New file.
15736         * modules/unictype/category-all (Depends-on): Add it.
15737
15738 2011-03-25  Bruno Haible  <bruno@clisp.org>
15739
15740         Tests for module 'unictype/category-LC'.
15741         * modules/unictype/category-LC-tests: New file.
15742         * tests/unictype/test-categ_LC.c: New file, automatically generated.
15743
15744         New module 'unictype/category-LC'.
15745         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
15746         (UC_CATEGORY_LC): New declaration.
15747         (UC_CASED_LETTER): New macro.
15748         * lib/gen-uni-tables.c (is_category_LC): New function.
15749         (output_categories): Also handle category LC.
15750         (UC_CATEGORY_MASK_LC): New enumeration value.
15751         (general_category_byname): Also handle category LC.
15752         * lib/unictype/categ_LC.c: New file.
15753         * lib/unictype/categ_LC.h: New file, automatically generated.
15754         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
15755         category LC.
15756         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
15757         * modules/unictype/category-LC: New file.
15758         * modules/unictype/category-byname (Depends-on): Add
15759         unictype/category-LC.
15760         * modules/unictype/category-all (Depends-on): Likewise.
15761
15762 2011-03-25  Eric Blake  <eblake@redhat.com>
15763
15764         xmalloc: revert yesterday's regression
15765         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
15766         realloc's underlying behavior (allowing allocation of zero-size
15767         objects, especially if malloc-gnu is also in use).
15768
15769 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
15770
15771         maint.mk: add missing version to VC-tag
15772         * top/maint.mk: git tag was missing actual tag name; add it.
15773
15774         valgrind: do leak checking, and exit with code 1 on error (not 0)
15775         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
15776         to VALGRIND.
15777
15778 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
15779
15780         posix-modules: say what it does.
15781         * posix-modules: Add a line to the --help output saying what it does.
15782
15783 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
15784
15785         xmalloc: Do not leak if underlying realloc is C99 compatible.
15786         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
15787         This avoids a leak on C99-based systems.  See
15788         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
15789
15790 2011-03-24  Eric Blake  <eblake@redhat.com>
15791
15792         realloc: document portability problem
15793         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
15794         passing 0 size to realloc.
15795
15796 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
15797
15798         doc: update users.txt
15799         * users.txt: Add cvsps, tmpwatch
15800
15801 2011-03-23  Matt Rice  <ratmice@gmail.com>
15802
15803         doc: update users.txt
15804         * users.txt: Add gdb.
15805
15806 2011-03-23  Jim Meyering  <meyering@redhat.com>
15807
15808         doc: update users.txt
15809         Looking through matches up to the following URL (there are still
15810         several more pages), I found several projects that use gnulib:
15811         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
15812         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
15813         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
15814
15815 2011-03-22  Bruno Haible  <bruno@clisp.org>
15816
15817         unictype/bidi*: Rename functions.
15818         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
15819         uc_bidi_class, uc_is_bidi_class): New declarations.
15820         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
15821         uc_bidi_category_byname.
15822         (uc_bidi_category_byname): New function.
15823         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
15824         u_bidi_category_name.
15825         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
15826         (uc_bidi_category_name): New function.
15827         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
15828         uc_bidi_category.
15829         (uc_bidi_category): New function.
15830         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
15831         uc_is_bidi_category. Invoke uc_bidi_class.
15832         (uc_is_bidi_category): New function.
15833         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
15834         instead of uc_bidi_category_byname.
15835         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
15836         instead of uc_bidi_category_name.
15837         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
15838         uc_bidi_category.
15839         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
15840         instead of uc_is_bidi_category.
15841
15842 2011-03-21  Bruno Haible  <bruno@clisp.org>
15843
15844         New module 'unictype/joininggroup-all'.
15845         * modules/unictype/joininggroup-all: New file.
15846
15847         Tests for module 'unictype/joininggroup-of'.
15848         * modules/unictype/joininggroup-of-tests: New file.
15849         * tests/unictype/test-joininggroup_of.c: New file.
15850         * tests/unictype/test-joininggroup_of.h: New file, automatically
15851         generated by gen-uni-tables.
15852
15853         New module 'unictype/joininggroup-of'.
15854         * modules/unictype/joininggroup-of: New file.
15855         * lib/unictype/joininggroup_of.c: New file.
15856         * lib/unictype/joininggroup_of.h: New file, automatically generated by
15857         gen-uni-tables.
15858
15859         Tests for module 'unictype/joininggroup-byname'.
15860         * modules/unictype/joininggroup-byname-tests: New file.
15861         * tests/unictype/test-joininggroup_byname.c: New file.
15862
15863         New module 'unictype/joininggroup-byname'.
15864         * modules/unictype/joininggroup-byname: New file.
15865         * lib/unictype/joininggroup_byname.c: New file.
15866         * lib/unictype/joininggroup_byname.gperf: New file.
15867
15868         Tests for module 'unictype/joininggroup-name'.
15869         * modules/unictype/joininggroup-name-tests: New file.
15870         * tests/unictype/test-joininggroup_name.c: New file.
15871
15872         New module 'unictype/joininggroup-name'.
15873         * modules/unictype/joininggroup-name: New file.
15874         * lib/unictype/joininggroup_name.c: New file.
15875         * lib/unictype/joininggroup_name.h: New file.
15876
15877         New module 'unictype/joiningtype-all'.
15878         * modules/unictype/joiningtype-all: New file.
15879
15880         Tests for module 'unictype/joiningtype-of'.
15881         * modules/unictype/joiningtype-of-tests: New file.
15882         * tests/unictype/test-joiningtype_of.c: New file.
15883         * tests/unictype/test-joiningtype_of.h: New file, automatically
15884         generated by gen-uni-tables.
15885
15886         New module 'unictype/joiningtype-of'.
15887         * modules/unictype/joiningtype-of: New file.
15888         * lib/unictype/joiningtype_of.c: New file.
15889         * lib/unictype/joiningtype_of.h: New file, automatically generated by
15890         gen-uni-tables.
15891
15892         Tests for module 'unictype/joiningtype-byname'.
15893         * modules/unictype/joiningtype-byname-tests: New file.
15894         * tests/unictype/test-joiningtype_byname.c: New file.
15895
15896         New module 'unictype/joiningtype-byname'.
15897         * modules/unictype/joiningtype-byname: New file.
15898         * lib/unictype/joiningtype_byname.c: New file.
15899
15900         Tests for module 'unictype/joiningtype-name'.
15901         * modules/unictype/joiningtype-name-tests: New file.
15902         * tests/unictype/test-joiningtype_name.c: New file.
15903
15904         New module 'unictype/joiningtype-name'.
15905         * modules/unictype/joiningtype-name: New file.
15906         * lib/unictype/joiningtype_name.c: New file.
15907
15908         unictype: Add support for Arabic shaping properties.
15909         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
15910         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
15911         declarations.
15912         (UC_JOINING_GROUP_*): New enumeration values.
15913         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
15914         declarations.
15915         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
15916         (unicode_joining_type): New variable.
15917         (UC_JOINING_GROUP_*): New enumeration values.
15918         (unicode_joining_group): New variable.
15919         (fill_arabicshaping, joining_type_as_c_identifier,
15920         output_joining_type_test, output_joining_type,
15921         joining_group_as_c_identifier, output_joining_group_test,
15922         output_joining_group): New functions.
15923         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
15924         fill_arabicshaping and output_joining_type_test, output_joining_type,
15925         output_joining_group_test, output_joining_group.
15926         Reported by Simon Josefsson.
15927
15928 2011-03-21  Jim Meyering  <meyering@redhat.com>
15929
15930         strftime: fix a bug in yesterday's change
15931         * lib/strftime.c (add): Accommodate width's initial value of -1.
15932         Otherwise, nstrftime would copy uninitialized data into
15933         the result buffer.
15934
15935 2011-03-21  Jim Meyering  <meyering@redhat.com>
15936
15937         tests: add strftime-tests module
15938         * tests/test-strftime.c: New file.
15939         * modules/strftime-tests: New module.
15940
15941 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
15942
15943         strftime: don't assume a byte count fits in 'int'
15944         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
15945         found this problem by static analysis, using gcc -Wstrict-overflow
15946         (GCC 4.5.2, x86-64).  This reported an optimization that depended
15947         on an integer overflow having undefined behavior, but it turns out
15948         that the argument is a size, which might not fit in 'int' anyway,
15949
15950 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
15951
15952         stdio: don't require ignore_value around fwrite
15953
15954         This patch works around libc bug 11959
15955         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
15956         Without this patch, applications must often write
15957         ignore_value (fwrite (...)) even though the ignore_value is
15958         not helpful here.  It's common to write many objects, using
15959         fwrite/printf/etc., and then use ferror to detect output error.
15960
15961         I considered making this patch optional, but decided against it,
15962         because libc is obviously being inconsistent here: there is no
15963         reason libc should insist that user code must inspect fwrite
15964         return's value without also insisting that it inspect printf's,
15965         putchar's, etc.  If user code wants to have a strict style where
15966         all these functions' values are checked (so that ferror need not
15967         be checked), we could add support for that style in a new gnulib
15968         module, but in the meantime it's better to be consistent and to
15969         support common usage.
15970
15971         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
15972         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
15973         that we are compiling in checking mode, and if not C++, and
15974         if not already wrapping fwrite for some other reason.
15975         (fwrite): #define to rpl_fwrite if the latter is defined.
15976
15977 2011-03-20  Bruno Haible  <bruno@clisp.org>
15978
15979         verror: Fix compilation error introduced on 2011-02-13.
15980         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
15981         instead of __attribute__.
15982         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15983
15984 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
15985             Bruno Haible  <bruno@clisp.org>
15986
15987         socklen: do not depend on sys_socket
15988         While trying to modify Emacs to use gnulib's socklen module,
15989         I discovered a circular dependency: socklen depends on sys_socket
15990         and vice versa.  Emacs can use socklen, but it does not need
15991         sys_socket because it has its own substitute for sys/socket.h.
15992         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
15993         gl_TYPE_SOCKLEN_T.
15994         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
15995         gl_PREREQ_SYS_H_SOCKET.
15996         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
15997         gl_PREREQ_SYS_H_SOCKET.
15998         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
15999         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
16000         * modules/socklen (Depends-on): Do not depend on sys_socket.
16001         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
16002
16003 2011-03-20  Jim Meyering  <meyering@redhat.com>
16004
16005         maint.mk: sort file names *after* new transformation
16006         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
16007         prefix would have led to an unwarranted failure in GNU parted.
16008         Sort after that transformation.
16009
16010 2011-03-19  Jim Meyering  <meyering@redhat.com>
16011
16012         maint.mk: fix po-file syntax-check rule
16013         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
16014         Patch by Bruno Haible.
16015
16016 2011-03-19  Bruno Haible  <bruno@clisp.org>
16017
16018         socklen: Update comment.
16019         * m4/socklen.m4: Update comment about platforms.
16020
16021 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
16022             Bruno Haible  <bruno@clisp.org>
16023
16024         inet_ntop, inet_pton: Simplify.
16025         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
16026         documented to provide socklen_t and we already depend on sys_socket.
16027         * modules/inet_pton (Depends-on): Likewise.
16028         * lib/arpa_inet.in.h: Adjust comment.
16029
16030 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
16031             Bruno Haible  <bruno@clisp.org>
16032
16033         netdb: Simplify.
16034         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
16035         documented to provide socklen_t and we already depend on sys_socket.
16036         * lib/netdb.in.h: Adjust comment.
16037
16038 2011-03-19  Bruno Haible  <bruno@clisp.org>
16039
16040         sys_socket, netdb: Document problem with socklen_t.
16041         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
16042         platforms.
16043         * doc/posix-headers/netdb.texi: Likewise.
16044
16045 2011-03-18  Eric Blake  <eblake@redhat.com>
16046
16047         maint.mk: let po check work in VPATH build
16048         * top/maint.mk (po_file): Allow cfg.mk override.
16049         (sc_po_check): Allow VPATH use.
16050         Reported by Jiri Denemark.
16051
16052 2011-03-16  Jim Meyering  <meyering@redhat.com>
16053
16054         maint.mk: allow fine-grained syntax-check exclusion via Make variables
16055         Before, you would have had to create one .x-sc_ file per rule in order
16056         to exempt offending files.  Now, you may instead use a Make variable --
16057         usually defined in cfg.mk -- whose name identifies the affected rule.
16058         * top/maint.mk (_sc_excl): Define.
16059         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
16060         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
16061
16062 2011-03-13  Bruno Haible  <bruno@clisp.org>
16063
16064         ignore-value tests: Avoid warnings.
16065         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
16066         empty for gcc < 3.4.
16067
16068 2011-03-13  Bruno Haible  <bruno@clisp.org>
16069
16070         passfd: Fix link error on Solaris.
16071         * modules/passfd (Description): Correct.
16072         (Depends-on): Add socketlib.
16073         (Link): New section.
16074         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
16075
16076 2011-03-13  Bruno Haible  <bruno@clisp.org>
16077
16078         passfd: Fix link error on AIX 5.2.
16079         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
16080
16081 2011-03-13  Bruno Haible  <bruno@clisp.org>
16082
16083         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
16084         * lib/sys_socket.in.h: Include <stddef.h>.
16085         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
16086         CMSG_FIRSTHDR. Remove unused variable.
16087
16088 2011-03-13  Bruno Haible  <bruno@clisp.org>
16089
16090         passfd: Fix compilation error on OpenBSD.
16091         * lib/passfd.c: Include <sys/uio.h>.
16092
16093 2011-03-13  Bruno Haible  <bruno@clisp.org>
16094
16095         passfd test: Fix warnings.
16096         * tests/test-passfd.c: Include <sys/wait.h>.
16097         (main): Fix typo.
16098
16099 2011-03-13  Bruno Haible  <bruno@clisp.org>
16100
16101         passfd module, part 4, tweaks.
16102         * tests/test-passfd.c: Reorder includes.
16103         (main): Fix perror and printf calls.
16104
16105 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
16106
16107         passfd module, part 4.
16108         * modules/passfd-tests: New file.
16109         * tests/test-passfd.c: New file.
16110
16111 2011-03-13  Jim Meyering  <meyering@redhat.com>
16112
16113         Makefile: rely on GNU make; derive syntax-check rule names
16114         Rather than requiring that each sc_ rule be listed as a dependent
16115         of "check", use features of GNU make to derive the list.
16116         * Makefile (syntax-check-rules): Define.
16117         (check): Depend on the new variable, not the hard-coded list.
16118
16119 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
16120             Bruno Haible  <bruno@clisp.org>
16121
16122         passfd module, part 3.
16123         * lib/passfd.h (recvfd): Add a flags argument.
16124         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
16125         (recvfd): Add a flags argument.
16126         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
16127         exists.
16128         * modules/passfd (Depends-on): Add cloexec.
16129         Suggested by Eric Blake.
16130
16131 2011-03-13  Bruno Haible  <bruno@clisp.org>
16132
16133         passfd module, part 2, tweaks.
16134         * modules/passfd (Files): Reorder.
16135         (Depends-on): Remove errno.
16136         (Include): Remove <sys/socket.h>, <sys/un.h>.
16137         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
16138         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
16139         specification header. Include <sys/socket.h> always. Don't include
16140         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
16141         (sendfd): Clarify that it sets errno when it fails.
16142         (recvfd): Fix specification.
16143
16144 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
16145
16146         passfd module, part 2.
16147         * modules/passfd: New file.
16148         * lib/passfd.h: New file.
16149         * lib/passfd.c: New file.
16150
16151 2011-03-12  Bruno Haible  <bruno@clisp.org>
16152
16153         wcswidth, mbswidth: Avoid integer overflow.
16154         * lib/wcswidth.c: Include <limits.h>.
16155         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
16156         * lib/mbswidth.c: Include <limits.h>.
16157         (mbsnwidth): Avoid 'int' overflow.
16158         Reported by Jim Meyering.
16159
16160 2011-03-12  Bruno Haible  <bruno@clisp.org>
16161
16162         futimens, utimensat: Avoid endless recursion on Solaris 10.
16163         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
16164         Solaris.
16165         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
16166         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
16167
16168 2011-03-11  Jim Meyering  <meyering@redhat.com>
16169
16170         maint.mk: relax a regexp to accommodate other formatting styles
16171         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
16172         between "ngettext" and the following "(".
16173
16174 2011-03-11  Pádraig Brady <P@draigBrady.com>
16175
16176         maint.mk: suppress a false positive warning
16177         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
16178         diagnostics are marked with ngettext.
16179
16180 2011-03-10  Eric Blake  <eblake@redhat.com>
16181
16182         wchar: add explicit dependencies, for Tru64
16183         * modules/mbmemcasecoll (Depends-on): Add wchar.
16184         * modules/mbtowc (Depends-on): Likewise.
16185         * modules/vasnprintf (Depends-on): Likewise.
16186         * modules/unistdio/u-printf-args (Depends-on): Likewise.
16187         * modules/wctomb (Depends-on): Likewise.
16188         Reported by Peter O'Gorman.
16189
16190 2011-03-08  Bruno Haible  <bruno@clisp.org>
16191
16192         passfd module, part 1, tweaks.
16193         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
16194         Improve indentation. Improve AC_MSG_CHECKING messages.
16195         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
16196         gl_SOCKET_FAMILIES.
16197
16198 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
16199
16200         passfd module, part 1.
16201         * m4/afunix.m4: New file.
16202         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
16203         sockets.
16204
16205 2011-03-08  Bruno Haible  <bruno@clisp.org>
16206
16207         regex-quote: New API.
16208         * lib/regex-quote.h: Include <stdbool.h>.
16209         (struct regex_quote_spec): New type.
16210         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
16211         New declarations.
16212         (regex_quote_length, regex_quote_copy, regex_quote): Take a
16213         'const struct regex_quote_spec *' argument.
16214         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
16215         (pcre_special): New constant.
16216         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
16217         New functions.
16218         (regex_quote_length, regex_quote_copy, regex_quote): Take a
16219         'const struct regex_quote_spec *' argument.
16220         * modules/regex-quote (Depends-on): Add stdbool.
16221         * tests/test-regex-quote.c (check): Update for new API. Add test for
16222         anchored results.
16223         * NEWS: Mention the API change.
16224         Reported by Reuben Thomas and Eric Blake.
16225
16226 2011-03-06  Bruno Haible  <bruno@clisp.org>
16227
16228         regex-quote: Fix creation of POSIX extended regular expressions.
16229         * lib/regex-quote.c (ere_special): Add grouping and alternation
16230         operators.
16231
16232 2011-03-05  Bruno Haible  <bruno@clisp.org>
16233
16234         doc: Improve doc regarding autopoint vs. gnulib.
16235         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
16236         disable autopoint while running autoreconf.
16237         Suggested by Ralf Wildenhues.
16238
16239 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16240
16241         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
16242         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
16243
16244 2011-03-03  Bruce Korb  <bkorb@gnu.org>
16245
16246         parse-duration: remove xalloc.h dependency
16247         * lib/parse-duration.c (parse_period): handle NULL return from
16248         strdup instead of calling xstrdup().
16249         * modules/parse-duration: remove "xalloc" dependency
16250
16251 2011-03-03  Matthew Booth  <mbooth@redhat.com>
16252
16253         bootstrap: honor m4_base when running aclocal
16254         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
16255
16256 2011-03-02  Jim Meyering  <meyering@redhat.com>
16257
16258         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
16259         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
16260         on request from Matt Booth.
16261
16262 2011-03-01  Eric Blake  <eblake@redhat.com>
16263
16264         test-link: work on Hurd
16265         * tests/test-link.h (test_link): Hurd rejects linking directories
16266         with EISDIR instead of the POSIX-mandated EPERM.
16267
16268 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
16269
16270         stdio: simplify by moving files to printf-posix, sigpipe
16271         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
16272         since this symbol is needed only if printf is replaced.
16273         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
16274         Require gl_ASM_SYMBOL_PREFIX.
16275         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
16276         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
16277         (Depends-on): Add 'raise'.
16278         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
16279         * modules/stdio (Files): Remove lib/stdio-write.c,
16280         m4/asm-underscore.m4.
16281         (Depends-on): Remove 'raise'.
16282
16283         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
16284         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
16285         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
16286         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
16287
16288 2011-02-28  Bruno Haible  <bruno@clisp.org>
16289
16290         localcharset: Assume ANSI C behaviour of free().
16291         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
16292         calling free().
16293         Suggested by Simon Josefsson <simon@josefsson.org>.
16294
16295 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
16296             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
16297             Bruno Haible  <bruno@clisp.org>  (tiny change)
16298
16299         On Cygwin, use /proc file system instead of win32 API.
16300         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
16301         Win32 file names.
16302         (DllMain): Simplify by removing Cygwin specific code.
16303         (find_shared_library_fullname): Use Linux specific implementation also
16304         for Cygwin.
16305         (get_shared_library_fullname): Update accordingly.
16306         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
16307         Win32 file names.
16308         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
16309         Cygwin specific code.
16310
16311 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
16312             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
16313
16314         Fix OpenMP flag detection for various Fortran compilers.
16315         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
16316         OpenMP-conditional compilation construct, to force compile
16317         failure with missing OpenMP flag.
16318         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
16319
16320 2011-02-25  Eric Blake  <eblake@redhat.com>
16321
16322         strstr: expand test coverage
16323         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
16324         compilation.
16325         * tests/test-memmem.c (main): Duplicate tests.
16326         * tests/test-strcasestr.c (main): Likewise.
16327         * tests/test-c-strcasestr.c (main): Likewise.
16328
16329 2011-02-25  Jim Meyering  <meyering@redhat.com>
16330
16331         maint.mk: detect missing-NL-at-EOF, too
16332         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
16333         it also detects when a file lacks a newline at EOF.
16334         (require_exactly_one_NL_at_EOF_): Renamed from
16335         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
16336         since people may well have .x-sc_... file names tied to the
16337         existing name.  Suggested by Eric Blake.
16338
16339 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
16340
16341         dirname: move m4/dos.m4 functionality into lib/dosname.h
16342
16343         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
16344         extracts symbols from it, puts them into config.h; but it's much
16345         easier to use the symbols directly.  filename.h already does this,
16346         but it disagrees with dos.m4 in some respects.  This patch
16347         introduces a different include file dosname.h that packages up
16348         dos.m4, and then later we can work on merging filename.h and
16349         dosname.h.  Applications that need only the easy-to-configure
16350         symbols should consider including dosname.h rather than dirname.h.
16351         * NEWS: Mention incompatible changes.
16352         * m4/dos.m4: Remove.
16353         * lib/dosname.h, modules/dosname: New files.
16354         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
16355         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
16356         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
16357         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
16358         Include dosname.h, not dirname.h.
16359         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
16360         Include dosname.h, for definitions of symbols like ISSLASH
16361         that used to be in config.h.
16362         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
16363         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
16364         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16365         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
16366         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
16367         * modules/rmdir (Files): Likewise.
16368         * modules/stat (Files): Likewise.
16369         * modules/unlink (Files): Likewise.
16370         * modules/dirname-lgpl (Depends-on): Add dosname.
16371         * modules/lstat (Depends-on): Likewise.
16372         * modules/openat (Depends-on): Likewise.
16373         * modules/rmdir (Depends-on): Likewise.
16374         * modules/savewd (Depends-on): Likewise.
16375         * modules/stat (Depends-on): Likewise.
16376         * modules/unlink (Depends-on): Likewise.
16377         * modules/openat (Depends-on): Remove dirname-lgpl.
16378         * modules/savewd (Depends-on): Likewise.
16379         * tests/test-dirname.c: Do not use removed symbols like
16380         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
16381         the remaining symbols, e.g., ISSLASH ('\\').
16382
16383 2011-02-25  Eric Blake  <eblake@redhat.com>
16384
16385         strstr: revert patches that introduced bug and pessimization
16386         * lib/str-two-way.h: Add another reference.
16387         (two_way_short_needle, two_way_long_needle): Revert changes from
16388         2011-02-24; they pessimize search speed.
16389         (critical_factorization): Partially revert changes from
16390         2010-06-22; they violate the requirement that the left half of the
16391         needle be smaller than the period of the needle.
16392
16393 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
16394
16395         filenamecat: remove unnecessary dependency on dirname-lgpl
16396         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
16397         is no direct dependency, just an indirect one via filenamecat-lgpl.
16398
16399         remove: remove unnecessary use of m4/dos.m4
16400         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
16401         * modules/remove (FILES): Remove m4/dos.m4.
16402
16403         * lib/openat-proc.c: Don't include dirname.h; not needed.
16404
16405         backupfile: remove unnecessary use of m4/dos.m4
16406         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
16407         of its symbols are used by the backupfile code.  backupfile.c does
16408         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
16409         for the rare case of programs that want all their backup file
16410         names to live within 8+3 limits, and dos.m4 doesn't address that.
16411         * modules/backupfile (Files): Remove m4/dos.m4.
16412
16413 2011-02-24  Jim Meyering  <meyering@redhat.com>
16414
16415         strstr: fix a bug whereby strstr would mistakenly return NULL
16416         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
16417         in period calculation.
16418         (two_way_long_needle): Likewise.
16419         The original problem was reported by Mike Stump in
16420         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
16421         Ralf Wildenhues provided the short needle and haystack.
16422         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
16423         Add a more involved test to trigger the bug in two_way_long_needle.
16424
16425 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16426
16427         gnulib-tool: remove use of bold display in help screen
16428         * gnulib-tool (func_usage): Do not use bold display anymore in the
16429         help screen.  That was just meant to be a temporary emphasis for a
16430         backward-incompatible change.
16431
16432 2011-02-23  Bruno Haible  <bruno@clisp.org>
16433
16434         Fix misindentation of preprocessor directives.
16435         * lib/argp-namefrob.h: Reindent preprocessor directives.
16436         * lib/getopt_int.h (struct _getopt_data): Likewise.
16437         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
16438         * lib/vasnprintf.c (decode_long_double): Likewise.
16439         * tests/test-argmatch.c: Insert blank lines, for clarity.
16440         * tests/test-exclude.c: Likewise.
16441
16442 2011-02-22  Bruno Haible  <bruno@clisp.org>
16443
16444         ioctl: Fix for MacOS X in 64-bit mode.
16445         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
16446         value.
16447         Suggested by Eric Blake.
16448         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
16449
16450 2011-02-22  Jim Meyering  <meyering@redhat.com>
16451
16452         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
16453         * Makefile (sc_cpp_indent_check): Don't limit the check to files
16454         in lib/.
16455
16456 2011-02-22  Eric Blake  <eblake@redhat.com>
16457
16458         maint: avoid any CDPATH issue
16459         * Makefile (sc_cpp_indent_check): Anchor cd argument.
16460
16461         maint: adjust cpp indentation for my modules, as well
16462         * Makefile (sc_cpp_indent_check): Add my name.
16463         * lib/fbufmode.c: Filter through cppi.
16464         * lib/fpurge.c: Likewise.
16465         * lib/freadable.c: Likewise.
16466         * lib/freading.c: Likewise.
16467         * lib/fwritable.c: Likewise.
16468         * lib/fwriting.c: Likewise.
16469         * lib/sigaction.c: Likewise.
16470
16471 2011-02-22  Jim Meyering  <meyering@redhat.com>
16472
16473         maint: adjust cpp indentation to reflect nesting depth
16474         I.e., in a block of code that begins with an unnested "#if",
16475         put one space between the "#" in column 1 and following token.
16476         For example,
16477         -#include <sys/vfs.h>
16478         +# include <sys/vfs.h>
16479         Do this only in .c files that are part of a module I maintain.
16480         * lib/linkat.c: Filter through cppi.
16481         * lib/nanosleep.c: Likewise.
16482         * lib/openat.c: Likewise.
16483         * lib/openat-die.c: Likewise.
16484         * lib/dup3.c: Likewise.
16485         * lib/fchownat.c: Likewise.
16486         * lib/flock.c: Likewise.
16487         * lib/fsync.c: Likewise.
16488         * lib/fts.c: Likewise.
16489         * lib/getpass.c: Likewise.
16490         * lib/gettimeofday.c: Likewise.
16491         * lib/userspec.c: Likewise.
16492         * Makefile (sc_cpp_indent_check): New rule, to check this.
16493
16494 2011-02-22  Bruno Haible  <bruno@clisp.org>
16495
16496         New module 'wctomb'.
16497         * lib/stdlib.in.h (wctomb): New declaration.
16498         * lib/wctomb.c: New file.
16499         * lib/wctomb-impl.h: New file.
16500         * m4/wctomb.m4: New file.
16501         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
16502         REPLACE_WCTOMB.
16503         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
16504         REPLACE_WCTOMB.
16505         * modules/wctomb: New file.
16506         * tests/test-stdlib-c++.cc: Test signature of wctomb.
16507         * doc/posix-functions/wctomb.texi: Mention the new module.
16508         * modules/wctob (Depends-on): Add wctomb.
16509
16510 2011-02-22  Bruno Haible  <bruno@clisp.org>
16511
16512         New module 'mbtowc'.
16513         * lib/stdlib.in.h (mbtowc): New declaration.
16514         * lib/mbtowc.c: New file.
16515         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
16516         * m4/mbtowc.m4: New file.
16517         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
16518         REPLACE_MBTOWC.
16519         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
16520         REPLACE_MBTOWC.
16521         * modules/mbtowc: New file.
16522         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
16523         * doc/posix-functions/mbtowc.texi: Mention the new module.
16524         * modules/btowc (Depends-on): Add mbtowc.
16525
16526 2011-02-22  Bruno Haible  <bruno@clisp.org>
16527
16528         wcrtomb: Add more tests for native Windows platforms.
16529         * tests/test-wcrtomb-w32-1.sh: New file.
16530         * tests/test-wcrtomb-w32-2.sh: New file.
16531         * tests/test-wcrtomb-w32-3.sh: New file.
16532         * tests/test-wcrtomb-w32-4.sh: New file.
16533         * tests/test-wcrtomb-w32-5.sh: New file.
16534         * tests/test-wcrtomb-w32.c: New file.
16535         * modules/wcrtomb-tests (Files): Add them.
16536         (Makefile.am): Arrange to run these tests.
16537         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
16538         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
16539
16540 2011-02-20  Bruno Haible  <bruno@clisp.org>
16541
16542         wcrtomb: Enhance test.
16543         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
16544
16545 2011-02-20  Bruno Haible  <bruno@clisp.org>
16546
16547         mbrtowc: Tiny optimization.
16548         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
16549
16550 2011-02-20  Jim Meyering  <meyering@redhat.com>
16551
16552         test-exclude.c: remove unmatched #endif
16553         * tests/test-exclude.c: Remove stray #endif, left over from
16554         the change of a week ago.
16555
16556 2011-02-19  Jim Meyering  <meyering@redhat.com>
16557
16558         git-version-gen: skip "-dirty" check when appropriate
16559         * build-aux/git-version-gen: Don't run any git commands when the
16560         version string comes from .tarball-version.  Prior to this, we
16561         would run git update-index --refresh even from a just-unpacked
16562         tarball directory, and that could affect a .git/ directory in a
16563         parent of the build directory.  Reported by Mike Frysinger.
16564
16565 2011-02-19  Bruno Haible  <bruno@clisp.org>
16566
16567         unictype/property-byname: Reduce the size of the 'data' segment.
16568         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
16569
16570 2011-02-19  Bruno Haible  <bruno@clisp.org>
16571
16572         unictype/scripts: Reduce the size of the 'data' segment.
16573         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
16574         '%pic'.
16575         * lib/unictype/scripts_byname.gperf: Regenerated.
16576
16577 2011-02-19  Bruno Haible  <bruno@clisp.org>
16578
16579         stdint: Update documentation.
16580         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
16581
16582 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
16583
16584         stdint: omit redundant check for wchar.h
16585         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
16586         always tests whether wchar.h exists, so remove the now-redundant test.
16587
16588 2011-02-18  Bruno Haible  <bruno@clisp.org>
16589
16590         stdint: Cut dependency to module 'wchar'.
16591         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
16592         include the necessary prerequisites.
16593         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
16594         * modules/stdint (Depends-on): Remove wchar.
16595         (Makefile.am): Substitute HAVE_WCHAR_H.
16596         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
16597
16598 2011-02-18  Eric Blake  <eblake@redhat.com>
16599
16600         longlong: skip, rather than fail, on cross-compilation
16601         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
16602         when cross-compiling; regression from 2011-02-16.
16603
16604 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
16605
16606         * NEWS: Mention 2011-02-08 change to stdlib.
16607
16608 2011-02-17  Bruno Haible  <bruno@clisp.org>
16609
16610         getloadavg: Add comments about platforms.
16611         * m4/getloadavg.m4: Add comment.
16612         * lib/getloadavg.c: Likewise.
16613
16614 2011-02-17  Bruno Haible  <bruno@clisp.org>
16615
16616         getloadavg: Fix link error on Solaris 2.6.
16617         * modules/getloadavg (Link): New section.
16618         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
16619         linking test-getloadavg.
16620         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
16621         getloadavg.
16622
16623 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
16624
16625         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
16626         It was 'int', but this doesn't match the IRIX 6.5 manual.
16627         Suggested by Bruno Haible in
16628         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
16629
16630 2011-02-17  Bruno Haible  <bruno@clisp.org>
16631
16632         havelib: Fix comments.
16633         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
16634         change.
16635
16636 2011-02-17  Bruno Haible  <bruno@clisp.org>
16637
16638         havelib: Update config.rpath.
16639         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
16640
16641 2011-02-17  Bruno Haible  <bruno@clisp.org>
16642
16643         getloadavg test: Add some plausibility checks.
16644         * tests/test-getloadavg.c (check_avg): Print a warning when the value
16645         is improbable.
16646
16647 2011-02-16  Eric Blake  <eblake@redhat.com>
16648
16649         maintainer-makefile: make syntax-check a no-op from tarballs
16650         * top/maint.mk (no-vc-detected): New rule.
16651         (local-checks-available): Use it to avoid hanging if someone tries
16652         'make syntax-check' from a tarball.  Also append to any non-syntax
16653         checks already defined in cfg.mk.
16654
16655 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
16656
16657         longlong: tune, particularly for common case of c99
16658
16659         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
16660         or running anything if c99, or if unsigned long long int does not
16661         work.  In either case, we know the answer without further tests.
16662         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
16663         it at most once, and use its results for both long long int and
16664         unsigned long long int.  This is more likely to be efficient in
16665         the common case where the program wants to check for both long
16666         long int and unsigned long long int.
16667         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
16668         since the answer is already known.
16669
16670 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
16671
16672         getloadavg: set errno
16673         * lib/getloadavg.c: Set errno when returning -1.  If no other
16674         error number looks appropriate, set it to ENOSYS if the getloadavg
16675         looks like it can't possibly ever work, ENOTSUP otherwise.
16676         Suggested by Bruno Haible in
16677         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
16678
16679         getloadavg: trim unused parts and speed up 'configure'
16680         * NEWS: Document this.
16681         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
16682         always compiled if getloadavg is absent.
16683         Move test code to ...
16684         * tests/test-getloadavg.c: New file, containing previous
16685         contents of test from lib/getloadavg.c.  It also contains
16686         suggestions by Bruno Haible in
16687         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
16688         * modules/getloadavg-tests: New file.
16689         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
16690         Do tests in the same order as they're needed for getloadavg.c.
16691         Omit setgid-related tests that generate symbols KMEM_GROUP,
16692         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
16693         Do only the tests that are needed to see whether the system has
16694         getloadavg, moving the other tests into ...
16695         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
16696         NLIST_NAME_UNION; nobody should be using it.  Do not define
16697         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
16698         relevant, as the user of this module shouldn't care how getloadavg
16699         is implemented.
16700
16701         getloadavg: omit unused var
16702         * lib/getloadavg.c (getloadavg): Omit unused local variable.
16703
16704 2011-02-15  Jim Meyering  <meyering@redhat.com>
16705
16706         doc: update users.txt
16707         * users.txt: Update iwhd's URL.
16708
16709 2011-02-13  Bruno Haible  <bruno@clisp.org>
16710
16711         Consistent macro naming for macros that use GCC __attribute__.
16712         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
16713         _ATTRIBUTE_NONNULL_.
16714         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
16715         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
16716         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
16717         ATTRIBUTE_DEPRECATED.
16718         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
16719         ATTRIBUTE_NORETURN.
16720         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16721         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16722         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16723         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16724         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
16725         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
16726         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
16727         ATTRIBUTE_SENTINEL.
16728         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
16729         ATTRIBUTE_RETURN_CHECK.
16730         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
16731         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
16732         ATTRIBUTE_NORETURN.
16733         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
16734         Reported by Paul Eggert.
16735
16736 2011-02-13  Bruno Haible  <bruno@clisp.org>
16737
16738         Don't interfere with a program's definition of __attribute__.
16739         * lib/argp.h (__attribute__): Remove definition.
16740         (_GL_ATTRIBUTE_FORMAT): New macro.
16741         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
16742         * lib/argp-fmtstream.h (__attribute__): Remove definition.
16743         (_GL_ATTRIBUTE_FORMAT): New macro.
16744         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
16745         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
16746         GCC 3 or newer.
16747         * lib/error.h (__attribute__): Remove definition.
16748         (_GL_ATTRIBUTE_FORMAT): New macro.
16749         (error, error_at_line): Use it.
16750         * lib/hash.h (__attribute__): Remove definition.
16751         (ATTRIBUTE_WUR): Update definition. Define always.
16752         * lib/openat.h (__attribute__): Remove definition.
16753         (ATTRIBUTE_NORETURN): Update definition. Define always.
16754         * lib/sigpipe-die.h (__attribute__): Remove definition.
16755         (ATTRIBUTE_NORETURN): Update definition. Define always.
16756         * lib/vasnprintf.h (__attribute__): Remove definition.
16757         (_GL_ATTRIBUTE_FORMAT): New macro.
16758         (asnprintf, vasnprintf): Use it.
16759         * lib/xalloc.h (__attribute__): Remove definition.
16760         (ATTRIBUTE_NORETURN): Update definition. Define always.
16761         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
16762         * lib/xmemdup0.h (__attribute__): Remove definition.
16763         (ATTRIBUTE_NORETURN): Update definition. Define always.
16764         * lib/xprintf.h (__attribute__): Remove definition.
16765         (_GL_ATTRIBUTE_FORMAT): New macro.
16766         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
16767         * lib/xstrtol.h (__attribute__): Remove definition.
16768         (ATTRIBUTE_NORETURN): Update definition. Define always.
16769         * lib/xvasprintf.h (__attribute__): Remove definition.
16770         (_GL_ATTRIBUTE_FORMAT): New macro.
16771         (xasprintf, xvasprintf): Use it.
16772         * tests/test-argmatch.c (__attribute__): Remove definition.
16773         (ATTRIBUTE_NORETURN): Update definition. Define always.
16774         * tests/test-exclude.c (__attribute__): Remove definition.
16775         (ATTRIBUTE_NORETURN): Update definition. Define always.
16776         Reported by Paul Eggert.
16777
16778 2011-02-13  Bruno Haible  <bruno@clisp.org>
16779
16780         mbrtowc: Add more tests for native Windows platforms.
16781         * tests/test-mbrtowc-w32-1.sh: New file.
16782         * tests/test-mbrtowc-w32-2.sh: New file.
16783         * tests/test-mbrtowc-w32-3.sh: New file.
16784         * tests/test-mbrtowc-w32-4.sh: New file.
16785         * tests/test-mbrtowc-w32-5.sh: New file.
16786         * tests/test-mbrtowc-w32.c: New file.
16787         * modules/mbrtowc-tests (Files): Add them.
16788         (Makefile.am): Arrange to run these tests.
16789         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
16790         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
16791
16792 2011-02-13  Bruno Haible  <bruno@clisp.org>
16793
16794         mbrtowc: Work around native Windows bug.
16795         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
16796         guess when no suitable locale for testing was found.
16797         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
16798
16799 2011-02-13  Bruno Haible  <bruno@clisp.org>
16800
16801         mbsinit: Work around mingw bug.
16802         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
16803         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
16804         Windows.
16805         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
16806
16807 2011-02-13  Bruno Haible  <bruno@clisp.org>
16808
16809         mbsinit: Don't crash for a NULL argument.
16810         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
16811         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
16812
16813 2011-02-13  Bruno Haible  <bruno@clisp.org>
16814
16815         Don't interfere with a program's definition of __attribute__.
16816         * lib/stdio.in.h (__attribute__): Remove definition.
16817         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
16818         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
16819         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
16820         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
16821         * lib/string.in.h (__attribute__): Remove definition.
16822         Reported by Paul Eggert.
16823
16824 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16825
16826         stdlib: don't get in the way of non-GCC __attribute__
16827         See thread starting at
16828         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
16829         Revert previous stdlib change, installing the following instead:
16830         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
16831         to get in the way of a non-GCC compiler that supports __attribute__.
16832         (_GL_ATTRIBUTE_RETURN): New macro.
16833         (_Exit): Use it instead of __attribute__.
16834
16835 2011-02-12  Bruno Haible  <bruno@clisp.org>
16836
16837         quotearg test: Avoid test failure on mingw.
16838         * tests/test-quotearg.sh: Convert the locale identifier from native
16839         Windows syntax to Unix syntax.
16840
16841 2011-02-12  Bruno Haible  <bruno@clisp.org>
16842
16843         setlocale: Prefer gnulib's override over libintl's override.
16844         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
16845         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
16846         GNULIB_defined_setlocale is set.
16847
16848 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16849
16850         stdlib: support non-GCC __attribute__
16851
16852         Fix a serious and tricky problem encountered when attempting to
16853         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
16854         5.5, but it crashed due to memory corruption on Solaris 10 with
16855         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
16856         bits that are otherwise zero.  This tagging is optional inside
16857         Emacs but is preferred and is used when __attribute__ ((__aligned
16858         (8))) works, as it does with both recent-enough GCC and with Sun C
16859         5.11.  However, Sun C 5.11 is not GCC and does not #define
16860         __GNUC__ and __GNUC_MINOR__.
16861
16862         When I added the getloadavg module to Emacs, it brought in
16863         stdlib.in.h, which contained this fragment:
16864
16865            #ifndef __attribute__
16866            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
16867            #  define __attribute__(Spec)   /* empty */
16868            # endif
16869            #endif
16870
16871         When files that include <stdlib.h> were compiled with Sun C 5.11,
16872         the above code disabled __attribute__ ((__aligned (8))), which
16873         caused variables to not be properly aligned, which eventually led
16874         to the pointer corruption mentioned above.  (This was a bit hard
16875         to diagnose, unfortunately.)
16876
16877         Several "#define __attribute__(X) /* empty */" code snippets need
16878         to be eradicated from Gnulib to work with non-GCC compilers that
16879         support __attribute__.  The Autoconf way to do this is to test for
16880         each kind of attribute that we want support for, and selectively
16881         enable that in source code.
16882
16883         Fix this problem just for stdlib.h, by adding a test for the
16884         __noreturn__ attribute, and change stdlib.in.h to use that test
16885         when needed.  This technique can be easily generalized to the
16886         other *.in.h files and attributes, and a similar technique can be
16887         used for *.h and *.c files.  This patch is enough to solve the
16888         problem for Emacs + getloadavg, and I thought I'd publish it for
16889         feedback before undertaking further, similar fixes in other
16890         modules.
16891
16892         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
16893         because it's not needed for stdlib.h.  It merely substitutes the
16894         value directly into stdlib.h.  We may well need to #define it, or
16895         similar symbols, for other modules, but it's nice to also have an
16896         option to not #define it for applications like Emacs that do not
16897         need it.
16898
16899         * lib/stdlib.in.h (__attribute__): Do not #define.
16900         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
16901         be defined only if the _Exit module is also used.
16902         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
16903         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
16904         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
16905         platforms.
16906         * modules/_Exit (Files): Add m4/attribute.m4.
16907         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
16908         * m4/attribute.m4: New file.
16909
16910 2011-02-12  Bruno Haible  <bruno@clisp.org>
16911
16912         wcsrtombs: Work around bug on native Windows.
16913         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
16914         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
16915         instead of len.
16916         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
16917
16918 2011-02-12  Bruno Haible  <bruno@clisp.org>
16919
16920         mbsrtowcs: Work around bug on native Windows.
16921         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
16922         against mingw bug.
16923         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
16924
16925 2011-02-12  Bruno Haible  <bruno@clisp.org>
16926
16927         Avoid setlocale bugs in tests.
16928         * modules/btowc (Dependencies): Add setlocale.
16929         * modules/c-strcase (Dependencies): Likewise.
16930         * modules/mbmemcasecmp (Dependencies): Likewise.
16931         * modules/mbmemcasecoll (Dependencies): Likewise.
16932         * modules/mbrtowc (Dependencies): Likewise.
16933         * modules/mbscasecmp (Dependencies): Likewise.
16934         * modules/mbscasestr (Dependencies): Likewise.
16935         * modules/mbschr (Dependencies): Likewise.
16936         * modules/mbscspn (Dependencies): Likewise.
16937         * modules/mbsinit (Dependencies): Likewise.
16938         * modules/mbsncasecmp (Dependencies): Likewise.
16939         * modules/mbsnrtowcs (Dependencies): Likewise.
16940         * modules/mbspbrk (Dependencies): Likewise.
16941         * modules/mbspcasecmp (Dependencies): Likewise.
16942         * modules/mbsrchr (Dependencies): Likewise.
16943         * modules/mbsrtowcs (Dependencies): Likewise.
16944         * modules/mbsspn (Dependencies): Likewise.
16945         * modules/mbsstr (Dependencies): Likewise.
16946         * modules/nl_langinfo (Dependencies): Likewise.
16947         * modules/quotearg (Dependencies): Likewise.
16948         * modules/unicase/locale-language (Dependencies): Likewise.
16949         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
16950         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
16951         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
16952         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
16953         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
16954         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
16955         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
16956         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
16957         * modules/vasnprintf-posix (Dependencies): Likewise.
16958         * modules/wcrtomb (Dependencies): Likewise.
16959         * modules/wcsnrtombs (Dependencies): Likewise.
16960         * modules/wcsrtombs (Dependencies): Likewise.
16961
16962 2011-02-12  Bruno Haible  <bruno@clisp.org>
16963
16964         setlocale: Workaround native Windows bug.
16965         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
16966         succeeds but sets LC_CTYPE to "C", report a failure.
16967         * tests/test-setlocale2.sh: New file.
16968         * tests/test-setlocale2.c: New file.
16969         * modules/setlocale-tests (Files): Add the new files.
16970         (Makefile.am): Enable test-setlocale2.sh test.
16971         * doc/posix-functions/setlocale.texi: Mention workaround.
16972
16973 2011-02-11  Bruno Haible  <bruno@clisp.org>
16974
16975         Tests for module 'setlocale'.
16976         * modules/setlocale-tests: New file.
16977         * tests/test-setlocale1.sh: New file.
16978         * tests/test-setlocale1.c: New file.
16979
16980         New module 'setlocale'.
16981         * lib/locale.in.h (setlocale): New declaration.
16982         * lib/setlocale.c: New file, based on
16983         gettext/gettext-runtime/intl/setlocale.c.
16984         * m4/setlocale.m4: New file.
16985         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
16986         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
16987         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
16988         REPLACE_SETLOCALE.
16989         * modules/setlocale: New file.
16990         * tests/test-locale-c++.cc: Test the declaration of setlocale.
16991         * doc/posix-functions/setlocale.texi: Mention the new module.
16992
16993 2011-02-11  Bruno Haible  <bruno@clisp.org>
16994
16995         Prepare for locale dependent tests on mingw.
16996         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
16997         because it has the wrong locale encoding.
16998         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
16999         French_France.1252 instead of "fr".
17000         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
17001         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
17002         because it has the wrong locale encoding.
17003         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
17004         native Windows, try Turkish_Turkey.65001.
17005         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
17006         Chinese_China.54936.
17007
17008         Prepare for locale dependent tests on mingw.
17009         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
17010         differently.
17011         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
17012         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
17013         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
17014         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
17015
17016 2011-02-11  Eric Blake  <eblake@redhat.com>
17017
17018         strptime: avoid compiler warnings
17019         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
17020         compiler warnings about dead code.
17021         Reported by Daniel P. Berrange.
17022
17023 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
17024
17025         doc: update users.txt
17026         * users.txt: Add rcs.
17027
17028 2011-02-10  John W. Eaton  <jwe@gnu.org>
17029
17030         doc: update users.txt
17031         * users.txt: Add octave.
17032
17033 2011-02-10  Jim Meyering  <meyering@redhat.com>
17034
17035         doc: update users.txt
17036         * users.txt: Add iwhd.
17037
17038 2011-02-09  Bruno Haible  <bruno@clisp.org>
17039
17040         gnulib-tool: Make copyright notice adjustment more robust.
17041         * gnulib-tool (func_import): In sed_transform_main_lib_file,
17042         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
17043         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
17044         License".
17045         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
17046
17047 2011-02-06  Bruno Haible  <bruno@clisp.org>
17048
17049         New module 'towctrans'.
17050         * modules/towctrans: New file.
17051         * lib/wctype.in.h (towctrans): New declaration.
17052         * lib/towctrans.c: New file.
17053         * lib/towctrans-impl.h: New file.
17054         * m4/towctrans.m4: New file.
17055         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
17056         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
17057         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
17058         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
17059         * doc/posix-functions/towctrans.texi: Mention the new module.
17060
17061 2011-02-06  Bruno Haible  <bruno@clisp.org>
17062
17063         New module 'wctrans'.
17064         * modules/wctrans: New file.
17065         * lib/wctype.in.h (wctrans): New declaration.
17066         * lib/wctrans.c: New file.
17067         * lib/wctrans-impl.h: New file.
17068         * m4/wctrans.m4: New file.
17069         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
17070         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
17071         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
17072         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
17073         * doc/posix-functions/wctrans.texi: Mention the new module.
17074
17075 2011-02-06  Bruno Haible  <bruno@clisp.org>
17076
17077         New module 'iswctype'.
17078         * modules/iswctype: New file.
17079         * lib/wctype.in.h (iswctype): New declaration.
17080         * lib/iswctype.c: New file.
17081         * lib/iswctype-impl.h: New file.
17082         * m4/iswctype.m4: New file.
17083         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
17084         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
17085         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
17086         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
17087         * doc/posix-functions/iswctype.texi: Mention the new module and the
17088         HP-UX 11.00 problem.
17089
17090 2011-02-06  Bruno Haible  <bruno@clisp.org>
17091
17092         New module 'wctype'.
17093         * modules/wctype: Change to represent the wctype() substitute.
17094         * lib/wctype.in.h (wctype): New declaration.
17095         * lib/wctype.c: New file.
17096         * lib/wctype-impl.h: New file.
17097         * m4/wctype.m4: New file.
17098         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
17099         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
17100         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
17101         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
17102         * doc/posix-functions/wctype.texi: Mention the new module and the
17103         HP-UX 11.00 problem.
17104
17105 2011-02-06  Bruno Haible  <bruno@clisp.org>
17106
17107         wctype-h: Ensure wctype_t and wctrans_t are defined.
17108         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
17109         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
17110         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
17111         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
17112         HAVE_WCTRANS_T.
17113         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
17114
17115 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
17116
17117         flock: fix license typo
17118
17119         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
17120         omitted.
17121
17122 2011-02-08  Bruno Haible  <bruno@clisp.org>
17123
17124         Split large sed scripts, for HP-UX sed.
17125         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
17126         to avoid HP-UX limit of 99 commands, in the near future.
17127         * modules/stdlib (Makefile.am): Likewise.
17128         * modules/unistd (Makefile.am): Likewise.
17129         * modules/wchar (Makefile.am): Likewise.
17130         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17131         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
17132         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
17133
17134 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
17135             Bruno Haible  <bruno@clisp.org>
17136
17137         stdlib: improve random_r modularization
17138         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
17139         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
17140         you also need the random_r module to get this material right.
17141         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
17142         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
17143         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
17144
17145 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
17146
17147         stdlib: don't depend on stdint
17148         * lib/stdlib.in.h: Don't include <stdint.h> merely because
17149         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
17150         be independent of whether stdint.h is needed.
17151         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
17152         here, instead of ...
17153         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
17154         struct random_data should be using the random_r module, not just
17155         the stdlib module (which wouldn't make sense: what package needs
17156         just struct random_data without also needing random_r?).
17157         * modules/stdlib (Depends-on): Remove stdint.
17158
17159         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
17160         See the thread rooted at
17161         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
17162         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
17163         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
17164         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
17165         __VMS)); previously it was always included (via fcntl--.h).
17166         (getloadavg): Do not use c_strtod.  Instead, approximate it by
17167         hand; this is good enough for load averages.  Also, do not use
17168         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
17169         flags directly if available and don't bother otherwise.  (Packages
17170         that need the extra reliability should use the modules that define
17171         these flags on older platforms that lack them.)
17172         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
17173         fcntl-safer.
17174
17175 2011-02-08  Jim Meyering  <meyering@redhat.com>
17176
17177         di-set.h, ino-map.h: add multiple-inclusion guard
17178         Technically, the guard is required only for ino-map.h, due to its
17179         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
17180         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
17181         * lib/ino-map.h: Likewise.
17182
17183 2011-02-06  Bruno Haible  <bruno@clisp.org>
17184
17185         iswblank: Ensure declaration on glibc systems.
17186         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
17187         * modules/iswblank (Dependencies): Add 'extensions'.
17188         * doc/posix-functions/iswblank.texi: Document the glibc problem.
17189
17190 2011-02-06  Bruno Haible  <bruno@clisp.org>
17191
17192         New module 'iswblank'.
17193         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
17194         * modules/iswblank: New file.
17195         * modules/wctype-h (Files): Remove lib/iswblank.c.
17196         (Makefile.am): Substitute GNULIB_ISWBLANK.
17197         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
17198         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
17199         (gl_WCTYPE_H_DEFAULTS): New macro.
17200         (gl_WCTYPE_H): Require it. Remove iswblank related code.
17201         * modules/iswblank-tests: New file.
17202         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
17203         * tests/test-wctype-h.c (main): Remove iswblank tests.
17204         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
17205         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
17206         of 'wctype-h'.
17207         * NEWS: Mention the change.
17208         * modules/mbchar (Depends-on): Add iswblank.
17209
17210 2011-02-08  Bruno Haible  <bruno@clisp.org>
17211
17212         di-set tests: Refactor.
17213         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
17214         unnecessary includes.
17215         (ASSERT): Remove macro.
17216         (main): Make C90 compliant by avoiding variable declaration after
17217         statement.
17218         * modules/di-set-tests (Files): Add tests/macros.h.
17219
17220 2011-02-08  Bruno Haible  <bruno@clisp.org>
17221
17222         ino-map tests: Refactor.
17223         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
17224         unnecessary includes.
17225         (ASSERT): Remove macro.
17226         (main): Make C90 compliant by avoiding variable declaration after
17227         statement.
17228         * modules/ino-map-tests (Files): Add tests/macros.h.
17229
17230 2011-02-08  Jim Meyering  <meyering@redhat.com>
17231
17232         di-set: add "const" to a cast
17233         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
17234         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
17235
17236 2011-02-06  Bruno Haible  <bruno@clisp.org>
17237
17238         Rename module 'wctype' to 'wctype-h'.
17239         * modules/wctype-h: Renamed from modules/wctype.
17240         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
17241         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
17242         (Files, Depends-on, Makefile.am): Update.
17243         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
17244         (Files, Makefile.am): Update.
17245         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
17246         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
17247         * doc/posix-headers/wctype.texi: Update.
17248         * doc/posix-functions/iswalnum.texi: Update.
17249         * doc/posix-functions/iswalpha.texi: Update.
17250         * doc/posix-functions/iswblank.texi: Update.
17251         * doc/posix-functions/iswcntrl.texi: Update.
17252         * doc/posix-functions/iswdigit.texi: Update.
17253         * doc/posix-functions/iswgraph.texi: Update.
17254         * doc/posix-functions/iswlower.texi: Update.
17255         * doc/posix-functions/iswprint.texi: Update.
17256         * doc/posix-functions/iswpunct.texi: Update.
17257         * doc/posix-functions/iswspace.texi: Update.
17258         * doc/posix-functions/iswupper.texi: Update.
17259         * doc/posix-functions/iswxdigit.texi: Update.
17260         * doc/posix-functions/towlower.texi: Update.
17261         * doc/posix-functions/towupper.texi: Update.
17262         * NEWS: Mention the change.
17263         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
17264         * modules/mbchar (Dependencies): Likewise.
17265         * modules/mbswidth (Dependencies): Likewise.
17266         * modules/quotearg (Dependencies): Likewise.
17267         * modules/regex (Dependencies): Likewise.
17268         * modules/wcscasecmp (Dependencies): Likewise.
17269         * modules/wcsncasecmp (Dependencies): Likewise.
17270         * modules/wcwidth (Dependencies): Likewise.
17271
17272 2011-02-06  Bruno Haible  <bruno@clisp.org>
17273
17274         New module 'wcswidth'.
17275         * modules/wcswidth: New file.
17276         * lib/wchar.in.h (wcswidth): New declaration.
17277         * lib/wcswidth.c: New file.
17278         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
17279         * m4/wcswidth.m4: New file.
17280         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
17281         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
17282         REPLACE_WCSWIDTH.
17283         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
17284         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
17285         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
17286         * doc/posix-functions/wcswidth.texi: Mention the new module.
17287
17288 2011-02-06  Bruno Haible  <bruno@clisp.org>
17289
17290         New module 'wcstok'.
17291         * modules/wcstok: New file.
17292         * lib/wchar.in.h (wcstok): New declaration.
17293         * lib/wcstok.c: New file.
17294         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
17295         * m4/wcstok.m4: New file.
17296         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
17297         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
17298         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
17299         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
17300         * doc/posix-functions/wcstok.texi: Mention the new module.
17301
17302 2011-02-06  Bruno Haible  <bruno@clisp.org>
17303
17304         New module 'wcsstr'.
17305         * modules/wcsstr: New file.
17306         * lib/wchar.in.h (wcsstr): New declaration.
17307         * lib/wcsstr.c: New file.
17308         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
17309         * m4/wcsstr.m4: New file.
17310         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
17311         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
17312         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
17313         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
17314         * doc/posix-functions/wcsstr.texi: Mention the new module.
17315
17316 2011-02-06  Bruno Haible  <bruno@clisp.org>
17317
17318         New module 'wcspbrk'.
17319         * modules/wcspbrk: New file.
17320         * lib/wchar.in.h (wcspbrk): New declaration.
17321         * lib/wcspbrk.c: New file.
17322         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
17323         * m4/wcspbrk.m4: New file.
17324         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
17325         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
17326         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
17327         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
17328         * doc/posix-functions/wcspbrk.texi: Mention the new module.
17329
17330 2011-02-06  Bruno Haible  <bruno@clisp.org>
17331
17332         New module 'wcsspn'.
17333         * modules/wcsspn: New file.
17334         * lib/wchar.in.h (wcsspn): New declaration.
17335         * lib/wcsspn.c: New file.
17336         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
17337         * m4/wcsspn.m4: New file.
17338         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
17339         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
17340         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
17341         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
17342         * doc/posix-functions/wcsspn.texi: Mention the new module.
17343
17344 2011-02-06  Bruno Haible  <bruno@clisp.org>
17345
17346         New module 'wcscspn'.
17347         * modules/wcscspn: New file.
17348         * lib/wchar.in.h (wcscspn): New declaration.
17349         * lib/wcscspn.c: New file.
17350         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
17351         * m4/wcscspn.m4: New file.
17352         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
17353         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
17354         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
17355         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
17356         * doc/posix-functions/wcscspn.texi: Mention the new module.
17357
17358 2011-02-06  Bruno Haible  <bruno@clisp.org>
17359
17360         New module 'wcsrchr'.
17361         * modules/wcsrchr: New file.
17362         * lib/wchar.in.h (wcsrchr): New declaration.
17363         * lib/wcsrchr.c: New file.
17364         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
17365         * m4/wcsrchr.m4: New file.
17366         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
17367         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
17368         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
17369         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
17370         * doc/posix-functions/wcsrchr.texi: Mention the new module.
17371
17372 2011-02-06  Bruno Haible  <bruno@clisp.org>
17373
17374         New module 'wcschr'.
17375         * modules/wcschr: New file.
17376         * lib/wchar.in.h (wcschr): New declaration.
17377         * lib/wcschr.c: New file.
17378         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
17379         * m4/wcschr.m4: New file.
17380         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
17381         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
17382         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
17383         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
17384         * doc/posix-functions/wcschr.texi: Mention the new module.
17385
17386 2011-02-06  Bruno Haible  <bruno@clisp.org>
17387
17388         New module 'wcsdup'.
17389         * modules/wcsdup: New file.
17390         * lib/wchar.in.h (wcsdup): New declaration.
17391         * lib/wcsdup.c: New file.
17392         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
17393         * m4/wcsdup.m4: New file.
17394         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
17395         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
17396         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
17397         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
17398         * doc/posix-functions/wcsdup.texi: Mention the new module.
17399
17400 2011-02-06  Bruno Haible  <bruno@clisp.org>
17401
17402         New module 'wcsxfrm'.
17403         * modules/wcsxfrm: New file.
17404         * lib/wchar.in.h (wcsxfrm): New declaration.
17405         * lib/wcsxfrm.c: New file.
17406         * lib/wcsxfrm-impl.h: New file.
17407         * m4/wcsxfrm.m4: New file.
17408         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
17409         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
17410         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
17411         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
17412         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
17413
17414 2011-02-06  Bruno Haible  <bruno@clisp.org>
17415
17416         New module 'wcscoll'.
17417         * modules/wcscoll: New file.
17418         * lib/wchar.in.h (wcscoll): New declaration.
17419         * lib/wcscoll.c: New file.
17420         * lib/wcscoll-impl.h: New file.
17421         * m4/wcscoll.m4: New file.
17422         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
17423         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
17424         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
17425         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
17426         * doc/posix-functions/wcscoll.texi: Mention the new module.
17427
17428 2011-02-06  Bruno Haible  <bruno@clisp.org>
17429
17430         New module 'wcsncasecmp'.
17431         * modules/wcsncasecmp: New file.
17432         * lib/wchar.in.h (wcsncasecmp): New declaration.
17433         * lib/wcsncasecmp.c: New file.
17434         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
17435         * m4/wcsncasecmp.m4: New file.
17436         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
17437         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
17438         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
17439         HAVE_WCSNCASECMP.
17440         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
17441         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
17442
17443 2011-02-06  Bruno Haible  <bruno@clisp.org>
17444
17445         New module 'wcscasecmp'.
17446         * modules/wcscasecmp: New file.
17447         * lib/wchar.in.h (wcscasecmp): New declaration.
17448         * lib/wcscasecmp.c: New file.
17449         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
17450         * m4/wcscasecmp.m4: New file.
17451         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
17452         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
17453         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
17454         HAVE_WCSCASECMP.
17455         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
17456         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
17457
17458 2011-02-05  Bruno Haible  <bruno@clisp.org>
17459
17460         New module 'wcsncmp'.
17461         * modules/wcsncmp: New file.
17462         * lib/wchar.in.h (wcsncmp): New declaration.
17463         * lib/wcsncmp.c: New file.
17464         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
17465         * m4/wcsncmp.m4: New file.
17466         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
17467         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
17468         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
17469         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
17470         * doc/posix-functions/wcsncmp.texi: Mention the new module.
17471
17472 2011-02-05  Bruno Haible  <bruno@clisp.org>
17473
17474         New module 'wcscmp'.
17475         * modules/wcscmp: New file.
17476         * lib/wchar.in.h (wcscmp): New declaration.
17477         * lib/wcscmp.c: New file.
17478         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
17479         * m4/wcscmp.m4: New file.
17480         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
17481         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
17482         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
17483         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
17484         * doc/posix-functions/wcscmp.texi: Mention the new module.
17485
17486 2011-02-05  Bruno Haible  <bruno@clisp.org>
17487
17488         New module 'wcsncat'.
17489         * modules/wcsncat: New file.
17490         * lib/wchar.in.h (wcsncat): New declaration.
17491         * lib/wcsncat.c: New file.
17492         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
17493         * m4/wcsncat.m4: New file.
17494         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
17495         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
17496         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
17497         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
17498         * doc/posix-functions/wcsncat.texi: Mention the new module.
17499
17500 2011-02-05  Bruno Haible  <bruno@clisp.org>
17501
17502         New module 'wcscat'.
17503         * modules/wcscat: New file.
17504         * lib/wchar.in.h (wcscat): New declaration.
17505         * lib/wcscat.c: New file.
17506         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
17507         * m4/wcscat.m4: New file.
17508         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
17509         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
17510         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
17511         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
17512         * doc/posix-functions/wcscat.texi: Mention the new module.
17513
17514 2011-02-05  Bruno Haible  <bruno@clisp.org>
17515
17516         New module 'wcpncpy'.
17517         * modules/wcpncpy: New file.
17518         * lib/wchar.in.h (wcpncpy): New declaration.
17519         * lib/wcpncpy.c: New file.
17520         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
17521         * m4/wcpncpy.m4: New file.
17522         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
17523         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
17524         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
17525         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
17526         * doc/posix-functions/wcpncpy.texi: Mention the new module.
17527
17528 2011-02-05  Bruno Haible  <bruno@clisp.org>
17529
17530         New module 'wcsncpy'.
17531         * modules/wcsncpy: New file.
17532         * lib/wchar.in.h (wcsncpy): New declaration.
17533         * lib/wcsncpy.c: New file.
17534         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
17535         * m4/wcsncpy.m4: New file.
17536         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
17537         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
17538         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
17539         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
17540         * doc/posix-functions/wcsncpy.texi: Mention the new module.
17541
17542 2011-02-05  Bruno Haible  <bruno@clisp.org>
17543
17544         New module 'wcpcpy'.
17545         * modules/wcpcpy: New file.
17546         * lib/wchar.in.h (wcpcpy): New declaration.
17547         * lib/wcpcpy.c: New file.
17548         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
17549         * m4/wcpcpy.m4: New file.
17550         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
17551         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
17552         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
17553         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
17554         * doc/posix-functions/wcpcpy.texi: Mention the new module.
17555
17556 2011-02-05  Bruno Haible  <bruno@clisp.org>
17557
17558         New module 'wcscpy'.
17559         * modules/wcscpy: New file.
17560         * lib/wchar.in.h (wcscpy): New declaration.
17561         * lib/wcscpy.c: New file.
17562         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
17563         * m4/wcscpy.m4: New file.
17564         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
17565         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
17566         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
17567         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
17568         * doc/posix-functions/wcscpy.texi: Mention the new module.
17569
17570 2011-02-05  Bruno Haible  <bruno@clisp.org>
17571
17572         New module 'wcsnlen'.
17573         * modules/wcsnlen: New file.
17574         * lib/wchar.in.h (wcsnlen): New declaration.
17575         * lib/wcsnlen.c: New file.
17576         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
17577         * m4/wcsnlen.m4: New file.
17578         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
17579         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
17580         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
17581         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
17582         * doc/posix-functions/wcsnlen.texi: Mention the new module.
17583
17584 2011-02-05  Bruno Haible  <bruno@clisp.org>
17585
17586         New module 'wcslen'.
17587         * modules/wcslen: New file.
17588         * lib/wchar.in.h (wcslen): New declaration.
17589         * lib/wcslen.c: New file.
17590         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
17591         * m4/wcslen.m4: New file.
17592         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
17593         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
17594         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
17595         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
17596         * doc/posix-functions/wcslen.texi: Mention the new module.
17597
17598 2011-02-05  Bruno Haible  <bruno@clisp.org>
17599
17600         New module 'wmemset'.
17601         * modules/wmemset: New file.
17602         * lib/wchar.in.h (wmemset): New declaration.
17603         * lib/wmemset.c: New file.
17604         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
17605         * m4/wmemset.m4: New file.
17606         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
17607         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
17608         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
17609         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
17610         * doc/posix-functions/wmemset.texi: Mention the new module.
17611
17612 2011-02-05  Bruno Haible  <bruno@clisp.org>
17613
17614         New module 'wmemmove'.
17615         * modules/wmemmove: New file.
17616         * lib/wchar.in.h (wmemmove): New declaration.
17617         * lib/wmemmove.c: New file.
17618         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
17619         * m4/wmemmove.m4: New file.
17620         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
17621         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
17622         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
17623         HAVE_WMEMMOVE.
17624         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
17625         * doc/posix-functions/wmemmove.texi: Mention the new module.
17626
17627 2011-02-05  Bruno Haible  <bruno@clisp.org>
17628
17629         New module 'wmemcpy'.
17630         * modules/wmemcpy: New file.
17631         * lib/wchar.in.h (wmemcpy): New declaration.
17632         * lib/wmemcpy.c: New file.
17633         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
17634         * m4/wmemcpy.m4: New file.
17635         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
17636         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
17637         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
17638         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
17639         * doc/posix-functions/wmemcpy.texi: Mention the new module.
17640
17641 2011-02-05  Bruno Haible  <bruno@clisp.org>
17642
17643         New module 'wmemcmp'.
17644         * modules/wmemcmp: New file.
17645         * lib/wchar.in.h (wmemcmp): New declaration.
17646         * lib/wmemcmp.c: New file.
17647         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
17648         * m4/wmemcmp.m4: New file.
17649         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
17650         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
17651         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
17652         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
17653         * doc/posix-functions/wmemcmp.texi: Mention the new module.
17654
17655 2011-02-07  Jim Meyering  <meyering@redhat.com>
17656
17657         di-set, ino-map: new modules, from coreutils
17658         * lib/di-set.c: New file.
17659         * lib/di-set.h: Likewise.
17660         * lib/ino-map.c: Likewise.
17661         * lib/ino-map.h: Likewise.
17662         * modules/di-set: Likewise.
17663         * modules/di-set-tests: Likewise.
17664         * modules/ino-map: Likewise.
17665         * modules/ino-map-tests: Likewise.
17666         * tests/test-di-set.c: Likewise.
17667         * tests/test-ino-map.c: Likewise.
17668
17669 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
17670
17671         getloadavg: merge minor changes from Emacs
17672
17673         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
17674         (getloadavg): Use memset, not bzero.
17675
17676         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
17677         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
17678         clash (bug#86).
17679
17680 2010-11-14  Bruno Haible  <bruno@clisp.org>
17681
17682         Allow multiple gnulib generated replacements to coexist.
17683         * lib/getopt.in.h (struct option): Avoid identical redefinition.
17684         * lib/inttypes.in.h (imaxdiv_t): Likewise.
17685         * lib/langinfo.in.h (nl_item): Likewise.
17686         * lib/math.in.h (_NaN, NAN): Likewise.
17687         * lib/netdb.in.h (struct addrinfo): Likewise.
17688         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
17689         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
17690         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
17691         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
17692         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
17693         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
17694         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
17695         pthread_mutexattr_init, pthread_mutexattr_settype,
17696         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
17697         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
17698         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
17699         pthread_spin_trylock, pthread_spin_unlock): Likewise.
17700         * lib/sched.in.h (struct sched_param): Likewise.
17701         * lib/se-selinux.in.h (security_class_t, security_context_t,
17702         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
17703         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
17704         lsetfilecon, fsetfilecon, security_check_context,
17705         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
17706         Likewise.
17707         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
17708         Likewise.
17709         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
17710         _gl_function_taking_int_returning_void_t, union sigval,
17711         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
17712         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
17713         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
17714         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
17715         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
17716         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
17717         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
17718         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
17719         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
17720         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
17721         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
17722         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
17723         socklen_t, rpl_fd_isset): Likewise.
17724         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
17725         * lib/sys_time.in.h (struct timeval): Likewise.
17726         * lib/sys_times.in.h (struct tms): Likewise.
17727         * lib/sys_utsname.in.h (struct utsname):
17728         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
17729         * lib/unistd.in.h (getpagesize): Likewise.
17730         * lib/wchar.in.h (mbstate_t): Likewise.
17731         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
17732         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
17733         towlower, towupper): Likewise.
17734         Reported by Sam Steingold <sds@gnu.org>.
17735
17736 2011-02-05  Eric Blake  <eblake@redhat.com>
17737
17738         unsetenv: work around Haiku issues
17739         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
17740         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
17741
17742 2010-12-30  Bruce Korb  <bkorb@gnu.org>
17743
17744         libposix: avoid calling error() within libposix
17745         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
17746         is defined.
17747
17748 2011-02-05  Eric Blake  <eblake@redhat.com>
17749
17750         strerror_r-posix: port to cygwin
17751         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
17752         implementation.
17753         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
17754         * tests/test-strerror_r.c (main): Fix test.
17755         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
17756         issue.
17757
17758 2011-02-05  Bruno Haible  <bruno@clisp.org>
17759
17760         New module 'wmemchr'.
17761         * modules/wmemchr: New file.
17762         * lib/wchar.in.h (wmemchr): New declaration.
17763         * lib/wmemchr.c: New file.
17764         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
17765         * m4/wmemchr.m4: New file.
17766         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
17767         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
17768         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
17769         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
17770         * doc/posix-functions/wmemchr.texi: Mention the new module.
17771
17772 2011-02-04  Eric Blake  <eblake@redhat.com>
17773
17774         fdopendir: detect FreeBSD bug
17775         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
17776         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
17777
17778 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
17779
17780         stdbool: do not define HAVE_STDBOOL_H
17781         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
17782         AC_HEADER_STDBOOL.  All uses changed.  Do not define
17783         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
17784         imported from the latest Autoconf git.  It was motivated by Emacs,
17785         which uses gnulib but does not need HAVE_STDBOOL_H.
17786
17787 2011-02-04  Bruno Haible  <bruno@clisp.org>
17788
17789         wcsnrtombs: Prepare for new module wwcsnrtombs.
17790         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
17791         * lib/wcsnrtombs.c: Include it.
17792         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
17793
17794         wcsrtombs: Prepare for new module wwcsrtombs.
17795         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
17796         * lib/wcsrtombs.c: Include it.
17797         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
17798
17799         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
17800         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
17801         * lib/mbsnrtowcs.c: Include it.
17802         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
17803
17804         mbsrtowcs: Prepare for new module mbsrtowwcs.
17805         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
17806         * lib/mbsrtowcs.c: Include it.
17807         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
17808
17809 2011-02-04  Bruno Haible  <bruno@clisp.org>
17810
17811         vasnprintf: Reduce use of malloc for small format strings.
17812         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
17813         (arguments): Add room for the first 7 arguments.
17814         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
17815         (char_directives, u8_directives, u16_directives, u32_directives): Add
17816         room for the first 7 directives.
17817         * lib/printf-parse.c: Include <string.h>.
17818         (PRINTF_PARSE): Change memory handling code so that it uses the first
17819         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
17820         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
17821         Reported by Pádraig Brady <P@draigbrady.com>.
17822
17823 2011-01-31  Eric Blake  <eblake@redhat.com>
17824
17825         dup2: work around Haiku bug
17826         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
17827         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
17828         * doc/posix-functions/dup2.texi (dup2): Document the bug.
17829         * tests/test-dup2.c (main): Enhance test.
17830
17831 2011-01-31  Simon Josefsson  <simon@josefsson.org>
17832
17833         doc: off_t is not available in eglibc 2.11.2 stdio.h.
17834         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
17835         declared by eglibc 2.11.2.
17836         * lib/stdio.in.h: Likewise.
17837
17838 2011-01-31  Eric Blake  <eblake@redhat.com>
17839
17840         ignore-value: add missing test dependency
17841         * tests/test-ignore-value.c: Revert previous change; stdio.h
17842         provides off_t.
17843         * modules/ignore-value-tests (Depends-on): Add missing dependency.
17844
17845 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
17846
17847         mktime: clarify long_int width checking
17848         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
17849         the top level, to make it clearer that the assumption about
17850         long_int width is being checked.  See
17851         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
17852
17853 2011-01-30  Simon Josefsson  <simon@josefsson.org>
17854
17855         ignore-value: Fix self-test.
17856         * tests/test-ignore-value.c: Include sys/types.h for off_t.
17857
17858 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
17859
17860         TYPE_MAXIMUM: avoid theoretically undefined behavior
17861         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
17862         negative number, which the C Standard says has undefined behavior.
17863         In practice this is not a problem, but might as well do it by the book.
17864         Reported by Rich Felker and Eric Blake; see
17865         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
17866         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
17867         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
17868         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17869         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
17870         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17871         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
17872
17873         mktime: #undef mktime before #defining it
17874         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
17875
17876         mktime: systematically normalize tm_isdst comparisons
17877         * lib/mktime.c (isdst_differ): New function.
17878         (__mktime_internal): Use it systematically for all isdst comparisons.
17879         This completes the fix for libc BZ #6723, and removes the need for
17880         normalizing tm_isdst.  See
17881         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
17882         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
17883
17884         mktime: fix some integer overflow issues and sidestep the rest
17885
17886         This was prompted by a bug report by Benjamin Lindner for MinGW
17887         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
17888         His bug is due to signed integer overflow (0 - INT_MIN), and I
17889         I scanned through mktime.c looking for other integer overflow
17890         problems, fixing all the bugs I found.
17891
17892         Although the C Standard says the resulting code is still not safe
17893         in the presence of integer overflow, in practice it should be good
17894         enough for all real-world two's-complement implementations, except
17895         for debugging environments that deliberately trap on integer
17896         overflow (e.g., gcc -ftrapv).
17897
17898         * lib/mktime.c (WRAPV): New macro.
17899         (SHR): Also check that long_int and time_t shift right in the
17900         usual way, before using the fast-but-unportable method.
17901         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
17902         used.  The code already assumed two's complement, so there's
17903         no need to test for alternatives.  All uses removed.
17904         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
17905         the C standard.  Problem reported by Rich Felker in
17906         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
17907         (twos_complement_arithmetic): Also check long_int and time_t.
17908         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
17909         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
17910         (__mktime_internal): Avoid integer overflow with unary subtraction
17911         in two instances where -1 - X is an adequate replacement for -X,
17912         since the calculations are approximate.
17913
17914 2011-01-29  Eric Blake  <eblake@redhat.com>
17915
17916         mktime: avoid infinite loop
17917         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
17918         type; behavior is still undefined but portable to all known targets.
17919         Reported by Rich Felker.
17920
17921 2011-01-29  Simon Josefsson  <simon@josefsson.org>
17922
17923         rename, unlink, same-inode: Relicense.
17924         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
17925         * modules/unlink (License): Likewise.
17926         * modules/same-inode (License): Likewise.
17927
17928 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
17929
17930         mktime: avoid problems on NetBSD 5 / i386
17931         * lib/mktime.c (long_int): New type.  This works around a problem
17932         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
17933         but time_t is 64 bits, and where I expect the existing code is
17934         wrong in some cases.
17935         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
17936         (ydhms_diff): Bring back the compile-time check for wide-enough
17937         year and yday.
17938
17939         mktime: fix misspelling in comment
17940         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
17941         This merges all recent glibc changes of importance.
17942
17943 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17944
17945         move-if-change: cope with concurrent mv of identical file.
17946         * build-aux/move-if-change (CMPPROG): Accept environment
17947         variable as an override for `cmp'.
17948         (usage): Document CMPPROG.
17949         Adjust comparison to drop stdout.  Cope with failure of mv if
17950         the target file exists and is identical to the source, for
17951         parallel builds.
17952         Report from H.J. Lu against binutils in PR binutils/12283.
17953
17954 2011-01-28  Bruce Korb  <bkorb@gnu.org>
17955
17956         * users.txt: Mention sharutils.
17957
17958 2011-01-28  Simon Josefsson  <simon@josefsson.org>
17959
17960         * users.txt: Mention OATH Toolkit.
17961
17962 2011-01-27  Bruno Haible  <bruno@clisp.org>
17963
17964         Prepare for supporting FreeBSD 10.
17965         * build-aux/config.libpath: Remove handling of freebsd1*.
17966
17967 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
17968
17969         Prepare for supporting FreeBSD 10.
17970         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
17971         match FreeBSD 10.0.
17972
17973 2011-01-27  Bruno Haible  <bruno@clisp.org>
17974
17975         vma-iter, get-rusage-as: Add OpenBSD support.
17976         * modules/vma-iter (configure.ac): Test for mquery.
17977         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
17978         * lib/vma-iter.c: Include <sys/mman.h>.
17979         (vma_iterate): Add an implementation based on mquery().
17980         * lib/resource-ext.h (get_rusage_as): Update comments.
17981         * lib/get-rusage-as.c: Likewise.
17982         * lib/get-rusage-data.c: Likewise.
17983
17984 2011-01-26  Karl Berry  <karl@gnu.org>
17985
17986         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
17987         variables to make it easier to override the makeinfo program used.
17988
17989 2011-01-26  Eric Blake  <eblake@redhat.com>
17990
17991         fcntl: work around Haiku F_DUPFD bugs
17992         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
17993         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
17994         cloexec bit on duplication.
17995         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
17996
17997 2011-01-26  Bruno Haible  <bruno@clisp.org>
17998
17999         Enable memory leak tests on AIX.
18000         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
18001         * tests/test-fprintf-posix3.c (main): Likewise.
18002
18003 2011-01-26  Bruno Haible  <bruno@clisp.org>
18004
18005         Tests for module 'get-rusage-data'.
18006         * modules/get-rusage-data-tests: New file.
18007         * tests/test-get-rusage-data.c: New file.
18008
18009         New module 'get-rusage-data'.
18010         * lib/resource-ext.h (get_rusage_data): New declaration.
18011         * lib/get-rusage-data.c: New file.
18012         * modules/get-rusage-data: New file.
18013
18014 2011-01-25  Bruno Haible  <bruno@clisp.org>
18015
18016         get-rusage-as: Allow for easier testing.
18017         * lib/resource-ext.h (get_rusage_as): Add comment.
18018         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
18019         (main): New function for interactive testing.
18020
18021 2011-01-25  Bruno Haible  <bruno@clisp.org>
18022
18023         vma-iter: Treat Haiku like BeOS.
18024         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
18025         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
18026
18027 2011-01-25  Eric Blake  <eblake@redhat.com>
18028
18029         c-stack: fix regression on cygwin when libsigsegv is present
18030         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
18031
18032 2011-01-24  Bruno Haible  <bruno@clisp.org>
18033
18034         vma-iter: Avoid empty intervals.
18035         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
18036         on an empty interval.
18037
18038 2011-01-24  Jim Meyering  <meyering@redhat.com>
18039
18040         u64: remove unnecessary #include
18041         * lib/u64.h: Don't include <stddef.h>.  It was not used.
18042
18043 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
18044
18045         Allow the user to avoid the HAVE_RAW_DECL_* macros.
18046         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
18047
18048 2011-01-23  Bruno Haible  <bruno@clisp.org>
18049
18050         New module 'vma-iter'.
18051         * lib/vma-iter.h: New file.
18052         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
18053         * modules/vma-iter: New file.
18054         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
18055         for get_rusage_as_via_iterator.
18056         (vma_iterate_callback): New function.
18057         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
18058         * modules/get-rusage-as (Depends-on): Add vma-iter.
18059
18060 2011-01-23  Bruno Haible  <bruno@clisp.org>
18061
18062         uninorm: Tweak includes.
18063         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
18064         Reported by Jim Meyering.
18065
18066 2011-01-23  Bruno Haible  <bruno@clisp.org>
18067
18068         get-rusage-as: Improve on NetBSD.
18069         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
18070         /proc, like on FreeBSD.
18071
18072 2011-01-23  Jim Meyering  <meyering@redhat.com>
18073
18074         xreadlink.h: remove unnecessary #include
18075         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
18076
18077         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
18078         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
18079
18080 2011-01-23  Bruno Haible  <bruno@clisp.org>
18081
18082         get-rusage-as: Fix bug.
18083         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
18084         original limit when aborting the first loop.
18085
18086 2011-01-23  Bruno Haible  <bruno@clisp.org>
18087
18088         wctype: Ensure valid C syntax.
18089         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
18090         unconditionally, instead of gl_NEXT_HEADERS conditionally.
18091
18092 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
18093
18094         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
18095         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
18096         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
18097         as they are needed only for configure's test case.
18098         This removes two unnecessary symbols from config.h.
18099
18100         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
18101         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
18102         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
18103         AC_CHECK_HEADERS_ONCE on a header that we also invoke
18104         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
18105         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
18106         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
18107         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
18108         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18109         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
18110         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
18111         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18112         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18113         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
18114         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
18115         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18116         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
18117         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
18118
18119 2011-01-21  Eric Blake  <eblake@redhat.com>
18120
18121         maintainer-makefile: work with older git for submodule check
18122         * top/maint.mk (public-submodule-commit): Rewrite to avoid
18123         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
18124         Reported by Matthias Bolte.
18125
18126         bootstrap: minor portability fixes
18127         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
18128         (usage): Omit leading capital and trailing . on help phrases, per
18129         GNU Coding Standards.
18130         (check_versions, top level): Prefix messages with script name.
18131
18132 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
18133
18134         bootstrap: support --no-git option
18135         * build-aux/bootstrap: Add --no-git option, to be used when
18136         --gnulib-srcdir points to the exact desired checkout.
18137
18138 2011-01-21  Eric Blake  <eblake@redhat.com>
18139
18140         strerror_r-posix: work with glibc 2.13
18141         * lib/strerror_r.c (strerror_r): Fix return type.
18142
18143 2011-01-21  Pádraig Brady  <P@draigBrady.com>
18144             Bruno Haible  <bruno@clisp.org>
18145
18146         uN_strstr: New unit tests.
18147         * modules/unistr/u8-strstr-tests: New file.
18148         * modules/unistr/u16-strstr-tests: New file.
18149         * modules/unistr/u32-strstr-tests: New file.
18150         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
18151         * tests/unistr/test-u8-strstr.c: New file.
18152         * tests/unistr/test-u16-strstr.c: New file.
18153         * tests/unistr/test-u32-strstr.c: New file.
18154
18155 2011-01-21  Pádraig Brady  <P@draigBrady.com>
18156             Bruno Haible  <bruno@clisp.org>
18157
18158         Make uN_strstr functions O(n) worst-case.
18159         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
18160         16-bit and 32-bit unit cases, use the unibyte algorithm from
18161         lib/mbsstr.c.
18162         * lib/unistr/u8-strstr.c: Include <string.h>.
18163         (UNIT_IS_UINT8_T): New macro.
18164         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
18165         (U_STRLEN, U_STRNLEN): New macros.
18166         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
18167         (U_STRLEN, U_STRNLEN): New macros.
18168         * modules/unistr/u8-strstr (Depends-on): Add strstr.
18169         (configure.ac): Update required libunistring version.
18170         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
18171         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
18172         malloca.
18173         (configure.ac): Update required libunistring version.
18174         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
18175         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
18176         malloca.
18177         (configure.ac): Update required libunistring version.
18178
18179 2011-01-21  Pádraig Brady  <P@draigBrady.com>
18180             Bruno Haible  <bruno@clisp.org>
18181
18182         Prepare for faster uN_strstr functions.
18183         * lib/str-kmp.h: Support definable UNITs.
18184         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
18185         needle_len argument.
18186         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
18187         * lib/mbscasestr.c (mbscasestr): Likewise.
18188
18189 2011-01-21  Pádraig Brady <P@draigBrady.com>
18190
18191         malloca-tests: make faster by unsetting MALLOC_PERTURB_
18192         * tests/test-malloca.c (main): Unset the environment variable
18193         to greatly speed up the test.
18194         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
18195         * modules/malloca-tests: Depend on unsetenv.
18196
18197 2011-01-21  Pádraig Brady <P@draigBrady.com>
18198
18199         ignore-value: remove stdint dependency
18200         * lib/ignore-value.h: Remove <stdint.h>
18201         * modules/ignore-value: Remove stdint dependency.
18202
18203 2011-01-21  Jim Meyering  <meyering@redhat.com>
18204
18205         maint.mk: adjust variable name to be consistent with other gl_ vars
18206         * top/maint.mk (gl_public_submodule_commit): Rename the variable
18207         to be lower case.
18208
18209 2011-01-20  Jim Meyering  <meyering@redhat.com>
18210
18211         maint.mk: make "check" depend on public-submodule-commit by default
18212         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
18213
18214 2011-01-20  Bruno Haible  <bruno@clisp.org>
18215
18216         mbfile, mbiter: Complete change from 2008-12-21.
18217         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
18218         * m4/mbiter.m4 (gl_MBITER): Likewise.
18219
18220 2011-01-20  Jim Meyering  <meyering@redhat.com>
18221
18222         init.sh: insert space between each function name and "()"
18223         * tests/init.sh: Make it a little easier to see that a function's
18224         name is "warn_", and not "warn" when looking at the first part of
18225         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
18226
18227 2011-01-20  Jim Meyering  <meyering@redhat.com>
18228
18229         mountlist: clean up code formatting
18230         * lib/mountlist.c (read_file_system_list): Split a long line,
18231         correct bracing style, use NULL in place of "(struct statfs *)0",
18232         don't parenthesize return value, add spaces around "=" and after
18233         ";-in-for-stmt".
18234
18235 2011-01-14  Markus Duft <mduft@gentoo.org>
18236
18237         mountlist: add support for Interix
18238         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
18239         Apply statvfs to all entries of /dev/fs.
18240         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
18241         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
18242
18243 2011-01-20  Jim Meyering  <meyering@redhat.com>
18244
18245         maint.mk: improve the public-submodule-commit rule
18246         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
18247         to suppress printing of its commands... unless V=1.
18248         Add git submodule's --quiet option to suppress printing of e.g.,
18249         "Entering gnulib" output.
18250         "cd" into $(srcdir) before running git submodule.
18251
18252 2011-01-20  Bruno Haible  <bruno@clisp.org>
18253
18254         include_next: Fix bug introduced on 2011-01-18.
18255         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
18256         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
18257         ac_cv_header_... variable if the second argument is not 'check'.
18258         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
18259         gl_NEXT_HEADERS_INTERNAL.
18260
18261 2011-01-20  Bruno Haible  <bruno@clisp.org>
18262
18263         Allow the user to avoid the GNULIB_TEST_* macros.
18264         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
18265         Suggested by Paul Eggert.
18266
18267 2011-01-14  Jim Meyering  <meyering@redhat.com>
18268
18269         bootstrap: avoid failure when there is no .gitmodules file
18270         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
18271         has been assigned to, even when its value is the empty string.
18272         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
18273         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
18274         Reported by John W. Eaton <jwe@gnu.org>.
18275
18276 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
18277
18278         assume <ctype.h>, ..., <time.h> exist
18279         For years gnulib has been assuming the existence of the headers
18280         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
18281         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
18282         them, since they don't appear to be needed.
18283         * README (Portability guidelines): Document this.
18284         * lib/flock.c: Assume <fcntl.h> exists.
18285         * lib/regex_internal.h: Assume <locale.h> exists.
18286         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
18287         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
18288         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
18289         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
18290         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
18291         * m4/regex.m4 (gl_REGEX): Likewise.
18292         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
18293         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
18294         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
18295         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
18296         * tests/test-argp.c: Likewise.
18297         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
18298
18299         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
18300         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
18301         AA_APPLE_UNIVERSAL_BUILD.  See
18302         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
18303         * NEWS: Document this.
18304
18305 2011-01-19  Eric Blake  <eblake@redhat.com>
18306
18307         c-stack: assume stack overflow if SA_SIGINFO unsupported
18308         * lib/c-stack.c (SIGACTION_WORKS): Rename...
18309         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
18310         sigaction will work.
18311         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
18312         behavior match Linux.
18313         * tests/test-c-stack.c (main): Prefer NULL for pointers.
18314
18315         stdbool-tests: accomodate Haiku
18316         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
18317
18318         binary-io: fix O_TEXT on Haiku
18319         * modules/binary-io (Depends-on): Add fcntl-h.
18320         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
18321         than blindly undefining O_TEXT.
18322         Reported by Scott McCreary.
18323
18324 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
18325
18326         include_next: do not check for standard headers like stddef.h
18327
18328         I found this problem when modifying Emacs to use gnulib.
18329         I noticed that it added HAVE_STDDEF_H to config.h, even though
18330         gnulib always assumes <stddef.h> exists as per README and this
18331         symbol is unnecessary.
18332         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
18333         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
18334         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
18335         faster for headers like stddef.h that are known to exist.
18336         (gl_CHECK_NEXT_HEADERS): Use it.
18337         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
18338         rather than gl_CHECK_NEXT_HEADERS.
18339         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
18340         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
18341
18342 2011-01-18  Eric Blake  <eblake@redhat.com>
18343
18344         ansi-c++-opt: skip C++ dependency style if C++ is unused
18345         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
18346         tests when we know C++ compilation is not desired.
18347         Reported by Scott McCreary.
18348
18349 2011-01-18  Bruno Haible  <bruno@clisp.org>
18350
18351         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
18352         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
18353         (main): Perform test also when getrlimit and setrlimit don't exist or
18354         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
18355         limiting the address space size using setrlimit, compare the address
18356         space size before and after the the test.
18357         * tests/test-dprintf-posix2.c: Likewise.
18358         * tests/test-fprintf-posix3.sh: Update skip messages.
18359         * tests/test-dprintf-posix2.sh: Likewise.
18360         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
18361         * modules/dprintf-posix-tests (Depends-on): Likewise.
18362         Reported by Bruce Korb <bkorb@gnu.org> and
18363         Gary V. Vaughan <gary@gnu.org>.
18364
18365 2011-01-18  Bruno Haible  <bruno@clisp.org>
18366
18367         get-rusage-as: Improvement for Cygwin.
18368         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
18369         areas that are merely reserved.
18370
18371 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
18372
18373         strftime: remove dependencies on multibyte modules
18374
18375         strftime depended on mbrlen, mbsinit, and wchar, but these modules
18376         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
18377         only if __osf__ is defined, and I suspect OSF doesn't need these
18378         other modules.  If my guess is wrong, we'll need to come up with a
18379         variant of strftime that doesn't need the multibyte modules.
18380
18381         I discovered this problem when attempting modify Emacs to use the
18382         strftime module.  With the previous gnulib, this caused Emacs to
18383         need 31 new files, ranging from lib/config.charset to
18384         m4/wint_t.m4.  This was overkill and I expect would be offputting
18385         to the Emacs maintainers.  After this change, only 6 new files are
18386         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
18387         stdbool.m4, and tm_gmtoff.m4.
18388
18389         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
18390         Suggested by Bruno Haible in
18391         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
18392         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
18393         and do not check for wchar.h.
18394         * modules/strftime (Files): Remove m4/mbstate_t.m4.
18395         (Depends-on): Remove mbrlen, mbsinit, wchar.
18396
18397 2011-01-18  Bruno Haible  <bruno@clisp.org>
18398
18399         Tests for module 'get-rusage-as'.
18400         * modules/get-rusage-as-tests: New file.
18401         * tests/test-get-rusage-as.c: New file.
18402
18403         New module 'get-rusage-as'.
18404         * modules/get-rusage-as: New file.
18405         * lib/resource-ext.h: New file.
18406         * lib/get-rusage-as.c: New file.
18407
18408 2011-01-17  Eric Blake  <eblake@redhat.com>
18409
18410         sigaction: relax license from LGPLv3+ to LGPLv2+
18411         * modules/sigaction (License): Relax to LGPLv2+.
18412
18413 2011-01-14  Bruno Haible  <bruno@clisp.org>
18414
18415         filemode: Make function declarations usable in C++ mode.
18416         * lib/filemode.h: Enclose function declarations in extern "C" block.
18417         Reported by John W. Eaton <jwe@gnu.org>.
18418
18419 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
18420
18421         save-cwd: no longer include "xgetcwd.h"
18422         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
18423         This avoids a compilation failure in projects that use save-cwd
18424         without also using the xgetcwd module.
18425
18426 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
18427
18428         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
18429         This is so that a program like Emacs, which needs only dtoastr,
18430         does not have to bother with distributing and compiling ftoastr
18431         and ldtoastr.
18432         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
18433         * modules/dtoastr, modules/ldtoastr: New files.
18434         * modules/ftoastr: Now works just for 'float'.
18435         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
18436         (Makefile.am): Remove ftoastr.h (not needed and no effect),
18437         dtoastr.c, ldtoastr.c.
18438
18439 2011-01-11  Jim Meyering  <meyering@redhat.com>
18440
18441         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
18442         There is no need to work around the lack of the fchdir function,
18443         since gnulib can now provide a replacement when required.
18444         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
18445         * modules/save-cwd (Depends-on): Add fchdir.
18446
18447 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
18448
18449         openat, save-cwd: avoid xmalloc
18450
18451         This removes a direct (but undocumented) dependency of openat on
18452         xalloc, along with an indirect dependency via save-cwd.  It also
18453         removes a dependency of save-cwd on xgetcwd, and thereby
18454         indirectly on xalloc.  This change causes the openat substitute
18455         to fall back on save_cwd when memory is tight, and for save_cwd to
18456         fail instead of dying when memory is tight, but that's good enough.
18457         Problem and initial idea for fix reported by Bastien Roucaries in
18458         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
18459
18460         * lib/openat-proc.c: Include stdlib.h (for malloc), not
18461         xalloc.h (for xmalloc).
18462         (openat_proc_name): Use malloc, not xmalloc.
18463         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
18464         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
18465
18466         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
18467         This avoids heap allocation for file names whose lengths are in
18468         the range 512..1023, with the upper bound increasing to at most
18469         4031 depending on the platform's PATH_MAX.  (We do not want
18470         pathmax.h here as it might supply a non-constant PATH_MAX.)
18471         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
18472         Perhaps they should be moved to malloca.h?
18473         (OPENAT_BUFFER_SIZE): Use them.
18474
18475 2011-01-10  Bruno Haible  <bruno@clisp.org>
18476
18477         doc: Update users.txt.
18478         * users.txt: Add recutils.
18479
18480 2011-01-09  Karl Berry  <karl@gnu.org>
18481
18482         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
18483
18484         * doc/configmake.texi: New file.
18485         * doc/gnulib.texi: Include it.
18486         * modules/configmake: Move documentation from here.
18487
18488 2011-01-09  Bruno Haible  <bruno@clisp.org>
18489
18490         Update to Unicode 6.0.0.
18491         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
18492         (get_lbp): Update for Unicode 6.0.0.
18493         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
18494         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
18495         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
18496         U+11001, U+11038..U+11046. Remove U+06DE.
18497         (uc_width): Fix bounds of planes.
18498         * tests/uniwidth/test-uc_width2.sh: Same updates as in
18499         lib/uniwidth/width.c.
18500         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
18501         trailing whitespace removed.
18502         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
18503         without comments, but with the original copyright notice.
18504         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
18505         * lib/unicase/ignorable.h: Likewise.
18506         * lib/unicase/tocasefold.h: Likewise.
18507         * lib/unicase/tolower.h: Likewise.
18508         * lib/unicase/totitle.h: Likewise.
18509         * lib/unicase/toupper.h: Likewise.
18510         * lib/unictype/bidi_of.h: Likewise.
18511         * lib/unictype/blocks.h: Likewise.
18512         * lib/unictype/categ_C.h: Likewise.
18513         * lib/unictype/categ_Cn.h: Likewise.
18514         * lib/unictype/categ_L.h: Likewise.
18515         * lib/unictype/categ_Ll.h: Likewise.
18516         * lib/unictype/categ_Lm.h: Likewise.
18517         * lib/unictype/categ_Lo.h: Likewise.
18518         * lib/unictype/categ_Lu.h: Likewise.
18519         * lib/unictype/categ_M.h: Likewise.
18520         * lib/unictype/categ_Mc.h: Likewise.
18521         * lib/unictype/categ_Me.h: Likewise.
18522         * lib/unictype/categ_Mn.h: Likewise.
18523         * lib/unictype/categ_N.h: Likewise.
18524         * lib/unictype/categ_Nd.h: Likewise.
18525         * lib/unictype/categ_No.h: Likewise.
18526         * lib/unictype/categ_P.h: Likewise.
18527         * lib/unictype/categ_Po.h: Likewise.
18528         * lib/unictype/categ_S.h: Likewise.
18529         * lib/unictype/categ_Sc.h: Likewise.
18530         * lib/unictype/categ_Sk.h: Likewise.
18531         * lib/unictype/categ_Sm.h: Likewise.
18532         * lib/unictype/categ_So.h: Likewise.
18533         * lib/unictype/categ_of.h: Likewise.
18534         * lib/unictype/combining.h: Likewise.
18535         * lib/unictype/ctype_alnum.h: Likewise.
18536         * lib/unictype/ctype_alpha.h: Likewise.
18537         * lib/unictype/ctype_graph.h: Likewise.
18538         * lib/unictype/ctype_lower.h: Likewise.
18539         * lib/unictype/ctype_print.h: Likewise.
18540         * lib/unictype/ctype_punct.h: Likewise.
18541         * lib/unictype/ctype_upper.h: Likewise.
18542         * lib/unictype/decdigit.h: Likewise.
18543         * lib/unictype/digit.h: Likewise.
18544         * lib/unictype/numeric.h: Likewise.
18545         * lib/unictype/pr_alphabetic.h: Likewise.
18546         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
18547         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
18548         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
18549         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
18550         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
18551         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
18552         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
18553         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
18554         * lib/unictype/pr_case_ignorable.h: Likewise.
18555         * lib/unictype/pr_cased.h: Likewise.
18556         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
18557         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
18558         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
18559         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
18560         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
18561         * lib/unictype/pr_combining.h: Likewise.
18562         * lib/unictype/pr_composite.h: Likewise.
18563         * lib/unictype/pr_currency_symbol.h: Likewise.
18564         * lib/unictype/pr_decimal_digit.h: Likewise.
18565         * lib/unictype/pr_deprecated.h: Likewise.
18566         * lib/unictype/pr_format_control.h: Likewise.
18567         * lib/unictype/pr_grapheme_base.h: Likewise.
18568         * lib/unictype/pr_grapheme_extend.h: Likewise.
18569         * lib/unictype/pr_grapheme_link.h: Likewise.
18570         * lib/unictype/pr_id_continue.h: Likewise.
18571         * lib/unictype/pr_id_start.h: Likewise.
18572         * lib/unictype/pr_ideographic.h: Likewise.
18573         * lib/unictype/pr_lowercase.h: Likewise.
18574         * lib/unictype/pr_math.h: Likewise.
18575         * lib/unictype/pr_numeric.h: Likewise.
18576         * lib/unictype/pr_other_alphabetic.h: Likewise.
18577         * lib/unictype/pr_other_id_continue.h: Likewise.
18578         * lib/unictype/pr_other_math.h: Likewise.
18579         * lib/unictype/pr_punctuation.h: Likewise.
18580         * lib/unictype/pr_sentence_terminal.h: Likewise.
18581         * lib/unictype/pr_terminal_punctuation.h: Likewise.
18582         * lib/unictype/pr_unassigned_code_value.h: Likewise.
18583         * lib/unictype/pr_unified_ideograph.h: Likewise.
18584         * lib/unictype/pr_uppercase.h: Likewise.
18585         * lib/unictype/pr_xid_continue.h: Likewise.
18586         * lib/unictype/pr_xid_start.h: Likewise.
18587         * lib/unictype/scripts.h: Likewise.
18588         * lib/unictype/scripts_byname.gperf: Likewise.
18589         * lib/unictype/sy_java_ident.h: Likewise.
18590         * lib/unigbrk/gbrkprop.h: Likewise.
18591         * lib/unilbrk/lbrkprop1.h: Likewise.
18592         * lib/unilbrk/lbrkprop2.h: Likewise.
18593         * lib/uninorm/decomposition-table2.h: Likewise.
18594         * lib/uniwbrk/wbrkprop.h: Likewise.
18595         * tests/unicase/test-cased.c: Likewise.
18596         * tests/unicase/test-ignorable.c: Likewise.
18597         * tests/unicase/test-uc_tolower.c: Likewise.
18598         * tests/unicase/test-uc_totitle.c: Likewise.
18599         * tests/unicase/test-uc_toupper.c: Likewise.
18600         * tests/unictype/test-categ_C.c: Likewise.
18601         * tests/unictype/test-categ_Cn.c: Likewise.
18602         * tests/unictype/test-categ_L.c: Likewise.
18603         * tests/unictype/test-categ_Ll.c: Likewise.
18604         * tests/unictype/test-categ_Lm.c: Likewise.
18605         * tests/unictype/test-categ_Lo.c: Likewise.
18606         * tests/unictype/test-categ_Lu.c: Likewise.
18607         * tests/unictype/test-categ_M.c: Likewise.
18608         * tests/unictype/test-categ_Mc.c: Likewise.
18609         * tests/unictype/test-categ_Me.c: Likewise.
18610         * tests/unictype/test-categ_Mn.c: Likewise.
18611         * tests/unictype/test-categ_N.c: Likewise.
18612         * tests/unictype/test-categ_Nd.c: Likewise.
18613         * tests/unictype/test-categ_No.c: Likewise.
18614         * tests/unictype/test-categ_P.c: Likewise.
18615         * tests/unictype/test-categ_Po.c: Likewise.
18616         * tests/unictype/test-categ_S.c: Likewise.
18617         * tests/unictype/test-categ_Sc.c: Likewise.
18618         * tests/unictype/test-categ_Sk.c: Likewise.
18619         * tests/unictype/test-categ_Sm.c: Likewise.
18620         * tests/unictype/test-categ_So.c: Likewise.
18621         * tests/unictype/test-ctype_alnum.c: Likewise.
18622         * tests/unictype/test-ctype_alpha.c: Likewise.
18623         * tests/unictype/test-ctype_graph.c: Likewise.
18624         * tests/unictype/test-ctype_lower.c: Likewise.
18625         * tests/unictype/test-ctype_print.c: Likewise.
18626         * tests/unictype/test-ctype_punct.c: Likewise.
18627         * tests/unictype/test-ctype_upper.c: Likewise.
18628         * tests/unictype/test-decdigit.h: Likewise.
18629         * tests/unictype/test-digit.h: Likewise.
18630         * tests/unictype/test-numeric.h: Likewise.
18631         * tests/unictype/test-pr_alphabetic.c: Likewise.
18632         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
18633         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
18634         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
18635         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
18636         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
18637         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
18638         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
18639         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
18640         * tests/unictype/test-pr_case_ignorable.c: Likewise.
18641         * tests/unictype/test-pr_cased.c: Likewise.
18642         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
18643         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
18644         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
18645         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
18646         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
18647         * tests/unictype/test-pr_combining.c: Likewise.
18648         * tests/unictype/test-pr_composite.c: Likewise.
18649         * tests/unictype/test-pr_currency_symbol.c: Likewise.
18650         * tests/unictype/test-pr_decimal_digit.c: Likewise.
18651         * tests/unictype/test-pr_deprecated.c: Likewise.
18652         * tests/unictype/test-pr_format_control.c: Likewise.
18653         * tests/unictype/test-pr_grapheme_base.c: Likewise.
18654         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
18655         * tests/unictype/test-pr_grapheme_link.c: Likewise.
18656         * tests/unictype/test-pr_id_continue.c: Likewise.
18657         * tests/unictype/test-pr_id_start.c: Likewise.
18658         * tests/unictype/test-pr_ideographic.c: Likewise.
18659         * tests/unictype/test-pr_lowercase.c: Likewise.
18660         * tests/unictype/test-pr_math.c: Likewise.
18661         * tests/unictype/test-pr_numeric.c: Likewise.
18662         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
18663         * tests/unictype/test-pr_other_id_continue.c: Likewise.
18664         * tests/unictype/test-pr_other_math.c: Likewise.
18665         * tests/unictype/test-pr_punctuation.c: Likewise.
18666         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
18667         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
18668         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
18669         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
18670         * tests/unictype/test-pr_uppercase.c: Likewise.
18671         * tests/unictype/test-pr_xid_continue.c: Likewise.
18672         * tests/unictype/test-pr_xid_start.c: Likewise.
18673         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
18674         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
18675         changes.
18676         * lib/unictype/categ_Cc.h: Likewise.
18677         * lib/unictype/categ_Cf.h: Likewise.
18678         * lib/unictype/categ_Co.h: Likewise.
18679         * lib/unictype/categ_Cs.h: Likewise.
18680         * lib/unictype/categ_Lt.h: Likewise.
18681         * lib/unictype/categ_Nl.h: Likewise.
18682         * lib/unictype/categ_Pc.h: Likewise.
18683         * lib/unictype/categ_Pd.h: Likewise.
18684         * lib/unictype/categ_Pe.h: Likewise.
18685         * lib/unictype/categ_Pf.h: Likewise.
18686         * lib/unictype/categ_Pi.h: Likewise.
18687         * lib/unictype/categ_Ps.h: Likewise.
18688         * lib/unictype/categ_Z.h: Likewise.
18689         * lib/unictype/categ_Zl.h: Likewise.
18690         * lib/unictype/categ_Zp.h: Likewise.
18691         * lib/unictype/categ_Zs.h: Likewise.
18692         * lib/unictype/ctype_blank.h: Likewise.
18693         * lib/unictype/ctype_cntrl.h: Likewise.
18694         * lib/unictype/ctype_digit.h: Likewise.
18695         * lib/unictype/ctype_space.h: Likewise.
18696         * lib/unictype/ctype_xdigit.h: Likewise.
18697         * lib/unictype/mirror.h: Likewise.
18698         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
18699         * lib/unictype/pr_bidi_block_separator.h: Likewise.
18700         * lib/unictype/pr_bidi_common_separator.h: Likewise.
18701         * lib/unictype/pr_bidi_control.h: Likewise.
18702         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
18703         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
18704         * lib/unictype/pr_bidi_european_digit.h: Likewise.
18705         * lib/unictype/pr_bidi_pdf.h: Likewise.
18706         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
18707         * lib/unictype/pr_bidi_whitespace.h: Likewise.
18708         * lib/unictype/pr_dash.h: Likewise.
18709         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
18710         * lib/unictype/pr_diacritic.h: Likewise.
18711         * lib/unictype/pr_extender.h: Likewise.
18712         * lib/unictype/pr_hex_digit.h: Likewise.
18713         * lib/unictype/pr_hyphen.h: Likewise.
18714         * lib/unictype/pr_ids_binary_operator.h: Likewise.
18715         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
18716         * lib/unictype/pr_ignorable_control.h: Likewise.
18717         * lib/unictype/pr_iso_control.h: Likewise.
18718         * lib/unictype/pr_join_control.h: Likewise.
18719         * lib/unictype/pr_left_of_pair.h: Likewise.
18720         * lib/unictype/pr_line_separator.h: Likewise.
18721         * lib/unictype/pr_logical_order_exception.h: Likewise.
18722         * lib/unictype/pr_non_break.h: Likewise.
18723         * lib/unictype/pr_not_a_character.h: Likewise.
18724         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
18725         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
18726         * lib/unictype/pr_other_id_start.h: Likewise.
18727         * lib/unictype/pr_other_lowercase.h: Likewise.
18728         * lib/unictype/pr_other_uppercase.h: Likewise.
18729         * lib/unictype/pr_paired_punctuation.h: Likewise.
18730         * lib/unictype/pr_paragraph_separator.h: Likewise.
18731         * lib/unictype/pr_pattern_syntax.h: Likewise.
18732         * lib/unictype/pr_pattern_white_space.h: Likewise.
18733         * lib/unictype/pr_private_use.h: Likewise.
18734         * lib/unictype/pr_quotation_mark.h: Likewise.
18735         * lib/unictype/pr_radical.h: Likewise.
18736         * lib/unictype/pr_soft_dotted.h: Likewise.
18737         * lib/unictype/pr_space.h: Likewise.
18738         * lib/unictype/pr_titlecase.h: Likewise.
18739         * lib/unictype/pr_variation_selector.h: Likewise.
18740         * lib/unictype/pr_white_space.h: Likewise.
18741         * lib/unictype/pr_zero_width.h: Likewise.
18742         * lib/unictype/sy_c_ident.h: Likewise.
18743         * lib/unictype/sy_c_whitespace.h: Likewise.
18744         * lib/unictype/sy_java_whitespace.h: Likewise.
18745         * lib/uninorm/composition-table.gperf: Likewise.
18746         * lib/uninorm/decomposition-table1.h: Likewise.
18747         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
18748         LB8.
18749         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
18750         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
18751         * modules/unictype/*: Bump version number of expected libunistring
18752         version.
18753
18754 2011-01-09  Bruno Haible  <bruno@clisp.org>
18755
18756         Update to Unicode 5.2.0.
18757         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
18758         trailing whitespace removed.
18759
18760 2011-01-09  Bruno Haible  <bruno@clisp.org>
18761
18762         New Unicode character properties, from Unicode 5.2.0.
18763         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
18764         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
18765         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
18766         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
18767         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
18768         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
18769         uc_is_property_cased, uc_is_property_case_ignorable,
18770         uc_is_property_changes_when_lowercased,
18771         uc_is_property_changes_when_uppercased,
18772         uc_is_property_changes_when_titlecased,
18773         uc_is_property_changes_when_casefolded,
18774         uc_is_property_changes_when_casemapped): New declarations.
18775         * lib/unictype/pr_byname.gperf: Add the new properties.
18776         * modules/unictype/property-byname (Depends-on): Depend on the new
18777         properties modules.
18778         * modules/unictype/property-all (Depends-on): Likewise.
18779         * MODULES.html.sh (Unicode string functions): Add
18780         unictype/property-case-ignorable, unictype/property-cased,
18781         unictype/property-changes-when-casefolded,
18782         unictype/property-changes-when-casemapped,
18783         unictype/property-changes-when-lowercased,
18784         unictype/property-changes-when-titlecased,
18785         unictype/property-changes-when-uppercased.
18786
18787         New module 'unictype/property-changes-when-casemapped'.
18788         * modules/unictype/property-changes-when-casemapped: New file.
18789         * lib/unictype/pr_changes_when_casemapped.c: New file.
18790         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
18791         generated by gen-uni-tables.
18792         * modules/unictype/property-changes-when-casemapped-tests: New file.
18793         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
18794         automatically generated by gen-uni-tables.
18795
18796         New module 'unictype/property-changes-when-casefolded'.
18797         * modules/unictype/property-changes-when-casefolded: New file.
18798         * lib/unictype/pr_changes_when_casefolded.c: New file.
18799         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
18800         generated by gen-uni-tables.
18801         * modules/unictype/property-changes-when-casefolded-tests: New file.
18802         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
18803         automatically generated by gen-uni-tables.
18804
18805         New module 'unictype/property-changes-when-titlecased'.
18806         * modules/unictype/property-changes-when-titlecased: New file.
18807         * lib/unictype/pr_changes_when_titlecased.c: New file.
18808         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
18809         generated by gen-uni-tables.
18810         * modules/unictype/property-changes-when-titlecased-tests: New file.
18811         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
18812         automatically generated by gen-uni-tables.
18813
18814         New module 'unictype/property-changes-when-uppercased'.
18815         * modules/unictype/property-changes-when-uppercased: New file.
18816         * lib/unictype/pr_changes_when_uppercased.c: New file.
18817         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
18818         generated by gen-uni-tables.
18819         * modules/unictype/property-changes-when-uppercased-tests: New file.
18820         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
18821         automatically generated by gen-uni-tables.
18822
18823         New module 'unictype/property-changes-when-lowercased'.
18824         * modules/unictype/property-changes-when-lowercased: New file.
18825         * lib/unictype/pr_changes_when_lowercased.c: New file.
18826         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
18827         generated by gen-uni-tables.
18828         * modules/unictype/property-changes-when-lowercased-tests: New file.
18829         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
18830         automatically generated by gen-uni-tables.
18831
18832         New module 'unictype/property-case-ignorable'.
18833         * modules/unictype/property-case-ignorable: New file.
18834         * lib/unictype/pr_case_ignorable.c: New file.
18835         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
18836         by gen-uni-tables.
18837         * modules/unictype/property-case-ignorable-tests: New file.
18838         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
18839         generated by gen-uni-tables.
18840
18841         New module 'unictype/property-cased'.
18842         * modules/unictype/property-cased: New file.
18843         * lib/unictype/pr_cased.c: New file.
18844         * lib/unictype/pr_cased.h: New file, automatically generated by
18845         gen-uni-tables.
18846         * modules/unictype/property-cased-tests: New file.
18847         * tests/unictype/test-pr_cased.c: New file, automatically generated by
18848         gen-uni-tables.
18849
18850 2011-01-09  Bruno Haible  <bruno@clisp.org>
18851
18852         Update to Unicode 5.2.0.
18853         * lib/gen-uni-tables.c (output_predicate, output_category,
18854         output_combclass, output_bidi_category, output_decimal_digit_test,
18855         output_decimal_digit, output_digit_test, output_digit,
18856         output_numeric_test, output_numeric, output_mirror, output_scripts,
18857         output_scripts_byname, output_blocks, output_ident_category): Fix
18858         comment header.
18859         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
18860         get_wbp.
18861         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
18862         items.
18863         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
18864         Changes_When_Lowercased, Changes_When_Uppercased,
18865         Changes_When_Titlecased, Changes_When_Casefolded,
18866         Changes_When_Casemapped.
18867         (is_property_alphabetic, is_property_default_ignorable_code_point):
18868         Update for Unicode 5.2.0.
18869         (is_property_cased, is_property_case_ignorable,
18870         is_property_changes_when_lowercased,
18871         is_property_changes_when_uppercased,
18872         is_property_changes_when_titlecased,
18873         is_property_changes_when_casefolded,
18874         is_property_changes_when_casemapped): New functions.
18875         (output_properties): Output also the properties cased, case_ignorable,
18876         changes_when_lowercased, changes_when_uppercased,
18877         changes_when_titlecased, changes_when_casefolded,
18878         changes_when_casemapped.
18879         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
18880         Unicode TR#11 revision 17 -> 19.
18881         (LBP_CP): New enumeration value.
18882         (LBP_*): Adjust values accordingly.
18883         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
18884         TR#14 revision 22 -> 24.
18885         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
18886         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
18887         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
18888         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
18889         is_WBP_MIDLETTER.
18890         (output_composition_tables): Allow for 24 bits instead of 16 bits in
18891         the code1 and code2 of each composition rule.
18892         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
18893         * lib/unicase/ignorable.h: Likewise.
18894         * lib/unicase/tocasefold.h: Likewise.
18895         * lib/unicase/tolower.h: Likewise.
18896         * lib/unicase/totitle.h: Likewise.
18897         * lib/unicase/toupper.h: Likewise.
18898         * lib/unictype/bidi_of.h: Likewise.
18899         * lib/unictype/blocks.h: Likewise.
18900         * lib/unictype/categ_C.h: Likewise.
18901         * lib/unictype/categ_Cf.h: Likewise.
18902         * lib/unictype/categ_Cn.h: Likewise.
18903         * lib/unictype/categ_L.h: Likewise.
18904         * lib/unictype/categ_Ll.h: Likewise.
18905         * lib/unictype/categ_Lm.h: Likewise.
18906         * lib/unictype/categ_Lo.h: Likewise.
18907         * lib/unictype/categ_Lu.h: Likewise.
18908         * lib/unictype/categ_M.h: Likewise.
18909         * lib/unictype/categ_Mc.h: Likewise.
18910         * lib/unictype/categ_Mn.h: Likewise.
18911         * lib/unictype/categ_N.h: Likewise.
18912         * lib/unictype/categ_Nd.h: Likewise.
18913         * lib/unictype/categ_Nl.h: Likewise.
18914         * lib/unictype/categ_No.h: Likewise.
18915         * lib/unictype/categ_P.h: Likewise.
18916         * lib/unictype/categ_Pd.h: Likewise.
18917         * lib/unictype/categ_Po.h: Likewise.
18918         * lib/unictype/categ_S.h: Likewise.
18919         * lib/unictype/categ_Sc.h: Likewise.
18920         * lib/unictype/categ_So.h: Likewise.
18921         * lib/unictype/categ_of.h: Likewise.
18922         * lib/unictype/combining.h: Likewise.
18923         * lib/unictype/ctype_alnum.h: Likewise.
18924         * lib/unictype/ctype_alpha.h: Likewise.
18925         * lib/unictype/ctype_graph.h: Likewise.
18926         * lib/unictype/ctype_lower.h: Likewise.
18927         * lib/unictype/ctype_print.h: Likewise.
18928         * lib/unictype/ctype_punct.h: Likewise.
18929         * lib/unictype/ctype_upper.h: Likewise.
18930         * lib/unictype/decdigit.h: Likewise.
18931         * lib/unictype/digit.h: Likewise.
18932         * lib/unictype/numeric.h: Likewise.
18933         * lib/unictype/pr_alphabetic.h: Likewise.
18934         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
18935         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
18936         * lib/unictype/pr_bidi_european_digit.h: Likewise.
18937         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
18938         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
18939         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
18940         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
18941         * lib/unictype/pr_combining.h: Likewise.
18942         * lib/unictype/pr_composite.h: Likewise.
18943         * lib/unictype/pr_currency_symbol.h: Likewise.
18944         * lib/unictype/pr_dash.h: Likewise.
18945         * lib/unictype/pr_decimal_digit.h: Likewise.
18946         * lib/unictype/pr_deprecated.h: Likewise.
18947         * lib/unictype/pr_diacritic.h: Likewise.
18948         * lib/unictype/pr_extender.h: Likewise.
18949         * lib/unictype/pr_grapheme_base.h: Likewise.
18950         * lib/unictype/pr_grapheme_extend.h: Likewise.
18951         * lib/unictype/pr_grapheme_link.h: Likewise.
18952         * lib/unictype/pr_id_continue.h: Likewise.
18953         * lib/unictype/pr_id_start.h: Likewise.
18954         * lib/unictype/pr_ideographic.h: Likewise.
18955         * lib/unictype/pr_ignorable_control.h: Likewise.
18956         * lib/unictype/pr_logical_order_exception.h: Likewise.
18957         * lib/unictype/pr_lowercase.h: Likewise.
18958         * lib/unictype/pr_numeric.h: Likewise.
18959         * lib/unictype/pr_other_alphabetic.h: Likewise.
18960         * lib/unictype/pr_punctuation.h: Likewise.
18961         * lib/unictype/pr_sentence_terminal.h: Likewise.
18962         * lib/unictype/pr_terminal_punctuation.h: Likewise.
18963         * lib/unictype/pr_unassigned_code_value.h: Likewise.
18964         * lib/unictype/pr_unified_ideograph.h: Likewise.
18965         * lib/unictype/pr_uppercase.h: Likewise.
18966         * lib/unictype/pr_xid_continue.h: Likewise.
18967         * lib/unictype/pr_xid_start.h: Likewise.
18968         * lib/unictype/pr_zero_width.h: Likewise.
18969         * lib/unictype/scripts.h: Likewise.
18970         * lib/unictype/scripts_byname.gperf: Likewise.
18971         * lib/unictype/sy_java_ident.h: Likewise.
18972         * lib/unigbrk/gbrkprop.h: Likewise.
18973         * lib/unilbrk/lbrkprop1.h: Likewise.
18974         * lib/unilbrk/lbrkprop2.h: Likewise.
18975         * lib/unilbrk/lbrktables.h: Likewise.
18976         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
18977         LBP_CP. Implement rule LB30.
18978         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
18979         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
18980         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
18981         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
18982         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
18983         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
18984         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
18985         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
18986         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
18987         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
18988         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
18989         bits instead of 16 bits in the code1 and code2 of each composition
18990         rule.
18991         (uc_composition): Update for Unicode 5.2.0.
18992         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
18993         * lib/uninorm/decomposition-table2.h: Likewise.
18994         * lib/uniwbrk/wbrkprop.h: Likewise.
18995         * tests/unicase/test-cased.c: Likewise.
18996         * tests/unicase/test-ignorable.c: Likewise.
18997         * tests/unicase/test-uc_tolower.c: Likewise.
18998         * tests/unicase/test-uc_totitle.c: Likewise.
18999         * tests/unicase/test-uc_toupper.c: Likewise.
19000         * tests/unictype/test-categ_C.c: Likewise.
19001         * tests/unictype/test-categ_Cf.c: Likewise.
19002         * tests/unictype/test-categ_Cn.c: Likewise.
19003         * tests/unictype/test-categ_L.c: Likewise.
19004         * tests/unictype/test-categ_Ll.c: Likewise.
19005         * tests/unictype/test-categ_Lm.c: Likewise.
19006         * tests/unictype/test-categ_Lo.c: Likewise.
19007         * tests/unictype/test-categ_Lu.c: Likewise.
19008         * tests/unictype/test-categ_M.c: Likewise.
19009         * tests/unictype/test-categ_Mc.c: Likewise.
19010         * tests/unictype/test-categ_Mn.c: Likewise.
19011         * tests/unictype/test-categ_N.c: Likewise.
19012         * tests/unictype/test-categ_Nd.c: Likewise.
19013         * tests/unictype/test-categ_Nl.c: Likewise.
19014         * tests/unictype/test-categ_No.c: Likewise.
19015         * tests/unictype/test-categ_P.c: Likewise.
19016         * tests/unictype/test-categ_Pd.c: Likewise.
19017         * tests/unictype/test-categ_Po.c: Likewise.
19018         * tests/unictype/test-categ_S.c: Likewise.
19019         * tests/unictype/test-categ_Sc.c: Likewise.
19020         * tests/unictype/test-categ_So.c: Likewise.
19021         * tests/unictype/test-ctype_alnum.c: Likewise.
19022         * tests/unictype/test-ctype_alpha.c: Likewise.
19023         * tests/unictype/test-ctype_graph.c: Likewise.
19024         * tests/unictype/test-ctype_lower.c: Likewise.
19025         * tests/unictype/test-ctype_print.c: Likewise.
19026         * tests/unictype/test-ctype_punct.c: Likewise.
19027         * tests/unictype/test-ctype_upper.c: Likewise.
19028         * tests/unictype/test-decdigit.h: Likewise.
19029         * tests/unictype/test-digit.h: Likewise.
19030         * tests/unictype/test-numeric.h: Likewise.
19031         * tests/unictype/test-pr_alphabetic.c: Likewise.
19032         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
19033         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
19034         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
19035         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
19036         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
19037         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
19038         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
19039         * tests/unictype/test-pr_combining.c: Likewise.
19040         * tests/unictype/test-pr_composite.c: Likewise.
19041         * tests/unictype/test-pr_currency_symbol.c: Likewise.
19042         * tests/unictype/test-pr_dash.c: Likewise.
19043         * tests/unictype/test-pr_decimal_digit.c: Likewise.
19044         * tests/unictype/test-pr_deprecated.c: Likewise.
19045         * tests/unictype/test-pr_diacritic.c: Likewise.
19046         * tests/unictype/test-pr_extender.c: Likewise.
19047         * tests/unictype/test-pr_grapheme_base.c: Likewise.
19048         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
19049         * tests/unictype/test-pr_grapheme_link.c: Likewise.
19050         * tests/unictype/test-pr_id_continue.c: Likewise.
19051         * tests/unictype/test-pr_id_start.c: Likewise.
19052         * tests/unictype/test-pr_ideographic.c: Likewise.
19053         * tests/unictype/test-pr_ignorable_control.c: Likewise.
19054         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
19055         * tests/unictype/test-pr_lowercase.c: Likewise.
19056         * tests/unictype/test-pr_numeric.c: Likewise.
19057         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
19058         * tests/unictype/test-pr_punctuation.c: Likewise.
19059         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
19060         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
19061         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
19062         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
19063         * tests/unictype/test-pr_uppercase.c: Likewise.
19064         * tests/unictype/test-pr_xid_continue.c: Likewise.
19065         * tests/unictype/test-pr_xid_start.c: Likewise.
19066         * tests/unictype/test-pr_zero_width.c: Likewise.
19067         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
19068         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
19069         changed behaviour: line breaking is now disallowed between a letter
19070         or '=' and '('.
19071         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
19072         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
19073         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
19074         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
19075         * tests/uniwidth/test-uc_width2.sh: Same updates as in
19076         lib/uniwidth/width.c.
19077         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
19078         without comments, but with the original copyright notice.
19079         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
19080         changes.
19081         * lib/unictype/categ_Cc.h: Likewise.
19082         * lib/unictype/categ_Co.h: Likewise.
19083         * lib/unictype/categ_Cs.h: Likewise.
19084         * lib/unictype/categ_Lt.h: Likewise.
19085         * lib/unictype/categ_Me.h: Likewise.
19086         * lib/unictype/categ_Pc.h: Likewise.
19087         * lib/unictype/categ_Pe.h: Likewise.
19088         * lib/unictype/categ_Pf.h: Likewise.
19089         * lib/unictype/categ_Pi.h: Likewise.
19090         * lib/unictype/categ_Ps.h: Likewise.
19091         * lib/unictype/categ_Sk.h: Likewise.
19092         * lib/unictype/categ_Sm.h: Likewise.
19093         * lib/unictype/categ_Z.h: Likewise.
19094         * lib/unictype/categ_Zl.h: Likewise.
19095         * lib/unictype/categ_Zp.h: Likewise.
19096         * lib/unictype/categ_Zs.h: Likewise.
19097         * lib/unictype/ctype_blank.h: Likewise.
19098         * lib/unictype/ctype_cntrl.h: Likewise.
19099         * lib/unictype/ctype_digit.h: Likewise.
19100         * lib/unictype/ctype_space.h: Likewise.
19101         * lib/unictype/ctype_xdigit.h: Likewise.
19102         * lib/unictype/mirror.h: Likewise.
19103         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
19104         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
19105         * lib/unictype/pr_bidi_block_separator.h: Likewise.
19106         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
19107         * lib/unictype/pr_bidi_common_separator.h: Likewise.
19108         * lib/unictype/pr_bidi_control.h: Likewise.
19109         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
19110         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
19111         * lib/unictype/pr_bidi_pdf.h: Likewise.
19112         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
19113         * lib/unictype/pr_bidi_whitespace.h: Likewise.
19114         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
19115         * lib/unictype/pr_format_control.h: Likewise.
19116         * lib/unictype/pr_hex_digit.h: Likewise.
19117         * lib/unictype/pr_hyphen.h: Likewise.
19118         * lib/unictype/pr_ids_binary_operator.h: Likewise.
19119         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
19120         * lib/unictype/pr_iso_control.h: Likewise.
19121         * lib/unictype/pr_join_control.h: Likewise.
19122         * lib/unictype/pr_left_of_pair.h: Likewise.
19123         * lib/unictype/pr_line_separator.h: Likewise.
19124         * lib/unictype/pr_math.h: Likewise.
19125         * lib/unictype/pr_non_break.h: Likewise.
19126         * lib/unictype/pr_not_a_character.h: Likewise.
19127         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
19128         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
19129         * lib/unictype/pr_other_id_continue.h: Likewise.
19130         * lib/unictype/pr_other_id_start.h: Likewise.
19131         * lib/unictype/pr_other_lowercase.h: Likewise.
19132         * lib/unictype/pr_other_math.h: Likewise.
19133         * lib/unictype/pr_other_uppercase.h: Likewise.
19134         * lib/unictype/pr_paired_punctuation.h: Likewise.
19135         * lib/unictype/pr_paragraph_separator.h: Likewise.
19136         * lib/unictype/pr_pattern_syntax.h: Likewise.
19137         * lib/unictype/pr_pattern_white_space.h: Likewise.
19138         * lib/unictype/pr_private_use.h: Likewise.
19139         * lib/unictype/pr_quotation_mark.h: Likewise.
19140         * lib/unictype/pr_radical.h: Likewise.
19141         * lib/unictype/pr_soft_dotted.h: Likewise.
19142         * lib/unictype/pr_space.h: Likewise.
19143         * lib/unictype/pr_titlecase.h: Likewise.
19144         * lib/unictype/pr_variation_selector.h: Likewise.
19145         * lib/unictype/pr_white_space.h: Likewise.
19146         * lib/unictype/sy_c_ident.h: Likewise.
19147         * lib/unictype/sy_c_whitespace.h: Likewise.
19148         * lib/unictype/sy_java_whitespace.h: Likewise.
19149         * modules/uni*/*: Bump version number of expected libunistring version.
19150         Reported by Simon Josefsson.
19151
19152 2011-01-09  Karl Heuer  <kwzh@gnu.org>
19153
19154         useless-if-before-free: fix typo in --help and make the internal,
19155         automatic version date update process work once again.
19156         --help output contained a NUL character instead of the
19157         backslash-zero that was intended.  Also, the "must lie within
19158         the first 8 lines" line is on line 9, and hence not getting
19159         automatically updated.
19160         * build-aux/useless-if-before-free: Fix the former by adding a
19161         backslash, and the latter by condensing the three lines of what-it-does
19162         to a single line, leaving one line of slack for the future.
19163
19164 2011-01-09  Bruno Haible  <bruno@clisp.org>
19165
19166         uniwidth/width: Fix width of U+1D173..U+1D17A.
19167         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
19168         symbolic_width, output_width_property_test): New functions.
19169         (main): Invoke output_nonspacing_property, output_width_property_test.
19170         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
19171         U+1D173..U+1D17A.
19172         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
19173         1.
19174         * modules/uniwidth/*: Bump version number of expected libunistring
19175         version.
19176         * modules/unilbrk/*: Likewise.
19177
19178 2011-01-08  Bruno Haible  <bruno@clisp.org>
19179
19180         uninorm tests: Preserve copyright of Unicode data file.
19181         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
19182         Mention modifications.
19183
19184 2011-01-08  Bruno Haible  <bruno@clisp.org>
19185
19186         gen-uni-tables: Prepare for Unicode 5.2.0.
19187         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
19188         (debug_output_lbp, output_lbp): Update.
19189
19190 2011-01-08  Bruno Haible  <bruno@clisp.org>
19191
19192         unilbrk: Clarify gen-uni-tables.c code.
19193         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
19194         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
19195         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
19196
19197 2011-01-07  Bruno Haible  <bruno@clisp.org>
19198
19199         strtod: Restore errno when successfully parsing Infinity or NaN.
19200         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
19201         restore the original errno.
19202
19203 2011-01-07  Bruno Haible  <bruno@clisp.org>
19204
19205         remove test: Avoid failure on HP-UX 11.
19206         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
19207
19208 2011-01-07  Bruno Haible  <bruno@clisp.org>
19209
19210         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
19211         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
19212         error code.
19213
19214 2011-01-07  Pádraig Brady <P@draigBrady.com>
19215
19216         ignore-value: fixup comments, and add Eric Blake
19217         as an author since he rewrote the macros.
19218         * lib/ignore-value.h (ignore_value):  State that
19219         we now support aggregates.  Also specify exactly
19220         when the GCC warn_unused_result feature was added.
19221
19222 2011-01-06  Eric Blake  <eblake@redhat.com>
19223
19224         ignore-value: support aggregate types
19225         * lib/ignore-value.h (ignore_value): Provide separate gcc
19226         definition.
19227         * modules/ignore-value-tests: New test module.
19228         * tests/test-ignore-value.c: New test.
19229
19230         maint.mk: improve sc_prohibit_strcmp regex
19231         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
19232         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
19233         definition of STRNEQ.
19234
19235         signal: work around Haiku issue with SIGBUS
19236         * lib/siglist.h: Add comment.
19237         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
19238         strsignal's favoring of SIGSEGV.
19239         * tests/test-signal.c (main): Avoid test failure.
19240         * doc/posix-headers/signal.texi (signal.h): Document the issue.
19241         Reported by Scott McCreary.
19242
19243         maint.mk: add pre-release check to ensure submodule commits are public
19244         * top/maint.mk (public-submodule-commit): New rule.
19245         (submodule-checks): New variable.
19246         (alpha beta stable): Depend on the variable.
19247
19248 2011-01-05  Pádraig Brady <P@draigBrady.com>
19249         and Jim Meyering  <meyering@redhat.com>
19250
19251         ignore-value: make ignore_value more generic; deprecate ignore_ptr
19252         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
19253         (ATTRIBUTE_DEPRECATED): Define.
19254         (_ignore_case): New function.
19255         (ignore_value): New macro, to replace the old function.
19256         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
19257         * modules/ignore-value (Depends-on): Add stdint.
19258
19259 2011-01-04  Eric Blake  <eblake@redhat.com>
19260
19261         doc: regenerate INSTALL
19262         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
19263         @firstparagraphindent support, now that autoconf dropped it.
19264         (INSTALL_PRELUDE): Reinstate old macro.
19265         * doc/install.texi: Resync from autoconf.
19266         * doc/INSTALL: Reflect recent autoconf update.
19267         * doc/INSTALL.ISO: Likewise.
19268         * doc/INSTALL.UTF-8: Likewise.
19269         Reported by Karl Berry.
19270
19271 2011-01-04  Bruce Korb  <address@hidden>
19272
19273         git-version-gen: avoid a sub-shell
19274         * build-aux/git-version-gen: Redirect stderr in `...` via
19275         "exec 2>...", rather than via an added sub-shell.
19276
19277 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
19278
19279         git-version-gen: use (...) rather than sh -c '...'
19280         * build-aux/git-version-gen: Rather than hard-coding a shell's name
19281         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
19282
19283 2011-01-03  Jim Meyering  <meyering@redhat.com>
19284
19285         git-version-gen: convert leading TABs to spaces
19286         * build-aux/git-version-gen: Expand leading TABs.
19287
19288         git-version-gen: handle failed "git rev-list"
19289         * build-aux/git-version-gen: Rather than leaking a "fatal" error
19290         from git and proceeding as if it had succeeded but printed no SHA1
19291         checksums, suppress the diagnostic and handle the failure.
19292         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
19293
19294         git-version-gen: include command name in one more diagnostic
19295         * build-aux/git-version-gen: When the required .tarball-version file
19296         was missing or unreadable, you might see the diagnostic from "cat",
19297         but no trace of the name of the invoking script.  Now, you still see
19298         the diagnostic from cat, but also get one from "git-version-gen: ".
19299         Inspired by a patch from Bruce Korb.
19300
19301         update-copyright: adjust test to match changed code
19302         * tests/test-update-copyright.sh: Change test's expected output
19303         to match new actual output.
19304
19305 2011-01-02  Bruno Haible  <bruno@clisp.org>
19306
19307         getlogin_r: Avoid test failure on HP-UX 11.
19308         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
19309         ERANGE when the second argument is zero.
19310         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
19311         portability problem.
19312
19313 2011-01-02  Bruce Korb  <bkorb@gnu.org>
19314
19315         * build-aux/update-copyright: doc Simon's changes
19316
19317 2011-01-02  Simon Josefsson  <simon@josefsson.org>
19318
19319         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
19320         environment variable.
19321
19322 2011-01-02  Bruno Haible  <bruno@clisp.org>
19323
19324         unigbrk: Avoid gcc warnings.
19325         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
19326         unused variable.
19327         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
19328         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
19329         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
19330         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
19331         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
19332         Change type of first argument to 'const char *'.
19333         (main): Remove unused variable.
19334         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
19335         type of first argument to 'const char *'.
19336         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
19337         Likewise.
19338         (main): Change type of variable 's'.
19339         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
19340         to 'int'.
19341
19342 2011-01-02  Bruno Haible  <bruno@clisp.org>
19343
19344         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
19345         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
19346         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
19347         bug.
19348         * lib/pwrite.c: Undo 2010-12-31 patch.
19349         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
19350
19351 2011-01-02  Bruno Haible  <bruno@clisp.org>
19352
19353         pread: Fix test whether it works.
19354         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
19355
19356 2011-01-02  Bruno Haible  <bruno@clisp.org>
19357
19358         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
19359         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
19360         ends in "6". Don't require a specific month name. Try also the locale
19361         names found on HP-UX 11 and Solaris 7.
19362
19363 2011-01-02  Bruno Haible  <bruno@clisp.org>
19364
19365         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
19366         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
19367         C linkage.
19368         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
19369
19370 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
19371
19372         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
19373         for consistency, since the "cluster" term is not used elsewhere.
19374         * lib/unigbrk.in.h: Update name.
19375         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
19376         * lib/unigbrk/u16-grapheme-next.c: Update name.
19377         * lib/unigbrk/u16-grapheme-prev.c: Update name.
19378         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
19379         * lib/unigbrk/u32-grapheme-next.c: Update name.
19380         * lib/unigbrk/u32-grapheme-prev.c: Update name.
19381         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
19382         * lib/unigbrk/u8-grapheme-next.c: Update name.
19383         * lib/unigbrk/u8-grapheme-prev.c: Update name.
19384         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
19385         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
19386         Suggested by Bruno Haible.
19387
19388 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
19389
19390         Remove module 'u8-grapheme-len' as too redundant with
19391         'u8-grapheme-next'.
19392         * modules/unigbrk/u8-grapheme-len: Delete file.
19393         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
19394         * lib/unigbrk.in.h: Remove prototype for deleted function.
19395         * lib/unigbrk/u8-grapheme-len.c: Delete file.
19396         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
19397
19398         Remove module 'u16-grapheme-len' as too redundant with
19399         'u16-grapheme-next'.
19400         * modules/unigbrk/u16-grapheme-len: Delete file.
19401         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
19402         * lib/unigbrk.in.h: Remove prototype for deleted function.
19403         * lib/unigbrk/u16-grapheme-len.c: Delete file.
19404         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
19405
19406         Remove module 'u32-grapheme-len' as too redundant with
19407         'u32-grapheme-next'.
19408         * modules/unigbrk/u32-grapheme-len: Delete file.
19409         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
19410         * lib/unigbrk.in.h: Remove prototype for deleted function.
19411         * lib/unigbrk/u32-grapheme-len.c: Delete file.
19412         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
19413
19414         Suggested by Bruno Haible.
19415
19416 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
19417
19418         * unigbrk.in.h: Fix typo: "ben" => "been".
19419         Reported by Bruno Haible.
19420
19421 2011-01-01  Jim Meyering  <meyering@redhat.com>
19422
19423         maint: update almost all copyright ranges to include 2011
19424         Run the new "make update-copyright" rule.
19425
19426 2011-01-01  Jim Meyering  <meyering@redhat.com>
19427
19428         maint: update-copyright: exempt doc/INSTALL*
19429         * Makefile (update-copyright): Also exclude doc/INSTALL*,
19430         since they are generated.  Suggested by Bruno Haible.
19431
19432 2011-01-01  Jim Meyering  <meyering@redhat.com>
19433
19434         maint: refine the update-copyright rule
19435         * Makefile (update-copyright): Also exclude any file that includes
19436         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
19437         code that merely generates the comment.
19438
19439 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
19440
19441         New module 'u8-grapheme-len'.
19442         * modules/unigbrk/u8-grapheme-len: New file.
19443         * modules/unigbrk/u8-grapheme-len-tests: New file.
19444         * lib/unigbrk.in.h: Add prototype for new function.
19445         * lib/unigbrk/u8-grapheme-len.c: New file.
19446         * tests/unigbrk/test-u8-grapheme-len.c: New file.
19447
19448         New module 'u16-grapheme-len'.
19449         * modules/unigbrk/u16-grapheme-len: New file.
19450         * modules/unigbrk/u16-grapheme-len-tests: New file.
19451         * lib/unigbrk.in.h: Add prototype for new function.
19452         * lib/unigbrk/u16-grapheme-len.c: New file.
19453         * tests/unigbrk/test-u16-grapheme-len.c: New file.
19454
19455         New module 'u32-grapheme-len'.
19456         * modules/unigbrk/u32-grapheme-len: New file.
19457         * modules/unigbrk/u32-grapheme-len-tests: New file.
19458         * lib/unigbrk.in.h: Add prototype for new function.
19459         * lib/unigbrk/u32-grapheme-len.c: New file.
19460         * tests/unigbrk/test-u32-grapheme-len.c: New file.
19461
19462         New module 'u8-grapheme-next'.
19463         * modules/unigbrk/u8-grapheme-next: New file.
19464         * modules/unigbrk/u8-grapheme-next-tests: New file.
19465         * lib/unigbrk.in.h: Add prototype for new function.
19466         * lib/unigbrk/u8-grapheme-next.c: New file.
19467         * tests/unigbrk/test-u8-grapheme-next.c: New file.
19468
19469         New module 'u16-grapheme-next'.
19470         * modules/unigbrk/u16-grapheme-next: New file.
19471         * modules/unigbrk/u16-grapheme-next-tests: New file.
19472         * lib/unigbrk.in.h: Add prototype for new function.
19473         * lib/unigbrk/u16-grapheme-next.c: New file.
19474         * tests/unigbrk/test-u16-grapheme-next.c: New file.
19475
19476         New module 'u32-grapheme-next'.
19477         * modules/unigbrk/u32-grapheme-next: New file.
19478         * modules/unigbrk/u32-grapheme-next-tests: New file.
19479         * lib/unigbrk.in.h: Add prototype for new function.
19480         * lib/unigbrk/u32-grapheme-next.c: New file.
19481         * tests/unigbrk/test-u32-grapheme-next.c: New file.
19482
19483         New module 'u8-grapheme-prev'.
19484         * modules/unigbrk/u8-grapheme-prev: New file.
19485         * modules/unigbrk/u8-grapheme-prev-tests: New file.
19486         * lib/unigbrk.in.h: Add prototype for new function.
19487         * lib/unigbrk/u8-grapheme-prev.c: New file.
19488         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
19489
19490         New module 'u16-grapheme-prev'.
19491         * modules/unigbrk/u16-grapheme-prev: New file.
19492         * modules/unigbrk/u16-grapheme-prev-tests: New file.
19493         * lib/unigbrk.in.h: Add prototype for new function.
19494         * lib/unigbrk/u16-grapheme-prev.c: New file.
19495         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
19496
19497         New module 'u32-grapheme-prev'.
19498         * modules/unigbrk/u32-grapheme-prev: New file.
19499         * modules/unigbrk/u32-grapheme-prev-tests: New file.
19500         * lib/unigbrk.in.h: Add prototype for new function.
19501         * lib/unigbrk/u32-grapheme-prev.c: New file.
19502         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
19503
19504         New module 'u8-grapheme-breaks'.
19505         * modules/unigbrk/u8-grapheme-breaks: New file.
19506         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
19507         * lib/unigbrk.in.h: Add prototype for new function.
19508         * lib/unigbrk/u8-grapheme-breaks.c: New file.
19509         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
19510
19511         New module 'u16-grapheme-breaks'.
19512         * modules/unigbrk/u16-grapheme-breaks: New file.
19513         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
19514         * lib/unigbrk.in.h: Add prototype for new function.
19515         * lib/unigbrk/u16-grapheme-breaks.c: New file.
19516         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
19517
19518         New module 'u32-grapheme-breaks'.
19519         * modules/unigbrk/u32-grapheme-breaks: New file.
19520         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
19521         * lib/unigbrk.in.h: Add prototype for new function.
19522         * lib/unigbrk/u32-grapheme-breaks.c: New file.
19523         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
19524
19525         New module 'ulc-grapheme-breaks'.
19526         * modules/unigbrk/ulc-grapheme-breaks: New file.
19527         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
19528         * m4/locale-ar.m4: New file.
19529         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
19530         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
19531         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
19532
19533 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
19534
19535         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
19536         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
19537         modified how this file was generated before I initially submitted
19538         the module, but failed to regenerate it.  This meant that several
19539         of the level2 entries were wrong.
19540         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
19541         Remove the division-by-2 that is folded into the table now that
19542         gbrkprop.h has been regenerated properly.  Now -1 entries are
19543         handled correctly.
19544
19545         New module 'unigbrk/uc-gbrk-prop-tests'.
19546         * modules/unigbrk/uc-gbrk-prop-tests: New file.
19547         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
19548         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
19549         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
19550
19551 2011-01-01  Bruno Haible  <bruno@clisp.org>
19552
19553         Avoid use of hexadecimal escapes.
19554         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
19555         instead of hexadecimal escapes.
19556
19557 2011-01-01  Jim Meyering  <meyering@redhat.com>
19558
19559         maint: new rule to update copyright year ranges
19560         * Makefile (update-copyright): New rule.
19561
19562         maint: indent with TABs in Makefile
19563         * Makefile: Expand leading sequences of spaces to TABs
19564
19565         version-etc: update the copyright year it reports
19566         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
19567
19568 2010-12-31  Bruno Haible  <bruno@clisp.org>
19569
19570         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
19571         * lib/isfinite.c (zerof, zerod, zerol): New variables.
19572         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
19573         zero.
19574
19575 2010-12-31  Bruno Haible  <bruno@clisp.org>
19576
19577         pwrite: Work around HP-UX 11.11 bug.
19578         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
19579         works and set REPLACE_PWRITE if not.
19580         * lib/pwrite.c (pwrite): Add an implementation that uses the system
19581         function.
19582         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
19583
19584 2010-12-31  Bruno Haible  <bruno@clisp.org>
19585
19586         pread: Work around HP-UX 11 bugs.
19587         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
19588         and set REPLACE_PREAD if not.
19589         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
19590
19591 2010-12-31  Eric Blake  <eblake@redhat.com>
19592
19593         nl_langinfo: fix YESEXPR on Irix 6.5
19594         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
19595         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
19596         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
19597         it.
19598
19599 2010-12-31  Bruno Haible  <bruno@clisp.org>
19600
19601         iconv: Document HP-UX 11 bug.
19602         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
19603
19604 2010-12-31  Bruno Haible  <bruno@clisp.org>
19605
19606         ldexpl: Fix link error on HP-UX 11.
19607         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
19608         LDEXPL_LIBM, using $ISNANL_LIBM.
19609
19610 2010-12-31  Eric Blake  <eblake@redhat.com>
19611
19612         ftello: avoid compilation failure with SunStudio c89
19613         * lib/ftello.c (ftello): Use lseek, not llseek.
19614
19615         tests: avoid failing coreutils tests on cygwin
19616         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
19617         (create_exe_shims_): Return 0 when skipping.
19618
19619 2010-12-31  Bruno Haible  <bruno@clisp.org>
19620
19621         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
19622         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
19623
19624 2010-12-31  Bruno Haible  <bruno@clisp.org>
19625
19626         waitpid: Fix link error in C++ mode.
19627         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
19628
19629 2010-12-31  Bruno Haible  <bruno@clisp.org>
19630
19631         isnan: Use GCC built-ins when possible.
19632         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
19633         __builtin_isnan.
19634         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
19635         (isnan): Define using GCC built-ins for GCC >= 4.0.
19636
19637 2010-12-31  Bruno Haible  <bruno@clisp.org>
19638
19639         isnand: Fix mistake.
19640         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
19641         __builtin_isnand.
19642
19643 2010-12-31  Bruno Haible  <bruno@clisp.org>
19644
19645         open: Avoid C++ error on HP-UX 11.
19646         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
19647
19648 2010-12-31  Bruno Haible  <bruno@clisp.org>
19649
19650         time_r: Add missing declarations on HP-UX 11.
19651         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
19652         instead of HAVE_LOCALTIME_R.
19653         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
19654         HAVE_LOCALTIME_R always.
19655         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
19656         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
19657         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
19658         HAVE_LOCALTIME_R.
19659         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
19660         * doc/posix-functions/localtime_r.texi: Likewise.
19661
19662 2010-12-29  Eric Blake  <eblake@redhat.com>
19663
19664         mountlist: tweak previous commit
19665         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
19666         Reported by Paul Eggert.
19667
19668         mountlist: fix local drive detection on cygwin
19669         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
19670         that works for cygwin.
19671
19672 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
19673
19674         ftoastr, snprintf: ftoastr + snprintf module
19675         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
19676         since the snprintf module now should be good enough here.
19677         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
19678         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
19679         and gl_MODULE_INDICATOR([snprintf]), but the former enables
19680         GNULIB_SNPRINTF only for the test directory, and the latter
19681         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
19682         seems to suffice by itself.
19683
19684 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
19685
19686         alloca: one step towards thread-safety
19687         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
19688         need for a static variable.  All callers changed.  This does not
19689         make the alloca replacement thread-safe, but it's one step.
19690
19691         tests: minor indenting change
19692         * tests/init.sh: Sync from coreutils housekeeping patch
19693         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
19694         to keep lines within 80 columns.
19695
19696 2010-12-28  Jim Meyering  <meyering@redhat.com>
19697
19698         regex: don't infloop on persistent failing calloc
19699         * lib/regexec.c (build_trtable): Return failure indication upon
19700         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
19701         In glibc, this was fixed for version 2.13:
19702         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
19703
19704 2010-12-28  Bruno Haible  <bruno@clisp.org>
19705             Paul Eggert <eggert@cs.ucla.edu>
19706
19707         linkat: Make implementation robust against system behaviour variations.
19708         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
19709         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
19710         way, and to -2 if it needs a generic runtime test.
19711         * lib/linkat.c (solaris_optimized_link_immediate,
19712         solaris_optimized_link_follow): New functions.
19713         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
19714         (check_same_link): Use it.
19715
19716 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
19717
19718         New module 'unigbrk/base'.
19719         * modules/unigbrk/base: New file.
19720         * lib/unigbrk.in.h: New file.
19721
19722         New module 'unigbrk/uc-gbrk-prop'.
19723         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
19724         * modules/unigbrk/uc-gbrk-prop: New file.
19725         * lib/unigbrk/gbrkprop.h: New file.
19726         * lib/unigbrk/uc-gbrk-prop.c: New file.
19727
19728         New module 'unigbrk/uc-is-grapheme-break'.
19729         * modules/unigbrk/uc-is-grapheme-break: New file.
19730         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
19731         * lib/unigbrk/uc-is-grapheme-break.c: New file.
19732         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
19733         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
19734         * tests/unigbrk/GraphemeBreakTest.txt: New file.
19735
19736         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
19737
19738 2010-12-27  Bruno Haible  <bruno@clisp.org>
19739
19740         linkat test: Avoid failure on Solaris 11 2010-11.
19741         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
19742
19743 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
19744
19745         utimens: work around glibc rounding bug on more platforms
19746         * lib/utimens.c (fdutimens): Work around rounding bug even if
19747         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
19748         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
19749
19750 2010-12-27  Bruno Haible  <bruno@clisp.org>
19751
19752         select tests: Improve comments.
19753         * tests/test-select.c (do_select): Add comments.
19754
19755 2010-12-27  Bruno Haible  <bruno@clisp.org>
19756
19757         select tests: Safer way of handling timeout.
19758         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
19759         at every invocation.
19760
19761 2010-12-27  Bruno Haible  <bruno@clisp.org>
19762
19763         select tests: Use 'bool' where appropriate.
19764         * tests/test-select.c (connect_to_socket): Change argument type to
19765         'bool'.
19766
19767 2010-12-27  Bruno Haible  <bruno@clisp.org>
19768
19769         select tests: Use existing modules.
19770         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
19771         (configure.ac): Don't test for unistd.h.
19772         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
19773         declared in <unistd.h>.
19774
19775 2010-12-27  Bruno Haible  <bruno@clisp.org>
19776
19777         mbrtowc: Work around a Solaris 7 bug.
19778         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
19779         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
19780         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
19781         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
19782         MBRTOWC_NULL_ARG1_BUG.
19783         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
19784         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
19785         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
19786         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
19787
19788 2010-12-27  Jim Meyering  <meyering@redhat.com>
19789
19790         read-file.c: tweak syntax
19791         * lib/read-file.c (fread_file): Remove space after "*" in function
19792         definitions.
19793
19794 2010-12-27  Bruno Haible  <bruno@clisp.org>
19795
19796         times test: Avoid gcc warnings on OSF/1.
19797         * tests/test-times.c (main): Cast printf arguments from clock_t to
19798         'long int'.
19799
19800 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
19801
19802         utimens: work around glibc rounding bug on older Linux kernels
19803         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
19804         on Linux with a glibc whose utimes might not work, then work
19805         around a longstanding glibc bug involving rounding rather than
19806         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
19807         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
19808
19809 2010-12-26  Bruno Haible  <bruno@clisp.org>
19810
19811         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
19812         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
19813         _GL_CXXALIAS_SYS.
19814         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19815
19816 2010-12-26  Bruno Haible  <bruno@clisp.org>
19817
19818         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
19819         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
19820         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
19821         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
19822         looking for the declaration.
19823         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
19824         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
19825         problem.
19826         * doc/posix-functions/inet_pton.texi: Likewise.
19827
19828 2010-12-26  Bruno Haible  <bruno@clisp.org>
19829
19830         arpa_inet: Use the common idioms with C++ support.
19831         * lib/arpa_inet.in.h: Include c++defs.h.
19832         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
19833         support.
19834         * modules/arpa_inet (Depends-on): Add c++defs.
19835         (Makefile.am): Substitute the contents of c++defs.h.
19836         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
19837         * modules/arpa_inet-c++-tests: New file.
19838         * tests/test-arpa_inet-c++.cc: New file.
19839
19840 2010-12-25  Bruno Haible  <bruno@clisp.org>
19841
19842         Fix more C++ link errors on Solaris 8.
19843         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
19844         $(LIB_EACCESS).
19845         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
19846         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
19847         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
19848         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
19849         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
19850
19851 2010-12-25  Bruno Haible  <bruno@clisp.org>
19852
19853         printf-posix: Fix link error when a non-GCC compiler is used.
19854         * lib/stdio.in.h (printf): When not using GCC, override printf
19855         correctly.
19856         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19857
19858 2010-12-25  Bruno Haible  <bruno@clisp.org>
19859
19860         strerror_r-posix: Update doc.
19861         * doc/posix-functions/strerror_r.texi: Update doc about the return
19862         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
19863
19864 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
19865
19866         utimens: simplify the logic of the previous change
19867         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
19868         This should not affect whether the test succeeds or fails.
19869
19870         utimens: configure better on hosts with NFS clock skew
19871         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
19872         uses the clock of the local host.  It might use the clock of the
19873         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
19874         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
19875
19876 2010-12-25  Bruno Haible  <bruno@clisp.org>
19877
19878         ptsname test: Avoid failure on Solaris.
19879         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
19880         open a pseudo-terminal; don't use BSD-style ptys.
19881         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
19882
19883 2010-12-25  Bruno Haible  <bruno@clisp.org>
19884
19885         ptsname: Avoid ERANGE failure on some systems.
19886         * lib/ptsname.c (buffer): Increase size.
19887
19888 2010-12-25  Bruno Haible  <bruno@clisp.org>
19889
19890         rename, renameat: Avoid test failures at NFS mounted locations.
19891         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
19892         so that subsequent mkdir calls succeed.
19893
19894 2010-12-25  Bruno Haible  <bruno@clisp.org>
19895
19896         iswblank: Fix C++ link error on Solaris 8.
19897         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
19898         _GL_FUNCDECL_SYS.
19899
19900 2010-12-25  Bruno Haible  <bruno@clisp.org>
19901
19902         unistd: Fix C++ link error on Solaris 8.
19903         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
19904
19905 2010-12-25  Bruno Haible  <bruno@clisp.org>
19906
19907         readlink doc: Mention an old glibc bug.
19908         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
19909
19910 2010-12-25  Bruno Haible  <bruno@clisp.org>
19911
19912         fcntl-h: Fix for use of C++ on glibc systems.
19913         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
19914         also on glibc systems in C++ mode.
19915         Reported by Gary V. Vaughan <gary@gnu.org>.
19916
19917 2010-12-25  Bruno Haible  <bruno@clisp.org>
19918
19919         roundl-ieee: Make it work on OSF/1 5.1 with cc.
19920         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
19921
19922 2010-12-25  Bruno Haible  <bruno@clisp.org>
19923
19924         truncl-ieee: Make it work on OSF/1 5.1 with cc.
19925         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
19926         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
19927         test whether truncl works according to ISO C 99 with IEC 60559.
19928         * m4/truncl-ieee.m4: New file.
19929         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
19930         m4/signbit.m4.
19931         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
19932
19933 2010-12-25  Bruno Haible  <bruno@clisp.org>
19934
19935         ceill-ieee: Make it work on OSF/1 5.1 with cc.
19936         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
19937         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
19938         test whether ceill works according to ISO C 99 with IEC 60559.
19939         * m4/ceill-ieee.m4: New file.
19940         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
19941         m4/signbit.m4.
19942         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
19943
19944 2010-12-25  Bruno Haible  <bruno@clisp.org>
19945
19946         Ensure all prerequisites of <wchar.h> are included.
19947         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
19948         before <wchar.h>.
19949         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
19950         gl_MBRLEN_NUL_RETVAL): Likewise.
19951         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
19952         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
19953         AC_FUNC_MBRTOWC): Likewise.
19954         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19955         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
19956         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19957         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
19958         Likewise.
19959         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19960         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
19961         (gl_WCHAR_H): Improve comments.
19962         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
19963
19964 2010-12-25  Bruno Haible  <bruno@clisp.org>
19965
19966         strtok_r: Fix C syntax error in autoconf macro.
19967         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
19968         characters in test program.
19969
19970 2010-12-24  Bruno Haible  <bruno@clisp.org>
19971
19972         ceil, trunc, round: Fix gcc warnings.
19973         * lib/ceil.c (MIN): Undefine before redefining.
19974         * lib/trunc.c (MIN): Likewise.
19975         * lib/round.c (MIN): Likewise.
19976         Include <math.h> first.
19977
19978 2010-12-24  Bruno Haible  <bruno@clisp.org>
19979
19980         select tests: Avoid failures on OSF/1 5.1.
19981         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
19982         failure of closing the last socket; it may fail with ECONNRESET.
19983
19984 2010-12-24  Eric Blake  <eblake@redhat.com>
19985
19986         stdint: avoid HP-UX 10.20 preprocessor bug
19987         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
19988         than #if.
19989         * tests/test-floor2.c (main): Likewise.
19990         Reported by Peter O'Gorman.
19991
19992         pipe: make obsoletion transition easier
19993         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
19994         * modules/pipe (Files): Include revived file.
19995         (Include): Drop reference, to mirror getdate's behavior.
19996
19997 2010-12-24  Bruno Haible  <bruno@clisp.org>
19998
19999         sys_socket: Hide mismatch of declarations on NonStop Kernel.
20000         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
20001         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
20002         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20003
20004 2010-12-24  Bruno Haible  <bruno@clisp.org>
20005
20006         gethostname: Ensure declaration on NonStop Kernel.
20007         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
20008         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20009
20010 2010-12-24  Bruno Haible  <bruno@clisp.org>
20011
20012         sys_select: Ensure all necessary types on NonStop Kernel.
20013         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
20014         include <sys/time.h>.
20015         * doc/posix-headers/sys_select.texi: Mention that it's missing on
20016         NonStop Kernel.
20017         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20018
20019 2010-12-24  Bruno Haible  <bruno@clisp.org>
20020
20021         sys_select: Remove unneeded include.
20022         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
20023         have <sys/select.h>.
20024
20025 2010-12-24  Bruno Haible  <bruno@clisp.org>
20026
20027         gethostname: Provide a fallback for HOST_NAME_MAX.
20028         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
20029         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
20030         instead.
20031         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20032
20033 2010-12-24  Bruno Haible  <bruno@clisp.org>
20034
20035         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
20036         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
20037         (SA_RESTART): Likewise.
20038         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20039
20040 2010-12-24  Bruno Haible  <bruno@clisp.org>
20041
20042         signal: Define NSIG.
20043         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
20044         * tests/test-signal.c (nsig): New variable.
20045         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20046
20047 2010-12-24  Bruno Haible  <bruno@clisp.org>
20048
20049         rename, renameat: Avoid test failures on OSF/1 5.1.
20050         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
20051         alternative error codes.
20052         * tests/test-renameat.c (main): Likewise.
20053
20054 2010-12-24  Bruno Haible  <bruno@clisp.org>
20055
20056         *printf: Detect large precisions bug on Solaris 10/SPARC.
20057         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
20058         by Paul Eggert.
20059         * tests/test-snprintf-posix.h (test_function): Add this test code here
20060         too.
20061         * tests/test-sprintf-posix.h (test_function): Likewise.
20062         * tests/test-vasnprintf-posix.c (test_function): Likewise.
20063         * tests/test-vasprintf-posix.c (test_function): Likewise.
20064         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
20065         around by gnulib.
20066         * doc/posix-functions/printf.texi: Likewise.
20067         * doc/posix-functions/snprintf.texi: Likewise.
20068         * doc/posix-functions/sprintf.texi: Likewise.
20069         * doc/posix-functions/vfprintf.texi: Likewise.
20070         * doc/posix-functions/vprintf.texi: Likewise.
20071         * doc/posix-functions/vsnprintf.texi: Likewise.
20072         * doc/posix-functions/vsprintf.texi: Likewise.
20073         * doc/posix-functions/dprintf.texi: Undo last commit.
20074         * doc/posix-functions/vdprintf.texi: Likewise.
20075
20076 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
20077
20078         tests: port test-fdutimensat.c to Solaris 8
20079         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
20080         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
20081         On Solaris 8, it fails with errno == ENOSYS, because there is no
20082         futimens (so it can't use the fd), and there is no lutimens (so it
20083         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
20084
20085         vsnprintf: make more consistent with snprintf; doc fixes
20086
20087         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
20088         the byte count return problem was promoted from the snprintf-posix
20089         to the snprintf module.
20090         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
20091         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
20092         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
20093         * tests/test-snprintf.c (main): Check the byte count returned.
20094         * tests/test-vsnprintf.c (main): Likewise.
20095
20096 2010-12-23  Eric Blake  <eblake@redhat.com>
20097
20098         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
20099         * modules/sigpipe (License): Relax license.
20100
20101 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
20102
20103         doc: document Solaris printf bug with large float precisions
20104         * doc/posix-functions/dprintf.texi (dprintf):
20105         * doc/posix-functions/fprintf.texi (fprintf):
20106         * doc/posix-functions/printf.texi (printf):
20107         * doc/posix-functions/snprintf.texi (snprintf):
20108         * doc/posix-functions/sprintf.texi (sprintf):
20109         * doc/posix-functions/vdprintf.texi (vdprintf):
20110         * doc/posix-functions/vfprintf.texi (vfprintf):
20111         * doc/posix-functions/vprintf.texi (vprintf):
20112         * doc/posix-functions/vsnprintf.texi (vsnprintf):
20113         * doc/posix-functions/vsprintf.texi (vsprintf):
20114         Mention that these functions mishandle large floating point
20115         precisions on Solaris 10.  The same bug is also present in Solaris
20116         8, and I assume earlier.  This causes "cd gnulib-tests; make
20117         check" to fail on Solaris 8 (and I assume, later) when building
20118         the latest coreutils, in test-vasprintf-posix's call to
20119         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
20120         the wide flavors (e.g., wprintf) so this patch just updates the
20121         documentation for the narrow ones.
20122
20123         test-posixtm.c: add two tests
20124         * tests/test-posixtm.c: Add two tests, to highlight the
20125         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
20126         around this bug; this is merely to document it.
20127
20128 2010-12-22  Bruno Haible  <bruno@clisp.org>
20129
20130         getlogin_r: Work around portability problem on OSF/1.
20131         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
20132         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
20133         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
20134         test for a truncated result.
20135         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
20136         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
20137         * modules/getlogin_r (Depends-on): Add memchr.
20138         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
20139
20140 2010-12-22  Bruno Haible  <bruno@clisp.org>
20141
20142         ptsname: Avoid test failure on OSF/1 5.1.
20143         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
20144         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
20145         (same_slave): New function.
20146         (main): Use it to compare ptsname's result with the expected file name.
20147
20148 2010-12-22  Bruno Haible  <bruno@clisp.org>
20149
20150         Port extended stdio modules to HP NonStop Kernel.
20151         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
20152         macros.
20153         * lib/fbufmode.c: Update comments.
20154         * lib/fflush.c: Likewise.
20155         * lib/fpurge.c: Likewise.
20156         * lib/freadable.c: Likewise.
20157         * lib/freadahead.c: Likewise.
20158         * lib/freading.c: Likewise.
20159         * lib/freadptr.c: Likewise.
20160         * lib/freadseek.c: Likewise.
20161         * lib/fseeko.c: Likewise.
20162         * lib/fseterr.c: Likewise.
20163         * lib/fwritable.c: Likewise.
20164         * lib/fwriting.c: Likewise.
20165         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20166
20167 2010-12-22  Bruno Haible  <bruno@clisp.org>
20168
20169         ttyname_r: Work around bug on OSF/1 5.1.
20170         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
20171         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
20172         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
20173         present.
20174         * lib/ttyname_r.c (ttyname_r): Update comments.
20175
20176 2010-12-22  Bruno Haible  <bruno@clisp.org>
20177
20178         round: Implement result sign according to IEEE 754.
20179         * lib/round.c (MIN, MINUS_ZERO): New macros.
20180         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
20181         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
20182         * tests/test-round-ieee.c (main): Likewise.
20183         * tests/test-roundl-ieee.c (main): Likewise.
20184
20185         trunc: Implement result sign according to IEEE 754.
20186         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
20187         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
20188         * tests/test-trunc2.c: Include minus-zero.h.
20189         (MINUS_ZERO): New macro.
20190         (trunc_reference): Keep in sync with lib/trunc.c.
20191         * tests/test-truncf2.c: Include minus-zero.h.
20192         (MINUS_ZERO): New macro.
20193         (truncf_reference): Keep in sync with lib/trunc.c.
20194         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
20195         * tests/test-trunc-ieee.c (main): Likewise.
20196         * tests/test-truncl-ieee.c (main): Likewise.
20197
20198         ceil: Implement result sign according to IEEE 754.
20199         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
20200         (FUNC): Return -0.0 for -1 < x < 0.
20201         * tests/test-ceil2.c: Include minus-zero.h.
20202         (MINUS_ZERO): New macro.
20203         (ceil_reference): Keep in sync with lib/ceil.c.
20204         * tests/test-ceilf2.c: Include minus-zero.h.
20205         (MINUS_ZERO): New macro.
20206         (ceilf_reference): Keep in sync with lib/ceil.c.
20207         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
20208         * tests/test-ceil-ieee.c (main): Likewise.
20209         * tests/test-ceill-ieee.c (main): Likewise.
20210
20211         floor: Implement result sign according to IEEE 754.
20212         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
20213         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
20214         * tests/test-floorf2.c (floorf_reference): Likewise.
20215         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
20216         * tests/test-floor-ieee.c (main): Likewise.
20217         * tests/test-floorl-ieee.c (main): Likewise.
20218
20219 2010-12-22  Bruno Haible  <bruno@clisp.org>
20220
20221         getaddrinfo: Update doc.
20222         * doc/posix-functions/gai_strerror.texi: Return type is also different
20223         on AIX and HP-UX.
20224
20225 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
20226
20227         getaddrinfo, inet_ntop: Update doc for Solaris.
20228         * doc/posix-functions/gai_strerror.texi: Return type is also an
20229         issue on Solaris 9 and earlier.
20230         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
20231         on Solaris 10 and earlier.
20232
20233 2010-12-21  Bruno Haible  <bruno@clisp.org>
20234
20235         New module 'roundl-ieee'.
20236         * modules/roundl-ieee: New file.
20237         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
20238         test whether roundl works according to ISO C 99 with IEC 60559.
20239         * m4/roundl-ieee.m4: New file.
20240         * modules/roundl-ieee-tests: New file.
20241         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
20242         * tests/test-roundl.c (main): Remove signbit tests.
20243         * modules/roundl-tests (Depends-on): Remove signbit.
20244         * doc/posix-functions/roundl.texi: Mention the new module.
20245
20246 2010-12-21  Bruno Haible  <bruno@clisp.org>
20247
20248         New module 'truncl-ieee'.
20249         * modules/truncl-ieee: New file.
20250         * modules/truncl-ieee-tests: New file.
20251         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
20252         * tests/test-truncl.c (main): Remove signbit tests.
20253         * modules/truncl-tests (Depends-on): Remove signbit.
20254         * doc/posix-functions/truncl.texi: Mention the new module.
20255
20256 2010-12-21  Bruno Haible  <bruno@clisp.org>
20257
20258         New module 'ceill-ieee'.
20259         * modules/ceill-ieee: New file.
20260         * modules/ceill-ieee-tests: New file.
20261         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
20262         * tests/test-ceill.c (main): Remove signbit tests.
20263         * modules/ceill-tests (Depends-on): Remove signbit.
20264         * doc/posix-functions/ceill.texi: Mention the new module.
20265
20266 2010-12-21  Bruno Haible  <bruno@clisp.org>
20267
20268         New module 'floorl-ieee'.
20269         * modules/floorl-ieee: New file.
20270         * modules/floorl-ieee-tests: New file.
20271         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
20272         * tests/test-floorl.c (main): Remove signbit tests.
20273         * modules/floorl-tests (Depends-on): Remove signbit.
20274         * doc/posix-functions/floorl.texi: Mention the new module.
20275
20276 2010-12-21  Bruno Haible  <bruno@clisp.org>
20277
20278         New module 'round-ieee'.
20279         * modules/round-ieee: New file.
20280         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
20281         whether round works according to ISO C 99 with IEC 60559.
20282         * m4/round-ieee.m4: New file.
20283         * modules/round-ieee-tests: New file.
20284         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
20285         * tests/test-round1.c (main): Remove signbit tests.
20286         * modules/round-tests (Depends-on): Remove 'signbit'.
20287         * doc/posix-functions/round.texi: Mention the new module.
20288
20289 2010-12-21  Bruno Haible  <bruno@clisp.org>
20290
20291         New module 'trunc-ieee'.
20292         * modules/trunc-ieee: New file.
20293         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
20294         whether trunc works according to ISO C 99 with IEC 60559.
20295         * m4/trunc-ieee.m4: New file.
20296         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
20297         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
20298         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
20299         * modules/trunc-ieee-tests: New file.
20300         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
20301         * tests/test-trunc1.c (main): Remove signbit tests.
20302         * modules/trunc-tests (Depends-on): Remove 'signbit'.
20303         * doc/posix-functions/trunc.texi: Mention the new module.
20304
20305 2010-12-21  Bruno Haible  <bruno@clisp.org>
20306
20307         New module 'ceil-ieee'.
20308         * modules/ceil-ieee: New file.
20309         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
20310         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
20311         ISO C 99 with IEC 60559.
20312         * m4/ceil-ieee.m4: New file.
20313         * modules/ceil (Files): Add lib/ceil.c.
20314         (Depends-on): Add 'float'.
20315         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20316         * lib/math.in.h (ceil): New declaration.
20317         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
20318         REPLACE_CEIL.
20319         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
20320         * modules/ceil-ieee-tests: New file.
20321         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
20322         * tests/test-math-c++.cc: Check the signature of 'ceil'.
20323         * doc/posix-functions/ceil.texi: Mention the new module.
20324
20325 2010-12-21  Bruno Haible  <bruno@clisp.org>
20326
20327         New module 'floor-ieee'.
20328         * modules/floor-ieee: New file.
20329         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
20330         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
20331         ISO C 99 with IEC 60559.
20332         * m4/floor-ieee.m4: New file.
20333         * modules/floor (Files): Add lib/floor.c.
20334         (Depends-on): Add 'float'.
20335         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20336         * lib/math.in.h (floor): New declaration.
20337         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
20338         REPLACE_FLOOR.
20339         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
20340         * modules/floor-ieee-tests: New file.
20341         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
20342         * tests/test-math-c++.cc: Check the signature of 'floor'.
20343         * doc/posix-functions/floor.texi: Mention the new module.
20344
20345 2010-12-21  Bruno Haible  <bruno@clisp.org>
20346
20347         New module 'roundf-ieee'.
20348         * modules/roundf-ieee: New file.
20349         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
20350         test whether roundf works according to ISO C 99 with IEC 60559.
20351         * m4/roundf-ieee.m4: New file.
20352         * modules/roundf-ieee-tests: New file.
20353         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
20354         * tests/test-roundf1.c (main): Remove signbit tests.
20355         * modules/roundf-tests (Depends-on): Remove 'signbit'.
20356         * doc/posix-functions/roundf.texi: Mention the new module.
20357
20358 2010-12-21  Bruno Haible  <bruno@clisp.org>
20359
20360         New module 'truncf-ieee'.
20361         * modules/truncf-ieee: New file.
20362         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
20363         test whether truncf works according to ISO C 99 with IEC 60559.
20364         * m4/truncf-ieee.m4: New file.
20365         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
20366         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
20367         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
20368         * modules/truncf-ieee-tests: New file.
20369         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
20370         * tests/test-truncf1.c (main): Remove signbit tests.
20371         * modules/truncf-tests (Depends-on): Remove 'signbit'.
20372         * doc/posix-functions/truncf.texi: Mention the new module.
20373
20374 2010-12-21  Bruno Haible  <bruno@clisp.org>
20375
20376         New module 'ceilf-ieee'.
20377         * modules/ceilf-ieee: New file.
20378         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
20379         test whether ceilf works according to ISO C 99 with IEC 60559.
20380         * m4/ceilf-ieee.m4: New file.
20381         * modules/ceilf-ieee-tests: New file.
20382         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
20383         * tests/test-ceilf1.c (main): Remove signbit tests.
20384         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
20385         * doc/posix-functions/ceilf.texi: Mention the new module.
20386
20387 2010-12-21  Bruno Haible  <bruno@clisp.org>
20388
20389         New module 'floorf-ieee'.
20390         * modules/floorf-ieee: New file.
20391         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
20392         test whether floorf works according to ISO C 99 with IEC 60559.
20393         * m4/floorf-ieee.m4: New file.
20394         * modules/floorf-ieee-tests: New file.
20395         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
20396         * tests/test-floorf1.c (main): Remove signbit tests.
20397         * modules/floorf-tests (Depends-on): Remove 'signbit'.
20398         * doc/posix-functions/floorf.texi: Mention the new module.
20399
20400 2010-12-21  Bruno Haible  <bruno@clisp.org>
20401
20402         Support for minus zero in autoconf macros.
20403         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
20404         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
20405         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
20406         * tests/minus-zero.h: Update comments.
20407
20408 2010-12-21  Bruno Haible  <bruno@clisp.org>
20409
20410         Tests for module 'ceil'.
20411         * modules/ceil-tests: New file.
20412         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
20413         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
20414
20415 2010-12-21  Bruno Haible  <bruno@clisp.org>
20416
20417         Tests for module 'floor'.
20418         * modules/floor-tests: New file.
20419         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
20420         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
20421
20422 2010-12-21  Bruno Haible  <bruno@clisp.org>
20423
20424         math: Fix indentation.
20425         * lib/math.in.h (floorf): Fix indentation.
20426
20427 2010-12-21  Bruno Haible  <bruno@clisp.org>
20428
20429         Fix cross-compilation guesses on Solaris.
20430         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
20431         not match "solaris2.10".
20432         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20433         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
20434         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
20435
20436 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
20437
20438         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
20439         This fixes a problem observed with the latest coreutils snapshot
20440         that caused a test to fail on Solaris 8.  src/csplit.c's call
20441         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
20442         earlier, instead of returning the number of bytes that would have
20443         been generated; this causes csplit to incorrectly report memory
20444         exhaustion.
20445         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
20446         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
20447         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
20448         comments to match.
20449         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
20450         Fix typo in matching older versions of Solaris: "solaris2.10"
20451         is matched by the shell pattern "solaris2.[0-9]*".  This matters
20452         only for guessing while cross-compiling.
20453         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
20454
20455 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
20456
20457         ftoastr: fix comment again
20458         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
20459         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
20460         Also, simplify example a bit by using flags = 0.
20461
20462 2010-12-20  Bruno Haible  <bruno@clisp.org>
20463
20464         round*, trunc*: Update documentation regarding glibc.
20465         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
20466         * doc/posix-functions/round.texi: Likewise.
20467         * doc/posix-functions/roundl.texi: Likewise.
20468         * doc/posix-functions/truncf.texi: Likewise.
20469         * doc/posix-functions/trunc.texi: Likewise.
20470         * doc/posix-functions/truncl.texi: Likewise.
20471
20472 2010-12-20  Bruno Haible  <bruno@clisp.org>
20473
20474         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
20475         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
20476         * doc/posix-functions/round.texi: Likewise.
20477         * doc/posix-functions/roundl.texi: Likewise.
20478
20479 2010-12-20  Bruno Haible  <bruno@clisp.org>
20480
20481         ttyname_r: Add missing declaration on HP-UX 11.
20482         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
20483         HAVE_TTYNAME_R.
20484         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
20485         declared. Set HAVE_TTYNAME_R always.
20486         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20487         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
20488         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
20489         HAVE_TTYNAME_R.
20490         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
20491
20492 2010-12-20  Bruno Haible  <bruno@clisp.org>
20493
20494         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
20495         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
20496         * doc/posix-functions/getlogin_r.texi: Likewise.
20497         * tests/test-getlogin.c: Include <errno.h>.
20498         (main): Avoid test failure on HP-UX 11.11.
20499         * tests/test-getlogin_r.c (main): Likewise.
20500
20501 2010-12-20  Bruno Haible  <bruno@clisp.org>
20502
20503         getlogin_r: Add missing declaration on HP-UX 11.
20504         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
20505         declared also when it exists as a function.
20506         * doc/posix-functions/getlogin_r.texi: Document this workaround.
20507
20508 2010-12-20  Bruno Haible  <bruno@clisp.org>
20509
20510         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
20511         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
20512         through wcrtomb.
20513
20514 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
20515
20516         ftoastr: fix comment
20517         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
20518         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
20519
20520 2010-12-19  Bruno Haible  <bruno@clisp.org>
20521
20522         isnan: Ensure it is a macro.
20523         * lib/math.in.h (isnan): Define as a macro if not already a macro.
20524         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
20525         Solaris.
20526
20527 2010-12-19  Bruno Haible  <bruno@clisp.org>
20528
20529         ldexpl test: Fix link error on OSF/1 5.1.
20530         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
20531
20532 2010-12-19  Bruno Haible  <bruno@clisp.org>
20533
20534         wctype: Make it work in C++ mode on OSF/1 5.1.
20535         * lib/wctype.in.h (iswblank): Declare but not define here.
20536         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
20537         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
20538         * modules/wctype (Files): Add lib/iswblank.c.
20539
20540 2010-12-19  Bruno Haible  <bruno@clisp.org>
20541
20542         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
20543         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
20544         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
20545
20546 2010-12-19  Bruno Haible  <bruno@clisp.org>
20547
20548         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
20549         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
20550         _POSIX_PII_SOCKET.
20551         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
20552         * doc/posix-functions/recvfrom.texi: Likewise.
20553         * doc/posix-functions/send.texi: Likewise.
20554         * doc/posix-functions/sendto.texi: Likewise.
20555
20556 2010-12-19  Bruno Haible  <bruno@clisp.org>
20557
20558         tcgetsid: Add missing declaration on OSF/1 5.1.
20559         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
20560         HAVE_TCGETSID.
20561         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
20562         Don't set HAVE_TCGETSID.
20563         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
20564         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
20565         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
20566         HAVE_TCGETSID.
20567         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
20568
20569 2010-12-19  Bruno Haible  <bruno@clisp.org>
20570
20571         stdio: Fix problem with popen() declaration on OSF/1 5.1.
20572         * lib/stdio.in.h: During the include_next statement, let recursive
20573         includes of this file include only the system header file.
20574
20575 2010-12-19  Bruno Haible  <bruno@clisp.org>
20576
20577         iconv_open: Fix regression from 2010-12-04.
20578         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
20579         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
20580
20581 2010-12-19  Bruno Haible  <bruno@clisp.org>
20582
20583         stdbool test: Avoid a gcc warning.
20584         * tests/test-stdbool.c (main): Fail if e1 is false.
20585         Reported by Jim Meyering.
20586
20587 2010-12-19  Jim Meyering  <meyering@redhat.com>
20588
20589         setenv: restore to working order
20590         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
20591         mistakenly removed.
20592         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
20593         HAVE_SETENV.
20594         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
20595         HAVE_SETENV.
20596
20597 2010-12-19  Bruno Haible  <bruno@clisp.org>
20598
20599         Document some different function declarations on OSF/1 5.1.
20600         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
20601         * doc/posix-functions/inet_ntop.texi: Likewise.
20602         * doc/posix-functions/gethostname.texi: Likewise.
20603         * lib/unistd.in.h (gethostname): Update comment.
20604
20605 2010-12-19  Bruno Haible  <bruno@clisp.org>
20606
20607         doc: Mention vasprintf-posix module.
20608         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
20609         the 'vasprintf-posix' module.
20610         * doc/glibc-functions/vasprintf.texi: Likewise.
20611
20612 2010-12-19  Bruno Haible  <bruno@clisp.org>
20613
20614         unsetenv: Add missing declaration on OSF/1 5.1.
20615         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
20616         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
20617         Don't set HAVE_UNSETENV. In the test program, set _BSD.
20618         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
20619         not HAVE_UNSETENV.
20620         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
20621         HAVE_UNSETENV.
20622         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
20623
20624 2010-12-19  Bruno Haible  <bruno@clisp.org>
20625
20626         setenv: Add missing declaration on OSF/1 5.1.
20627         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
20628         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
20629         declared. Don't set HAVE_SETENV.
20630         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
20631         not HAVE_SETENV.
20632         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
20633         HAVE_SETENV.
20634         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
20635
20636 2010-12-19  Bruno Haible  <bruno@clisp.org>
20637
20638         nl_langinfo tests: Avoid gcc warning.
20639         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
20640
20641 2010-12-19  Bruno Haible  <bruno@clisp.org>
20642
20643         mknod: Avoid error in C++ mode on OSF/1 with GCC.
20644         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
20645         _GL_CXXALIAS_SYS.
20646
20647 2010-12-19  Bruno Haible  <bruno@clisp.org>
20648
20649         stdbool: Relax test.
20650         * tests/test-stdbool.c (e): Don't require that casts from a variable's
20651         address to 'bool' work in static initializer, for compilers other than
20652         GCC.
20653
20654 2010-12-19  Bruno Haible  <bruno@clisp.org>
20655
20656         ftello: Add missing declaration on OSF/1 5.1.
20657         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
20658         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
20659         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
20660         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
20661         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
20662
20663 2010-12-19  Bruno Haible  <bruno@clisp.org>
20664
20665         fseeko: Add missing declaration on OSF/1 5.1.
20666         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
20667         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
20668         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
20669         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
20670         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
20671
20672 2010-12-19  Bruno Haible  <bruno@clisp.org>
20673
20674         fchdir: Add missing declaration on OSF/1 5.1.
20675         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
20676         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
20677         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
20678         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
20679         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
20680
20681 2010-12-19  Bruno Haible  <bruno@clisp.org>
20682
20683         relocatable-prog-wrapper: Separate from relocatable-prog.
20684         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
20685         uninstall-relocwrapper rule here.
20686         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
20687         Reported by Ian Beckwith <ianb@erislabs.net>.
20688
20689 2010-12-19  Bruno Haible  <bruno@clisp.org>
20690
20691         unistr/u8-mbsnlen: Add missing dependency.
20692         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
20693         Reported by Ian Beckwith <ianb@erislabs.net>.
20694
20695 2010-12-19  Bruno Haible  <bruno@clisp.org>
20696
20697         iconv: Make it possible again to use this module without 'iconv-h'.
20698         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
20699         if it is not defined.
20700         Reported by Ian Beckwith <ianb@erislabs.net>.
20701
20702 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
20703
20704         acl: port to Solaris 8 when copying from tmpfs to ufs
20705         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
20706         error number.  Problem observed on Solaris 8 with latest
20707         coreutils, with "mv A B", where A is on a tmpfs file system and B
20708         is on a ufs file system.  This caused coreutils' mv/part-symlink
20709         test to fail.
20710
20711         tests: set fail=0 at start
20712         * tests/init.sh (setup_): Move fail=0 initialization here ...
20713         (mktempd_): ... from here, so that tests can rely on fail being
20714         set to 0 initially.  This fixes a problem in coreutils; see:
20715         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
20716
20717 2010-12-18  Bruno Haible  <bruno@clisp.org>
20718
20719         memmem-simple: Stylistic changes.
20720         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
20721         Fix preprocessor directive indentation.
20722
20723 2010-12-15  Pádraig Brady <P@draigBrady.com>
20724
20725         memmem, memmem-simple: reorganize and expand empty needle check
20726         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
20727         functional checks to memmem-simple so that one has a fully functional
20728         memmem by using just this module.
20729         Restrict the performance only check to the memmem module.
20730         Also expand the empty needle check to ensure the correct
20731         pointer is returned, not just a non NULL pointer.
20732         * doc/glibc-functions/memmem.texi: Rearrange the portability
20733         documentation to correlate with the rearranged checks.
20734         Clarify exactly how the memmem and memmem-simple modules
20735         relate to each other.
20736
20737 2010-12-15  Pádraig Brady <P@draigBrady.com>
20738             Bruno Haible  <bruno@clisp.org>
20739
20740         Improve cross-compilation guesses for uClibc.
20741         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
20742         that uClibc does not have the glibc bug.
20743         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
20744         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
20745
20746 2010-12-14  Eric Blake  <eblake@redhat.com>
20747
20748         configmake: provide fallbacks for oldest supported autotools
20749         * m4/configmake.m4: New file.
20750         * modules/configmake (Files): Ship it.
20751         (configure.ac): Use it to guarantee fallbacks.
20752
20753 2010-12-13  Pádraig Brady <P@draigBrady.com>
20754
20755         read-file: Improve handling of large files
20756         * lib/read-file.c (fread_file): Minimize realloc()s
20757         for regular files, and better manage sizes around SIZE_MAX.
20758
20759 2010-12-13  Eric Blake  <eblake@redhat.com>
20760
20761         cloexec, fcntl: relax license
20762         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
20763         consent from all contributors.
20764         * modules/fcntl (License): Likewise.
20765
20766 2010-12-10  Bruno Haible  <bruno@clisp.org>
20767
20768         Tests for module 'pipe-posix'.
20769         * modules/pipe-posix-tests: New file.
20770         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
20771
20772 2010-12-10  Bruno Haible  <bruno@clisp.org>
20773
20774         pipe-posix: Make it work in C++ mode.
20775         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
20776         (pipe): Use common idiom, not a macro definition.
20777         * lib/pipe.c: New file.
20778         * m4/pipe.m4: New file.
20779         * modules/pipe-posix (Description): Enhance.
20780         (Files): Add lib/pipe.c, m4/pipe.m4.
20781         (configure.ac): Invoke gl_FUNC_PIPE.
20782         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
20783         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
20784         * tests/test-unistd-c++.cc: Check the signature of pipe.
20785
20786 2010-12-10  Bruno Haible  <bruno@clisp.org>
20787
20788         Rename module 'pipe' to 'spawn-pipe'.
20789         * modules/spawn-pipe: New file, renamed from modules/pipe.
20790         (Files, configure.ac, Makefile.am): Update.
20791         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
20792         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
20793         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
20794         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
20795         "spawn-pipe.h" instead of "pipe.h".
20796         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
20797         to gl_SPAWN_PIPE.
20798         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
20799         (Files, Makefile.am): Update.
20800         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
20801         Update.
20802         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
20803         Include "spawn-pipe.h" instead of "pipe.h".
20804         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
20805         * lib/javacomp.c: Likewise.
20806         * lib/javaversion.c: Likewise.
20807         * lib/pipe-filter-gi.c: Likewise.
20808         * lib/pipe-filter-ii.c: Likewise.
20809         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
20810         * modules/javacomp (Depends-on): Likewise.
20811         * modules/javaversion (Depends-on): Likewise.
20812         * modules/pipe-filter-gi (Depends-on): Likewise.
20813         * modules/pipe-filter-ii (Depends-on): Likewise.
20814         * MODULES.html.sh (Executing programs): Update.
20815         * NEWS: Mention the change.
20816
20817 2010-12-10  Eric Blake  <eblake@redhat.com>
20818
20819         pipe-posix: new module
20820         * modules/pipe-posix: New file.
20821         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
20822         (gl_UNISTD_H): Check for declaration.
20823         * modules/unistd (Makefile.am): Substitute it.
20824         * lib/unistd.in.h (pipe): Provide it for mingw.
20825         * doc/posix-functions/pipe.texi (pipe): Update documentation.
20826         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
20827
20828 2010-12-07  Bruno Haible  <bruno@clisp.org>
20829
20830         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
20831         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
20832         u8_strcmp_gnu.
20833         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
20834
20835 2010-12-06  Bruno Haible  <bruno@clisp.org>
20836
20837         Update internal documentation.
20838         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
20839
20840 2010-12-04  Bruno Haible  <bruno@clisp.org>
20841
20842         Put more information about failed tests into the test return codes.
20843         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
20844         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
20845         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
20846         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
20847         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
20848         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
20849         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20850         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
20851         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
20852         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20853         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
20854         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
20855         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
20856         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20857         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
20858         returns a bit mask.
20859         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
20860         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
20861         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
20862         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
20863         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
20864         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
20865         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20866         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
20867         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20868         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
20869         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
20870         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
20871         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20872         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
20873         * m4/link.m4 (gl_FUNC_LINK): Likewise.
20874         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
20875         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
20876         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
20877         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20878         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
20879         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20880         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
20881         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
20882         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20883         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20884         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
20885         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
20886         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
20887         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
20888         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
20889         gl_PRINTF_PRECISION): Likewise.
20890         * m4/regex.m4 (gl_REGEX): Likewise.
20891         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
20892         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
20893         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
20894         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20895         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20896         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20897         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
20898         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
20899         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
20900         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
20901         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
20902         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
20903         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
20904         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
20905         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
20906         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20907         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
20908         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20909         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20910         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
20911         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
20912         enumerated value.
20913         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
20914
20915 2010-12-04  Bruno Haible  <bruno@clisp.org>
20916
20917         Update for Solaris 11 2010-11.
20918         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
20919         Express, released in November 2010.
20920
20921 2010-12-04  Bruno Haible  <bruno@clisp.org>
20922
20923         nproc: Relax license.
20924         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
20925         and Paul Eggert.
20926         Requested by Ludovic Courtès <ludo@gnu.org>.
20927
20928 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
20929
20930         utimecmp: fine-grained src to nearby coarse-grained dest
20931
20932         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
20933         and the source is on a file system with higher-resolution time
20934         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
20935         not work, and the time stamps are close together, the algorithm to
20936         determine the exact resolution from the read-back mtime was buggy:
20937         it had a "!=" where it should have had an "==".  This bug has been
20938         in the code ever since it was introduced to gnulib.
20939         Problem reported by Dan Jacobson in
20940         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
20941
20942 2010-11-30  Bruno Haible  <bruno@clisp.org>
20943
20944         strerror_r-posix: Fix autoconf test.
20945         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
20946
20947 2010-11-28  Bruno Haible  <bruno@clisp.org>
20948             Paul Eggert  <eggert@cs.ucla.edu>
20949
20950         Tests for module 'getdomainname'.
20951         * modules/getdomainname-tests: New file.
20952         * tests/test-getdomainname.c: New file, based on
20953         tests/test-gethostname.c.
20954
20955 2010-11-28  Bruno Haible  <bruno@clisp.org>
20956             Paul Eggert  <eggert@cs.ucla.edu>
20957
20958         getdomainname: Use the system function when possible.
20959         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
20960         (getdomainname): Replace if needed. Provide the declaration if it is
20961         missing. Don't use _GL_CXXALIAS_SYS_CAST.
20962         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
20963         (getdomainname): When the system has getdomainname, call the system
20964         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
20965         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
20966         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
20967         found in libnsl. Look for the declaration also in <netdb.h>. Replace
20968         the function if its second argument is of type 'int' or if it is found
20969         in libnsl.
20970         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
20971         <sys/systeminfo.h> and sysinfo().
20972         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
20973         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20974         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
20975         HAVE_GETDOMAINNAME.
20976         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
20977         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
20978         * doc/glibc-functions/getdomainname.texi: Document the problems with
20979         the getdomainname declaration.
20980
20981 2010-11-28  Bruno Haible  <bruno@clisp.org>
20982
20983         sys_socket: Ensure ss_family field on AIX.
20984         * lib/sys_socket.in.h (ss_family): New macro definition.
20985         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
20986         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
20987         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
20988         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
20989         * modules/sys_socket (Makefile.am): Substitute
20990         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
20991         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
20992
20993 2010-11-27  Bruno Haible  <bruno@clisp.org>
20994
20995         readline: Improve configure output.
20996         * m4/readline.m4 (gl_FUNC_READLINE): Make the
20997         "checking for readline..." result understandable.
20998
20999 2010-11-27  Bruno Haible  <bruno@clisp.org>
21000
21001         *printf-posix: Detect a bug on Solaris 10/x86.
21002         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
21003         for floating-point output.
21004         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
21005         directive.
21006         * tests/test-snprintf-posix.h (test_function): Likewise.
21007         * tests/test-sprintf-posix.h (test_function): Likewise.
21008         * tests/test-vasprintf-posix.c (test_function): Likewise.
21009         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
21010         * doc/posix-functions/printf.texi: Likewise.
21011         * doc/posix-functions/snprintf.texi: Likewise.
21012         * doc/posix-functions/sprintf.texi: Likewise.
21013         * doc/posix-functions/vfprintf.texi: Likewise.
21014         * doc/posix-functions/vprintf.texi: Likewise.
21015         * doc/posix-functions/vsnprintf.texi: Likewise.
21016         * doc/posix-functions/vsprintf.texi: Likewise.
21017         * doc/glibc-functions/obstack_printf.texi: Likewise.
21018         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
21019
21020 2010-11-27  Bruno Haible  <bruno@clisp.org>
21021
21022         Fix link error when module libunistring-optional is in use.
21023         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
21024         * modules/striconveha-tests (Makefile.am): Likewise.
21025
21026 2010-11-27  Bruno Haible  <bruno@clisp.org>
21027
21028         regex: Mention link dependencies.
21029         * modules/regex (Link): New section.
21030         * modules/rpmatch (Link): Likewise.
21031         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
21032
21033 2010-11-27  Bruno Haible  <bruno@clisp.org>
21034
21035         ftoastr: Fix compilation error on Solaris.
21036         * lib/ftoastr.c: Include <config.h>.
21037
21038 2010-11-27  Bruno Haible  <bruno@clisp.org>
21039
21040         getloadavg: Update documentation.
21041         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
21042
21043 2010-11-27  Bruno Haible  <bruno@clisp.org>
21044
21045         sys_socket: Fix test whether the functions are declared.
21046         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
21047         not <sys/select.h>.
21048
21049 2010-11-27  Bruno Haible  <bruno@clisp.org>
21050
21051         getpass: Make sure to get system declaration on some platforms.
21052         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
21053         gl_USE_SYSTEM_EXTENSIONS.
21054         * modules/getpass (Depends-on): Add extensions.
21055
21056 2010-11-26  Bruno Haible  <bruno@clisp.org>
21057
21058         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
21059         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
21060         'iconv' module is present.
21061         (ICONV_CONST): New macro.
21062         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
21063         ICONV_CONST.
21064         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
21065         set ICONV_CONST.
21066         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
21067         here.
21068         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
21069         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
21070         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
21071         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
21072         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
21073         present.
21074
21075 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
21076
21077         ftoastr: comment fix
21078         * lib/ftoastr.c: "little" -> "little or no" in comment
21079
21080 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
21081
21082         stdint: port to GCC 4.3 + OSX + Octave
21083         On this platform, stdint.h is buggy and defines int64_t to long
21084         long int.  The replacement defined it to long int, causing
21085         problems with C++ style name mangling.  Instead, trust the system
21086         definition if INT64_MAX is defined, and likewise for the unsigned
21087         variant.   Problem reported by Jarno Rajahalme in
21088         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
21089         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
21090         and don't mess with int64_t and INT64_MAX in this case.
21091         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
21092
21093 2010-11-24  Bruno Haible  <bruno@clisp.org>
21094
21095         doc: Corrections regarding MacOS X 10.4 and 10.5.
21096         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
21097         MacOS X.
21098         Reported by Simon Josefsson.
21099
21100 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
21101
21102         Uninstall ".bin" files installed by relocwrapper.
21103         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
21104         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
21105         unless it is already there.
21106
21107 2010-11-21  Bruno Haible  <bruno@clisp.org>
21108
21109         Update for NetBSD 5.0.
21110         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
21111         NetBSD; the test fails on NetBSD 5.0.
21112         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
21113         about NetBSD.
21114
21115 2010-11-21  Bruno Haible  <bruno@clisp.org>
21116
21117         Update for HP-UX 11.23 and HP-UX 11.31.
21118         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
21119         HP-UX.
21120
21121 2010-11-21  Bruno Haible  <bruno@clisp.org>
21122
21123         Update for MacOS X 10.5.
21124         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
21125         MacOS X; the test fails on MacOS X 10.5.8.
21126         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
21127         about MacOS X.
21128
21129 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
21130
21131         bootstrap: add bootstrap_sync option.
21132         See discussion at
21133         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
21134         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
21135         * build-aux/bootstrap: Accept --bootstrap-sync to update
21136         bootstrap if it is not identical to the local gnulib's
21137         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
21138         enable this by default.  Accept --no-bootstrap-sync to disable
21139         it.
21140
21141 2010-11-20  Bruno Haible  <bruno@clisp.org>
21142
21143         Ensure that <features.h> is included before __GLIBC__ is tested.
21144         * lib/printf-parse.h: Include <features.h>.
21145         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
21146         Reported by Mike Frysinger <vapier@gentoo.org>.
21147
21148         Ensure that <features.h> is included before __GLIBC__ is tested.
21149         * lib/wchar.in.h: Include <features.h>.
21150         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
21151         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
21152         Reported by Mike Frysinger <vapier@gentoo.org>.
21153
21154         Ensure that <features.h> is included before __GLIBC__ is tested.
21155         * lib/arpa_inet.in.h: Include <features.h>.
21156         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
21157         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
21158         Reported by Mike Frysinger <vapier@gentoo.org>.
21159
21160         Ensure that <features.h> is included before __GLIBC__ is tested.
21161         * build-aux/link-warning.h: Include <features.h>.
21162         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
21163         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
21164         Reported by Mike Frysinger <vapier@gentoo.org>.
21165
21166         Ensure that <features.h> is included before __GLIBC__ is tested.
21167         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
21168         Reported by Mike Frysinger <vapier@gentoo.org>.
21169
21170 2010-11-20  Bruno Haible  <bruno@clisp.org>
21171
21172         memmem: Fix autoconf test.
21173         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
21174
21175 2010-11-20  Bruno Haible  <bruno@clisp.org>
21176
21177         Port to uClibc.
21178         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
21179         * lib/fcntl.in.h: Likewise.
21180         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
21181         * lib/mbrtowc.c (mbrtowc): Likewise.
21182         * lib/relocatable.c (find_shared_library_fullname): Likewise.
21183         * lib/strerror_r.c: Likewise.
21184         * lib/unistr/u8-strnlen.c: Likewise.
21185         * lib/vasnprintf.c (decimal_point_char): Likewise.
21186         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
21187         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
21188         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
21189         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
21190         * tests/test-sigaction.c (handler, main): Likewise.
21191         * lib/freading.h: Treat uClibc like a non-glibc platform.
21192         * lib/freading.c: Likewise.
21193         * lib/gettext.h: Likewise.
21194         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
21195         Likewise.
21196         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
21197         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
21198         * lib/propername.c (proper_name_utf8): Likewise.
21199         * lib/spawn.in.h: Likewise.
21200         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
21201         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
21202         mem_cd_iconveh_internal): Likewise.
21203         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
21204         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
21205         strstr, strcasestr): Likewise.
21206         * lib/unicodeio.c (unicode_to_mb): Likewise.
21207         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
21208         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
21209         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
21210         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
21211         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
21212         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
21213         * lib/unistr/u8-stpncpy.c: Likewise.
21214         * lib/vasnprintf.c (VASNPRINTF): Likewise.
21215         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
21216         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
21217         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
21218         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
21219         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
21220         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
21221         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
21222         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
21223         Likewise.
21224         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
21225         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
21226         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
21227         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21228         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
21229         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21230         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21231         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
21232         * tests/test-getopt.h (OPTIND_MIN): Likewise.
21233         * tests/test-striconveha.c (main): Likewise.
21234         * tests/test-vasnprintf-posix.c (test_function): Likewise.
21235         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
21236         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
21237         * doc/posix-functions/getline.texi: Likewise.
21238         Reported by Mike Frysinger <vapier@gentoo.org>.
21239
21240 2010-11-20  Bruno Haible  <bruno@clisp.org>
21241
21242         nproc: Fix condition.
21243         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
21244         HAVE_PTHREAD_AFFINITY_NP.
21245
21246 2010-11-20  Bruno Haible  <bruno@clisp.org>
21247
21248         Fix a comment.
21249         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
21250
21251 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
21252
21253         ftoastr: don't assume snprintf
21254         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
21255         Implement a subset of snprintf here, by using sprintf safely.
21256         * modules/ftoastr (Depends-on): Remove snprintf.
21257
21258 2010-11-19  Jim Meyering  <meyering@redhat.com>
21259
21260         test-rename.h: fix compilation failure
21261         * tests/test-rename.h (test_rename): Add omitted "}".
21262
21263 2010-11-17  Jim Meyering  <meyering@redhat.com>
21264
21265         maint.mk: add a URL discussing the no-@acronym policy
21266         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
21267
21268 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
21269
21270         ftoastr: depend on snprintf, improve comments
21271         * lib/ftoastr.c: Also mention Loitsch's draft.
21272         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
21273         needed in the current implementation, but it might simplify
21274         speeding up the code later.
21275         * modules/ftoastr: Depend on snprintf; this improves portability.
21276         Suggested by Bruno Haible in the same email.
21277
21278         ftoastr: port to hosts lacking strtof and strtold
21279         Problem reported by Bruno Haible in
21280         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
21281         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
21282         environment and strtold (and presumably strtof) are not available.
21283         * modules/ftoastr (Files): Add m4/c-strtod.m4.
21284         (configure.ac): Require gl_C99_STRTOLD.
21285
21286 2010-11-18  Bruno Haible  <bruno@clisp.org>
21287
21288         c-strtold: Avoid link error on AIX 7.
21289         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
21290         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
21291         (gl_C_STRTOLD): Test whether strtold_l exists.
21292         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21293
21294 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
21295
21296         intprops: new macro INT_BITS_STRLEN_BOUND
21297         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
21298         ftoastr.h.  This exposes an internal of intprops.h that was formerly
21299         not exposed.  Also, it uses a slightly tighter bound than before;
21300         though this makes no practical difference, we might as well be as
21301         tight as we easily can.
21302
21303         ftoastr: new module, for lossless conversion of floats to short strings
21304         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
21305         * modules/ftoastr: New files.
21306
21307 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
21308
21309         bootstrap: port to Solaris sed
21310         * build-aux/bootstrap (get_version): Port to Solaris sed.
21311         See Ralf Wildenhues's note in
21312         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
21313
21314 2010-11-14  Jim Meyering  <meyering@redhat.com>
21315
21316         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
21317         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
21318         and move definition closer to sole use.
21319
21320 2010-11-13  Jim Meyering  <meyering@redhat.com>
21321
21322         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
21323         Now we require at least autoconf-2.59, which means the work-around
21324         is no longer needed.
21325         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
21326         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
21327         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
21328         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
21329         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
21330
21331 2010-11-13  Bruno Haible  <bruno@clisp.org>
21332
21333         rename, renameat: Avoid test failures at NFS mounted locations.
21334         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
21335         functions.
21336         (test_rename): Use assert_nonexistent.
21337         * tests/test-rename.c: Include <dirent.h>.
21338         * tests/test-renameat.c: Likewise.
21339         Reported by Gary V. Vaughan <gary@gnu.org>.
21340
21341         rename, renameat: Document Linux bug with NFS
21342         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
21343         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
21344         * doc/posix-functions/renameat.texi: Likewise.
21345         Suggested by Eric Blake.
21346
21347 2010-11-13  Bruno Haible  <bruno@clisp.org>
21348
21349         rename test: Add comments.
21350         * tests/test-rename.h (test_rename): Add structure and comments.
21351
21352 2010-11-13  Eric Blake  <eblake@redhat.com>
21353
21354         maintainer-makefile: cover a few more files
21355         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
21356         scripts generated within C files, for libvirt.
21357
21358 2010-11-13  Bruno Haible  <bruno@clisp.org>
21359
21360         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
21361         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
21362         character, return the number of bytes that belong together, not always
21363         1.
21364         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
21365         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
21366         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
21367         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
21368         number of bytes of an invalid character.
21369         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
21370         (main): Invoke it.
21371         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
21372         results.
21373         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
21374         malformed byte sequences.
21375         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
21376         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
21377         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
21378         Reported by Ben Pfaff and Paolo Bonzini.
21379
21380 2010-11-13  Bruno Haible  <bruno@clisp.org>
21381
21382         openat: Work around glibc bug with fchownat() and empty file names.
21383         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
21384         (gl_FUNC_FCHOWNAT): Invoke it.
21385         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
21386         * doc/posix-functions/fchownat.texi: Document the glibc bug.
21387         Reported by Gary V. Vaughan <gary@gnu.org>.
21388
21389 2010-11-13  Bruno Haible  <bruno@clisp.org>
21390
21391         openat: Ensure autoconf macro ordering.
21392         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
21393         gl_USE_SYSTEM_EXTENSIONS.
21394         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
21395
21396 2010-11-13  Bruno Haible  <bruno@clisp.org>
21397
21398         Update comments.
21399         * lib/unistr/u8-check.c: Update file name in comments.
21400         * lib/unistr/u8-mblen.c: Likewise.
21401         * lib/unistr/u8-prev.c: Likewise.
21402         * lib/unistr/u8-strmblen.c: Likewise.
21403         * lib/unistr/u8-strmbtouc.c: Likewise.
21404
21405 2010-11-13  Jim Meyering  <meyering@redhat.com>
21406
21407         tests: avoid test failure on Solaris 10 due to lack of PATH export
21408         * tests/test-update-copyright.sh: Don't forget to export PATH.
21409
21410         init.sh: ensure that IFS is defined, just in case...
21411         * tests/init.sh (setup_): Ensure that IFS is defined,
21412         so that saving and restoring it works as expected.  This
21413         appears to be useful at least for an old version of dash
21414         from a long time ago (RH 6).  See here for details:
21415         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
21416
21417         maint.mk: tighten "test a == b" check
21418         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
21419         test to files that contain something like #!/bin/sh.
21420         Without this, coreutils would get two false positives in
21421         the comments of C source files.
21422
21423 2010-11-12  Eric Blake  <eblake@redhat.com>
21424
21425         bootstrap: fix typo in previous attempt
21426         * build-aux/bootstrap (buildreq): Correct the grouping.
21427         Reported by Paul Eggert.
21428
21429         maintainer-makefile: prohibit test x == x
21430         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
21431         Based on a report by Matthias Bolte.
21432
21433         bootstrap: allow FreeBSD gzip
21434         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
21435         which has no '.' and goes to stderr.
21436         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
21437         Reported by Matthias Bolte.
21438
21439         maintainer-makefile: check for i18n setup
21440         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
21441         will likely work.
21442
21443 2010-11-12  Bruno Haible  <bruno@clisp.org>
21444
21445         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
21446         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
21447         * lib/nanosleep.c (nanosleep): Likewise.
21448
21449 2010-11-11  Bruno Haible  <bruno@clisp.org>
21450
21451         fcntl-h: Fix for use of C++ on glibc systems.
21452         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
21453         also on glibc systems in C++ mode.
21454         Reported by Gary V. Vaughan <gary@gnu.org>.
21455
21456 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21457
21458         mknod: avoid false failure with dash
21459         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
21460
21461 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
21462
21463         unlink: Fix "is it should" typo in diagnostic.
21464         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
21465         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
21466
21467 2010-11-11  Bruno Haible  <bruno@clisp.org>
21468
21469         Tests for module 'strerror_r-posix'.
21470         * modules/strerror_r-posix-tests: New file.
21471         * tests/test-strerror_r.c: New file.
21472         * tests/test-string-c++.cc: Check the signature of strerror_r.
21473
21474         New module 'strerror_r-posix'.
21475         * lib/string.in.h (strerror_r): New declaration.
21476         * lib/strerror_r.c: New file.
21477         * m4/strerror_r.m4: New file.
21478         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
21479         of strerror_r.
21480         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
21481         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
21482         * modules/strerror_r-posix: New file.
21483         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
21484         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
21485         * doc/posix-functions/strerror_r.texi: Mention the new module and the
21486         portability problems.
21487
21488 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
21489
21490         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
21491         line is also considered for output. Quoted function name in shell
21492         command, so temporary files for functions like MyClass::operator()
21493         are removed correctly without errors.
21494
21495 2010-11-09  Bruno Haible  <bruno@clisp.org>
21496
21497         * doc/posix-functions/strerror.texi: List more failing platforms.
21498
21499         * doc/posix-functions/strerror.texi: Add a comment.
21500
21501 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
21502
21503         fdopendir: fix bug on MacOS X when low on file descriptors
21504
21505         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
21506         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
21507         All callers changed.
21508         (fdopendir): Invoke save_cwd at the top level, not after using
21509         multiple dup() calls to use up file descriptors.  Then retry
21510         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
21511         less than the maximum number of open file descriptors, because
21512         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
21513         on Mac OS X 10.6.4 for tar 1.24
21514         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
21515         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
21516         and for tar 1.25
21517         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
21518
21519 2010-11-07  Bruno Haible  <bruno@clisp.org>
21520
21521         vasnprintf: Support I flag on glibc systems.
21522         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
21523         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
21524         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
21525         snprintf function.
21526         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
21527         glibc systems.
21528         * tests/test-vasnprintf-posix3.c: New file.
21529         * modules/vasnprintf-posix-tests (Files): Add it.
21530         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
21531
21532 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
21533
21534         [html] Fix copy/paste bug: Use unique name for compiler warnings.
21535         * MODULES.html.sh: For compiler warnings, use name
21536         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
21537
21538 2010-11-05  Eric Blake  <eblake@redhat.com>
21539
21540         ceil, floor: avoid spurious failure with icc
21541         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
21542         [denormals-as-zero] when optimizing without -mieee-fp option.
21543         * tests/test-floorf2.c (floorf_reference): Likewise.
21544         * tests/test-ceilf1.c (dummy): New function.
21545         (main): Use it to outsmart icc's optimization.
21546         * tests/test-floorf1.c (dummy, main): Likewise.
21547
21548         tests: require working signbit
21549         * modules/ceilf-tests (Depends-on): Add signbit.
21550         * modules/ceill-tests (Depends-on): Likewise.
21551         * modules/floorf-tests (Depends-on): Likewise.
21552         * modules/floorl-tests (Depends-on): Likewise.
21553         * modules/round-tests (Depends-on): Likewise.
21554         * modules/roundf-tests (Depends-on): Likewise.
21555         * modules/roundl-tests (Depends-on): Likewise.
21556         * modules/trunc-tests (Depends-on): Likewise.
21557         * modules/truncf-tests (Depends-on): Likewise.
21558         * modules/truncl-tests (Depends-on): Likewise.
21559
21560         strtod: work around icc bug
21561         * lib/strtod.c (minus_zero): Define to working value.
21562         (strtod): Use it to avoid icc bug.
21563
21564         copysign: enhance tests
21565         * modules/copysign-tests (Files): Add minus-zero.h.
21566         * tests/test-copysign.c (main): Also test zeros.
21567
21568 2010-11-04  Eric Blake  <eblake@redhat.com>
21569
21570         ceil, floor, round, trunc: enhance tests of -0
21571         * tests/test-ceilf1.c (main): Ensure correct sign of result.
21572         * tests/test-ceill.c (main): Likewise.
21573         * tests/test-floorf1.c (main): Likewise.
21574         * tests/test-floorl.c (main): Likewise.
21575         * tests/test-round1.c (main): Likewise.
21576         * tests/test-roundf1.c (main): Likewise.
21577         * tests/test-roundl.c (main): Likewise.
21578         * tests/test-trunc1.c (main): Likewise.
21579         * tests/test-truncf1.c (main): Likewise.
21580         * tests/test-truncl.c (main): Likewise.
21581
21582 2010-11-04  Eric Blake  <eblake@redhat.com>
21583
21584         frexp, tests: work around ICC bug with -zero
21585         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
21586         works with more compilers.
21587         * tests/minus-zero.h: New file.
21588         * modules/ceilf-tests (Files): Include it.
21589         * modules/ceill-tests (Files): Likewise.
21590         * modules/floorf-tests (Files): Likewise.
21591         * modules/floorl-tests (Files): Likewise.
21592         * modules/frexp-nolibm-tests (Files): Likewise.
21593         * modules/frexp-tests (Files): Likewise.
21594         * modules/frexpl-nolibm-tests (Files): Likewise.
21595         * modules/frexpl-tests (Files): Likewise.
21596         * modules/isnan-tests (Files): Likewise.
21597         * modules/isnand-nolibm-tests (Files): Likewise.
21598         * modules/isnand-tests (Files): Likewise.
21599         * modules/isnanf-nolibm-tests (Files): Likewise.
21600         * modules/isnanf-tests (Files): Likewise.
21601         * modules/isnanl-nolibm-tests (Files): Likewise.
21602         * modules/isnanl-tests (Files): Likewise.
21603         * modules/round-tests (Files): Likewise.
21604         * modules/roundf-tests (Files): Likewise.
21605         * modules/roundl-tests (Files): Likewise.
21606         * modules/ldexpl-tests (Files): Likewise.
21607         * modules/signbit-tests (Files): Likewise.
21608         * modules/snprintf-posix-tests (Files): Likewise.
21609         * modules/sprintf-posix-tests (Files): Likewise.
21610         * modules/strtod-tests (Files): Likewise.
21611         * modules/trunc-tests (Files): Likewise.
21612         * modules/truncf-tests (Files): Likewise.
21613         * modules/truncl-tests (Files): Likewise.
21614         * modules/vsnprintf-posix-tests (Files): Likewise.
21615         * modules/vsprintf-posix-tests (Files): Likewise.
21616         * modules/vasnprintf-posix-tests (Files): Likewise.
21617         * modules/vasprintf-posix-tests (Files): Likewise.
21618         * tests/test-ceilf1.c (main): Use it.
21619         * tests/test-ceill.c (main): Likewise.
21620         * tests/test-floorf1.c (main): Likewise.
21621         * tests/test-floorl.c (main): Likewise.
21622         * tests/test-frexp.c (main): Likewise.
21623         * tests/test-frexpl.c (main): Likewise.
21624         * tests/test-isnan.c (main): Likewise.
21625         * tests/test-isnand.h (main): Likewise.
21626         * tests/test-isnanf.h (main): Likewise.
21627         * tests/test-isnanl.h (main): Likewise.
21628         * tests/test-ldexpl.c (main): Likewise.
21629         * tests/test-round.c (main): Likewise.
21630         * tests/test-roundf.c (main): Likewise.
21631         * tests/test-roundl.c (main): Likewise.
21632         * tests/test-signbit.c (test_signbitf, test_signbitd)
21633         (test_signbitl): Likewise.
21634         * tests/test-snprintf-posix.h (test_function): Likewise.
21635         * tests/test-sprintf-posix.h (test_function): Likewise.
21636         * tests/test-strtod.c (main): Likewise.
21637         * tests/test-trunc1.c (main): Likewise.
21638         * tests/test-truncf1.c (main): Likewise.
21639         * tests/test-truncl.c (main): Likewise.
21640
21641         isnanl: work around icc bug
21642         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
21643
21644 2010-11-03  Eric Blake  <eblake@redhat.com>
21645
21646         tests: fix compiler warnings
21647         * tests/test-getopt.h (test_getopt): Fix condition.
21648         * tests/test-getopt_long.h (test_getopt_long): Likewise.
21649         * tests/test-pipe2.c (main): Likewise.
21650         * tests/test-quotearg-simple.c (main): Avoid icc warning.
21651
21652         utimens: fix broken m4 test
21653         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
21654
21655 2010-10-28  Bruno Haible  <bruno@clisp.org>
21656
21657         posix_spawn*, getdtablesize: Relax license.
21658         * modules/posix_spawn (License): Change to LGPLv2+.
21659         * modules/posix_spawnp (License): Likewise.
21660         * modules/posix_spawn-internal (License): Likewise.
21661         * modules/posix_spawnattr_init (License): Likewise.
21662         * modules/posix_spawnattr_getflags (License): Likewise.
21663         * modules/posix_spawnattr_setflags (License): Likewise.
21664         * modules/posix_spawnattr_getpgroup (License): Likewise.
21665         * modules/posix_spawnattr_setpgroup (License): Likewise.
21666         * modules/posix_spawnattr_getschedparam (License): Likewise.
21667         * modules/posix_spawnattr_setschedparam (License): Likewise.
21668         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
21669         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
21670         * modules/posix_spawnattr_getsigdefault (License): Likewise.
21671         * modules/posix_spawnattr_setsigdefault (License): Likewise.
21672         * modules/posix_spawnattr_getsigmask (License): Likewise.
21673         * modules/posix_spawnattr_setsigmask (License): Likewise.
21674         * modules/posix_spawnattr_destroy (License): Likewise.
21675         * modules/posix_spawn_file_actions_init (License): Likewise.
21676         * modules/posix_spawn_file_actions_addclose (License): Likewise.
21677         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
21678         * modules/posix_spawn_file_actions_addopen (License): Likewise.
21679         * modules/posix_spawn_file_actions_destroy (License): Likewise.
21680         * modules/getdtablesize (License): Likewise.
21681         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
21682
21683 2010-10-26  Bruno Haible  <bruno@clisp.org>
21684
21685         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
21686         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
21687         Cygwin and mingw.
21688         Suggested by Eric Blake.
21689
21690 2010-10-26  Bruno Haible  <bruno@clisp.org>
21691
21692         stdio: Work around compilation error due to renameat() on Solaris 10.
21693         * lib/stdio.in.h: Include <unistd.h> on Solaris.
21694         * lib/renameat.c: Don't include <unistd.h> here.
21695         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
21696         Reported by Paul Eggert and Eric Blake.
21697
21698 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
21699
21700         renameat: port to Solaris 10, which declares renameat in unistd.h
21701
21702         * lib/renameat.c: Include unistd.h before stdio.h, because
21703         Solaris 10 declares renameat in unistd.h.  Problem encountered
21704         when building GNU tar 1.24 on Solaris 10.
21705
21706 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21707
21708         fdopendir: fix C89 compilation
21709         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
21710         compilers.
21711
21712 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
21713
21714         inttostr: simplify by removing unnecessary redundancy
21715         * lib/anytostr.c: Don't include verify.h.
21716         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
21717         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
21718         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
21719         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
21720         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
21721         Likewise.
21722         * modules/inttostr (Depends-on): Remove 'verify'.
21723
21724 2010-10-23  Bruno Haible  <bruno@clisp.org>
21725
21726         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
21727         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
21728         Reported by Eric Blake.
21729
21730 2010-10-23  Bruno Haible  <bruno@clisp.org>
21731
21732         Tests: Fix LOCALE_JA on MirBSD 10.
21733         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
21734         to an UTF-8 locale.
21735         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
21736         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
21737         Reported by Eric Blake.
21738
21739 2010-10-21  Bruno Haible  <bruno@clisp.org>
21740
21741         nl_langinfo test: Avoid test failure on NetBSD 5.
21742         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
21743         Reported by Eric Blake.
21744
21745 2010-10-21  Eric Blake  <eblake@redhat.com>
21746
21747         c-stack: work around libsigsegv 2.8 bug
21748         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
21749         overflow on at least PowerPC64.
21750
21751 2010-10-17  Bruno Haible  <bruno@clisp.org>
21752
21753         userspec: Drop redundant file.
21754         * modules/userspec (Files): Remove lib/inttostr.h.
21755
21756 2010-10-17  Bruno Haible  <bruno@clisp.org>
21757
21758         nl_langinfo tests: Silence some warnings.
21759         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
21760         Reported by Jim Meyering.
21761
21762 2010-10-17  Bruno Haible  <bruno@clisp.org>
21763
21764         Make use of GCC's attribute __alloc_size__.
21765         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
21766         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
21767         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
21768         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
21769         __alloc_size__.
21770         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
21771         Suggested by Jim Meyering.
21772
21773 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
21774
21775         bootstrap: anchor .gitignore entries.
21776         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
21777         with...
21778         (insert_vc_ignore): ... this new function, which prepends `/' to
21779         all .gitignore entries before passing them to
21780         insert_sorted_if_absent.
21781
21782 2010-10-16  Bruno Haible  <bruno@clisp.org>
21783
21784         nextafter: Fix configure check.
21785         * modules/nextafter (configure.ac): Correct expected prototype.
21786
21787 2010-10-16  Bruno Haible  <bruno@clisp.org>
21788
21789         termios: Update documentation.
21790         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
21791
21792 2010-10-16  Bruno Haible  <bruno@clisp.org>
21793
21794         tests: Make them compile with TinyCC.
21795         * tests/test-strstr.c (main): Remove parentheses around array
21796         initializer.
21797
21798 2010-10-15  Eric Blake  <eblake@redhat.com>
21799
21800         ignore-value: make header idempotent
21801         * lib/ignore-value.h: Add double-inclusion guards.
21802         Reported by Stefan Berger.
21803
21804 2010-10-15  Jim Meyering  <meyering@redhat.com>
21805
21806         GNUmakefile: handle "stable" target, not "major"
21807         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
21808         lists in maint.mk and announce-gen.  Without this, "make stable"
21809         would fail to ensure that $(VERSION) is up to date.
21810
21811 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
21812
21813         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
21814         & co.
21815
21816 2010-10-14  Bruno Haible  <bruno@clisp.org>
21817
21818         vasnprintf: Don't set errno to 0.
21819         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
21820         block that sets it to 0.
21821         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
21822
21823 2010-10-14  Bruno Haible  <bruno@clisp.org>
21824
21825         socketlib: Fix.
21826         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
21827         gl_PREREQ_SYS_H_WINSOCK2.
21828         Reported by Ian Beckwith <ianb@erislabs.net>.
21829
21830 2010-10-13  Jim Meyering  <meyering@redhat.com>
21831
21832         test-select-stdin.c: avoid warn_unused_result warnings
21833         * tests/test-select-stdin.c: Include "macros.h".
21834         ASSERT that read and fflush succeed.
21835
21836 2010-10-13  Jim Meyering  <meyering@redhat.com>
21837
21838         git-version-gen: do require git-VC'd files in cwd
21839         * build-aux/git-version-gen: Reject a git version string
21840         if there are no commits associated with the current directory.
21841         This avoids an unlikely false-positive (unrelated dir whose parent
21842         repository also contains a tag matching v*), as pointed out
21843         by Giuseppe Scrivano in
21844         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
21845
21846 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
21847
21848         argv-iter: omit nonconforming declaration
21849         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
21850         enum arg_iter_err declaration, which doesn't conform to C99.
21851         Solaris 10 cc warns about this.
21852
21853 2010-10-13  Eric Blake  <eblake@redhat.com>
21854
21855         termios: fix compilation on mingw
21856         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
21857         (gl_TERMIOS_H): Adjust it on mingw.
21858         * modules/termios (Makefile.am): Substitute new key.
21859         * lib/termios.in.h (includes): Make include_next conditional.
21860         * doc/posix-headers/termios.texi (termios.h): Update
21861         documentation.
21862         Reported by Daniel P. Berrange.
21863
21864 2010-10-13  Jim Meyering  <meyering@redhat.com>
21865
21866         git-version-gen: don't require that .git/ be in the current dir
21867         * build-aux/git-version-gen: Adjust this script so that it works
21868         when run from any working directory beneath the top-level .git/-
21869         containing directory.  Inspired by a patch from Giuseppe Scrivano,
21870         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
21871
21872         test-select: avoid warn_unused_result warnings
21873         * tests/test-select.c: Include "macros.h".
21874         ASSERT that each call to read, write, and pipe succeeds.
21875         While not technically required, also check each "close".
21876         * modules/select-tests (Files): Add tests/macros.h.
21877
21878         test-symlinkat: remove declaration of unused local
21879         * tests/test-symlinkat.c (main): Remove unused local, "buf".
21880
21881         test-inttostr: avoid shadowing warnings
21882         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
21883         and use malloc rather than the stack for the same reason as
21884         mentioned in the comment justifying the other allocation.
21885
21886 2010-10-11  Bruno Haible  <bruno@clisp.org>
21887
21888         stdlib: Allow multiple gnulib generated replacements to coexist.
21889         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
21890         Reported by Sam Steingold <sds@gnu.org>.
21891
21892 2010-10-11  Jim Meyering  <meyering@redhat.com>
21893
21894         fix a documentation typo
21895         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
21896
21897 2010-10-11  Eric Blake  <eblake@redhat.com>
21898
21899         futimens: work around Solaris 11 bug
21900         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
21901         * tests/test-futimens.h (test_futimens): Enhance, rather than
21902         weaken test.
21903         * doc/posix-functions/futimens.texi (futimens): Document the bug.
21904
21905 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
21906
21907         Indentation.
21908         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
21909         higher-level operators more to the left.
21910
21911 2010-10-11  Jim Meyering  <meyering@redhat.com>
21912
21913         test-futimens: avoid unwarranted test failure on Solaris 5.11
21914         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
21915         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
21916         because it tries to dereference the NULL name argument.
21917
21918 2010-10-11  Bruno Haible  <bruno@clisp.org>
21919
21920         Indentation.
21921         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
21922         indentation.
21923
21924 2010-10-11  Jim Meyering  <meyering@redhat.com>
21925
21926         spawn.in.h: make indentation consistent with parentheses
21927         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
21928         Make indentation consistent with parentheses.
21929
21930 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
21931
21932         Fix mismatched parens in previous commit
21933         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
21934         parens.
21935
21936 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
21937
21938         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
21939
21940         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
21941         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
21942         * lib/malloca.c: Include "verify.h".
21943         (verify1): Remove, replacing with a verify call.
21944         * lib/relocwrapper.c (verify1): Likewise.
21945         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
21946         Likewise.
21947         * modules/malloca (Depends-on): Add 'verify'.
21948         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
21949         * modules/vasnprintf (Depends-on): Add 'verify'.
21950         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21951         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21952         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21953         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21954         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21955         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21956         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21957
21958         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
21959
21960         Formerly the style was sometimes 2*X - 1, because the C standard
21961         was wrongly thought to disallow ?: in integral constant expressions.
21962         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
21963         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
21964         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
21965         * lib/stdint.in.h (_verify_intmax_size): Likewise.
21966         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
21967         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
21968         verify that time_t cannot be floating.
21969
21970 2010-10-08  Eric Blake  <eblake@redhat.com>
21971
21972         time: enforce recent POSIX ruling that time_t is integral
21973         * lib/time.in.h (__time_t_must_be_integral): Detect any
21974         problematic systems, allowing the rest of gnulib to assume POSIX.
21975
21976 2010-10-08  Jim Meyering  <meyering@redhat.com>
21977
21978         fdopendir: fix a bug on systems lacking openat and /proc support
21979         OpenBSD 4.7 is one such system.  The most noticeable effect was
21980         failure of any application making nontrivial use of fts: rm, du,
21981         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
21982           ./rm: traversal failed: `a': Bad file descriptor
21983         Debugging that, you see that even though FD 6 was closed just
21984         prior to the opendir call in fd_clone_opendir, its resulting
21985         dir->dd_fd was 8, rather than the expected value of 6:
21986
21987         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
21988         93                close (fd);
21989         (gdb) n
21990         94                dir = fd_clone_opendir (dupfd);
21991         (gdb) n
21992         95                saved_errno = errno;
21993         (gdb) p dir->dd_fd
21994         $11 = 8
21995
21996         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
21997         The problem is that on OpenBSD, fd_clone_opendir has to resort
21998         to using the old-style save/restore CWD mechanism, due to its
21999         lack of openat/proc support, and *that* would steal the FD (6)
22000         that opendir was supposed to use.
22001
22002         The fix is to squirrel away the desired FD so that save_cwd uses a
22003         different one, and then free the dest FD right before calling opendir.
22004         That guarantees opendir will use the required file descriptor.
22005
22006         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
22007
22008 2010-10-08  Bruno Haible  <bruno@clisp.org>
22009
22010         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
22011         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
22012
22013 2010-10-08  Bruno Haible  <bruno@clisp.org>
22014
22015         nanosleep: Make replacement POSIX compliant.
22016         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
22017         is out of range.
22018         Reported by Jim Meyering.
22019
22020 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
22021
22022         bootstrap: add hook for altering gnulib.mk, for Bison
22023         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
22024         the Bison bootstrapping process can rewrite file names and variables
22025         in this file before later parts of 'bootstrap' use the file.
22026         Bison wants to include lib/gnulib.mk from the top-level makefile,
22027         so it needs the file names in this file to be relative to the top
22028         level, not relative to lib; plus it needs variable names to be
22029         rewritten.
22030         (slurp): Use the new function.
22031
22032         bootstrap: reformat for readability
22033         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
22034
22035 2010-10-08  Eric Blake  <eblake@redhat.com>
22036
22037         docs: update cygwin progress
22038         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
22039         1.7.7.
22040         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
22041         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
22042         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
22043         * doc/posix-functions/carg.texi (carg): Likewise.
22044         * doc/posix-functions/cargf.texi (cargf): Likewise.
22045         * doc/posix-functions/casin.texi (casin): Likewise.
22046         * doc/posix-functions/casinf.texi (casinf): Likewise.
22047         * doc/posix-functions/casinh.texi (casinh): Likewise.
22048         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
22049         * doc/posix-functions/catan.texi (catan): Likewise.
22050         * doc/posix-functions/catanf.texi (catanf): Likewise.
22051         * doc/posix-functions/catanh.texi (catanh): Likewise.
22052         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
22053         * doc/posix-functions/ccos.texi (ccos): Likewise.
22054         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
22055         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
22056         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
22057         * doc/posix-functions/cexp.texi (cexp): Likewise.
22058         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
22059         * doc/posix-functions/cimag.texi (cimag): Likewise.
22060         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
22061         * doc/posix-functions/clog.texi (clog): Likewise.
22062         * doc/posix-functions/clogf.texi (clogf): Likewise.
22063         * doc/posix-functions/conj.texi (conj): Likewise.
22064         * doc/posix-functions/conjf.texi (conjf): Likewise.
22065         * doc/posix-functions/cpow.texi (cpow): Likewise.
22066         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
22067         * doc/posix-functions/cproj.texi (cproj): Likewise.
22068         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
22069         * doc/posix-functions/creal.texi (creal): Likewise.
22070         * doc/posix-functions/crealf.texi (crealf): Likewise.
22071         * doc/posix-functions/csin.texi (csin): Likewise.
22072         * doc/posix-functions/csinf.texi (csinf): Likewise.
22073         * doc/posix-functions/csinh.texi (csinh): Likewise.
22074         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
22075         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
22076         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
22077         * doc/posix-functions/ctan.texi (ctan): Likewise.
22078         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
22079         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
22080         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
22081         * doc/posix-headers/complex.texi (complex.h): Likewise.
22082
22083 2010-10-07  Jim Meyering  <meyering@redhat.com>
22084
22085         parse-datetime: avoid compilation failure on OpenBSD 4.7
22086         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
22087         This works around a compilation failure on OpenBSD 4.7:
22088         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
22089
22090 2010-10-07  Eric Blake  <eblake@redhat.com>
22091
22092         docs: update cygwin progress
22093         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
22094         1.7.6.
22095         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
22096         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
22097         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
22098         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
22099         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
22100         Likewise.
22101         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
22102         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
22103         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
22104         Likewise.
22105         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
22106         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
22107         Likewise.
22108         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
22109         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
22110         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
22111         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
22112         Likewise.
22113         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
22114         Likewise.
22115         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
22116
22117         docs: update parse-datetime history
22118         * doc/parse-datetime.texi (Authors of parse_datetime): Better
22119         documentation of this function's history and alternatives.
22120
22121         cygwin: use more robust version check
22122         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
22123         exclude an eventual cygwin 1.9.1.
22124         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
22125         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
22126         (gl_FUNC_STRCASESTR): Likewise.
22127         Reported by Bruno Haible.
22128
22129 2010-10-06  Bruno Haible  <bruno@clisp.org>
22130
22131         string, sys_select: Avoid #including large headers unless necessary.
22132         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
22133         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
22134         OSF/1, BeOS, Haiku.
22135         Reported by Jim Meyering.
22136
22137 2010-10-05  Eric Blake  <eblake@redhat.com>
22138
22139         memmem, strstr, strcasestr: fix bug with long periodic needle
22140         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
22141         periodic needle having false positive.
22142         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
22143         and cygwin 1.7.7.
22144         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
22145         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
22146         (gl_FUNC_STRCASESTR): Likewise.
22147         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
22148         * tests/test-memmem.c (main): Expose the bug.
22149         * tests/test-strcasestr.c (main): Likewise.
22150         * tests/test-strstr.c (main): Likewise.
22151         * tests/test-c-strcasestr.c (main): Likewise.
22152         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
22153         * doc/posix-functions/strstr.texi (strstr): Likewise.
22154         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
22155         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
22156
22157 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
22158
22159         parse-datetime: do some more renaming
22160         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
22161         parse_datetime, not get_date.  Mention the renaming.
22162         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
22163         in comments.
22164         * m4/bison.m4: Likewise.
22165
22166 2010-10-05  Eric Blake  <eblake@redhat.com>
22167
22168         parse-datetime: better name than get_date
22169         * NEWS: Reword the deprecation notice.
22170         * modules/get_date: Rename to modules/parse-datetime.
22171         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
22172         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
22173         * lib/get_date.y: Rename to lib/parse-datetime.y.
22174         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
22175         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
22176         * doc/getdate.texi: Provide fallback wrapper.
22177         * lib/getdate.h: Move guts, and wrap...
22178         * lib/parse-datetime.h: ...new file.
22179         * lib/parse-datetime.y (get_date): Rename...
22180         (parse_datetime): ...to this.
22181         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
22182         (gl_PARSE_DATETIME): ...to this.
22183         * doc/posix-functions/getdate.texi (get_date): Provide fallback
22184         documentation.
22185         * modules/getdate (Files): Provide fallback docs and header.
22186         (Notice, Depends-on): Update references.
22187         * tests/test-parse-datetime.c: Likewise.
22188         * DEPENDENCIES: Likewise.
22189         * MODULES.html.sh (Date and time <time.h>): Likewise.
22190         * doc/parse-datetime.texi (Date input formats)
22191         (Authors of parse_datetime): Likewise.
22192         * modules/parse-datetime (Files, configure.ac, Makefile.am)
22193         (Include): Likewise.
22194         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
22195         * gnulib-tool: Likewise.
22196         * m4/bison.m4 (gl_BISON): Likewise.
22197         Suggested by Bruno Haible.
22198
22199 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
22200
22201         more ports to Solaris tr, which needs [] around ranges
22202         * gnulib-tool: Solaris tr needs [] around ranges.
22203         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
22204         * tests/test-pipe-filter-gi1.c (main): Likewise.
22205         * tests/test-pipe-filter-ii1.c (main): Likewise.
22206
22207 2010-10-05  Eric Blake  <eblake@redhat.com>
22208
22209         bootstrap: fix Solaris regression
22210         * build-aux/bootstrap (check_versions): Solaris tr still needs []
22211         around ranges.
22212         Reported by Pádraig Brady.
22213
22214         bootstrap: work with pkg-config
22215         * build-aux/bootstrap (check_versions): Also transliterate - in
22216         prerequisite name.
22217         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
22218         prerequisites that were already found, to avoid confusion.
22219         Reported by Justin Clift.
22220
22221         faccessat: remove unused wrappers
22222         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
22223         presence of these wrappers dragged in -lgen on Solaris.
22224         Reported by Clemens Brogi; fix suggested by Paul Eggert.
22225
22226 2010-10-05  Jim Meyering  <meyering@redhat.com>
22227
22228         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
22229         * Makefile (sc_pragma_columns): New syntax-check rule.
22230
22231 2010-10-04  Bruno Haible  <bruno@clisp.org>
22232
22233         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
22234         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
22235         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
22236         Reported by Bruce Korb and Eric Blake.
22237
22238 2010-10-04  Bruno Haible  <bruno@clisp.org>
22239
22240         threadlib: Make option --with-libpth-prefix work.
22241         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
22242         use $LIBPTH, not just -lpth.
22243
22244 2010-10-04  Bruno Haible  <bruno@clisp.org>
22245
22246         Avoid line length limitation from HP NonStop system header files.
22247         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
22248         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
22249         * lib/ctype.in.h: Likewise.
22250         * lib/dirent.in.h: Likewise.
22251         * lib/errno.in.h: Likewise.
22252         * lib/fcntl.in.h: Likewise.
22253         * lib/float.in.h: Likewise.
22254         * lib/getopt.in.h: Likewise.
22255         * lib/iconv.in.h: Likewise.
22256         * lib/inttypes.in.h: Likewise.
22257         * lib/langinfo.in.h: Likewise.
22258         * lib/locale.in.h: Likewise.
22259         * lib/math.in.h: Likewise.
22260         * lib/netdb.in.h: Likewise.
22261         * lib/netinet_in.in.h: Likewise.
22262         * lib/poll.in.h: Likewise.
22263         * lib/pthread.in.h: Likewise.
22264         * lib/pty.in.h: Likewise.
22265         * lib/sched.in.h: Likewise.
22266         * lib/se-selinux.in.h: Likewise.
22267         * lib/search.in.h: Likewise.
22268         * lib/signal.in.h: Likewise.
22269         * lib/spawn.in.h: Likewise.
22270         * lib/stdarg.in.h: Likewise.
22271         * lib/stddef.in.h: Likewise.
22272         * lib/stdint.in.h: Likewise.
22273         * lib/stdio.in.h: Likewise.
22274         * lib/stdlib.in.h: Likewise.
22275         * lib/string.in.h: Likewise.
22276         * lib/strings.in.h: Likewise.
22277         * lib/sys_file.in.h: Likewise.
22278         * lib/sys_ioctl.in.h: Likewise.
22279         * lib/sys_select.in.h: Likewise.
22280         * lib/sys_socket.in.h: Likewise.
22281         * lib/sys_stat.in.h: Likewise.
22282         * lib/sys_time.in.h: Likewise.
22283         * lib/sys_times.in.h: Likewise.
22284         * lib/sys_utsname.in.h: Likewise.
22285         * lib/sys_wait.in.h: Likewise.
22286         * lib/sysexits.in.h: Likewise.
22287         * lib/termios.in.h: Likewise.
22288         * lib/time.in.h: Likewise.
22289         * lib/unistd.in.h: Likewise.
22290         * lib/wchar.in.h: Likewise.
22291         * lib/wctype.in.h: Likewise.
22292         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
22293         * modules/ctype (Makefile.am): Likewise.
22294         * modules/dirent (Makefile.am): Likewise.
22295         * modules/errno (Makefile.am): Likewise.
22296         * modules/fcntl-h (Makefile.am): Likewise.
22297         * modules/float (Makefile.am): Likewise.
22298         * modules/getopt-posix (Makefile.am): Likewise.
22299         * modules/iconv-h (Makefile.am): Likewise.
22300         * modules/inttypes (Makefile.am): Likewise.
22301         * modules/langinfo (Makefile.am): Likewise.
22302         * modules/locale (Makefile.am): Likewise.
22303         * modules/math (Makefile.am): Likewise.
22304         * modules/netdb (Makefile.am): Likewise.
22305         * modules/netinet_in (Makefile.am): Likewise.
22306         * modules/poll-h (Makefile.am): Likewise.
22307         * modules/pthread (Makefile.am): Likewise.
22308         * modules/pty (Makefile.am): Likewise.
22309         * modules/sched (Makefile.am): Likewise.
22310         * modules/search (Makefile.am): Likewise.
22311         * modules/selinux-h (Makefile.am): Likewise.
22312         * modules/signal (Makefile.am): Likewise.
22313         * modules/spawn (Makefile.am): Likewise.
22314         * modules/stdarg (Makefile.am): Likewise.
22315         * modules/stddef (Makefile.am): Likewise.
22316         * modules/stdint (Makefile.am): Likewise.
22317         * modules/stdio (Makefile.am): Likewise.
22318         * modules/stdlib (Makefile.am): Likewise.
22319         * modules/string (Makefile.am): Likewise.
22320         * modules/strings (Makefile.am): Likewise.
22321         * modules/sys_file (Makefile.am): Likewise.
22322         * modules/sys_ioctl (Makefile.am): Likewise.
22323         * modules/sys_select (Makefile.am): Likewise.
22324         * modules/sys_socket (Makefile.am): Likewise.
22325         * modules/sys_stat (Makefile.am): Likewise.
22326         * modules/sys_time (Makefile.am): Likewise.
22327         * modules/sys_times (Makefile.am): Likewise.
22328         * modules/sys_utsname (Makefile.am): Likewise.
22329         * modules/sys_wait (Makefile.am): Likewise.
22330         * modules/sysexits (Makefile.am): Likewise.
22331         * modules/termios (Makefile.am): Likewise.
22332         * modules/time (Makefile.am): Likewise.
22333         * modules/unistd (Makefile.am): Likewise.
22334         * modules/wchar (Makefile.am): Likewise.
22335         * modules/wctype (Makefile.am): Likewise.
22336
22337 2010-10-04  Bruno Haible  <bruno@clisp.org>
22338
22339         read-file tests: Avoid a test failure on NonStop Kernel.
22340         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
22341         a regular file.
22342         Reported by Joachim Schmitz <schmitz@hp.com>.
22343
22344 2010-10-03  Bruno Haible  <bruno@clisp.org>
22345
22346         gnulib-tool: Fixes for --create-testdir with --libtool.
22347         * gnulib-tool (func_get_automake_snippet): Don't augment
22348         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
22349         an executable.
22350         (func_create_testdir): Handle module 'alloca' like func_import.
22351         Reported by Bruce Korb <bruce.korb@gmail.com>.
22352
22353 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
22354
22355         Avoid some lines longer than 80 characters.
22356         * lib/stdint.in.h: Break long comment lines.
22357         * lib/math.in.h: Likewise.
22358         (_GL_NUM_UINT_WORDS): New macro, for readability.
22359         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
22360         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
22361         * lib/stdlib.in.h: Likewise.
22362         * lib/spawn.in.h: Likewise.
22363         * lib/sys_socket.in.h: Update an URL.
22364         * lib/sys_stat.in.h: Break long line.
22365
22366 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
22367
22368         Improve pmccabe2html.
22369         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
22370         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
22371         when the sources change. Remove the line in the HTML about "Used
22372         ranges" (which implied that there might be other unused ranges),
22373         rename "Resume" to "Summary" (easier to understand for more users).
22374         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
22375         styles, and some unnecessary blank lines.
22376
22377 2010-10-03  Bruno Haible  <bruno@clisp.org>
22378             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
22379
22380         acl: Add support for ACLs on NonStop Kernel.
22381         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
22382         Check whether the function aclsort() exists.
22383         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
22384         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
22385         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
22386         (acl_nontrivial [HAVE_ACLSORT]: New function.
22387         (file_has_acl): Implement for NonStop Kernel.
22388         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
22389         (qset_acl): Implement for NonStop Kernel.
22390         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
22391         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
22392         (main): Implement for NonStop Kernel.
22393         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
22394         Kernel. Handle this flavor.
22395         * tests/test-set-mode-acl.sh: Likewise.
22396         * tests/test-copy-acl.sh: Likewise.
22397         * tests/test-copy-file.sh: Likewise.
22398
22399 2010-10-03  Bruno Haible  <bruno@clisp.org>
22400
22401         Info about ACLs on NonStop Kernel.
22402         * doc/acl-resources.txt: Add info about NonStop Kernel.
22403         References by Joachim Schmitz <schmitz@hp.com>.
22404
22405 2010-10-02  Bruno Haible  <bruno@clisp.org>
22406
22407         Define missing EDQUOT on NonStop Kernel.
22408         * lib/errno.in.h (EDQUOT): Assign a value if missing.
22409         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
22410         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
22411         missing.
22412         * doc/posix-headers/errno.texi: Mention the NSK bug.
22413         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
22414         Reported by Joachim Schmitz <schmitz@hp.com>.
22415
22416 2010-10-02  Bruno Haible  <bruno@clisp.org>
22417
22418         Update doc for POSIX:2008.
22419         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
22420         Update URL of POSIX specification.
22421
22422 2010-10-02  Bruno Haible  <bruno@clisp.org>
22423
22424         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
22425         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
22426         from gnulib, not from Automake.
22427
22428 2010-10-02  Bruno Haible  <bruno@clisp.org>
22429
22430         New module 'system-posix'.
22431         * modules/system-posix: New file.
22432         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
22433         module is present.
22434         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
22435         GNULIB_SYSTEM_POSIX.
22436         * modules/stdlib (Depends-on): Remove sys_wait.
22437         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
22438         * doc/posix-functions/system.texi: Mention the new module.
22439         * doc/posix-headers/stdlib.texi: Likewise.
22440         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
22441         define test_sys_wait_macros to a no-op.
22442         Reported by Sam Steingold <sds@gnu.org>.
22443
22444 2010-09-30  Bruno Haible  <bruno@clisp.org>
22445
22446         More renaming from 'getdate' to 'get_date'.
22447         * doc/get_date.texi: Renamed from doc/getdate.texi.
22448         * modules/get_date (Files): Update.
22449         * MODULES.html.sh (Date and time <time.h>): Update.
22450         * DEPENDENCIES: Update.
22451         * gnulib-tool: Update comment.
22452         * m4/bison.m4 (gl_BISON): Likewise.
22453         * m4/get_date.m4 (gl_GET_DATE): Likewise.
22454
22455 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
22456
22457         bootstrap: support ACLOCAL_FLAGS during aclocal
22458         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
22459         can add additional -I dir for third-party .m4 files.
22460
22461 2010-09-30  Eric Blake  <eblake@redhat.com>
22462
22463         bootstrap: use glibtoolize on MacOS
22464         * build-aux/bootstrap (check_versions): Convert libtool into
22465         libtoolize.
22466         (tool search): Move libtool check earlier, and look for
22467         glibtoolize for MacOS.
22468         (gnulib_tool_options): Auto-add --libtool when appropriate.
22469         Reported by Justin Clift.
22470
22471         poll: fix typo that broke test on MacOS
22472         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
22473         Reported by Justin Clift.
22474
22475         getdate: rename to get_date
22476         Note: getdate.h is not renamed, to minimize client impact.
22477         * modules/getdate: Mark obsolete.  Move old contents...
22478         * modules/get_date: ...to new module name.
22479         * modules/getdate-tests: Move...
22480         * modules/get_date-tests: ...here.
22481         * m4/getdate.m4: Move...
22482         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
22483         * lib/getdate.y: Move...
22484         * lib/get_date.y: ...here.
22485         * tests/test-getdate.c: Move...
22486         * tests/test-get_date.c: ...here.
22487         * doc/posix-functions/getdate.texi (getdate): Update name.
22488         * NEWS: Mention the change.
22489
22490 2010-09-29  Bruno Haible  <bruno@clisp.org>
22491
22492         Separate the module 'waitpid' from the module 'sys_wait'.
22493         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
22494         present.
22495         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
22496         gl_MODULE_INDICATOR_FOR_TESTS.
22497         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
22498         * modules/sys_wait (Depends-on): Remove waitpid.
22499         (Makefile.am): Substitute GNULIB_WAITPID.
22500         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
22501         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
22502         signature only if the 'waitpid' module is present.
22503         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
22504         * NEWS: Mention the change.
22505         * modules/grantpt (Depends-on): Add waitpid.
22506         * modules/wait-process (Depends-on): Likewise.
22507
22508 2010-09-29  Bruno Haible  <bruno@clisp.org>
22509
22510         More tests for module 'sys_wait'.
22511         * modules/sys_wait-c++-tests: New file.
22512         * tests/test-sys_wait-c++.cc: New file.
22513         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
22514         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
22515
22516 2010-09-29  Bruno Haible  <bruno@clisp.org>
22517
22518         New module 'waitpid'.
22519         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
22520         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
22521         Don't include <process.h>.
22522         (waitpid): Declare only, using modern idiom.
22523         * m4/waitpid.m4: New file.
22524         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
22525         * modules/waitpid: New file.
22526         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
22527         (Makefile.am): Update.
22528         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
22529
22530 2010-09-28  Bruno Haible  <bruno@clisp.org>
22531
22532         poll: Assume ANSI C.
22533         * lib/poll.c (poll): Use an ANSI C declaration.
22534
22535 2010-09-28  Bruno Haible  <bruno@clisp.org>
22536
22537         poll-h: Create poll.h on all platforms.
22538         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
22539         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
22540         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
22541         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
22542         (gl_REPLACE_POLL_H): Don't set POLL_H.
22543         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
22544         * modules/poll-h (Depends-on): Add include_next.
22545         (Makefile.am): Create poll.h unconditionally. Substitute also
22546         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
22547
22548 2010-09-28  Bruno Haible  <bruno@clisp.org>
22549
22550         Tests for module 'poll-h'.
22551         * modules/poll-h-c++-tests: New file.
22552         * tests/test-poll-h-c++.cc: New file.
22553
22554         Tests for module 'poll-h'.
22555         * modules/poll-h-tests: New file.
22556         * tests/test-poll-h.c: New file.
22557
22558 2010-09-28  Bruno Haible  <bruno@clisp.org>
22559
22560         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
22561         * modules/poll-h (Depends-on): Add 'extensions'.
22562
22563 2010-09-28  Bruno Haible  <bruno@clisp.org>
22564
22565         New module 'poll-h'.
22566         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
22567         (poll): Use modern idiom.
22568         * modules/poll-h: New file.
22569         * modules/poll (Files): Remove lib/poll.in.h.
22570         (Depends-on): Add poll-h.
22571         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
22572         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
22573         * m4/poll_h.m4: New file.
22574         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
22575         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
22576         and invoke gl_REPLACE_POLL_H.
22577         * lib/poll.c: Use common idiom.
22578         * tests/test-poll.c: Likewise.
22579         * doc/posix-headers/poll.texi: Mention the poll-h module.
22580         Suggested by Eric Blake.
22581
22582 2010-09-26  Bruno Haible  <bruno@clisp.org>
22583
22584         sys_wait: Implement WSTOPSIG.
22585         * lib/sys_wait.in.h (WSTOPSIG): New macro.
22586         Reported by Simon Josefsson.
22587
22588 2010-09-26  Simon Josefsson  <simon@josefsson.org>
22589
22590         stdlib, sys_wait: Avoid compilation error on mingw.
22591         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
22592
22593 2010-09-26  Bruno Haible  <bruno@clisp.org>
22594
22595         stdlib tests: Avoid code duplication.
22596         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
22597         * modules/sys_wait-tests (Files): Likewise.
22598         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
22599         * tests/test-stdlib.c: Include test-sys_wait.h.
22600         (main): Invoke test_sys_wait_macros.
22601         * tests/test-sys_wait.c: Include test-sys_wait.h.
22602         (main): Invoke test_sys_wait_macros.
22603
22604 2010-09-25  Simon Josefsson  <simon@josefsson.org>
22605
22606         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
22607         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
22608         sure Windows sockets are working before calling getaddrinfo.
22609         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
22610         * doc/gnulib.texi (Windows sockets): Fix typo.
22611
22612 2010-09-25  Bruno Haible  <bruno@clisp.org>
22613
22614         Tests for module 'regex-quote'.
22615         * modules/regex-quote-tests: New file.
22616         * tests/test-regex-quote.c: New file.
22617
22618         New module 'regex-quote'.
22619         * lib/regex-quote.h: New file.
22620         * lib/regex-quote.c: New file.
22621         * modules/regex-quote: New file.
22622         Suggested by Reuben Thomas <rrt@sc3d.org>.
22623
22624 2010-09-24  Bruno Haible  <bruno@clisp.org>
22625
22626         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
22627         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
22628
22629 2010-09-23  Bruno Haible  <bruno@clisp.org>
22630
22631         setenv: Relax license.
22632         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
22633         Blake.
22634         Requested by Eric Blake.
22635
22636 2010-09-22  Bruno Haible  <bruno@clisp.org>
22637
22638         termios: Relax license.
22639         * modules/termios (License): Change to LGPLv2+.
22640         Requested by Eric Blake.
22641
22642 2010-09-22  Bruno Haible  <bruno@clisp.org>
22643
22644         threadlib: Allow the package to change the default to 'no'.
22645         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
22646         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
22647         Reported by Paul Eggert.
22648
22649 2010-09-22  Pádraig Brady  <P@draigbrady.com>
22650             Bruno Haible  <bruno@clisp.org>
22651
22652         Fix endless loop in mbmemcasecoll.
22653         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
22654         byte.
22655         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
22656
22657 2010-09-22  Bruno Haible  <bruno@clisp.org>
22658
22659         Tests for module 'memcoll'.
22660         * modules/memcoll-tests: New file.
22661         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
22662
22663         memcoll, xmemcoll: Clarify size vs. length.
22664         * modules/memcoll.c (memcoll0): Clarify specification.
22665         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
22666         passed to collate_error.
22667
22668 2010-09-22  Bruno Haible  <bruno@clisp.org>
22669
22670         Tests for module 'memcasecmp'.
22671         * modules/memcasecmp-tests: New file.
22672         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
22673
22674 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
22675
22676         * lib/pthread.in.h: Add split double-inclusion guard, and include
22677         system <pthread.h> if there is one.  Use @@-style as in other
22678         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
22679         pthread.h doesn't.
22680         (pthread_mutexattr_destroy, pthread_mutexattr_init):
22681         (pthread_mutexattr_settype, pthread_mutex_trylock):
22682         New static inline functions, if there's no system <pthread.h>.
22683         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
22684         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
22685         Approximate with mutexes if the system lacks spinlocks, as in
22686         MacOS.
22687         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
22688         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
22689         @@-style.  Check for spinlocks separately.
22690         (gl_PTHREAD_DEFAULTS): New macro.
22691         * modules/pthread: Redo to use a more typical style for in.h files.
22692
22693 2010-09-21  Eric Blake  <eblake@redhat.com>
22694
22695         net_if: enhance tests
22696         * tests/test-net_if.c (main): Move signature checks earlier.
22697         Print failures to stderr.
22698         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
22699         Document the bug that we do not yet fix.
22700
22701 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
22702
22703         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
22704         about gnulib, not GSS.
22705
22706 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
22707
22708         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
22709         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
22710         for Emacs.
22711         * build-aux/pmccabe2html: Make Makefile.am example code more
22712         cut-and-paste friendly.
22713
22714 2010-09-21  Simon Josefsson  <simon@josefsson.org>
22715
22716         * tests/test-net_if.c: New file.
22717         * modules/net_if-tests: New file.
22718
22719 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
22720
22721         pthread: add pthread_spin_destroy
22722         * lib/pthread.in.h (pthread_spin_destroy): New function.
22723
22724 2010-09-19  Bruno Haible  <bruno@clisp.org>
22725
22726         gnulib-tool: Fix --help output.
22727         * gnulib-tool (func_usage): Fix help message.
22728         Reported by Reuben Thomas <rrt@sc3d.org>.
22729
22730 2010-09-18  Jim Meyering  <meyering@redhat.com>
22731
22732         maint.mk: avoid unexpanded \n in two diagnostics
22733         * top/maint.mk (sc_prohibit_always_true_header_tests):
22734         Don't use a literal \n in a halt=... assignment.  It would not be
22735         expanded, and the two \n bytes would appear in the diagnostic output
22736         rather than the desired newline.  Use halt=$$(printf ... instead.
22737         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
22738
22739 2010-09-18  Bruno Haible  <bruno@clisp.org>
22740
22741         netinet_in: Doc tweak.
22742         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
22743         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22744
22745 2010-09-18  Jim Meyering  <meyering@redhat.com>
22746
22747         init.sh: correct an outdated comment
22748         * tests/init.sh (create_exe_shims_):  s/function/alias/
22749
22750         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
22751         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
22752         a file named "*.exe" is removed between the glob expansion and the
22753         processing of that oddly named file.
22754
22755 2010-09-17  Eric Blake  <eblake@redhat.com>
22756
22757         mirbsd: add some more support
22758         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
22759         in BSD family.
22760         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
22761         devices as OpenBSD.
22762         * m4/host-os.m4 (mirbsd): Add MirBSD.
22763
22764         tests: fix unportable assumption on sys/wait.h
22765         * tests/test-sys_wait.c (main): Relax test.
22766         * tests/test-stdlib.c (main): Likewise.
22767
22768         init.sh: accomodate directory with no .exes
22769         * tests/init.sh: Accomodate directory containing only scripts.
22770
22771         tests: avoid compiler warning
22772         * tests/test-stdlib.c (main): Use the variable.
22773
22774         fdutimens, fdutimensat: update signature, again
22775         * lib/utimens.h (gl_futimens): Delete, and move signature...
22776         (fdutimens): ...here.
22777         (fdutimensat): Rearrange signature.
22778         (lutimensat): Rename variable for clarity.
22779         * lib/fdutimensat.c (fdutimensat): Update signature.
22780         * lib/utimens.c (fdutimens): Likewise.
22781         (gl_futimens): Delete.
22782         (utimens, lutimens): Update callers.
22783         * lib/futimens.c (futimens): Likewise.
22784         * tests/test-fdutimensat.c: Likewise.
22785         * tests/test-utimens.c: Likewise.
22786         * tests/test-futimens.h: Update comment.
22787         * NEWS: Mention this.
22788         Suggested by Paul Eggert.
22789
22790 2010-09-17  Bruno Haible  <bruno@clisp.org>
22791
22792         Take over the maintenance of some older macros from Autoconf.
22793         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
22794         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
22795         GNU Autoconf.
22796         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
22797         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
22798
22799 2010-09-17  Eric Blake  <eblake@redhat.com>
22800
22801         fdutimensat: drop atflag validation
22802         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
22803         with valid fd, to close a race scenario where futimens is
22804         unsupported and FILE was replaced by a symlink.
22805         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
22806         accordingly.
22807         Suggested by Paul Eggert.
22808
22809 2010-09-16  Bruno Haible  <bruno@clisp.org>
22810
22811         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
22812         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
22813
22814 2010-09-16  Bruno Haible  <bruno@clisp.org>
22815
22816         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
22817         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
22818         login_tty exists.
22819         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22820
22821 2010-09-16  Bruno Haible  <bruno@clisp.org>
22822
22823         login_tty: Make the replacement code work on BSD systems.
22824         * lib/login_tty.c: Include <sys/ioctl.h>.
22825         (login_tty): Use ioctl TIOCSCTTY when available.
22826         * modules/login_tty (Depends-on): Add sys_ioctl.
22827         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22828
22829 2010-09-16  Bruno Haible  <bruno@clisp.org>
22830
22831         login_tty: Stricter unit test.
22832         * modules/login_tty-tests (Depends-on): Add tcgetsid.
22833         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
22834         and tcgetsid() after login_tty.
22835         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22836
22837 2010-09-16  Bruno Haible  <bruno@clisp.org>
22838
22839         New module 'tcgetsid'.
22840         * lib/tcgetsid.c: New file.
22841         * m4/tcgetsid.m4: New file.
22842         * modules/tcgetsid: New file.
22843         * modules/termios (Depends-on): Add c++defs, warn-on-use.
22844         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
22845         GNULIB_TCGETSID, HAVE_TCGETSID.
22846         * lib/termios.in.h: Include <sys/types.h>.
22847         (tcgetsid): New declaration.
22848         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
22849         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
22850         * doc/posix-functions/tcgetsid.texi: Mention the new module.
22851         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
22852
22853 2010-09-16  Bruno Haible  <bruno@clisp.org>
22854
22855         Tests for module 'termios'.
22856         * modules/termios-c++-tests: New file.
22857         * modules/termios-tests: New file.
22858         * tests/test-termios-c++.cc: New file.
22859         * tests/test-termios.c: New file.
22860
22861         New module 'termios'.
22862         * modules/termios: New file.
22863         * lib/termios.in.h: New file.
22864         * m4/termios_h.m4: New file.
22865         * doc/posix-headers/termios.texi: Mention the new module.
22866
22867 2010-09-16  Eric Blake  <eblake@redhat.com>
22868
22869         fdutimensat: add an atflag parameter
22870         * lib/fdutimensat.c (fdutimensat): Add new parameter.
22871         * lib/utimens.h (fdutimensat): Update prototype.
22872         * tests/test-fdutimensat.c: Adjust test to match.
22873         * NEWS: Document the change.
22874         Suggested by Paul Eggert.
22875
22876 2010-09-16  Bruno Haible  <bruno@clisp.org>
22877
22878         Fix typos in comments.
22879         * lib/striconveh.h: Fix typo in comment.
22880         * lib/login_tty.c (login_tty): Likewise.
22881
22882 2010-09-15  Bruno Haible  <bruno@clisp.org>
22883
22884         stdlib: clarify MirBSD WEXITSTATUS bug
22885         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
22886         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
22887
22888 2010-09-15  Eric Blake  <eblake@redhat.com>
22889
22890         stdlib: work around MirBSD WEXITSTATUS bug
22891         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
22892         * modules/stdlib (Depends-on): Add sys_wait.
22893         * tests/test-sys_wait.c (main): Enhance test.
22894         * tests/test-stdlib.c (main): Likewise.
22895         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
22896
22897         docs: mention MacOS issue with WEXITSTATUS(constant)
22898         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
22899         issue.
22900         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
22901
22902         strnlen: add tests
22903         * modules/strnlen-tests: New file.
22904         * tests/test-strnlen.c: Likewise.
22905
22906 2010-09-14  Bruno Haible  <bruno@clisp.org>
22907
22908         unistr/base: Avoid link errors when module 'libunistring' is also used.
22909         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
22910         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
22911         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
22912         Declare also when HAVE_LIBUNISTRING is set.
22913         Reported by Pádraig Brady <P@draigbrady.com>.
22914
22915 2010-09-14  Eric Blake  <eblake@redhat.com>
22916
22917         test-rawmemchr: make more robust
22918         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
22919         (Depends-on, configure.ac): Add needed prerequisites to use it.
22920         * modules/memchr-tests (Files, Depends-on, configure.ac):
22921         Likewise, to avoid implicit reliance on memchr module prereqs.
22922         * tests/test-memchr.c (main): Ensure proper masking.
22923         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
22924         reads.
22925
22926         memchr: detect glibc Alpha bug
22927         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
22928         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
22929         Alpha.
22930         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
22931         * tests/test-memchr.c (main): Enhance test.
22932         Reported by Nelson H. F. Beebe.
22933
22934 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
22935
22936         fts, getcwd, glob: audit for dirfd returning -1
22937         * lib/fts.c (opendir): Remove #define; no longer used.
22938         (opendirat): New arg PDIR_FD.  All callers changed.
22939         (fts_build, _opendir2): Use new opendirat to avoid the need for
22940         dirfd, or for checking whether dirfd returns a negative value.
22941         Don't use opendir; always use openat followed by fdopendir.
22942         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
22943         it.
22944         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
22945         returns -1 here.
22946         * modules/fts (Depends-on): Remove dirfd.
22947         * modules/getcwd (Depends-on): Likewise.
22948
22949 2010-09-13  Eric Blake  <eblake@redhat.com>
22950
22951         float: fix broken MirBSD header
22952         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
22953         * doc/posix-headers/float.texi (float.h): Document it.
22954
22955 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
22956
22957         fts: use O_NOFOLLOW to avoid race condition when opening a directory
22958         * lib/fts.c (opendirat): New arg extra_flags.
22959         (__opendir2): Use it to avoid following symlinks when opening
22960         a directory, if symlinks are not supposed to be followed.  See
22961         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
22962
22963         fdopendir: preserve argument fd before returning
22964         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
22965         (fdopendir_with_dup, fd_clone_opendir): New static functions.
22966         (fdopendir): Use them, arranging for FD to be open to the same
22967         directory that it was when it started.  (It might be temporarily
22968         closed while fdopendir is running, so this not thread- or
22969         signal-safe.)  Be careful to do the right thing even when file
22970         descriptors are scarce and dup fails with errno == EMFILE.  See
22971         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
22972
22973 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
22974
22975         regex: Pass the system regex if its only problem is 32-bit regoff_t.
22976         * NEWS: Document change.
22977         * m4/regex.m4: Disable test for regoff_t size.
22978
22979 2010-09-13  Jim Meyering  <meyering@redhat.com>
22980
22981         fts: don't operate on an invalid file descriptor after failed dup
22982         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
22983         negative file descriptor.
22984
22985 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
22986
22987         savedir: add streamsavedir, deprecate fdsavedir
22988         * NEWS: Mention deprecation of fdsavedir.
22989         * lib/savedir.c (streamsavedir): New extern function, whose name
22990         ends in "savedir" to be consistent with the others.  This differs
22991         from savedirstream in that it doesn't close its argument.  The
22992         next version of GNU tar will use this instead of fdsavedir, to
22993         avoid some race conditions and conserve file descriptors.
22994         (savedirstream): Reimplement as a wrapper around streamsavedir.
22995         (fdsavedir): Add a comment deprecating this function.  As far as
22996         I know, only GNU tar used it, and GNU tar doesn't need it any more.
22997         * lib/savedir.h (streamsavedir): New decl.
22998         (fdsavedir): Add a comment deprecating this.
22999
23000 2010-09-10  Bruno Haible  <bruno@clisp.org>
23001
23002         langinfo: Fix last commit.
23003         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
23004         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
23005         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23006
23007 2010-09-10  Bruno Haible  <bruno@clisp.org>
23008
23009         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
23010         * lib/progreloc.c (O_EXEC): Define fallback.
23011
23012 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
23013
23014         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
23015         * NEWS: Document recent changes to fcntl-h.
23016         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
23017         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
23018         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
23019         Similarly for O_SEARCH; this last was already true, but not documented.
23020         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
23021         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
23022         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
23023         Likewise.
23024         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
23025         is zero, not whether it is defined.
23026         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
23027         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
23028         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
23029
23030 2010-09-10  Bruno Haible  <bruno@clisp.org>
23031
23032         langinfo, nl_langinfo: Fix for IRIX 5.3.
23033         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
23034         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
23035         HAVE_LANGINFO_YESEXPR.
23036         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
23037         HAVE_LANGINFO_YESEXPR.
23038         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
23039         HAVE_LANGINFO_T_FMT_AMPM is 0.
23040         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
23041         HAVE_LANGINFO_YESEXPR is 0.
23042         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
23043         NOEXPR.
23044         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
23045         * doc/posix-functions/nl_langinfo.texi: Likewise.
23046         Reported by Eric Blake.
23047
23048 2010-09-10  Bruno Haible  <bruno@clisp.org>
23049
23050         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
23051         * doc/glibc-functions/login_tty.texi: Mention the include file problem
23052         on FreeBSD 8.0 and OpenBSD 4.6.
23053         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
23054         * m4/pty_h.m4 (gl_PTY_H): Likewise.
23055         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
23056         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
23057         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
23058         ac_includes_default.
23059         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
23060
23061 2010-09-09  Eric Blake  <eblake@redhat.com>
23062
23063         strsignal: work around NetBSD bug
23064         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
23065         * lib/string.in.h (includes): Likewise.
23066         * doc/posix-functions/strsignal.texi (strsignal): Document the
23067         bug.
23068         Reported by Nelson H. F. Beebe.
23069
23070         gnulib-tool: work with NetBSD /bin/sh
23071         * gnulib-tool (func_cache_var, func_cache_lookup_module)
23072         (func_get_description, func_get_comment, func_get_status)
23073         (func_get_notice, func_get_applicability, func_get_filelist)
23074         (func_get_dependencies, func_get_autoconf_early_snippet)
23075         (func_get_autoconf_snippet, func_get_automake_snippet)
23076         (func_get_include_directive, func_get_link_directive)
23077         (func_get_license, func_get_maintainer, func_import): Avoid
23078         shell syntax errors from parsing syntax extensions.
23079
23080 2010-09-09  Bruno Haible  <bruno@clisp.org>
23081
23082         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
23083         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
23084         a reliable way to determine whether the 'alias' command works.
23085
23086 2010-09-08  Jim Meyering  <meyering@redhat.com>
23087
23088         init.sh: penalize a set-x-impaired shell; don't disqualify it
23089         * tests/init.sh: Too many shells corrupt application stderr when
23090         you set -x, so we can't afford to disqualify them, since at least
23091         on Irix-6.5, that would disqualify all bourne shells.
23092         Instead, use a two-pass approach.
23093         On the first pass, try to find a shell that meets the stricter
23094         condition that set -x does not corrupt stderr.
23095         If no shell meets the stricter condition, retest each candidate
23096         shell, but without that extra condition.  Finally, when
23097         VERBOSE=yes is requested and set -x might cause trouble, simply
23098         issue a warning and refrain from enabling debug output.
23099
23100 2010-09-08  Eric Blake  <eblake@redhat.com>
23101
23102         unsetenv: fix OpenBSD bug
23103         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
23104         * doc/posix-functions/unsetenv.texi (unsetenv): Update
23105         documentation.
23106         Reported by Jim Meyering.
23107
23108         strtod: work around IRIX 6.5 bug
23109         * lib/strtod.c (strtod): Reparse number on shorter string if
23110         exponent parse was invalid.
23111         * tests/test-strtod.c (main): Add check for "0x1p 2".
23112         Reported by Tom G. Christensen.
23113
23114         getopt: optimize previous patch
23115         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
23116         empty variable.  Speed up awk script.
23117         Reported by Paolo Bonzini.
23118
23119 2010-09-08  Jim Meyering  <meyering@redhat.com>
23120
23121         test.sh: disqualify shells for which set -x corrupts stderr
23122         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
23123         and OpenBSD 4.7.  They make it so with "set -x", environment settings
23124         appear in stderr output.  For example, this command:
23125             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
23126         prints "P=1" on those two systems:
23127
23128 2010-09-08  Bruno Haible  <bruno@clisp.org>
23129
23130         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
23131         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
23132         commands, because some shells ignore redirections when there is an
23133         error in the command lookup.
23134         Reported by Eric Blake.
23135
23136 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
23137
23138         * lib/regex.h: Fix a mention of `regex_compile' (should be
23139         `re_compile_pattern').
23140         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
23141         (re_set_registers): Correct name of parameter in comment.
23142
23143         * doc/regex.texi: Add documentation for missing syntax flags.
23144         Remove commented-out documentation of defunct syntax option
23145         RE_NO_EMPTY_ALTS.
23146         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
23147         Add documentation of re_set_registers.
23148         Document trick to re-use a pattern buffer by setting fastmap manually.
23149         Update documentation of struct re_pattern_buffer per public members.
23150         Uncomment documentation of equivalence class operators and
23151         collating symbol operators, since they are now implemented,
23152         Explain leftmost-longest matching in relation to alternatives.
23153         Tidy documentation of substring matching.
23154         Remove POSIX documentation, which is done better in
23155         glibc, and refer the reader there. Keep BSD API documentation, as
23156         that is not readily available elsewhere.
23157
23158 2010-09-07  Eric Blake  <eblake@redhat.com>
23159
23160         getopt: handle POSIXLY_CORRECT set but not exported
23161         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
23162         export state of POSIXLY_CORRECT, due to bash set -o posix.
23163         Reported by Dustin J. Mitchell.
23164
23165 2010-09-05  Bruno Haible  <bruno@clisp.org>
23166
23167         gnulib-tool: Highlight the changed options.
23168         * gnulib-tool (func_usage): Display the --import, --add-import,
23169         --remove-import explanations in bold font.
23170
23171 2010-09-06  Karl Berry  <karl@gnu.org>
23172
23173         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
23174
23175 2010-09-05  Bruno Haible  <bruno@clisp.org>
23176
23177         uniwidth/width: Update comment.
23178         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
23179         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
23180
23181 2010-09-05  Bruno Haible  <bruno@clisp.org>
23182
23183         isinf, isnan: Relax license.
23184         * modules/isinf (License): Change from GPL to LGPL, with consent from
23185         Ben Pfaff.
23186         * modules/isnan (License): Likewise.
23187         Requested by Ludovic Courtès.
23188
23189 2010-09-04  Bruno Haible  <bruno@clisp.org>
23190
23191         gnulib-tool: Help migration from --import to --add-import or --update.
23192         * gnulib-tool: Emit a verbose error message when --import is used
23193         without any module name.
23194
23195 2010-09-04  Bruno Haible  <bruno@clisp.org>
23196
23197         Update doc about gnulib-tool.
23198         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
23199         'gnulib-tool --update' in more detail.
23200         Reported by Eric Blake.
23201
23202 2010-09-04  Bruno Haible  <bruno@clisp.org>
23203
23204         gnulib-tool: Change --import. New options --add/remove-import.
23205         * gnulib-tool: New options --add-import, --remove-import.
23206         (func_usage): Document them.
23207         (have_associative): Define always.
23208         (func_import): In import mode, don't merge the specified settings with
23209         the cached settings. Implement remove-import mode.
23210         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
23211         Explain when to use them versus --import.
23212         (Simple update): Use --add-import instead of --import.
23213         * NEWS: Mention the change.
23214
23215 2010-09-04  Bruno Haible  <bruno@clisp.org>
23216
23217         * doc/gnulib-tool.texi (Initial import): Update paragraph about
23218         separate gnulib.mk.
23219
23220 2010-09-04  Bruno Haible  <bruno@clisp.org>
23221
23222         gnulib-tool: Don't talk about CVS any more.
23223         * gnulib-tool (func_usage, func_import): Write "version control"
23224         instead of CVS.
23225
23226 2010-09-04  Jim Meyering  <meyering@redhat.com>
23227
23228         maint.mk: avoid obscure sc_copyright_check failure in coreutils
23229         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
23230         false positives (whose names may be ill-chosen) when searching
23231         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
23232         would cause a false-positive.
23233
23234         avoid coreutils "make distcheck" failure
23235         Coreutils tests with an absolute build directory name that contains
23236         a space.  Not quoting this directory name caused a failure.
23237         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
23238         * tests/test-vc-list-files-cvs.sh: Likewise.
23239
23240 2010-09-04  Bruno Haible  <bruno@clisp.org>
23241
23242         gnulib-tool: Avoid error when run in a package without Makefile.am.
23243         * gnulib-tool: When collecting the m4dirs in a package that does not
23244         have a Makefile.am, eliminate those directories that contain no
23245         gnulib-cache.m4. Fix expression that counts these directories.
23246
23247 2010-09-04  Bruno Haible  <bruno@clisp.org>
23248
23249         update-copyright test: Improve output when perl is missing or too old.
23250         * tests/test-update-copyright.sh: Move test of Perl version down after
23251         the test whether Perl exists. Provide an explanation relating Perl's
23252         error message to Automake's SKIP: message.
23253
23254 2010-09-04  Bruno Haible  <bruno@clisp.org>
23255
23256         Don't augment PATH in TESTS_ENVIRONMENT.
23257         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
23258         set abs_aux_dir instead of augmenting PATH.
23259         * modules/vc-list-files-tests (Makefile.am): Likewise.
23260         * tests/test-update-copyright.sh: Augment PATH here.
23261         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
23262         path_prepend_.
23263         * tests/test-vc-list-files-git.sh: Likewise.
23264
23265 2010-09-04  Jim Meyering  <meyering@redhat.com>
23266
23267         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
23268         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
23269
23270 2010-09-04  Bruno Haible  <bruno@clisp.org>
23271
23272         strdup: Fix compilation error in C++ mode.
23273         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
23274         the macro.
23275
23276 2010-09-04  Bruno Haible  <bruno@clisp.org>
23277
23278         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
23279         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
23280         macro into a function.
23281         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23282
23283 2010-09-04  Bruno Haible  <bruno@clisp.org>
23284
23285         Set PATH_SEPARATOR the same way autoconf does.
23286         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
23287         the value of PATH_SEPARATOR the same way autoconf-generated configure
23288         scripts do.
23289         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
23290         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
23291
23292 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
23293
23294         Set PATH_SEPARATOR the same way autoconf does.
23295         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
23296         the same way autoconf-generated configure scripts do.
23297         * posix-modules: Likewise.
23298
23299 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
23300
23301         hash: fix safe_hasher const typo
23302         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
23303         const; otherwise, there is a type error later.
23304
23305 2010-09-02  Jim Meyering  <meyering@redhat.com>
23306
23307         test-update-copyright.sh: require perl 5.8.0
23308         * tests/test-update-copyright.sh: Require 5.8.0,
23309         which Tom G. Christensen has confirmed is adequate,
23310         while 5.6.1 is not.
23311
23312 2010-09-02  Eric Blake  <eblake@redhat.com>
23313
23314         tests: init.sh improvements for re-exec'ing with zsh
23315         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
23316         -vx through shell re-exec.
23317         Reported by Tom G. Christensen.
23318
23319         wctype: fix typo in previous commit
23320         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
23321         Reported by Ludovic Courtès.
23322
23323 2010-09-02  Jim Meyering  <meyering@redhat.com>
23324
23325         test-update-copyright.sh: skip test if Perl is too old
23326         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
23327         Reported by Tom G. Christensen.
23328
23329 2010-09-02  Bruno Haible  <bruno@clisp.org>
23330
23331         wctype: Avoid compilation error on IRIX 6.5.30.
23332         * lib/wctype.in.h (iswblank): Declare with a replacement if
23333         REPLACE_ISWBLANK is set.
23334         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
23335         declared. Set REPLACE_ISWBLANK.
23336         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
23337         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
23338         * doc/posix-headers/wctype.texi: Likewise.
23339         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23340
23341 2010-09-01  Bruno Haible  <bruno@clisp.org>
23342
23343         New module 'socketlib'.
23344         * modules/socketlib: New file.
23345         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
23346         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
23347         * modules/sockets (Depends-on): Add socketlib.
23348         Suggested by Sam Steingold <sds@gnu.org>.
23349
23350 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
23351
23352         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
23353
23354         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
23355         when one needs search access to a directory but not read access.
23356         On systems where it is available, it works in some cases where
23357         O_RDONLY does not, namely on directories that are searchable but
23358         not readable, and which need only to be searchable.  If O_SEARCH
23359         is not available, fall back to the traditional method of using
23360         O_RDONLY.
23361
23362         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
23363         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
23364         when opening a directory that needs only to be searchable.
23365         * lib/chdir-safer.c (chdir_no_follow): Likewise.
23366         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
23367         * lib/openat-proc.c (openat_proc_name): Likewise.
23368         * lib/openat.c (openat_needs_fchdir): Likewise.
23369         * lib/save-cwd.c (save_cwd): Likewise.
23370         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
23371
23372 2010-08-28  Bruno Haible  <bruno@clisp.org>
23373
23374         New module 'host-cpu-c-abi'.
23375         * modules/host-cpu-c-abi: New file.
23376         * m4/host-cpu-c-abi.m4: New file, based on part of
23377         clisp/src/m4/general.m4.
23378         Requested by Sam Steingold <sds@gnu.org>.
23379
23380 2010-08-31  Eric Blake  <eblake@redhat.com>
23381         and Jim Meyering  <meyering@redhat.com>
23382
23383         hash: factor, and guard against misbehaving hasher function
23384         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
23385         of table->hasher's return value.  Also protect against a hash value
23386         so large that adding it to table->bucket results in a NULL pointer.
23387         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
23388         Use it in place of open-coded check-and-abort.
23389
23390 2010-08-30  Bruno Haible  <bruno@clisp.org>
23391
23392         hash: silence spurious clang warning
23393         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
23394         Reported by Eric Blake.
23395
23396 2010-08-30  Eric Blake  <eblake@redhat.com>
23397
23398         strstr, memmem, strcasestr: avoid leaked shell message
23399         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
23400         FreeBSD.
23401         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23402         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23403
23404         tests: silence clang warning
23405         * tests/test-malloca.c (do_allocation): Avoid dead store.
23406
23407 2010-08-29  Bruno Haible  <bruno@clisp.org>
23408
23409         gettext: Fix recent mistake.
23410         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
23411
23412 2010-08-29  Bruno Haible  <bruno@clisp.org>
23413
23414         selinux-h: Offer a --without-selinux option.
23415         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
23416         --without-selinux was specified, skip all tests and define
23417         HAVE_SELINUX_SELINUX_H to 0.
23418         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
23419         set LIB_SELINUX to empty.
23420         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
23421         gl_LIBSELINUX. If --without-selinux was specified, replace
23422         selinux/context.h.
23423         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
23424
23425 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23426             Bruno Haible  <bruno@clisp.org>
23427
23428         Make the module 'realloc-gnu' work again on AIX and OSF/1.
23429         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
23430         of HAVE_REALLOC.
23431         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
23432         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
23433         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
23434         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
23435
23436 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23437             Bruno Haible  <bruno@clisp.org>
23438
23439         Make the module 'calloc-gnu' work again on AIX and OSF/1.
23440         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
23441         HAVE_CALLOC.
23442         * lib/xmalloc.c: Update accordingly.
23443         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
23444         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
23445         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
23446
23447 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23448             Bruno Haible  <bruno@clisp.org>
23449
23450         Make the module 'malloc-gnu' work again on AIX and OSF/1.
23451         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
23452         HAVE_MALLOC.
23453         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
23454         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
23455         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
23456
23457 2010-08-29  Bruno Haible  <bruno@clisp.org>
23458
23459         Update modules list.
23460         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
23461         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
23462         (String handling <string.h>): Add astrxfrm.
23463         (File system functions): Add readlinkat.
23464
23465 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23466
23467         Tests for module 'realloc-gnu'.
23468         * modules/realloc-gnu-tests: New file.
23469         * tests/test-realloc-gnu.c: New file.
23470
23471         Tests for module 'calloc-gnu'.
23472         * modules/calloc-gnu-tests: New file.
23473         * tests/test-calloc-gnu.c: New file.
23474
23475         Tests for module 'malloc-gnu'.
23476         * modules/malloc-gnu-tests: New file.
23477         * tests/test-malloc-gnu.c: New file.
23478
23479 2010-08-28  Bruno Haible  <bruno@clisp.org>
23480
23481         Rename module 'realloc' -> 'realloc-gnu'.
23482         * modules/realloc-gnu: New file, copied from modules/realloc.
23483         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
23484         obsolete.
23485         * modules/mgetgroups (Depends-on): Update.
23486         * doc/posix-functions/realloc.texi: Update.
23487         * NEWS: Mention the change.
23488
23489         Rename module 'calloc' -> 'calloc-gnu'.
23490         * modules/calloc-gnu: New file, copied from modules/calloc.
23491         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
23492         obsolete.
23493         * doc/posix-functions/calloc.texi: Update.
23494         * NEWS: Mention the change.
23495
23496         Rename module 'malloc' -> 'malloc-gnu'.
23497         * modules/malloc-gnu: New file, copied from modules/malloc.
23498         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
23499         obsolete.
23500         * modules/argp (Depends-on): Update.
23501         * modules/regex (Depends-on): Update.
23502         * doc/posix-functions/malloc.texi: Update.
23503         * NEWS: Mention the change.
23504
23505 2010-08-28  Eric Blake  <eblake@redhat.com>
23506
23507         pread, pwrite: add missing dependency
23508         * modules/pread (Depends-on): Add extensions.
23509         * modules/pwrite (Depends-on): Likewise.
23510
23511 2010-08-28  Bruno Haible  <bruno@clisp.org>
23512
23513         unistr/u*-strchr: Fix tests dependencies.
23514         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
23515         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
23516         Reported by Ian Beckwith <ianb@erislabs.net>.
23517
23518 2010-08-28  Bruno Haible  <bruno@clisp.org>
23519
23520         read-file: Don't occupy too much unused memory.
23521         * lib/read-file.c (fread_file): Shrink the buffer at the end.
23522
23523 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
23524             Eric Blake  <eblake@redhat.com>
23525             Bruno Haible  <bruno@clisp.org>
23526
23527         read-file: Avoid memory reallocations with regular files.
23528         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
23529         (fread_file): With regular files, use the remaining length as the
23530         initial buffer size.  Check against overflow.
23531         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
23532         sys_stat.
23533
23534 2010-08-28  Bruno Haible  <bruno@clisp.org>
23535
23536         ftello: Relax license.
23537         * modules/ftello (License): Relax to LGPLv2+.
23538         Reported by Eric Blake.
23539
23540 2010-08-28  Bruno Haible  <bruno@clisp.org>
23541
23542         Avoid relocwrapper link errors due to gnulib replacement functions.
23543         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
23544         function.
23545         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23546
23547 2010-08-28  Bruno Haible  <bruno@clisp.org>
23548
23549         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
23550         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
23551         defined.
23552         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
23553         Suggested by Eric Blake.
23554
23555 2010-08-28  Bruno Haible  <bruno@clisp.org>
23556
23557         sys_socket, netdb: Ensure socklen_t gets defined.
23558         * modules/sys_socket (Depends-on): Add socklen.
23559         * modules/netdb (Depends-on): Likewise.
23560         * modules/getaddrinfo (Depends-on): Remove socklen.
23561         * modules/getsockopt (Depends-on): Likewise.
23562         * modules/setsockopt (Depends-on): Likewise.
23563         * tests/test-sys_socket.c: Check that socklen_t is defined.
23564         * tests/test-netdb.c: Likewise.
23565         * m4/socklen.m4: Update comments.
23566         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23567
23568 2010-08-27  Eric Blake  <eblake@redhat.com>
23569
23570         login_tty: add missing dependency
23571         * modules/login_tty (Depends-on): Add pty.
23572
23573 2010-08-26  Eric Blake  <eblake@redhat.com>
23574
23575         lib-symbol-versions: fix m4 quoting
23576         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
23577         format for AC_LINK_IFELSE.
23578
23579         glob: fix compile test
23580         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
23581
23582         btowc: fix missing file
23583         * modules/btowc (Files): Also ship locale-fr.m4.
23584
23585         lseek: fix link test
23586         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
23587         AC_LINK_IFELSE.
23588
23589         include_next: silence autoconf 2.68 warning
23590         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
23591         AC_COMPILE_IFELSE as special.
23592         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
23593         autoconf < 2.68.
23594
23595         acl: fix compilation test
23596         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
23597         AC_COMPILE_IFELSE.
23598
23599 2010-08-26  Bruno Haible  <bruno@clisp.org>
23600
23601         Modernize AC_TRY_RUN invocations.
23602         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
23603         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
23604         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
23605         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
23606         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
23607         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
23608         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23609         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23610         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23611         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23612         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23613         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23614         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23615         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23616         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23617         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
23618         gl_MBRLEN_NUL_RETVAL): Likewise.
23619         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
23620         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
23621         Likewise.
23622         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23623         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23624         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23625         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23626         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
23627         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
23628         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
23629         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
23630         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
23631         Likewise.
23632         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
23633         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
23634         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23635         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
23636         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23637         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23638         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23639         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
23640         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23641         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23642
23643 2010-08-26  Bruno Haible  <bruno@clisp.org>
23644
23645         Modernize AC_TRY_LINK invocations.
23646         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
23647         AC_TRY_LINK.
23648         * m4/argp.m4 (gl_ARGP): Likewise.
23649         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
23650         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
23651         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
23652         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
23653         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
23654         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
23655         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
23656         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
23657         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
23658         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
23659         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
23660         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
23661         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
23662         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23663         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
23664         * m4/hostent.m4 (gl_HOSTENT): Likewise.
23665         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23666         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
23667         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
23668         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
23669         Likewise.
23670         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
23671         Likewise.
23672         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
23673         Likewise.
23674         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
23675         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
23676         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
23677         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
23678         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
23679         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
23680         * m4/servent.m4 (gl_SERVENT): Likewise.
23681         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
23682         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
23683         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
23684         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
23685         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
23686         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
23687         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
23688         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23689         * modules/tsearch-tests (configure.ac): Likewise.
23690
23691 2010-08-26  Bruno Haible  <bruno@clisp.org>
23692
23693         Modernize AC_TRY_COMPILE invocations.
23694         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
23695         AC_TRY_COMPILE.
23696         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
23697         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
23698         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
23699         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
23700         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
23701         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
23702         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
23703         * m4/lock.m4 (gl_LOCK): Likewise.
23704         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
23705         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
23706         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
23707         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
23708         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
23709         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
23710         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
23711         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
23712         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
23713         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
23714         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
23715         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
23716         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
23717         extraneous semicolon.
23718
23719 2010-08-26  Jim Meyering  <meyering@redhat.com>
23720
23721         stat-time: relax license LGPL
23722         * modules/stat-time (License): Change from GPL to LGPL,
23723         with consent from all contributors, for use in libguile.
23724         Requested by Ludovic Courtès.
23725
23726 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
23727
23728         poll: return immediately on POLLHUP.
23729         * lib/poll.c (poll): Always set timeout before wait_timeout is
23730         computed.
23731
23732 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23733
23734         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
23735         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
23736         rmdir ("dir/.//"), unlinkat.
23737
23738 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23739
23740         stdbool: avoid spurious failure with modern xlc
23741         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
23742
23743 2010-08-24  Bruno Haible  <bruno@clisp.org>
23744
23745         getloadavg: simplify code
23746         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
23747         gl_have_func. Update comments.
23748
23749 2010-08-24  Eric Blake  <eblake@redhat.com>
23750
23751         getloadavg: don't define SVR4 on cygwin
23752         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
23753         only define SVR4 when -lkvm is required.
23754         Reported by Yaakov Selkowitz.
23755
23756 2010-08-24  Bruno Haible  <bruno@clisp.org>
23757
23758         priv-set: fix comment
23759         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
23760
23761 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
23762
23763         priv-set: fix comments
23764         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
23765         to match code, as suggested by David Bartley in:
23766         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
23767
23768 2010-08-23  Eric Blake  <eblake@redhat.com>
23769
23770         stdbool: avoid rejecting clang
23771         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
23772         * tests/test-stdbool.c: Enable more tests if using the system
23773         <stdbool.h> instead of the gnulib replacement.
23774         (main): Move xlc bug test to a runtime test for all compilers.
23775         Reported by Anders Kaseorg.
23776
23777         argz: fix shell quoting issue
23778         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
23779         Reported by Charles Wilson.
23780
23781 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
23782             Erik Faye-Lund <kusmabite@gmail.com>
23783
23784         poll, select: handle ERROR_BROKEN_PIPE.
23785         * lib/poll.c (win32_compute_revents): Return POLLHUP when
23786         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
23787         * lib/select.c (win32_compute_revents): Do not mark a pipe
23788         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
23789
23790 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
23791
23792         fts: allow compilation with C++
23793         * lib/fts_.h: Specify extern "C" linkage with C++.
23794
23795 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23796
23797         Fix gnulib-tool sed script de-commentation for AIX sed.
23798         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
23799         sed.
23800
23801 2010-08-17  Eric Blake  <eblake@redhat.com>
23802
23803         test-stddef: test for (some) offsetof bugs
23804         * tests/test-stddef.c: Enhance test to ensure correct type of
23805         offsetof.
23806         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
23807         that we are not fixing at this time.
23808
23809 2010-08-15  Bruno Haible  <bruno@clisp.org>
23810
23811         stpncpy: Allow stpncpy to be defined as a macro.
23812         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
23813         if it's already correctly declared.
23814         * lib/string.in.h (stpncpy): Undefine before redefining.
23815         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
23816
23817 2010-08-14  Bruno Haible  <bruno@clisp.org>
23818
23819         Rename module 'memxfrm' to 'amemxfrm'.
23820         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
23821         (amemxfrm): Renamed from memxfrm.
23822         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
23823         (amemxfrm): Renamed from memxfrm.
23824         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
23825         * NEWS: Mention the change.
23826         * MODULES.html.sh (String handling <string.h>): Update.
23827         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
23828         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
23829         * lib/unicase/u16-casexfrm.c: Likewise.
23830         * lib/unicase/u32-casexfrm.c: Likewise.
23831         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
23832         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
23833         * lib/uninorm/u16-normxfrm.c: Likewise.
23834         * lib/uninorm/u32-normxfrm.c: Likewise.
23835         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
23836         memxfrm.
23837         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
23838         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
23839         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
23840         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
23841         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
23842         Suggested by Paul Eggert.
23843
23844 2010-08-14  Bruno Haible  <bruno@clisp.org>
23845
23846         Tests for module 'astrxfrm'.
23847         * modules/astrxfrm-tests: New file.
23848         * tests/test-astrxfrm.c: New file.
23849
23850         New module 'astrxfrm'.
23851         * lib/astrxfrm.h: New file.
23852         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
23853         * modules/astrxfrm: New file.
23854
23855 2010-08-14  Reuben Thomas <rrt@sc3d.org>
23856
23857         regex: Tweak doc.
23858         * doc/regex.texi (Overview): Don't mention regex.c.
23859         (GNU Regular Expression Compiling): Likewise.
23860         (Match-end-of-line Operator): Mention 'not_eol'.
23861
23862 2010-08-14  Brian Gough  <bjg@gnu.org>
23863             Bruno Haible  <bruno@clisp.org>
23864
23865         git-merge-changelog: add doc relating to use with bzr and hg.
23866         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
23867
23868 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
23869
23870         pthread: fix pthread.h creation for srcdir != builddir
23871         * modules/pthread (Makefile.am): Fix the rule to work also in a
23872         non-srcdir build.
23873
23874 2010-08-13  Karl Berry  <karl@gnu.org>
23875
23876         * doc/regex.texi (Predefined Syntaxes): @smallexample.
23877         * doc/posix-*/*: force line break before @url of POSIX
23878         specifications.
23879         Suggested by Werner Lemberg.
23880
23881 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
23882
23883         strtod: fix const diagnostic
23884         * lib/strtod.c (strtod): Don't assign const char * to char *,
23885         as this elicits a warning from GCC when warnings are enabled.
23886
23887 2010-08-10  Pádraig Brady <P@draigbrady.com>
23888         and Eric Blake  <eblake@redhat.com>
23889
23890         copy-acl: ignore ENOTSUP on HP-UX
23891         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
23892         so that it is available for HP-UX.
23893         * lib/copy-acl.c (qcopy_acl): Use it.
23894         Reported by Patrick M. Callahan.
23895
23896 2010-08-10  Eric Blake  <eblake@redhat.com>
23897
23898         open, chown: relax license
23899         * modules/open (License): Change to LGPLv2+, with consent by all
23900         authors, for use in augeas.
23901         * modules/chown (License): Likewise.
23902         * modules/lchown (Likewise): Likewise.
23903         Requested by Adam Stokes.
23904
23905 2010-08-09  Karl Berry  <karl@gnu.org>
23906
23907         * build-aux/ar-lib: new file, import from Automake.
23908         * config/srclist.txt: autocheck for updates.
23909
23910 2010-08-09  Eric Blake  <eblake@redhat.com>
23911
23912         readlinkat: adjust client modules
23913         * modules/areadlinkat (Depends-on): Use readlinkat, not
23914         symlinkat.
23915         * modules/areadlinkat-with-size (Depends-on): Likewise.
23916
23917         mknod: be more vocal about danger of running tests as root
23918         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
23919         root, since that is just asking for problems.
23920         Suggested by Bruno Haible, based on a report by Rainer Tammer.
23921
23922         readlinkat: split into its own module
23923         * modules/symlinkat: Split readlinkat...
23924         * modules/readlinkat: ...into separate module.
23925         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
23926         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
23927         * lib/symlinkat.c (readlinkat): Move...
23928         * lib/readlinkat.c: ...into new file.
23929         * modules/symlinkat-tests: Split readlinkat test...
23930         * modules/readlinkat-tests: ...into separate module.
23931         * tests/test-symlinkat.c: Split...
23932         * tests/test-readlinkat.c: ...into new file.
23933         * NEWS: Document the split.
23934         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
23935         * lib/unistd.in.h (readlinkat): Likewise.
23936         Suggested by Bruno Haible.
23937
23938 2010-08-08  Bruno Haible  <bruno@clisp.org>
23939
23940         memxfrm: Speed up.
23941         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
23942         that usually only one call to strxfrm is necessary for each string
23943         part.
23944         Reported by Paul Eggert <eggert@cs.ucla.edu>.
23945
23946 2010-08-07  Karl Berry  <karl@gnu.org>
23947
23948         * doc/posix-headers/limits.texi,
23949         * doc/posix-functions/malloc.texi,
23950         * doc/posix-functions/strsignal.texi: missing @item.
23951         * doc/ld-version-script.texi: spurious leading i.
23952         * doc/regex.texi (Interval Operators): no commas inside @var.
23953
23954 2010-08-01  Bruno Haible  <bruno@clisp.org>
23955
23956         Integrate the regex documentation.
23957         * doc/gnulib.texi: Define 'cn' index.
23958         (Regular expressions): New a chapter that includes regex.texi and
23959         regexprops-generic.texi.
23960         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
23961         syntax.
23962
23963         Whitespace cleanup.
23964         * doc/regex.texi: Remove trailing spaces.
23965
23966         Add regex documentation.
23967         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
23968         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
23969         Written by Kathy A. Hargreaves and Karl Berry.
23970
23971 2010-08-01  Bruno Haible  <bruno@clisp.org>
23972
23973         link: Update documentation.
23974         * doc/posix-functions/link.texi: Update regarding Solaris.
23975
23976 2010-07-31  Bruno Haible  <bruno@clisp.org>
23977
23978         Update modules list.
23979         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
23980         (String handling <string.h>): Add memcmp2, memxfrm.
23981         (Container data structures): Add xlist, xsublist, xoset.
23982         (Core language properties): Add alignof, unused-parameter.
23983         (Process control, Numeric conversion functions <stdlib.h>): Renamed
23984         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
23985         (Unibyte characters <ctype.h>): New section.
23986         (String handling <string.h>): New section.
23987         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
23988         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
23989         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
23990         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
23991         tan, tanh, tanl, y0, y1, yn.
23992         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
23993         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
23994         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
23995         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
23996         unlockpt, vdprintf, vdprintf-posix.
23997         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
23998         (File system functions): Add concat-filename, sys_file, sys_ioctl,
23999         xconcat-filename.
24000         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
24001         getdtablesize, pipe2, pipe2-safer.
24002         (Security): New section.
24003         (Networking functions): Add accept4.
24004         (Signal handling): Add sigpipe.
24005         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
24006         mbmemcasecoll.
24007         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
24008         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
24009         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
24010         pipe-filter-ii.
24011         (Misc): Add argp-version-etc, login_tty, parse-duration.
24012
24013 2010-07-31  Bruno Haible  <bruno@clisp.org>
24014
24015         Improve doc in MODULES.html.
24016         * modules/linkat (Description): Add the word "function".
24017         * modules/mkfifo (Description): Likewise.
24018         * modules/mknod (Description): Likewise.
24019         * modules/remove (Description): Likewise.
24020         * modules/renameat (Description): Likewise.
24021         * modules/stat (Description): Likewise.
24022         * modules/symlink (Description): Likewise.
24023         * modules/unlink (Description): Likewise.
24024
24025 2010-07-31  Bruno Haible  <bruno@clisp.org>
24026
24027         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
24028         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
24029         option --enable/disable-c++ instead of --enable/disable-cxx.
24030         * NEWS: Mention the change.
24031
24032 2010-07-31  Bruno Haible  <bruno@clisp.org>
24033
24034         readlink, areadlink: Relax test a bit.
24035         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
24036         alternative to ENOTDIR.
24037         * tests/test-areadlink.h (test_areadlink): Likewise.
24038         Reported by Rainer Tammer.
24039
24040 2010-07-31  Bruno Haible  <bruno@clisp.org>
24041
24042         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
24043         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
24044         character, perform the search using U_STRCHR.
24045         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
24046         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
24047         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
24048         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
24049         Suggested by Paolo Bonzini.
24050
24051 2010-07-31  Bruno Haible  <bruno@clisp.org>
24052
24053         unistr/u*-strstr: Fix dependencies.
24054         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
24055         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
24056         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
24057
24058 2010-07-31  Bruno Haible  <bruno@clisp.org>
24059
24060         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
24061         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
24062         the beginning of the loop.
24063         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
24064         cases in 'switch' statement.
24065
24066         unistr/u8-strchr: Fix several bugs.
24067         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
24068         the string. When not found, return NULL, not a pointer near the end.
24069
24070         More tests for unistr/u8-strchr.
24071         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
24072         that the function does not read past the first occurrence of the byte
24073         being searched.
24074         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
24075         * tests/unistr/test-u16-strchr.c (main): New function.
24076         * tests/unistr/test-u32-strchr.c (main): New function.
24077
24078 2010-07-31  Bruno Haible  <bruno@clisp.org>
24079
24080         posix-modules: Ignore backup files of documentation files.
24081         * posix-modules: grep only through files named *.texi.
24082
24083 2010-07-31  Bruno Haible  <bruno@clisp.org>
24084
24085         symlinkat: Fix documentation.
24086         * doc/posix-functions/readlinkat.texi: Fix module name.
24087
24088 2010-07-31  Bruno Haible  <bruno@clisp.org>
24089
24090         fchownat: Replace also when chown has the trailing slash bug.
24091         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
24092         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
24093         introduced on 2010-04-10.
24094         Reported by Rainer Tammer.
24095
24096 2010-07-31  Bruno Haible  <bruno@clisp.org>
24097
24098         linkat: Work around AIX 7.1 bug.
24099         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
24100         whether linkat handles trailing slash correctly. If not, replace linkat
24101         and define LINKAT_TRAILING_SLASH_BUG.
24102         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
24103         check whether (fd1,file1) points to a directory if file1 or file2 ends
24104         in a slash. Code taken from lib/link.c.
24105         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
24106         Reported by Rainer Tammer.
24107
24108 2010-07-31  Bruno Haible  <bruno@clisp.org>
24109
24110         Correctly determine whether pow is available in libc on AIX 7 with xlc.
24111         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
24112         This disables an xlc optimization that was causing wrong test results.
24113         Reported by Rainer Tammer.
24114
24115 2010-07-31  Bruno Haible  <bruno@clisp.org>
24116
24117         iconv: Work around AIX 6.1..7.1 bug.
24118         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
24119         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
24120         cross-compiling, guess no on all versions of AIX.
24121         Reported by Rainer Tammer.
24122
24123 2010-07-31  Bruno Haible  <bruno@clisp.org>
24124
24125         readlink: Relax test a bit.
24126         * tests/test-readlink.h (test_readlink): Allow different errno value
24127         when readlink is called with a file name that ends in / and refers to
24128         a file.
24129         Suggested by Eric Blake.
24130         Reported by Rainer Tammer.
24131
24132 2010-07-31  Bruno Haible  <bruno@clisp.org>
24133
24134         copysign: Does not require -lm on glibc systems.
24135         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
24136         gl_COMMON_DOUBLE_MATHFUNC.
24137         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
24138
24139 2010-07-31  Bruno Haible  <bruno@clisp.org>
24140
24141         duplocale: Work around AIX 7.1 bug.
24142         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
24143         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
24144         * lib/duplocale.c (rpl_duplocale): Update comment.
24145         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
24146         Reported by Rainer Tammer.
24147
24148 2010-07-30  Bruno Haible  <bruno@clisp.org>
24149
24150         dirfd: Avoid link error on AIX 7.1.
24151         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
24152         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
24153         exist, set REPLACE_DIRFD.
24154         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
24155         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
24156         * doc/posix-functions/dirfd.texi: Update.
24157         Reported by Rainer Tammer.
24158
24159 2010-07-30  Eric Blake  <eblake@redhat.com>
24160
24161         strtod: next round of AIX fixes
24162         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
24163         exponent.
24164         * tests/test-strtod.c (main): Enhance tests.
24165         * doc/posix-functions/strtod.texi (strtod): Document next bug.
24166         Reported by Rainer Tammer.
24167
24168         futimens: fix configure check
24169         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
24170         Reported by Bruno Haible.
24171
24172 2010-07-30  Bruno Haible  <bruno@clisp.org>
24173
24174         getline: Update regarding AIX.
24175         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
24176         Reported by Rainer Tammer.
24177
24178 2010-07-30  Bruno Haible  <bruno@clisp.org>
24179
24180         wcwidth: Drop replacement on AIX 7.
24181         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
24182         AIX 7.
24183         Reported by Rainer Tammer.
24184
24185 2010-07-30  Bruno Haible  <bruno@clisp.org>
24186
24187         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
24188         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
24189         a 'char *'.
24190         Reported by Rainer Tammer.
24191
24192 2010-07-30  Bruno Haible  <bruno@clisp.org>
24193
24194         unlink: Update regarding AIX.
24195         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
24196         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
24197         Reported by Rainer Tammer.
24198
24199 2010-07-30  Bruno Haible  <bruno@clisp.org>
24200
24201         symlink: Update regarding AIX.
24202         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
24203         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
24204         Reported by Rainer Tammer.
24205
24206 2010-07-30  Bruno Haible  <bruno@clisp.org>
24207
24208         strndup: Update regarding AIX.
24209         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
24210         AIX 7.
24211         Reported by Rainer Tammer.
24212
24213 2010-07-30  Bruno Haible  <bruno@clisp.org>
24214
24215         stat: Update regarding AIX.
24216         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
24217         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
24218         Reported by Rainer Tammer.
24219
24220 2010-07-30  Bruno Haible  <bruno@clisp.org>
24221
24222         truncl: Fix autoconf test.
24223         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
24224         whether truncl works.
24225         Reported by Rainer Tammer.
24226
24227 2010-07-30  Bruno Haible  <bruno@clisp.org>
24228
24229         round: Update regarding AIX.
24230         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
24231         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
24232         Reported by Rainer Tammer.
24233
24234 2010-07-30  Bruno Haible  <bruno@clisp.org>
24235
24236         rename: Update regarding AIX.
24237         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
24238         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
24239         Reported by Rainer Tammer.
24240
24241 2010-07-30  Bruno Haible  <bruno@clisp.org>
24242
24243         printf.m4: Update regarding AIX.
24244         * m4/printf.m4: Update comments regarding AIX.
24245         Reported by Rainer Tammer.
24246
24247 2010-07-30  Bruno Haible  <bruno@clisp.org>
24248
24249         iconv: Update regarding AIX.
24250         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
24251         AIX 7.
24252         Reported by Rainer Tammer.
24253
24254 2010-07-30  Bruno Haible  <bruno@clisp.org>
24255
24256         getopt: Update regarding AIX.
24257         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
24258         no on AIX.
24259         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
24260         Reported by Rainer Tammer.
24261
24262 2010-07-30  Bruno Haible  <bruno@clisp.org>
24263
24264         ldexpl; Update regarding AIX.
24265         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
24266         on AIX 7.
24267         Reported by Rainer Tammer.
24268
24269 2010-07-30  Bruno Haible  <bruno@clisp.org>
24270
24271         frexpl: Update regarding AIX.
24272         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
24273         on AIX 7.
24274         Reported by Rainer Tammer.
24275
24276 2010-07-30  Bruno Haible  <bruno@clisp.org>
24277
24278         open, fopen: Update regarding AIX.
24279         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
24280         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
24281         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
24282         * doc/posix-functions/fopen.texi: Likewise.
24283         Reported by Rainer Tammer.
24284
24285 2010-07-30  Bruno Haible  <bruno@clisp.org>
24286
24287         chown: Update doc regarding AIX.
24288         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
24289         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
24290         Reported by Rainer Tammer.
24291
24292 2010-07-30  Eric Blake  <eblake@redhat.com>
24293
24294         strtod: fix bug in replacement function on AIX
24295         * lib/strtod.c (strtod): Special case broken "0x" parse in
24296         underlying strtod.
24297         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
24298         * doc/posix-functions/strtod.texi (strtod): Likewise.
24299         Reported by Rainer Tammer.
24300
24301 2010-07-30  Bruno Haible  <bruno@clisp.org>
24302
24303         mbrlen: Fix cross-compilation guess for AIX.
24304         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
24305         guess. Leftover from 2008-12-22.
24306
24307 2010-07-30  Bruno Haible  <bruno@clisp.org>
24308
24309         mbrtowc: Fix cross-compilation guess for AIX.
24310         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
24311         guess. Leftover from 2008-12-21.
24312
24313 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
24314
24315         init.sh: work around trap limitation of some shells
24316         * tests/init.sh (setup_): Move exit trap outside of shell function.
24317
24318 2010-07-29  Eric Blake  <eblake@redhat.com>
24319
24320         strtod: aid debugging
24321         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
24322         understanding why strtod is rejected.
24323
24324 2010-07-28  Bruno Haible  <bruno@clisp.org>
24325
24326         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
24327         * lib/unistr/u8-chr.c: Include <string.h>.
24328         * tests/unistr/test-u8-chr.c: Likewise.
24329         * tests/unistr/test-u16-chr.c: Likewise.
24330         * tests/unistr/test-u32-chr.c: Likewise.
24331         * tests/unistr/test-u8-strchr.c: Likewise.
24332         * tests/unistr/test-u16-strchr.c: Likewise.
24333         * tests/unistr/test-u32-strchr.c: Likewise.
24334         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
24335         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
24336         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
24337         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
24338
24339 2010-07-28  Bruno Haible  <bruno@clisp.org>
24340
24341         Use spaces for indentation, not tabs.
24342         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
24343
24344 2010-07-27  Bruno Haible  <bruno@clisp.org>
24345
24346         mbspcasecmp: Fix function specification.
24347         * lib/string.in.h (mbspcasecmp): Fix specification comment.
24348         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
24349         Reported by Eric Blake <eblake@redhat.com>.
24350
24351 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
24352
24353         timespec: use cast and not conditional, as truncation isn't possible
24354         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
24355         instead of a conditional.  Comment about the situation in more detail.
24356         This undoes most of the 2009-10-29 patch.
24357
24358 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
24359
24360         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
24361         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
24362         * lib/unistr/u8-strchr.c: Likewise.
24363         * modules/unistr/u8-chr: Depend on memchr.
24364
24365         unistr/u*-strchr: add tests
24366         * modules/unistr/u8-strchr-tests: New file.
24367         * modules/unistr/u16-strchr-tests: New file.
24368         * modules/unistr/u32-strchr-tests: New file.
24369         * tests/unistr/test-strchr.h: New file.
24370         * tests/unistr/test-u8-strchr.c: New file.
24371         * tests/unistr/test-u16-strchr.c: New file.
24372         * tests/unistr/test-u32-strchr.c: New file.
24373
24374         unistr/u*-chr: test multibyte sequences more
24375         * tests/unistr/test-chr.h: Do complete testing of the characters in the
24376         test vector.
24377         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
24378         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
24379         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
24380
24381         unistr/u*-chr: test multibyte sequences
24382         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
24383
24384         unistr/u*-chr: prepare for multibyte tests
24385         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
24386         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
24387         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
24388         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
24389         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
24390         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
24391
24392 2010-07-18  Bruno Haible  <bruno@clisp.org>
24393
24394         unistr/u8-strchr: Optimize non-ASCII argument case.
24395         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
24396         because the first byte often matches anyway.
24397         Reported by Pádraig Brady <P@draigbrady.com>.
24398
24399 2010-07-15  Karl Berry  <karl@gnu.org>
24400
24401         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
24402
24403 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
24404
24405         getcwd: on Solaris, work better if ancestors are inaccessible
24406         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
24407         buffer and size, try again with a large buffer.  This works better
24408         on Solaris, since its getcwd succeeds even if the path to the root
24409         is inaccessible, and this is helpful in common cases such as .zfs
24410         hidden directories.  Problem reported by J Chapman Flack in
24411         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
24412         Use system getcwd if it's declared, not merely if it's partly
24413         working; use the partly-working test only to avoid needless effort
24414         if the system getcwd fails.
24415         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
24416         comment that was already obsolete and is now even more obsolete.
24417         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
24418         now might call strdup.
24419
24420 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
24421
24422         pthread: Add enough so that coreutils/src/sort.c compiles.
24423         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
24424         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
24425         gnulib. Include <sched.h> and <time.h>, as per POSIX.
24426         Include <sys/types.h>, in case it defines pthread_t.
24427         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
24428         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
24429         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
24430         (pthread_rwlockattr_t, pthread_spinlock_t):
24431         New typedefs, if HAVE_PTHREAD_T is not defined.
24432         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
24433         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
24434         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
24435         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
24436         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
24437         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
24438         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
24439         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
24440         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
24441         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
24442         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
24443         New macros.
24444         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
24445         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
24446         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
24447         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
24448         (pthread_spin_unlock): New dummy functions.
24449         (pthread_create): Return EAGAIN; don't set errno.
24450         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
24451         require AC_C_INLINE.
24452         * modules/pthread (Depends-on): Add sched, time.
24453         (pthread.h): Use AM_V_GEN.
24454
24455 2010-07-13  Bruno Haible  <bruno@clisp.org>
24456
24457         striconveh: Don't malloc memory if the result buffer is sufficient.
24458         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
24459         buffer if its size is sufficient.
24460         Reported by Ludovic Courtès <ludo@gnu.org>.
24461
24462 2010-07-13  Bruno Haible  <bruno@clisp.org>
24463
24464         strtod: Add safety check.
24465         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
24466
24467 2010-07-12  Bruno Haible  <bruno@clisp.org>
24468
24469         Unify tests that set gl_cv_func_ldexpl_no_libm.
24470         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
24471         gl_FUNC_LDEXPL.
24472         (gl_FUNC_LDEXPL): Invoke it.
24473         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
24474
24475 2010-07-12  Bruno Haible  <bruno@clisp.org>
24476
24477         Unify tests that set gl_cv_func_ldexp_no_libm.
24478         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
24479         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
24480         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
24481         (configure.ac): Simply invoke gl_FUNC_LDEXP.
24482         * modules/strtod (Files): Add m4/ldexp.m4.
24483
24484 2010-07-12  Bruno Haible  <bruno@clisp.org>
24485
24486         Unify tests that set gl_cv_func_frexpl_no_libm.
24487         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
24488         gl_FUNC_FREXPL_NO_LIBM.
24489         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
24490         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
24491
24492 2010-07-12  Bruno Haible  <bruno@clisp.org>
24493
24494         Unify tests that set gl_cv_func_frexp_no_libm.
24495         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
24496         gl_FUNC_FREXP_NO_LIBM.
24497         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
24498         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
24499
24500 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
24501
24502         memcoll: clarify sizes versus lengths, document better, and tweak perf
24503         * lib/memcoll.c (strcoll_loop, memcoll0):
24504         Improve quality of descriptive comments.  Name variables
24505         consistently as to whether they are lengths (which do not include
24506         terminating null) versus sizes (which do).
24507         * lib/xmemcoll.c (xmemcoll0): Likewise.
24508         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
24509         returned when s1size == 0; this is easier to compile and saves
24510         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
24511
24512 2010-07-12  Bruno Haible  <bruno@clisp.org>
24513
24514         Tests for module '_Exit'.
24515         * modules/_Exit-tests: New file.
24516         * tests/test-_Exit.sh: New file.
24517         * tests/test-_Exit.c: New file.
24518
24519         New module '_Exit'.
24520         * lib/stdlib.in.h (__attribute__): New macro.
24521         (_Exit): New declaration.
24522         * lib/_Exit.c: New file.
24523         * m4/_Exit.m4: New file.
24524         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
24525         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
24526         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
24527         * modules/_Exit: New file.
24528         * tests/test-stdlib-c++.cc (_Exit): Check signature.
24529         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
24530
24531 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
24532
24533         strtod: make it more-accurate typically, and don't require libm
24534         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
24535         Include limits.h.  Don't include string.h.
24536         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
24537         (locale_isspace): New function, so that no casts are needed to
24538         check whether *s is a space.
24539         (ldexp): Provide an unused dummy if not available.
24540         (scale_radix_exp, parse_number, underlying_strtod): New functions.
24541         (strtod): Use them.  This implementation prefers to use the
24542         underlying strtod if available, falling back on our own code
24543         only to fix known bugs.  This is more likely to produce an
24544         accurate result.  Also, it avoids the use of libm functions.
24545         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
24546         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
24547         was absent, but it caused a test failure with coreutils.
24548         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
24549         with libm.
24550         * modules/strtod (Makefile.am, Link): libm is no longer needed.
24551         * modules/strtod-tests (Makefile.am): Likewise.
24552
24553 2010-07-11  Pádraig Brady  <P@draigBrady.com>
24554             Bruno Haible  <bruno@clisp.org>
24555
24556         unistr/u8-strchr: Optimize ASCII argument case.
24557         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
24558
24559 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
24560
24561         (x)memcoll: minor tweaks
24562         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
24563         is after the type that it qualifies.
24564         (memcoll0): Likewise.
24565         * lib/memcoll.h (memcoll0): Likewise.
24566         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
24567         * lib/xmemcoll.h (xmemcoll0): Likewise.
24568         * lib/memcoll.c (memcoll0): Correct the comment.  This function
24569         differs from memcoll in that the NUL byte is part of the argument.
24570         Omit the abort-checks, as performance is a real issue here.  Plus,
24571         the checks were wrong anyway (an off-by-one error).  Omit local
24572         variable 'diff', as it's a bit clearer that way.
24573         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
24574         no longer needed.
24575
24576 2010-07-08  Chen Guo <chenguo4@yahoo.com>
24577
24578         (x)memcoll: speedup when input is known to be NUL delimited
24579         * lib/memcoll.c: Include stdlib.
24580         (memcoll0): New function.
24581         (strcoll_loop): New function, refactored for use in both memcoll
24582         and memcoll0.
24583         * lib/memcoll.h (memcoll0): Add prototype.
24584         * lib/xmemcoll.c (xmemcoll0): New function.
24585         (collate_error): New function, refactored for use in both xmemcoll
24586         and xmemcoll0.
24587         * lib/xmemcoll.h (xmemcoll0): Add prototype.
24588         * m4/memcoll.m4: add inline invocation.
24589
24590 2010-07-06  Pádraig Brady  <P@draigBrady.com>
24591
24592         * build-aux/bootstrap: Remove any local translations
24593         from the translation project synchronization directory,
24594         so that local only translations are not distributed.
24595
24596 2010-07-04  Bruno Haible  <bruno@clisp.org>
24597
24598         fsusage: Clarify which code applies to which platforms.
24599         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
24600         platform.
24601         * lib/fsusage.c (get_fs_usage): Likewise.
24602
24603 2010-07-04  Bruno Haible  <bruno@clisp.org>
24604
24605         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
24606         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
24607         Reported by Martin Lambers <marlam@marlam.de>.
24608
24609 2010-07-04  Jim Meyering  <meyering@redhat.com>
24610
24611         hash: once again explicitly disallow insertion of NULL
24612         * lib/hash.c (hash_insert0): Reinstate just-removed test:
24613         inserting a NULL pointer cannot work with these functions.
24614         Add a comment with details.
24615         This reverts part of the 2010-07-01 commit, 5bef1a35
24616         "hash: extend module to deal with non-pointer keys".
24617
24618 2010-07-01  Bruno Haible  <bruno@clisp.org>
24619
24620         stdbool: Update doc.
24621         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
24622         Info from Christian Weisgerber <naddy@mips.inka.de>.
24623
24624 2010-07-01  Jim Meyering  <meyering@redhat.com>
24625
24626         hash: extend module to deal with non-pointer keys
24627         * lib/hash.c (hash_insert0): New interface, much like hash_insert
24628         but that allows insertion of non-pointer entries.
24629         Do not disallow an ENTRY value of NULL.
24630         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
24631         * lib/hash.h (hash_insert0): Declare.
24632
24633 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24634
24635         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
24636         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
24637         not present (i.e. with autoconf 2.59 and when using gettextize, not
24638         gnulib), require AC_GNU_SOURCE instead.
24639
24640 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
24641
24642         idpriv-drop: Fix tests.
24643         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
24644         not to the test-idpriv-droptemp program.
24645
24646 2010-06-29  Bruno Haible  <bruno@clisp.org>
24647
24648         string: Fix syntax error with g++ 2.96.
24649         * lib/string.in.h (__pure__): Remove definition.
24650         (_GL_ATTRIBUTE_PURE): New macro.
24651         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
24652         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
24653         Reported by Christian Weisgerber <naddy@mips.inka.de>.
24654
24655 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
24656
24657         unitypes: Fix bug introduced on 2010-05-18.
24658         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
24659
24660 2010-06-22  Eric Blake  <eblake@redhat.com>
24661
24662         memmem: slight optimization
24663         * lib/str-two-way.h (critical_factorization): Update comments.
24664         Reduce work during factorization phase.
24665         Reported by Carlos Bueno <carlos@bueno.org>.
24666
24667 2010-06-21  Bruno Haible  <bruno@clisp.org>
24668
24669         Fix HAVE_CALLOC_POSIX misnomer.
24670         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
24671         !HAVE_CALLOC_POSIX.
24672         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
24673         HAVE_CALLOC_POSIX.
24674         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
24675         instead of HAVE_CALLOC_POSIX.
24676         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
24677         HAVE_CALLOC_POSIX.
24678
24679         Use modern idiom for calloc() replacement.
24680         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
24681         AC_FUNC_CALLOC.
24682         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
24683         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
24684         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
24685         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
24686         (gl_REPLACE_CALLOC): New macro.
24687
24688 2010-06-21  Bruno Haible  <bruno@clisp.org>
24689
24690         Fix HAVE_REALLOC_POSIX misnomer.
24691         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
24692         !HAVE_REALLOC_POSIX.
24693         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
24694         HAVE_REALLOC_POSIX.
24695         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
24696         instead of HAVE_REALLOC_POSIX.
24697         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
24698         HAVE_REALLOC_POSIX.
24699
24700         Use modern idiom for realloc() replacement.
24701         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
24702         AC_FUNC_REALLOC.
24703         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
24704         Autoconf's AC_FUNC_REALLOC.
24705         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
24706         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
24707         (gl_REPLACE_REALLOC): New macro.
24708         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
24709
24710 2010-06-21  Bruno Haible  <bruno@clisp.org>
24711
24712         Fix HAVE_MALLOC_POSIX misnomer.
24713         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
24714         !HAVE_MALLOC_POSIX.
24715         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
24716         HAVE_MALLOC_POSIX.
24717         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
24718         instead of HAVE_MALLOC_POSIX.
24719         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
24720         HAVE_MALLOC_POSIX.
24721
24722         Use modern idiom for malloc() replacement.
24723         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
24724         AC_FUNC_MALLOC.
24725         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
24726         Autoconf's AC_FUNC_MALLOC.
24727         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
24728         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
24729         (gl_REPLACE_MALLOC): New macro.
24730         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
24731
24732 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
24733
24734         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
24735         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
24736         This macro takes 3 arguments, not 4.
24737
24738 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
24739
24740         ipv6: fix detection under mingw
24741         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
24742         in6_addr.
24743
24744 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
24745
24746         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
24747         that strtod() works when cross-compiling to a glibc version known
24748         to work.
24749
24750 2010-06-15  Bruno Haible  <bruno@clisp.org>
24751
24752         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
24753
24754 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
24755
24756         select: Correct timeout.
24757         * lib/select.c (rpl_select): Compute wait_timeout correctly.
24758
24759 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24760
24761         git-version-gen: init shell var to avoid env var influence
24762         * build-aux/git-version-gen (v): Init shell var to empty.
24763
24764 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
24765
24766         priv-set: Don't assume that priv.h exists merely because getppriv does.
24767         See Jan Andersen's bug report about AIX 5L in
24768         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
24769         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
24770         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
24771         * lib/priv-set.h: Likewise.
24772         * tests/test-priv-set.c: Likewise.
24773
24774 2010-06-13  Bruno Haible  <bruno@clisp.org>
24775
24776         relocatable: Make it easier to test whether to install wrappers.
24777         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
24778         RELOCATABLE_VIA_WRAPPER.
24779
24780 2010-06-13  Bruno Haible  <bruno@clisp.org>
24781
24782         gnulib-tool: Display specified modules and dependencies differently.
24783         * gnulib-tool (func_show_module_list): New function.
24784         (func_import, func_create_testdir): Invoke it.
24785         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24786
24787 2010-06-13  Bruno Haible  <bruno@clisp.org>
24788
24789         gnulib-tool: Align code of func_import and func_create_testdir.
24790         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
24791         specified_modules.
24792
24793 2010-06-12  Jim Meyering  <meyering@redhat.com>
24794
24795         test-inttostr: avoid spurious failure on Solaris 9
24796         * tests/test-inttostr.c (main): Skip the test when snprintf fails
24797         to accept "%ju".  Reported by Bruno Haible.
24798
24799 2010-06-11  Jim Meyering  <meyering@redhat.com>
24800
24801         test-sys_socket: mark variables as used more readably
24802         * tests/test-sys_socket.c (main): Mark otherwise unused variables
24803         as "used" explicitly via (void) statement casts.  This is more
24804         readable than using them in an artificial return expression.
24805         Suggestion from Bruno Haible.
24806
24807 2010-06-11  Bruno Haible  <bruno@clisp.org>
24808
24809         Avoid some more warnings from "gcc -Wwrite-strings".
24810         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
24811         to 'const char *'.
24812         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
24813         * tests/test-c-strcasestr.c (main): Likewise.
24814         * tests/test-mbscasestr1.c (main): Likewise.
24815         * tests/test-mbscasestr2.c (main): Likewise.
24816         * tests/test-memmem.c (main): Likewise.
24817         * tests/test-strstr.c (main): Likewise.
24818         * tests/test-strcasestr.c (main): Likewise.
24819
24820 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24821
24822         init.sh: change framework_failure_ to fail with status 99, not 1
24823         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
24824         automake's parallel-tests rule that this is an unexpected failure,
24825         even if the test is listed in XFAIL_TESTS.
24826
24827 2010-06-11  Jim Meyering  <meyering@redhat.com>
24828
24829         test-inttostr: avoid warnings about 4-6KB literal strings
24830         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
24831         Include "macros.h", for its definition of ASSERT.
24832         (CK): s/assert/ASSERT/
24833         * modules/inttostr-tests (Files): Add macros.h.
24834
24835         init.sh: don't use $ME_ or skip_ before they are defined
24836         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
24837         their first uses.  Also hoist their companions: warn_, fail_,
24838         framework_failure_, $stderr_fileno.  Prompted by a patch from
24839         Stefano Lattarini.
24840
24841         test-sys_socket: avoid set-but-not-used warnings from gcc
24842         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
24843         avoid warning about set-but-not-used variables.
24844
24845         test-xvasprintf: avoid 'const' discard warnings
24846         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
24847         "const" when assigning from literal strings.
24848         (test_xasprintf): Add "void" in function argument list to placate
24849         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
24850
24851         tests: avoid compilation warnings in argmatch and exclude tests...
24852         in packages that define ARGMATCH_DIE_DECL, like coreutils.
24853         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
24854         Since it always exits, declare with the "noreturn" attribute.
24855         * tests/test-argmatch.c: Likewise.
24856
24857         tests: avoid 'const' discard warnings in mbsstr tests
24858         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
24859         * tests/test-mbsstr2.c (main): Likewise.
24860
24861         test-verify: avoid warning from gcc's -Wmissing-declarations
24862         * tests/test-verify.c (function): Declare to be static.
24863
24864         test-inttostr.c: include <string.h> for use of strcmp
24865         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
24866
24867         test-linkat: avoid failed assertion on "other" architectures
24868         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
24869         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
24870         sparc: https://bugs.launchpad.net/bugs/591968
24871
24872 2010-06-11  Jim Meyering  <meyering@redhat.com>
24873
24874         printf.m4: avoid autoconf's "Expanded Before Required" warning
24875         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
24876         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
24877         autoconf warning.
24878
24879 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
24880
24881         Replacement header templates are now named with ".in", not "_".
24882         * doc/gnulib-intro.texi: Correct.
24883
24884 2010-06-10  Jim Meyering  <meyering@redhat.com>
24885
24886         inttostr-tests: depend on snprintf, not snprintf-posix
24887         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
24888         snprintf-posix, to avoid this aclocal failure:
24889           missing file gnulib-tests/vasnprintf.c
24890           configure.ac:45: error: expected source file, required through \
24891           AC_LIBSOURCES, not found
24892
24893 2010-06-10  Jim Meyering  <meyering@redhat.com>
24894
24895         inttostr: add a new function, inttostr, and tests
24896         The namesake function was not available.  The existence of the
24897         template file, inttostr.c makes its addition nontrivial.
24898         * lib/anytostr.c: Rename from inttostr.c.
24899         (anytostr): Rename from inttostr.
24900         * lib/inttostr.c: New file.
24901         * modules/inttostr (Files): Add anytostr.c.
24902         (Makefile.am): Set lib_SOURCES instead of ...
24903         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
24904         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
24905         * lib/offtostr.c: Likewise.
24906         * lib/uinttostr.c: Likewise.
24907         * lib/umaxtostr.c: Likewise.
24908         * modules/inttostr-tests: New file.
24909         * tests/test-inttostr.c: New file.  Test these functions.
24910
24911 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
24912             Bruno Haible  <bruno@clisp.org>
24913
24914         Add "Extending Gnulib" chapter to manual.
24915         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
24916         chapter.
24917         (Extending Gnulib): New chapter.
24918         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
24919         chapter.
24920
24921 2010-06-09  Bruno Haible  <bruno@clisp.org>
24922
24923         Avoid relocwrapper link errors due to gnulib replacement functions.
24924         * lib/areadlink.c: Use the system's malloc, realloc functions.
24925         (areadlink): Set errno to ENOMEM explicitly.
24926         * modules/areadlink (Depends-on): Remove malloc-posix.
24927         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24928
24929 2010-06-09  Bruno Haible  <bruno@clisp.org>
24930
24931         Avoid relocwrapper link errors due to gnulib replacement functions.
24932         * lib/canonicalize-lgpl.c: Use the system's malloc function.
24933         * lib/malloca.c: Likewise.
24934         * lib/relocatable.c: Likewise.
24935         * lib/progreloc.c: Use the system's malloc, sprintf functions.
24936         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
24937         * lib/setenv.c: Use the system's malloc, realloc functions.
24938         * lib/strerror.c: Use the system's sprintf function.
24939         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24940
24941 2010-06-04  Bruno Haible  <bruno@clisp.org>
24942
24943         Prefer documented low-level autoconf macro names.
24944         * m4/lib-link.m4: Use m4_translit instead of translit.
24945         * m4/environ.m4: Likewise.
24946         * m4/mathfunc.m4: Likewise.
24947         * m4/onceonly.m4: Likewise.
24948         * m4/stdint.m4: Likewise.
24949         Suggested by Eric Blake.
24950
24951 2010-06-04  Martin Lambers  <marlam@marlam.de>
24952             Bruno Haible  <bruno@clisp.org>
24953
24954         havelib: Allow library names with '+' characters.
24955         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
24956         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
24957
24958 2010-06-09  Bruno Haible  <bruno@clisp.org>
24959
24960         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
24961         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
24962         realloc failed.
24963
24964 2010-06-08  Peter Simons  <simons@cryp.to>
24965
24966         maint.mk: make the news-check rule more configurable
24967         * top/maint.mk (news-check-lines-spec): New variable.
24968         (news-check): Use "sed -n 1,10p" in place of "head".
24969
24970 2010-06-07  Jim Meyering  <meyering@redhat.com>
24971
24972         do-release-commit-and-tag: fix typo in --help
24973         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
24974
24975         regex: avoid new dead-code warning with gcc-4.6.0
24976         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
24977         if-block containing a while-loop.  It's been unused for at least
24978         5 years.
24979
24980 2010-06-05  Bruno Haible  <bruno@clisp.org>
24981
24982         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
24983         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
24984
24985 2010-06-04  Bruno Haible  <bruno@clisp.org>
24986
24987         Update to GNU gettext 0.18.1.
24988         * modules/gettext (configure.ac): Require gettext infrastructure from
24989         version 0.18.1.
24990
24991 2010-06-03  Bruno Haible  <bruno@clisp.org>
24992
24993         Don't use AC_LIBOBJ with file names in subdirectories.
24994         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
24995         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
24996         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
24997         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
24998         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
24999         gl_LIBUNISTRING_LIBSOURCE.
25000         (Makefile.am): Augment lib_SOURCES here, conditionally.
25001         * NEWS: Drop requirement for Automake option 'subdir-objects'.
25002
25003 2010-06-03  Bruno Haible  <bruno@clisp.org>
25004
25005         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
25006         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
25007         expansion does not end with a newline.
25008         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
25009         unnecessary newline.
25010
25011 2010-06-03  Bruno Haible  <bruno@clisp.org>
25012
25013         Reduce dependencies.
25014         * tests/test-quotearg.h: New file, extracted from
25015         tests/test-quotearg.c.
25016         * tests/test-quotearg-simple.c: New file, extracted from
25017         tests/test-quotearg.c.
25018         * tests/test-quotearg.c: Don't include <ctype.h>.
25019         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
25020         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
25021         use_quote_double_quotes, use_quotearg_colon): Moved to
25022         tests/test-quotearg.h.
25023         (results_g, flag_results, custom_quotes, custom_results): Moved
25024         to tests/test-quotearg-simple.c.
25025         (main): Moved the part that does not depend on gettext to
25026         tests/test-quotearg-simple.c. Return 77 if the test cannot be
25027         performed.
25028         * modules/quotearg-simple: New file.
25029         * modules/quotearg-simple-tests: New file.
25030         * modules/quotearg (Depends-on): Add quotearg-simple.
25031         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
25032         (Files): Add tests/test-quotearg.h.
25033         Reported by Paolo Bonzini.
25034
25035 2010-06-03  Bruno Haible  <bruno@clisp.org>
25036
25037         Reduce dependencies.
25038         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
25039
25040 2010-06-03  Bruno Haible  <bruno@clisp.org>
25041
25042         time: Undefine more broken macros.
25043         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
25044         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
25045         Reported by Eric Blake.
25046
25047 2010-06-03  Bruno Haible  <bruno@clisp.org>
25048
25049         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
25050         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
25051         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
25052         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
25053         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
25054         Reported by Ludovic Courtès <ludo@gnu.org>.
25055
25056 2010-06-02  Eric Blake  <eblake@redhat.com>
25057
25058         time: work with mingw + pthreads-win32 library
25059         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
25060         if timespec is defined only in pthread.h.
25061         * modules/time (Makefile.am): Substitute it.
25062         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
25063         <pthread.h>, when needed.
25064         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
25065         from the library.
25066
25067 2010-05-31  Bruno Haible  <bruno@clisp.org>
25068
25069         Avoid expanding two macros in the wrong order.
25070         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
25071         gl_LIBUNISTRING if it is defined.
25072         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
25073         autoconf >= 2.64.
25074         Reported by Ludovic Courtès <ludo@gnu.org>.
25075
25076 2010-05-27  Jim Meyering  <meyering@redhat.com>
25077
25078         maint.mk: also prohibit "#undef" of always-defined symbols
25079         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
25080         Allow more than one space before the symbol name.
25081         (sc_prohibit_always-defined_macros): Use grep's -E, now that
25082         the regexp uses alternation.
25083
25084 2010-05-26  Eric Blake  <eblake@redhat.com>
25085
25086         maint.mk: avoid echo -e
25087         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
25088         Convert all uses of echo -* to printf.
25089         Reported by Matthias Bolte.
25090
25091 2010-05-25  Bruno Haible  <bruno@clisp.org>
25092
25093         Update to GNU gettext 0.18, part 2.
25094         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
25095         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
25096
25097 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25098
25099         Add missing include in test-pwrite.c.
25100         * tests/test-pwrite.c: Include string.h, for strcmp.
25101
25102 2010-05-24  Bruno Haible  <bruno@clisp.org>
25103
25104         * NEWS: Mention requirement for Automake option 'subdir-objects'.
25105
25106 2010-05-24  Bruno Haible  <bruno@clisp.org>
25107
25108         Don't use conversion with transliteration in u{8,16,32}_strcoll.
25109         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
25110         iconveh_error argument.
25111         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
25112         U_STRCONV_TO_LOCALE.
25113         * lib/unistr/u16-strcoll.c: Likewise.
25114         * lib/unistr/u32-strcoll.c: Likewise.
25115         * modules/unistr/u8-strcoll (Depends-on): Add
25116         uniconv/u8-strconv-to-enc, localcharset. Remove
25117         uniconv/u8-strconv-to-locale.
25118         (configure.ac): Bump version number.
25119         * modules/unistr/u16-strcoll (Depends-on): Add
25120         uniconv/u16-strconv-to-enc, localcharset. Remove
25121         uniconv/u16-strconv-to-locale.
25122         (configure.ac): Bump version number.
25123         * modules/unistr/u32-strcoll (Depends-on): Add
25124         uniconv/u32-strconv-to-enc, localcharset. Remove
25125         uniconv/u32-strconv-to-locale.
25126         (configure.ac): Bump version number.
25127
25128 2010-05-24  Bruno Haible  <bruno@clisp.org>
25129
25130         Avoid a test failure on NetBSD 5.0.
25131         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
25132         an iconv() bug.
25133
25134 2010-05-24  Bruno Haible  <bruno@clisp.org>
25135
25136         Adjust #include directive style.
25137         * modules/regex (Includes): Recommend to write <regex.h>.
25138
25139 2010-05-24  Bruno Haible  <bruno@clisp.org>
25140
25141         regex: Don't require alloca.
25142         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
25143         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
25144         only inside if (0).
25145
25146 2010-05-23  Jim Meyering  <meyering@redhat.com>
25147
25148         test-renameat.c: include <sys/stat.h>
25149         * tests/test-renameat.c: Include <sys/stat.h>; required for
25150         definition of S_IS* macros.
25151
25152 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
25153
25154         Update maintainer documentation for 'relocatable-prog' module.
25155         * doc/relocatable-maint.texi: Update.
25156         Comments by Bruno Haible.
25157
25158 2010-05-23  Bruno Haible  <bruno@clisp.org>
25159
25160         git-merge-changelog: Enable --split-merged-entry by default.
25161         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
25162         (usage): Don't mention this option any more.
25163         Reported by Ralf Wildenhues.
25164
25165 2010-05-23  Jim Meyering  <meyering@redhat.com>
25166
25167         test-pwrite: do not leave behind a test file named "out"
25168         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
25169         The trivial-looking use of init.sh is really necessary.
25170         It ensures that the temporary file, "out", is created in
25171         a temporary directory, and removed upon termination.
25172         * tests/test-pwrite.sh: Re-add file.
25173         * modules/pwrite-tests: Reference it.
25174
25175 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25176
25177         Fix output redirection buglet in init.sh.
25178         * tests/init.sh: Fix redirection of stderr.
25179
25180 2010-05-20  Simon Josefsson  <simon@josefsson.org>
25181
25182         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
25183
25184 2010-05-17  Simon Josefsson  <simon@josefsson.org>
25185
25186         * modules/valgrind-tests: New file.
25187         * m4/valgrind-tests.m4: New file.
25188         * doc/valgrind-tests.texi: New file.
25189         * doc/gnulib.texi (Running self-tests under valgrind): New
25190         section.
25191
25192 2010-05-19  Bruno Haible  <bruno@clisp.org>
25193
25194         Clean up dead code in recent commit.
25195         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
25196         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
25197         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
25198         Suggested by Paolo Bonzini.
25199
25200 2010-05-19  Bruno Haible  <bruno@clisp.org>
25201
25202         Avoid valgrind error reports from libunistring.
25203         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
25204         * modules/libunistring (Files): Add it.
25205         * modules/libunistring-optional (Files): Likewise.
25206
25207 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
25208             Bruno Haible  <bruno@clisp.org>
25209
25210         New module 'libunistring-optional'.
25211         * modules/libunistring-optional: New file.
25212         * m4/libunistring-base.m4: New file.
25213         * m4/libunistring-optional.m4: New file.
25214         * lib/unicase.in.h: Renamed from lib/unicase.h.
25215         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
25216         * lib/unictype.in.h: Renamed from lib/unictype.h.
25217         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
25218         * lib/uniname.in.h: Renamed from lib/uniname.h.
25219         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
25220         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
25221         * lib/unistr.in.h: Renamed from lib/unistr.h.
25222         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
25223         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
25224         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
25225         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
25226         gl_LIBUNISTRING. If the library was found, determine the installed
25227         version and set LIBUNISTRING_VERSION.
25228         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
25229         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
25230         handle a configuration option --with-included-libunistring.
25231         * modules/libunistring (Files): Add m4/absolute-header.m4.
25232         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
25233         Add m4/libunistring-base.m4.
25234         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25235         (Makefile.am): Build unicase.h from unicase.in.h.
25236         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
25237         Add m4/libunistring-base.m4.
25238         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25239         (Makefile.am): Build uniconv.h from uniconv.in.h.
25240         * modules/unictype/base (Files): Use unictype.in.h instead of
25241         unictype.h. Add m4/libunistring-base.m4.
25242         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25243         (Makefile.am): Build unictype.h from unictype.in.h.
25244         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
25245         Add m4/libunistring-base.m4.
25246         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25247         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
25248         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
25249         Add m4/libunistring-base.m4.
25250         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25251         (Makefile.am): Build uniname.h from uniname.in.h.
25252         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
25253         Add m4/libunistring-base.m4.
25254         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25255         (Makefile.am): Build uninorm.h from uninorm.in.h.
25256         * modules/unistdio/base (Files): Use unistdio.in.h instead of
25257         unistdio.h. Add m4/libunistring-base.m4.
25258         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25259         (Makefile.am): Build unistdio.h from unistdio.in.h.
25260         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
25261         Add m4/libunistring-base.m4.
25262         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25263         (Makefile.am): Build unistr.h from unistr.in.h.
25264         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
25265         Add m4/libunistring-base.m4.
25266         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25267         (Makefile.am): Build unitypes.h from unitypes.in.h.
25268         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
25269         Add m4/libunistring-base.m4.
25270         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25271         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
25272         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
25273         uniwidth.h. Add m4/libunistring-base.m4.
25274         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25275         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
25276         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
25277         instead of augmenting lib_SOURCES.
25278         * modules/unicase/empty-suffix-context: Likewise.
25279         * modules/unicase/locale-language: Likewise.
25280         * modules/unicase/tolower: Likewise.
25281         * modules/unicase/totitle: Likewise.
25282         * modules/unicase/toupper: Likewise.
25283         * modules/unicase/u8-casecmp: Likewise.
25284         * modules/unicase/u8-casecoll: Likewise.
25285         * modules/unicase/u8-casefold: Likewise.
25286         * modules/unicase/u8-casexfrm: Likewise.
25287         * modules/unicase/u8-ct-casefold: Likewise.
25288         * modules/unicase/u8-ct-tolower: Likewise.
25289         * modules/unicase/u8-ct-totitle: Likewise.
25290         * modules/unicase/u8-ct-toupper: Likewise.
25291         * modules/unicase/u8-is-cased: Likewise.
25292         * modules/unicase/u8-is-casefolded: Likewise.
25293         * modules/unicase/u8-is-lowercase: Likewise.
25294         * modules/unicase/u8-is-titlecase: Likewise.
25295         * modules/unicase/u8-is-uppercase: Likewise.
25296         * modules/unicase/u8-prefix-context: Likewise.
25297         * modules/unicase/u8-suffix-context: Likewise.
25298         * modules/unicase/u8-tolower: Likewise.
25299         * modules/unicase/u8-totitle: Likewise.
25300         * modules/unicase/u8-toupper: Likewise.
25301         * modules/unicase/u16-casecmp: Likewise.
25302         * modules/unicase/u16-casecoll: Likewise.
25303         * modules/unicase/u16-casefold: Likewise.
25304         * modules/unicase/u16-casexfrm: Likewise.
25305         * modules/unicase/u16-ct-casefold: Likewise.
25306         * modules/unicase/u16-ct-tolower: Likewise.
25307         * modules/unicase/u16-ct-totitle: Likewise.
25308         * modules/unicase/u16-ct-toupper: Likewise.
25309         * modules/unicase/u16-is-cased: Likewise.
25310         * modules/unicase/u16-is-casefolded: Likewise.
25311         * modules/unicase/u16-is-lowercase: Likewise.
25312         * modules/unicase/u16-is-titlecase: Likewise.
25313         * modules/unicase/u16-is-uppercase: Likewise.
25314         * modules/unicase/u16-prefix-context: Likewise.
25315         * modules/unicase/u16-suffix-context: Likewise.
25316         * modules/unicase/u16-tolower: Likewise.
25317         * modules/unicase/u16-totitle: Likewise.
25318         * modules/unicase/u16-toupper: Likewise.
25319         * modules/unicase/u32-casecmp: Likewise.
25320         * modules/unicase/u32-casecoll: Likewise.
25321         * modules/unicase/u32-casefold: Likewise.
25322         * modules/unicase/u32-casexfrm: Likewise.
25323         * modules/unicase/u32-ct-casefold: Likewise.
25324         * modules/unicase/u32-ct-tolower: Likewise.
25325         * modules/unicase/u32-ct-totitle: Likewise.
25326         * modules/unicase/u32-ct-toupper: Likewise.
25327         * modules/unicase/u32-is-cased: Likewise.
25328         * modules/unicase/u32-is-casefolded: Likewise.
25329         * modules/unicase/u32-is-lowercase: Likewise.
25330         * modules/unicase/u32-is-titlecase: Likewise.
25331         * modules/unicase/u32-is-uppercase: Likewise.
25332         * modules/unicase/u32-prefix-context: Likewise.
25333         * modules/unicase/u32-suffix-context: Likewise.
25334         * modules/unicase/u32-tolower: Likewise.
25335         * modules/unicase/u32-totitle: Likewise.
25336         * modules/unicase/u32-toupper: Likewise.
25337         * modules/unicase/ulc-casecmp: Likewise.
25338         * modules/unicase/ulc-casecoll: Likewise.
25339         * modules/unicase/ulc-casexfrm: Likewise.
25340         * modules/uniconv/u8-conv-from-enc: Likewise.
25341         * modules/uniconv/u8-conv-to-enc: Likewise.
25342         * modules/uniconv/u8-strconv-from-enc: Likewise.
25343         * modules/uniconv/u8-strconv-from-locale: Likewise.
25344         * modules/uniconv/u8-strconv-to-enc: Likewise.
25345         * modules/uniconv/u8-strconv-to-locale: Likewise.
25346         * modules/uniconv/u16-conv-from-enc: Likewise.
25347         * modules/uniconv/u16-conv-to-enc: Likewise.
25348         * modules/uniconv/u16-strconv-from-enc: Likewise.
25349         * modules/uniconv/u16-strconv-from-locale: Likewise.
25350         * modules/uniconv/u16-strconv-to-enc: Likewise.
25351         * modules/uniconv/u16-strconv-to-locale: Likewise.
25352         * modules/uniconv/u32-conv-from-enc: Likewise.
25353         * modules/uniconv/u32-conv-to-enc: Likewise.
25354         * modules/uniconv/u32-strconv-from-enc: Likewise.
25355         * modules/uniconv/u32-strconv-from-locale: Likewise.
25356         * modules/uniconv/u32-strconv-to-enc: Likewise.
25357         * modules/uniconv/u32-strconv-to-locale: Likewise.
25358         * modules/unictype/bidicategory-byname: Likewise.
25359         * modules/unictype/bidicategory-name: Likewise.
25360         * modules/unictype/bidicategory-of: Likewise.
25361         * modules/unictype/bidicategory-test: Likewise.
25362         * modules/unictype/block-list: Likewise.
25363         * modules/unictype/block-test: Likewise.
25364         * modules/unictype/category-C: Likewise.
25365         * modules/unictype/category-Cc: Likewise.
25366         * modules/unictype/category-Cf: Likewise.
25367         * modules/unictype/category-Cn: Likewise.
25368         * modules/unictype/category-Co: Likewise.
25369         * modules/unictype/category-Cs: Likewise.
25370         * modules/unictype/category-L: Likewise.
25371         * modules/unictype/category-Ll: Likewise.
25372         * modules/unictype/category-Lm: Likewise.
25373         * modules/unictype/category-Lo: Likewise.
25374         * modules/unictype/category-Lt: Likewise.
25375         * modules/unictype/category-Lu: Likewise.
25376         * modules/unictype/category-M: Likewise.
25377         * modules/unictype/category-Mc: Likewise.
25378         * modules/unictype/category-Me: Likewise.
25379         * modules/unictype/category-Mn: Likewise.
25380         * modules/unictype/category-N: Likewise.
25381         * modules/unictype/category-Nd: Likewise.
25382         * modules/unictype/category-Nl: Likewise.
25383         * modules/unictype/category-No: Likewise.
25384         * modules/unictype/category-P: Likewise.
25385         * modules/unictype/category-Pc: Likewise.
25386         * modules/unictype/category-Pd: Likewise.
25387         * modules/unictype/category-Pe: Likewise.
25388         * modules/unictype/category-Pf: Likewise.
25389         * modules/unictype/category-Pi: Likewise.
25390         * modules/unictype/category-Po: Likewise.
25391         * modules/unictype/category-Ps: Likewise.
25392         * modules/unictype/category-S: Likewise.
25393         * modules/unictype/category-Sc: Likewise.
25394         * modules/unictype/category-Sk: Likewise.
25395         * modules/unictype/category-Sm: Likewise.
25396         * modules/unictype/category-So: Likewise.
25397         * modules/unictype/category-Z: Likewise.
25398         * modules/unictype/category-Zl: Likewise.
25399         * modules/unictype/category-Zp: Likewise.
25400         * modules/unictype/category-Zs: Likewise.
25401         * modules/unictype/category-and: Likewise.
25402         * modules/unictype/category-and-not: Likewise.
25403         * modules/unictype/category-byname: Likewise.
25404         * modules/unictype/category-name: Likewise.
25405         * modules/unictype/category-none: Likewise.
25406         * modules/unictype/category-of: Likewise.
25407         * modules/unictype/category-or: Likewise.
25408         * modules/unictype/category-test: Likewise.
25409         * modules/unictype/combining-class: Likewise.
25410         * modules/unictype/ctype-alnum: Likewise.
25411         * modules/unictype/ctype-alpha: Likewise.
25412         * modules/unictype/ctype-blank: Likewise.
25413         * modules/unictype/ctype-cntrl: Likewise.
25414         * modules/unictype/ctype-digit: Likewise.
25415         * modules/unictype/ctype-graph: Likewise.
25416         * modules/unictype/ctype-lower: Likewise.
25417         * modules/unictype/ctype-print: Likewise.
25418         * modules/unictype/ctype-punct: Likewise.
25419         * modules/unictype/ctype-space: Likewise.
25420         * modules/unictype/ctype-upper: Likewise.
25421         * modules/unictype/ctype-xdigit: Likewise.
25422         * modules/unictype/decimal-digit: Likewise.
25423         * modules/unictype/digit: Likewise.
25424         * modules/unictype/mirror: Likewise.
25425         * modules/unictype/numeric: Likewise.
25426         * modules/unictype/property-alphabetic: Likewise.
25427         * modules/unictype/property-ascii-hex-digit: Likewise.
25428         * modules/unictype/property-bidi-arabic-digit: Likewise.
25429         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
25430         * modules/unictype/property-bidi-block-separator: Likewise.
25431         * modules/unictype/property-bidi-boundary-neutral: Likewise.
25432         * modules/unictype/property-bidi-common-separator: Likewise.
25433         * modules/unictype/property-bidi-control: Likewise.
25434         * modules/unictype/property-bidi-embedding-or-override: Likewise.
25435         * modules/unictype/property-bidi-eur-num-separator: Likewise.
25436         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
25437         * modules/unictype/property-bidi-european-digit: Likewise.
25438         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
25439         * modules/unictype/property-bidi-left-to-right: Likewise.
25440         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
25441         * modules/unictype/property-bidi-other-neutral: Likewise.
25442         * modules/unictype/property-bidi-pdf: Likewise.
25443         * modules/unictype/property-bidi-segment-separator: Likewise.
25444         * modules/unictype/property-bidi-whitespace: Likewise.
25445         * modules/unictype/property-byname: Likewise.
25446         * modules/unictype/property-combining: Likewise.
25447         * modules/unictype/property-composite: Likewise.
25448         * modules/unictype/property-currency-symbol: Likewise.
25449         * modules/unictype/property-dash: Likewise.
25450         * modules/unictype/property-decimal-digit: Likewise.
25451         * modules/unictype/property-default-ignorable-code-point: Likewise.
25452         * modules/unictype/property-deprecated: Likewise.
25453         * modules/unictype/property-diacritic: Likewise.
25454         * modules/unictype/property-extender: Likewise.
25455         * modules/unictype/property-format-control: Likewise.
25456         * modules/unictype/property-grapheme-base: Likewise.
25457         * modules/unictype/property-grapheme-extend: Likewise.
25458         * modules/unictype/property-grapheme-link: Likewise.
25459         * modules/unictype/property-hex-digit: Likewise.
25460         * modules/unictype/property-hyphen: Likewise.
25461         * modules/unictype/property-id-continue: Likewise.
25462         * modules/unictype/property-id-start: Likewise.
25463         * modules/unictype/property-ideographic: Likewise.
25464         * modules/unictype/property-ids-binary-operator: Likewise.
25465         * modules/unictype/property-ids-trinary-operator: Likewise.
25466         * modules/unictype/property-ignorable-control: Likewise.
25467         * modules/unictype/property-iso-control: Likewise.
25468         * modules/unictype/property-join-control: Likewise.
25469         * modules/unictype/property-left-of-pair: Likewise.
25470         * modules/unictype/property-line-separator: Likewise.
25471         * modules/unictype/property-logical-order-exception: Likewise.
25472         * modules/unictype/property-lowercase: Likewise.
25473         * modules/unictype/property-math: Likewise.
25474         * modules/unictype/property-non-break: Likewise.
25475         * modules/unictype/property-not-a-character: Likewise.
25476         * modules/unictype/property-numeric: Likewise.
25477         * modules/unictype/property-other-alphabetic: Likewise.
25478         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
25479         * modules/unictype/property-other-grapheme-extend: Likewise.
25480         * modules/unictype/property-other-id-continue: Likewise.
25481         * modules/unictype/property-other-id-start: Likewise.
25482         * modules/unictype/property-other-lowercase: Likewise.
25483         * modules/unictype/property-other-math: Likewise.
25484         * modules/unictype/property-other-uppercase: Likewise.
25485         * modules/unictype/property-paired-punctuation: Likewise.
25486         * modules/unictype/property-paragraph-separator: Likewise.
25487         * modules/unictype/property-pattern-syntax: Likewise.
25488         * modules/unictype/property-pattern-white-space: Likewise.
25489         * modules/unictype/property-private-use: Likewise.
25490         * modules/unictype/property-punctuation: Likewise.
25491         * modules/unictype/property-quotation-mark: Likewise.
25492         * modules/unictype/property-radical: Likewise.
25493         * modules/unictype/property-sentence-terminal: Likewise.
25494         * modules/unictype/property-soft-dotted: Likewise.
25495         * modules/unictype/property-space: Likewise.
25496         * modules/unictype/property-terminal-punctuation: Likewise.
25497         * modules/unictype/property-test: Likewise.
25498         * modules/unictype/property-titlecase: Likewise.
25499         * modules/unictype/property-unassigned-code-value: Likewise.
25500         * modules/unictype/property-unified-ideograph: Likewise.
25501         * modules/unictype/property-uppercase: Likewise.
25502         * modules/unictype/property-variation-selector: Likewise.
25503         * modules/unictype/property-white-space: Likewise.
25504         * modules/unictype/property-xid-continue: Likewise.
25505         * modules/unictype/property-xid-start: Likewise.
25506         * modules/unictype/property-zero-width: Likewise.
25507         * modules/unictype/scripts: Likewise.
25508         * modules/unictype/syntax-c-ident: Likewise.
25509         * modules/unictype/syntax-c-whitespace: Likewise.
25510         * modules/unictype/syntax-java-ident: Likewise.
25511         * modules/unictype/syntax-java-whitespace: Likewise.
25512         * modules/unilbrk/u8-possible-linebreaks: Likewise.
25513         * modules/unilbrk/u8-width-linebreaks: Likewise.
25514         * modules/unilbrk/u16-possible-linebreaks: Likewise.
25515         * modules/unilbrk/u16-width-linebreaks: Likewise.
25516         * modules/unilbrk/u32-possible-linebreaks: Likewise.
25517         * modules/unilbrk/u32-width-linebreaks: Likewise.
25518         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
25519         * modules/unilbrk/ulc-width-linebreaks: Likewise.
25520         * modules/uniname/uniname: Likewise.
25521         * modules/uninorm/canonical-decomposition: Likewise.
25522         * modules/uninorm/composition: Likewise.
25523         * modules/uninorm/decomposing-form: Likewise.
25524         * modules/uninorm/decomposition: Likewise.
25525         * modules/uninorm/filter: Likewise.
25526         * modules/uninorm/nfc: Likewise.
25527         * modules/uninorm/nfd: Likewise.
25528         * modules/uninorm/nfkc: Likewise.
25529         * modules/uninorm/nfkd: Likewise.
25530         * modules/uninorm/u8-normalize: Likewise.
25531         * modules/uninorm/u8-normcmp: Likewise.
25532         * modules/uninorm/u8-normcoll: Likewise.
25533         * modules/uninorm/u8-normxfrm: Likewise.
25534         * modules/uninorm/u16-normalize: Likewise.
25535         * modules/uninorm/u16-normcmp: Likewise.
25536         * modules/uninorm/u16-normcoll: Likewise.
25537         * modules/uninorm/u16-normxfrm: Likewise.
25538         * modules/uninorm/u32-normalize: Likewise.
25539         * modules/uninorm/u32-normcmp: Likewise.
25540         * modules/uninorm/u32-normcoll: Likewise.
25541         * modules/uninorm/u32-normxfrm: Likewise.
25542         * modules/unistdio/u8-asnprintf: Likewise.
25543         * modules/unistdio/u8-asprintf: Likewise.
25544         * modules/unistdio/u8-snprintf: Likewise.
25545         * modules/unistdio/u8-sprintf: Likewise.
25546         * modules/unistdio/u8-u8-asnprintf: Likewise.
25547         * modules/unistdio/u8-u8-asprintf: Likewise.
25548         * modules/unistdio/u8-u8-snprintf: Likewise.
25549         * modules/unistdio/u8-u8-sprintf: Likewise.
25550         * modules/unistdio/u8-u8-vasnprintf: Likewise.
25551         * modules/unistdio/u8-u8-vasprintf: Likewise.
25552         * modules/unistdio/u8-u8-vsnprintf: Likewise.
25553         * modules/unistdio/u8-u8-vsprintf: Likewise.
25554         * modules/unistdio/u8-vasnprintf: Likewise.
25555         * modules/unistdio/u8-vasprintf: Likewise.
25556         * modules/unistdio/u8-vsnprintf: Likewise.
25557         * modules/unistdio/u8-vsprintf: Likewise.
25558         * modules/unistdio/u16-asnprintf: Likewise.
25559         * modules/unistdio/u16-asprintf: Likewise.
25560         * modules/unistdio/u16-snprintf: Likewise.
25561         * modules/unistdio/u16-sprintf: Likewise.
25562         * modules/unistdio/u16-u16-asnprintf: Likewise.
25563         * modules/unistdio/u16-u16-asprintf: Likewise.
25564         * modules/unistdio/u16-u16-snprintf: Likewise.
25565         * modules/unistdio/u16-u16-sprintf: Likewise.
25566         * modules/unistdio/u16-u16-vasnprintf: Likewise.
25567         * modules/unistdio/u16-u16-vasprintf: Likewise.
25568         * modules/unistdio/u16-u16-vsnprintf: Likewise.
25569         * modules/unistdio/u16-u16-vsprintf: Likewise.
25570         * modules/unistdio/u16-vasnprintf: Likewise.
25571         * modules/unistdio/u16-vasprintf: Likewise.
25572         * modules/unistdio/u16-vsnprintf: Likewise.
25573         * modules/unistdio/u16-vsprintf: Likewise.
25574         * modules/unistdio/u32-asnprintf: Likewise.
25575         * modules/unistdio/u32-asprintf: Likewise.
25576         * modules/unistdio/u32-snprintf: Likewise.
25577         * modules/unistdio/u32-sprintf: Likewise.
25578         * modules/unistdio/u32-u32-asnprintf: Likewise.
25579         * modules/unistdio/u32-u32-asprintf: Likewise.
25580         * modules/unistdio/u32-u32-snprintf: Likewise.
25581         * modules/unistdio/u32-u32-sprintf: Likewise.
25582         * modules/unistdio/u32-u32-vasnprintf: Likewise.
25583         * modules/unistdio/u32-u32-vasprintf: Likewise.
25584         * modules/unistdio/u32-u32-vsnprintf: Likewise.
25585         * modules/unistdio/u32-u32-vsprintf: Likewise.
25586         * modules/unistdio/u32-vasnprintf: Likewise.
25587         * modules/unistdio/u32-vasprintf: Likewise.
25588         * modules/unistdio/u32-vsnprintf: Likewise.
25589         * modules/unistdio/u32-vsprintf: Likewise.
25590         * modules/unistdio/ulc-asnprintf: Likewise.
25591         * modules/unistdio/ulc-asprintf: Likewise.
25592         * modules/unistdio/ulc-fprintf: Likewise.
25593         * modules/unistdio/ulc-snprintf: Likewise.
25594         * modules/unistdio/ulc-sprintf: Likewise.
25595         * modules/unistdio/ulc-vasnprintf: Likewise.
25596         * modules/unistdio/ulc-vasprintf: Likewise.
25597         * modules/unistdio/ulc-vfprintf: Likewise.
25598         * modules/unistdio/ulc-vsnprintf: Likewise.
25599         * modules/unistdio/ulc-vsprintf: Likewise.
25600         * modules/unistr/u8-check: Likewise.
25601         * modules/unistr/u8-chr: Likewise.
25602         * modules/unistr/u8-cmp: Likewise.
25603         * modules/unistr/u8-cmp2: Likewise.
25604         * modules/unistr/u8-cpy: Likewise.
25605         * modules/unistr/u8-cpy-alloc: Likewise.
25606         * modules/unistr/u8-endswith: Likewise.
25607         * modules/unistr/u8-mblen: Likewise.
25608         * modules/unistr/u8-mbsnlen: Likewise.
25609         * modules/unistr/u8-mbtouc: Likewise.
25610         * modules/unistr/u8-mbtouc-unsafe: Likewise.
25611         * modules/unistr/u8-mbtoucr: Likewise.
25612         * modules/unistr/u8-move: Likewise.
25613         * modules/unistr/u8-next: Likewise.
25614         * modules/unistr/u8-prev: Likewise.
25615         * modules/unistr/u8-set: Likewise.
25616         * modules/unistr/u8-startswith: Likewise.
25617         * modules/unistr/u8-stpcpy: Likewise.
25618         * modules/unistr/u8-stpncpy: Likewise.
25619         * modules/unistr/u8-strcat: Likewise.
25620         * modules/unistr/u8-strchr: Likewise.
25621         * modules/unistr/u8-strcmp: Likewise.
25622         * modules/unistr/u8-strcoll: Likewise.
25623         * modules/unistr/u8-strcpy: Likewise.
25624         * modules/unistr/u8-strcspn: Likewise.
25625         * modules/unistr/u8-strdup: Likewise.
25626         * modules/unistr/u8-strlen: Likewise.
25627         * modules/unistr/u8-strmblen: Likewise.
25628         * modules/unistr/u8-strmbtouc: Likewise.
25629         * modules/unistr/u8-strncat: Likewise.
25630         * modules/unistr/u8-strncmp: Likewise.
25631         * modules/unistr/u8-strncpy: Likewise.
25632         * modules/unistr/u8-strnlen: Likewise.
25633         * modules/unistr/u8-strpbrk: Likewise.
25634         * modules/unistr/u8-strrchr: Likewise.
25635         * modules/unistr/u8-strspn: Likewise.
25636         * modules/unistr/u8-strstr: Likewise.
25637         * modules/unistr/u8-strtok: Likewise.
25638         * modules/unistr/u8-to-u16: Likewise.
25639         * modules/unistr/u8-to-u32: Likewise.
25640         * modules/unistr/u8-uctomb: Likewise.
25641         * modules/unistr/u16-check: Likewise.
25642         * modules/unistr/u16-chr: Likewise.
25643         * modules/unistr/u16-cmp: Likewise.
25644         * modules/unistr/u16-cmp2: Likewise.
25645         * modules/unistr/u16-cpy: Likewise.
25646         * modules/unistr/u16-cpy-alloc: Likewise.
25647         * modules/unistr/u16-endswith: Likewise.
25648         * modules/unistr/u16-mblen: Likewise.
25649         * modules/unistr/u16-mbsnlen: Likewise.
25650         * modules/unistr/u16-mbtouc: Likewise.
25651         * modules/unistr/u16-mbtouc-unsafe: Likewise.
25652         * modules/unistr/u16-mbtoucr: Likewise.
25653         * modules/unistr/u16-move: Likewise.
25654         * modules/unistr/u16-next: Likewise.
25655         * modules/unistr/u16-prev: Likewise.
25656         * modules/unistr/u16-set: Likewise.
25657         * modules/unistr/u16-startswith: Likewise.
25658         * modules/unistr/u16-stpcpy: Likewise.
25659         * modules/unistr/u16-stpncpy: Likewise.
25660         * modules/unistr/u16-strcat: Likewise.
25661         * modules/unistr/u16-strchr: Likewise.
25662         * modules/unistr/u16-strcmp: Likewise.
25663         * modules/unistr/u16-strcoll: Likewise.
25664         * modules/unistr/u16-strcpy: Likewise.
25665         * modules/unistr/u16-strcspn: Likewise.
25666         * modules/unistr/u16-strdup: Likewise.
25667         * modules/unistr/u16-strlen: Likewise.
25668         * modules/unistr/u16-strmblen: Likewise.
25669         * modules/unistr/u16-strmbtouc: Likewise.
25670         * modules/unistr/u16-strncat: Likewise.
25671         * modules/unistr/u16-strncmp: Likewise.
25672         * modules/unistr/u16-strncpy: Likewise.
25673         * modules/unistr/u16-strnlen: Likewise.
25674         * modules/unistr/u16-strpbrk: Likewise.
25675         * modules/unistr/u16-strrchr: Likewise.
25676         * modules/unistr/u16-strspn: Likewise.
25677         * modules/unistr/u16-strstr: Likewise.
25678         * modules/unistr/u16-strtok: Likewise.
25679         * modules/unistr/u16-to-u32: Likewise.
25680         * modules/unistr/u16-to-u8: Likewise.
25681         * modules/unistr/u16-uctomb: Likewise.
25682         * modules/unistr/u32-check: Likewise.
25683         * modules/unistr/u32-chr: Likewise.
25684         * modules/unistr/u32-cmp: Likewise.
25685         * modules/unistr/u32-cmp2: Likewise.
25686         * modules/unistr/u32-cpy: Likewise.
25687         * modules/unistr/u32-cpy-alloc: Likewise.
25688         * modules/unistr/u32-endswith: Likewise.
25689         * modules/unistr/u32-mblen: Likewise.
25690         * modules/unistr/u32-mbsnlen: Likewise.
25691         * modules/unistr/u32-mbtouc: Likewise.
25692         * modules/unistr/u32-mbtouc-unsafe: Likewise.
25693         * modules/unistr/u32-mbtoucr: Likewise.
25694         * modules/unistr/u32-move: Likewise.
25695         * modules/unistr/u32-next: Likewise.
25696         * modules/unistr/u32-prev: Likewise.
25697         * modules/unistr/u32-set: Likewise.
25698         * modules/unistr/u32-startswith: Likewise.
25699         * modules/unistr/u32-stpcpy: Likewise.
25700         * modules/unistr/u32-stpncpy: Likewise.
25701         * modules/unistr/u32-strcat: Likewise.
25702         * modules/unistr/u32-strchr: Likewise.
25703         * modules/unistr/u32-strcmp: Likewise.
25704         * modules/unistr/u32-strcoll: Likewise.
25705         * modules/unistr/u32-strcpy: Likewise.
25706         * modules/unistr/u32-strcspn: Likewise.
25707         * modules/unistr/u32-strdup: Likewise.
25708         * modules/unistr/u32-strlen: Likewise.
25709         * modules/unistr/u32-strmblen: Likewise.
25710         * modules/unistr/u32-strmbtouc: Likewise.
25711         * modules/unistr/u32-strncat: Likewise.
25712         * modules/unistr/u32-strncmp: Likewise.
25713         * modules/unistr/u32-strncpy: Likewise.
25714         * modules/unistr/u32-strnlen: Likewise.
25715         * modules/unistr/u32-strpbrk: Likewise.
25716         * modules/unistr/u32-strrchr: Likewise.
25717         * modules/unistr/u32-strspn: Likewise.
25718         * modules/unistr/u32-strstr: Likewise.
25719         * modules/unistr/u32-strtok: Likewise.
25720         * modules/unistr/u32-to-u16: Likewise.
25721         * modules/unistr/u32-to-u8: Likewise.
25722         * modules/unistr/u32-uctomb: Likewise.
25723         * modules/uniwbrk/u8-wordbreaks: Likewise.
25724         * modules/uniwbrk/u16-wordbreaks: Likewise.
25725         * modules/uniwbrk/u32-wordbreaks: Likewise.
25726         * modules/uniwbrk/ulc-wordbreaks: Likewise.
25727         * modules/uniwbrk/wordbreak-property: Likewise.
25728         * modules/uniwidth/u8-strwidth: Likewise.
25729         * modules/uniwidth/u8-width: Likewise.
25730         * modules/uniwidth/u16-strwidth: Likewise.
25731         * modules/uniwidth/u16-width: Likewise.
25732         * modules/uniwidth/u32-strwidth: Likewise.
25733         * modules/uniwidth/u32-width: Likewise.
25734         * modules/uniwidth/width: Likewise.
25735         * modules/unicase/cased-tests (Makefile.am): Link all test programs
25736         with $(LIBUNISTRING).
25737         * modules/unicase/ignorable-tests: Likewise.
25738         * modules/unicase/locale-language-tests: Likewise.
25739         * modules/unicase/tolower-tests: Likewise.
25740         * modules/unicase/totitle-tests: Likewise.
25741         * modules/unicase/toupper-tests: Likewise.
25742         * modules/unicase/u8-casecmp-tests: Likewise.
25743         * modules/unicase/u8-casecoll-tests: Likewise.
25744         * modules/unicase/u8-casefold-tests: Likewise.
25745         * modules/unicase/u8-is-cased-tests: Likewise.
25746         * modules/unicase/u8-is-casefolded-tests: Likewise.
25747         * modules/unicase/u8-is-lowercase-tests: Likewise.
25748         * modules/unicase/u8-is-titlecase-tests: Likewise.
25749         * modules/unicase/u8-is-uppercase-tests: Likewise.
25750         * modules/unicase/u8-tolower-tests: Likewise.
25751         * modules/unicase/u8-totitle-tests: Likewise.
25752         * modules/unicase/u8-toupper-tests: Likewise.
25753         * modules/unicase/u16-casecmp-tests: Likewise.
25754         * modules/unicase/u16-casecoll-tests: Likewise.
25755         * modules/unicase/u16-casefold-tests: Likewise.
25756         * modules/unicase/u16-is-cased-tests: Likewise.
25757         * modules/unicase/u16-is-casefolded-tests: Likewise.
25758         * modules/unicase/u16-is-lowercase-tests: Likewise.
25759         * modules/unicase/u16-is-titlecase-tests: Likewise.
25760         * modules/unicase/u16-is-uppercase-tests: Likewise.
25761         * modules/unicase/u16-tolower-tests: Likewise.
25762         * modules/unicase/u16-totitle-tests: Likewise.
25763         * modules/unicase/u16-toupper-tests: Likewise.
25764         * modules/unicase/u32-casecmp-tests: Likewise.
25765         * modules/unicase/u32-casecoll-tests: Likewise.
25766         * modules/unicase/u32-casefold-tests: Likewise.
25767         * modules/unicase/u32-is-cased-tests: Likewise.
25768         * modules/unicase/u32-is-casefolded-tests: Likewise.
25769         * modules/unicase/u32-is-lowercase-tests: Likewise.
25770         * modules/unicase/u32-is-titlecase-tests: Likewise.
25771         * modules/unicase/u32-is-uppercase-tests: Likewise.
25772         * modules/unicase/u32-tolower-tests: Likewise.
25773         * modules/unicase/u32-totitle-tests: Likewise.
25774         * modules/unicase/u32-toupper-tests: Likewise.
25775         * modules/unicase/ulc-casecmp-tests: Likewise.
25776         * modules/unicase/ulc-casecoll-tests: Likewise.
25777         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
25778         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
25779         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
25780         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
25781         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
25782         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
25783         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
25784         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
25785         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
25786         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
25787         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
25788         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
25789         * modules/unictype/bidicategory-byname-tests: Likewise.
25790         * modules/unictype/bidicategory-name-tests: Likewise.
25791         * modules/unictype/bidicategory-of-tests: Likewise.
25792         * modules/unictype/bidicategory-test-tests: Likewise.
25793         * modules/unictype/block-list-tests: Likewise.
25794         * modules/unictype/block-of-tests: Likewise.
25795         * modules/unictype/block-test-tests: Likewise.
25796         * modules/unictype/category-C-tests: Likewise.
25797         * modules/unictype/category-Cc-tests: Likewise.
25798         * modules/unictype/category-Cf-tests: Likewise.
25799         * modules/unictype/category-Cn-tests: Likewise.
25800         * modules/unictype/category-Co-tests: Likewise.
25801         * modules/unictype/category-Cs-tests: Likewise.
25802         * modules/unictype/category-L-tests: Likewise.
25803         * modules/unictype/category-Ll-tests: Likewise.
25804         * modules/unictype/category-Lm-tests: Likewise.
25805         * modules/unictype/category-Lo-tests: Likewise.
25806         * modules/unictype/category-Lt-tests: Likewise.
25807         * modules/unictype/category-Lu-tests: Likewise.
25808         * modules/unictype/category-M-tests: Likewise.
25809         * modules/unictype/category-Mc-tests: Likewise.
25810         * modules/unictype/category-Me-tests: Likewise.
25811         * modules/unictype/category-Mn-tests: Likewise.
25812         * modules/unictype/category-N-tests: Likewise.
25813         * modules/unictype/category-Nd-tests: Likewise.
25814         * modules/unictype/category-Nl-tests: Likewise.
25815         * modules/unictype/category-No-tests: Likewise.
25816         * modules/unictype/category-P-tests: Likewise.
25817         * modules/unictype/category-Pc-tests: Likewise.
25818         * modules/unictype/category-Pd-tests: Likewise.
25819         * modules/unictype/category-Pe-tests: Likewise.
25820         * modules/unictype/category-Pf-tests: Likewise.
25821         * modules/unictype/category-Pi-tests: Likewise.
25822         * modules/unictype/category-Po-tests: Likewise.
25823         * modules/unictype/category-Ps-tests: Likewise.
25824         * modules/unictype/category-S-tests: Likewise.
25825         * modules/unictype/category-Sc-tests: Likewise.
25826         * modules/unictype/category-Sk-tests: Likewise.
25827         * modules/unictype/category-Sm-tests: Likewise.
25828         * modules/unictype/category-So-tests: Likewise.
25829         * modules/unictype/category-Z-tests: Likewise.
25830         * modules/unictype/category-Zl-tests: Likewise.
25831         * modules/unictype/category-Zp-tests: Likewise.
25832         * modules/unictype/category-Zs-tests: Likewise.
25833         * modules/unictype/category-and-not-tests: Likewise.
25834         * modules/unictype/category-and-tests: Likewise.
25835         * modules/unictype/category-byname-tests: Likewise.
25836         * modules/unictype/category-name-tests: Likewise.
25837         * modules/unictype/category-none-tests: Likewise.
25838         * modules/unictype/category-of-tests: Likewise.
25839         * modules/unictype/category-or-tests: Likewise.
25840         * modules/unictype/category-test-withtable-tests: Likewise.
25841         * modules/unictype/combining-class-tests: Likewise.
25842         * modules/unictype/ctype-alnum-tests: Likewise.
25843         * modules/unictype/ctype-alpha-tests: Likewise.
25844         * modules/unictype/ctype-blank-tests: Likewise.
25845         * modules/unictype/ctype-cntrl-tests: Likewise.
25846         * modules/unictype/ctype-digit-tests: Likewise.
25847         * modules/unictype/ctype-graph-tests: Likewise.
25848         * modules/unictype/ctype-lower-tests: Likewise.
25849         * modules/unictype/ctype-print-tests: Likewise.
25850         * modules/unictype/ctype-punct-tests: Likewise.
25851         * modules/unictype/ctype-space-tests: Likewise.
25852         * modules/unictype/ctype-upper-tests: Likewise.
25853         * modules/unictype/ctype-xdigit-tests: Likewise.
25854         * modules/unictype/decimal-digit-tests: Likewise.
25855         * modules/unictype/digit-tests: Likewise.
25856         * modules/unictype/mirror-tests: Likewise.
25857         * modules/unictype/numeric-tests: Likewise.
25858         * modules/unictype/property-alphabetic-tests: Likewise.
25859         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
25860         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
25861         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
25862         * modules/unictype/property-bidi-block-separator-tests: Likewise.
25863         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
25864         * modules/unictype/property-bidi-common-separator-tests: Likewise.
25865         * modules/unictype/property-bidi-control-tests: Likewise.
25866         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
25867         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
25868         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
25869         * modules/unictype/property-bidi-european-digit-tests: Likewise.
25870         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
25871         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
25872         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
25873         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
25874         * modules/unictype/property-bidi-pdf-tests: Likewise.
25875         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
25876         * modules/unictype/property-bidi-whitespace-tests: Likewise.
25877         * modules/unictype/property-byname-tests: Likewise.
25878         * modules/unictype/property-combining-tests: Likewise.
25879         * modules/unictype/property-composite-tests: Likewise.
25880         * modules/unictype/property-currency-symbol-tests: Likewise.
25881         * modules/unictype/property-dash-tests: Likewise.
25882         * modules/unictype/property-decimal-digit-tests: Likewise.
25883         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
25884         * modules/unictype/property-deprecated-tests: Likewise.
25885         * modules/unictype/property-diacritic-tests: Likewise.
25886         * modules/unictype/property-extender-tests: Likewise.
25887         * modules/unictype/property-format-control-tests: Likewise.
25888         * modules/unictype/property-grapheme-base-tests: Likewise.
25889         * modules/unictype/property-grapheme-extend-tests: Likewise.
25890         * modules/unictype/property-grapheme-link-tests: Likewise.
25891         * modules/unictype/property-hex-digit-tests: Likewise.
25892         * modules/unictype/property-hyphen-tests: Likewise.
25893         * modules/unictype/property-id-continue-tests: Likewise.
25894         * modules/unictype/property-id-start-tests: Likewise.
25895         * modules/unictype/property-ideographic-tests: Likewise.
25896         * modules/unictype/property-ids-binary-operator-tests: Likewise.
25897         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
25898         * modules/unictype/property-ignorable-control-tests: Likewise.
25899         * modules/unictype/property-iso-control-tests: Likewise.
25900         * modules/unictype/property-join-control-tests: Likewise.
25901         * modules/unictype/property-left-of-pair-tests: Likewise.
25902         * modules/unictype/property-line-separator-tests: Likewise.
25903         * modules/unictype/property-logical-order-exception-tests: Likewise.
25904         * modules/unictype/property-lowercase-tests: Likewise.
25905         * modules/unictype/property-math-tests: Likewise.
25906         * modules/unictype/property-non-break-tests: Likewise.
25907         * modules/unictype/property-not-a-character-tests: Likewise.
25908         * modules/unictype/property-numeric-tests: Likewise.
25909         * modules/unictype/property-other-alphabetic-tests: Likewise.
25910         * modules/unictype/property-other-default-ignorable-code-point-tests:
25911         Likewise.
25912         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
25913         * modules/unictype/property-other-id-continue-tests: Likewise.
25914         * modules/unictype/property-other-id-start-tests: Likewise.
25915         * modules/unictype/property-other-lowercase-tests: Likewise.
25916         * modules/unictype/property-other-math-tests: Likewise.
25917         * modules/unictype/property-other-uppercase-tests: Likewise.
25918         * modules/unictype/property-paired-punctuation-tests: Likewise.
25919         * modules/unictype/property-paragraph-separator-tests: Likewise.
25920         * modules/unictype/property-pattern-syntax-tests: Likewise.
25921         * modules/unictype/property-pattern-white-space-tests: Likewise.
25922         * modules/unictype/property-private-use-tests: Likewise.
25923         * modules/unictype/property-punctuation-tests: Likewise.
25924         * modules/unictype/property-quotation-mark-tests: Likewise.
25925         * modules/unictype/property-radical-tests: Likewise.
25926         * modules/unictype/property-sentence-terminal-tests: Likewise.
25927         * modules/unictype/property-soft-dotted-tests: Likewise.
25928         * modules/unictype/property-space-tests: Likewise.
25929         * modules/unictype/property-terminal-punctuation-tests: Likewise.
25930         * modules/unictype/property-test-tests: Likewise.
25931         * modules/unictype/property-titlecase-tests: Likewise.
25932         * modules/unictype/property-unassigned-code-value-tests: Likewise.
25933         * modules/unictype/property-unified-ideograph-tests: Likewise.
25934         * modules/unictype/property-uppercase-tests: Likewise.
25935         * modules/unictype/property-variation-selector-tests: Likewise.
25936         * modules/unictype/property-white-space-tests: Likewise.
25937         * modules/unictype/property-xid-continue-tests: Likewise.
25938         * modules/unictype/property-xid-start-tests: Likewise.
25939         * modules/unictype/property-zero-width-tests: Likewise.
25940         * modules/unictype/scripts-tests: Likewise.
25941         * modules/unictype/syntax-c-ident-tests: Likewise.
25942         * modules/unictype/syntax-c-whitespace-tests: Likewise.
25943         * modules/unictype/syntax-java-ident-tests: Likewise.
25944         * modules/unictype/syntax-java-whitespace-tests: Likewise.
25945         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
25946         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
25947         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
25948         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
25949         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
25950         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
25951         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
25952         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
25953         * modules/uniname/uniname-tests: Likewise.
25954         * modules/uninorm/canonical-decomposition-tests: Likewise.
25955         * modules/uninorm/compat-decomposition-tests: Likewise.
25956         * modules/uninorm/composition-tests: Likewise.
25957         * modules/uninorm/decomposing-form-tests: Likewise.
25958         * modules/uninorm/decomposition-tests: Likewise.
25959         * modules/uninorm/filter-tests: Likewise.
25960         * modules/uninorm/nfc-tests: Likewise.
25961         * modules/uninorm/nfd-tests: Likewise.
25962         * modules/uninorm/nfkc-tests: Likewise.
25963         * modules/uninorm/nfkd-tests: Likewise.
25964         * modules/uninorm/u8-normcmp-tests: Likewise.
25965         * modules/uninorm/u8-normcoll-tests: Likewise.
25966         * modules/uninorm/u16-normcmp-tests: Likewise.
25967         * modules/uninorm/u16-normcoll-tests: Likewise.
25968         * modules/uninorm/u32-normcmp-tests: Likewise.
25969         * modules/uninorm/u32-normcoll-tests: Likewise.
25970         * modules/unistdio/u8-asnprintf-tests: Likewise.
25971         * modules/unistdio/u8-vasnprintf-tests: Likewise.
25972         * modules/unistdio/u8-vasprintf-tests: Likewise.
25973         * modules/unistdio/u8-vsnprintf-tests: Likewise.
25974         * modules/unistdio/u8-vsprintf-tests: Likewise.
25975         * modules/unistdio/u16-asnprintf-tests: Likewise.
25976         * modules/unistdio/u16-vasnprintf-tests: Likewise.
25977         * modules/unistdio/u16-vasprintf-tests: Likewise.
25978         * modules/unistdio/u16-vsnprintf-tests: Likewise.
25979         * modules/unistdio/u16-vsprintf-tests: Likewise.
25980         * modules/unistdio/u32-asnprintf-tests: Likewise.
25981         * modules/unistdio/u32-vasnprintf-tests: Likewise.
25982         * modules/unistdio/u32-vasprintf-tests: Likewise.
25983         * modules/unistdio/u32-vsnprintf-tests: Likewise.
25984         * modules/unistdio/u32-vsprintf-tests: Likewise.
25985         * modules/unistdio/ulc-asnprintf-tests: Likewise.
25986         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
25987         * modules/unistdio/ulc-vasprintf-tests: Likewise.
25988         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
25989         * modules/unistdio/ulc-vsprintf-tests: Likewise.
25990         * modules/unistr/u8-check-tests: Likewise.
25991         * modules/unistr/u8-chr-tests: Likewise.
25992         * modules/unistr/u8-cmp-tests: Likewise.
25993         * modules/unistr/u8-cmp2-tests: Likewise.
25994         * modules/unistr/u8-cpy-alloc-tests: Likewise.
25995         * modules/unistr/u8-cpy-tests: Likewise.
25996         * modules/unistr/u8-mblen-tests: Likewise.
25997         * modules/unistr/u8-mbsnlen-tests: Likewise.
25998         * modules/unistr/u8-mbtouc-tests: Likewise.
25999         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
26000         * modules/unistr/u8-mbtoucr-tests: Likewise.
26001         * modules/unistr/u8-move-tests: Likewise.
26002         * modules/unistr/u8-next-tests: Likewise.
26003         * modules/unistr/u8-prev-tests: Likewise.
26004         * modules/unistr/u8-set-tests: Likewise.
26005         * modules/unistr/u8-stpcpy-tests: Likewise.
26006         * modules/unistr/u8-stpncpy-tests: Likewise.
26007         * modules/unistr/u8-strcat-tests: Likewise.
26008         * modules/unistr/u8-strcmp-tests: Likewise.
26009         * modules/unistr/u8-strcoll-tests: Likewise.
26010         * modules/unistr/u8-strcpy-tests: Likewise.
26011         * modules/unistr/u8-strdup-tests: Likewise.
26012         * modules/unistr/u8-strlen-tests: Likewise.
26013         * modules/unistr/u8-strmblen-tests: Likewise.
26014         * modules/unistr/u8-strmbtouc-tests: Likewise.
26015         * modules/unistr/u8-strncat-tests: Likewise.
26016         * modules/unistr/u8-strncmp-tests: Likewise.
26017         * modules/unistr/u8-strncpy-tests: Likewise.
26018         * modules/unistr/u8-strnlen-tests: Likewise.
26019         * modules/unistr/u8-to-u16-tests: Likewise.
26020         * modules/unistr/u8-to-u32-tests: Likewise.
26021         * modules/unistr/u8-uctomb-tests: Likewise.
26022         * modules/unistr/u16-check-tests: Likewise.
26023         * modules/unistr/u16-chr-tests: Likewise.
26024         * modules/unistr/u16-cmp-tests: Likewise.
26025         * modules/unistr/u16-cmp2-tests: Likewise.
26026         * modules/unistr/u16-cpy-alloc-tests: Likewise.
26027         * modules/unistr/u16-cpy-tests: Likewise.
26028         * modules/unistr/u16-mblen-tests: Likewise.
26029         * modules/unistr/u16-mbsnlen-tests: Likewise.
26030         * modules/unistr/u16-mbtouc-tests: Likewise.
26031         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
26032         * modules/unistr/u16-mbtoucr-tests: Likewise.
26033         * modules/unistr/u16-move-tests: Likewise.
26034         * modules/unistr/u16-next-tests: Likewise.
26035         * modules/unistr/u16-prev-tests: Likewise.
26036         * modules/unistr/u16-set-tests: Likewise.
26037         * modules/unistr/u16-stpcpy-tests: Likewise.
26038         * modules/unistr/u16-stpncpy-tests: Likewise.
26039         * modules/unistr/u16-strcat-tests: Likewise.
26040         * modules/unistr/u16-strcmp-tests: Likewise.
26041         * modules/unistr/u16-strcoll-tests: Likewise.
26042         * modules/unistr/u16-strcpy-tests: Likewise.
26043         * modules/unistr/u16-strdup-tests: Likewise.
26044         * modules/unistr/u16-strlen-tests: Likewise.
26045         * modules/unistr/u16-strmblen-tests: Likewise.
26046         * modules/unistr/u16-strmbtouc-tests: Likewise.
26047         * modules/unistr/u16-strncat-tests: Likewise.
26048         * modules/unistr/u16-strncmp-tests: Likewise.
26049         * modules/unistr/u16-strncpy-tests: Likewise.
26050         * modules/unistr/u16-strnlen-tests: Likewise.
26051         * modules/unistr/u16-to-u32-tests: Likewise.
26052         * modules/unistr/u16-to-u8-tests: Likewise.
26053         * modules/unistr/u16-uctomb-tests: Likewise.
26054         * modules/unistr/u32-check-tests: Likewise.
26055         * modules/unistr/u32-chr-tests: Likewise.
26056         * modules/unistr/u32-cmp-tests: Likewise.
26057         * modules/unistr/u32-cmp2-tests: Likewise.
26058         * modules/unistr/u32-cpy-alloc-tests: Likewise.
26059         * modules/unistr/u32-cpy-tests: Likewise.
26060         * modules/unistr/u32-mblen-tests: Likewise.
26061         * modules/unistr/u32-mbsnlen-tests: Likewise.
26062         * modules/unistr/u32-mbtouc-tests: Likewise.
26063         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
26064         * modules/unistr/u32-mbtoucr-tests: Likewise.
26065         * modules/unistr/u32-move-tests: Likewise.
26066         * modules/unistr/u32-next-tests: Likewise.
26067         * modules/unistr/u32-prev-tests: Likewise.
26068         * modules/unistr/u32-set-tests: Likewise.
26069         * modules/unistr/u32-stpcpy-tests: Likewise.
26070         * modules/unistr/u32-stpncpy-tests: Likewise.
26071         * modules/unistr/u32-strcat-tests: Likewise.
26072         * modules/unistr/u32-strcmp-tests: Likewise.
26073         * modules/unistr/u32-strcoll-tests: Likewise.
26074         * modules/unistr/u32-strcpy-tests: Likewise.
26075         * modules/unistr/u32-strdup-tests: Likewise.
26076         * modules/unistr/u32-strlen-tests: Likewise.
26077         * modules/unistr/u32-strmblen-tests: Likewise.
26078         * modules/unistr/u32-strmbtouc-tests: Likewise.
26079         * modules/unistr/u32-strncat-tests: Likewise.
26080         * modules/unistr/u32-strncmp-tests: Likewise.
26081         * modules/unistr/u32-strncpy-tests: Likewise.
26082         * modules/unistr/u32-strnlen-tests: Likewise.
26083         * modules/unistr/u32-to-u16-tests: Likewise.
26084         * modules/unistr/u32-to-u8-tests: Likewise.
26085         * modules/unistr/u32-uctomb-tests: Likewise.
26086         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
26087         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
26088         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
26089         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
26090         * modules/uniwidth/u8-strwidth-tests: Likewise.
26091         * modules/uniwidth/u8-width-tests: Likewise.
26092         * modules/uniwidth/u16-strwidth-tests: Likewise.
26093         * modules/uniwidth/u16-width-tests: Likewise.
26094         * modules/uniwidth/u32-strwidth-tests: Likewise.
26095         * modules/uniwidth/u32-width-tests: Likewise.
26096         * modules/uniwidth/width-tests: Likewise.
26097
26098 2010-05-18  Richard Jones  <rjones@redhat.com>
26099
26100         doc: users.txt: list hivex
26101         * users.txt: Add hivex.
26102
26103 2010-05-18  Richard Jones  <rjones@redhat.com>
26104
26105         doc: users.txt: list febootstrap
26106         * users.txt: Add febootstrap.
26107
26108 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
26109
26110         bootstrap: fix an error when gnulib is not used as a git submodule
26111         * build-aux/bootstrap (gnulib_path): If its length is zero then
26112         assign "gnulib" to it.
26113         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
26114
26115 2010-05-16  Bruno Haible  <bruno@clisp.org>
26116
26117         Avoid autoconf warnings about AM_ICONV.
26118         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
26119         2.64.
26120
26121 2010-05-16  Bruno Haible  <bruno@clisp.org>
26122
26123         absolute-header: Make the macro usable in more situations.
26124         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
26125         from gl_ABSOLUTE_HEADER.
26126         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
26127
26128 2010-05-16  James Youngman  <jay@gnu.org>
26129
26130         doc: update users.txt
26131         * users.txt: Add CSSC.
26132
26133 2010-05-16  Jim Meyering  <meyering@redhat.com>
26134
26135         init.sh: fix an error in the previous change; add more comments
26136         * tests/init.sh: Compare exit code in loop against 9, not 2.
26137         Patch by Bruno Haible.
26138         Make the two tests more similar by adding an empty "then" clause.
26139         Add comments.
26140
26141         init.sh: avoid unnecessary shell re-exec
26142         * tests/init.sh: Improve the re-exec-required check to first test the
26143         current shell.  If it passes the test, do not search for a shell that
26144         does pass, and do not re-exec.  This test is particularly contorted to
26145         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
26146         of $(...) evokes a syntax error and causes immediate shell exit with
26147         status 2.  Bruno Haible reported that the re-exec made it impossible
26148         to single-step through any init.sh-using script.
26149
26150 2010-05-16  Bruno Haible  <bruno@clisp.org>
26151
26152         Fix collision between gnulib's and libintl's printf replacements.
26153         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
26154         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
26155         (printf): When using GNU C, map the __printf__ function to rpl_printf
26156         via __asm__. When not using GNU C, define rpl_printf instead of
26157         __printf__.
26158         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
26159         commit.
26160         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
26161         commit.
26162         * m4/asm-underscore.m4: New file.
26163         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
26164         * modules/stdio (Files): Add m4/asm-underscore.m4.
26165         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
26166         Reported by Ben Pfaff.
26167
26168 2010-05-16  Bruno Haible  <bruno@clisp.org>
26169
26170         verify: Avoid skipping the test on openSUSE 11.0.
26171         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
26172
26173 2010-05-13  Bruno Haible  <bruno@clisp.org>
26174
26175         Avoid useless warnings from G++.
26176         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
26177         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
26178         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26179
26180 2010-05-11  Jim Meyering  <meyering@redhat.com>
26181
26182         maint.mk: tweak preceding change
26183         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
26184         regexps tighter by anchoring at EOL, and make the new group "shy"
26185         for slightly decreased overhead.
26186
26187 2010-05-11  Eric Blake  <eblake@redhat.com>
26188
26189         maint.mk: gnulib doesn't guarantee NSIG
26190         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
26191
26192 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
26193
26194         test-pwrite.c: Remove unused variable declaration.
26195         * tests/test-pwrite.c (main): Remove read_buf declaration.
26196
26197         Remove useless test-pwrite.sh file.
26198         * tests/test-pwrite.sh: Delete file.
26199         * modules/pwrite-tests: Remove references.
26200         Reported by Bruno Haible.
26201
26202 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
26203
26204         init.sh: fix a typo
26205         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
26206
26207 2010-05-10  Jim Meyering  <meyering@redhat.com>
26208
26209         maint.mk: avoid using a temporary file in the always-defined-macros check
26210         * top/maint.mk (.re-defmac): Remove rule.
26211         (gl_trap_): Remove definition.
26212         (sc_prohibit_always-defined_macros): Rewrite not to create and
26213         depend on a temporary file.  Instead, depend on GNU grep's ability
26214         to read a list of regular expressions from stdin when given "-f -".
26215
26216 2010-05-09  Bruno Haible  <bruno@clisp.org>
26217
26218         Update to GNU gettext 0.18, part 1.
26219         * m4/gettext.m4: Update to GNU gettext 0.18.
26220         * m4/intl.m4: Likewise.
26221         * m4/po.m4: Likewise.
26222         * modules/gettext (Files): Add m4/fcntl-o.m4.
26223         (configure.ac): Require gettext infrastructure from version 0.18.
26224
26225 2010-05-09  Jim Meyering  <meyering@redhat.com>
26226
26227         init.sh: enable MALLOC_PERTURB_
26228         * tests/init.sh: Enable glibc's malloc-perturbing option.
26229
26230         maint.mk: improve sc_cross_check_PATH_usage_in_tests
26231         With my recent change in init.sh from the two-line form:
26232             -#   : ${srcdir=.}
26233             -#   . "$srcdir/init.sh"; path_prepend_ .
26234             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
26235         I noticed that using the one-line form would cause this test
26236         to fail with a false-positive, or to stop working altogether,
26237         depending on whether help-version changed or all the tests did.
26238         * top/maint.mk (_hv_regex): Remove this definition.
26239         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
26240         (_hv_regex_strong): Use a stronger regex to check for conformance.
26241         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
26242         Give a separate diagnostic for lack of conforming use.
26243
26244         maint.mk: prohibit definition of symbols defined by gnulib
26245         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
26246         definition of symbols defined by gnulib.
26247
26248 2010-05-09  Bruno Haible  <bruno@clisp.org>
26249
26250         acl: Avoid test failure on Cygwin-hosted mingw.
26251         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
26252
26253 2010-05-09  Bruno Haible  <bruno@clisp.org>
26254
26255         error: Use system's fcntl function.
26256         * lib/error.c (fcntl): Undefine.
26257
26258 2010-05-09  Jim Meyering  <meyering@redhat.com>
26259
26260         verify: adjust formatting to be more consistent
26261         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
26262         argument-list '('s, and after one comma.
26263
26264 2010-05-09  Bruno Haible  <bruno@clisp.org>
26265
26266         error: More reliable output on mingw.
26267         * lib/error.c: Include <windows.h>.
26268         (is_open): New function.
26269         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
26270         defined.
26271
26272 2010-05-09  Bruno Haible  <bruno@clisp.org>
26273
26274         vasnprintf: Fix syntax errors in libintl build on mingw.
26275         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
26276         pad_ourselves and prec_ourselves after use.
26277
26278 2010-05-08  Bruno Haible  <bruno@clisp.org>
26279
26280         * lib/config.charset: Update comments for Cygwin 1.7.
26281         * lib/localcharset.c: Likewise.
26282
26283 2010-05-07  Jim Meyering  <meyering@redhat.com>
26284
26285         init.sh: improve comments
26286         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
26287         . "${srcdir=.}/init.sh"; path_prepend_ .
26288         Add a note about path_prepend_ and the alternative of using
26289         TESTS_ENVIRONMENT.
26290
26291 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
26292
26293         exclude: Unescape hashed patterns in wildcard mode.
26294         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
26295         to the hash list.
26296         * tests/test-exclude8.sh: New test case.
26297         * modules/exclude-tests: Add new test.
26298
26299 2010-05-05  Eric Blake  <eblake@redhat.com>
26300
26301         verify: automate tests
26302         * modules/verify-tests: New module.
26303         * tests/test-verify.sh: New file.
26304         * tests/test-verify.c: Guard each negative test with a unique id.
26305         Also avoid warning about unused left hand of comma expressions.
26306
26307 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
26308
26309         Further improvements to verify.h, suggested by Eric Blake.
26310         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
26311         the GL_* versions, to avoid collision with OpenGL.
26312         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
26313         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
26314         than testing merely whether it's defined.
26315
26316         Modify verify.h to pacify gcc -Wredundant_decls.
26317         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
26318         These use the prefix "GL_" since they're likely to be useful elsewhere.
26319         We may need to break them out into a different .h file.
26320         (__COUNTER__): Define to 0 if the compiler doesn't support it.
26321         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
26322         of verify_function__.
26323
26324 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
26325
26326         Tests for module pwrite.
26327         * modules/pwrite-tests: New file.
26328         * tests/test-pwrite.sh: New file.
26329         * tests/test-pwrite.c: New file.
26330
26331         New module pwrite.
26332         * lib/unistd.in.h (pwrite): New declaration.
26333         * lib/pwrite.c: New file, from glibc with modifications.
26334         * m4/pwrite.m4: New file.
26335         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
26336         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
26337         REPLACE_PWRITE.
26338         * modules/pwrite: New file.
26339         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
26340         REPLACE_PWRITE.
26341         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
26342         * doc/posix-functions/pwrite.texi: Mention the new module.
26343
26344 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
26345
26346         pread: Update documentation.
26347         * doc/posix-functions/pread.texi: Mention the 'pread' module.
26348
26349 2010-05-04  Eric Blake  <eblake@redhat.com>
26350
26351         docs: update cygwin progress
26352         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
26353         this bug.
26354         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
26355         Added in cygwin 1.7.2.
26356         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
26357         Likewise.
26358         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
26359         Likewise.
26360         * doc/glibc-functions/dup3.texi (dup3): Likewise.
26361         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
26362         * doc/glibc-functions/accept4.texi (accept4): Likewise.
26363         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
26364         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
26365         Mention nproc module.
26366         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
26367         bug in cygwin 1.7.5 addition.
26368         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
26369         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
26370         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
26371         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
26372         1.7.5.
26373         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
26374         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
26375         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
26376         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
26377         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
26378         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
26379         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
26380         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
26381         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
26382         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
26383         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
26384         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
26385         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
26386         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
26387         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
26388         Likewise.
26389         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
26390         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
26391         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
26392         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
26393         Likewise.
26394         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
26395         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
26396         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
26397         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
26398         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
26399         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
26400         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
26401         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
26402         Likewise.
26403         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
26404         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
26405         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
26406         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
26407         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
26408         Likewise.
26409         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
26410         Likewise.
26411         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
26412         Likewise.
26413         * doc/glibc-functions/xdrrec_endofrecord.texi
26414         (xdrrec_endofrecord): Likewise.
26415         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
26416         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
26417         Likewise.
26418         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
26419         Likewise.
26420
26421 2010-05-04  Jim Meyering  <meyering@redhat.com>
26422
26423         gendocs.sh: make its "-s FILE" option more useful
26424         * build-aux/gendocs.sh: When honoring the -s FILE option, update
26425         $PACKAGE to reflect the probably-different basename of "FILE".
26426
26427 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
26428
26429         bootstrap: don't ignore download_po_files failure
26430         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
26431         failure.
26432
26433 2010-05-03  Jim Meyering  <meyering@redhat.com>
26434
26435         maint.mk: allow to pass options to gendocs.sh
26436         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
26437         (gendocs_options_): New overridable variable.
26438
26439         gnu-web-doc-update: don't ignore configure or build failure
26440         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
26441
26442         announce-gen: backslash-escape '@'s in --help output
26443         * build-aux/announce-gen: Fix syntax errors.
26444
26445         maint.mk, announce-gen: allow project-specific announcement mail headers
26446         * top/maint.mk (translation_project_): Define default.
26447         (announcement_Cc_, announcement_mail_headers_): Likewise.
26448         (announcement): Invoke announce-gen with new --mail-headers option.
26449         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
26450
26451         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
26452         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
26453         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
26454         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
26455         line in the "err2" output file when running "make check" in verbose
26456         mode (i.e., with set -x enabled).
26457
26458 2010-05-03  Bruno Haible  <bruno@clisp.org>
26459
26460         wctob: Fix for weird platforms.
26461         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
26462         argument value.
26463
26464 2010-05-03  Jim Meyering  <meyering@redhat.com>
26465
26466         maint.mk: prohibit unwarranted use of <strings.h>
26467         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
26468         strings.h in a file that does not also use strcasecmp, strncasecmp,
26469         ffs or ffsll.
26470
26471         maint.mk: remove obsolete comments
26472         * top/maint.mk: Remove stale, commented-out rules.
26473
26474 2010-05-02  Bruno Haible  <bruno@clisp.org>
26475
26476         wcwidth: Declare also when it's aliased.
26477         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
26478         macro.
26479
26480 2010-05-02  Bruno Haible  <bruno@clisp.org>
26481
26482         Fix regression from 2010-04-25.
26483         * gnulib-tool (func_modules_transitive_closure): Check the status of
26484         all modules, not only of the tests that are of the form foo-tests where
26485         foo is a module.
26486
26487 2010-05-02  Bruno Haible  <bruno@clisp.org>
26488
26489         wctob: Work around nasty Cygwin 1.7.2 bug.
26490         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
26491         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
26492
26493 2010-05-01  Bruno Haible  <bruno@clisp.org>
26494
26495         fpurge: Sharper test.
26496         * tests/test-fpurge.c (main): Add one more ftell check.
26497         * modules/fpurge-tests (Depends-on): Add ftell.
26498         Suggested by Eric Blake.
26499
26500 2010-05-01  Bruno Haible  <bruno@clisp.org>
26501
26502         ftello: Another test.
26503         * tests/test-ftello3.c: New file.
26504         * modules/ftello-tests (Files): Add it.
26505         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
26506         MOSTLYCLEANFILES.
26507
26508         ftell: Another test.
26509         * tests/test-ftell3.c: New file.
26510         * modules/ftell-tests (Files): Add it.
26511         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
26512         MOSTLYCLEANFILES.
26513
26514 2010-05-01  Bruno Haible  <bruno@clisp.org>
26515
26516         ftell, ftello: Work around Solaris bug.
26517         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
26518         * lib/ftello.c: Include stdio-impl.h.
26519         (ftello): On Solaris, when _IOWRT is set, compute the result without
26520         looking at _IOREAD.
26521         * modules/ftello (Files): Add lib/stdio-impl.h.
26522         * doc/posix-functions/ftell.texi: Mention Solaris bug.
26523         * doc/posix-functions/ftello.texi: Likewise.
26524         Reported by Eric Blake.
26525
26526 2010-05-01  Bruno Haible  <bruno@clisp.org>
26527
26528         freading: Adapt to special meaning of _IOREAD flag on Solaris.
26529         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
26530         the _IOWRT flag is also set.
26531
26532 2010-05-01  Bruno Haible  <bruno@clisp.org>
26533
26534         Fix doc about a HP-UX stdio bug.
26535         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
26536         * doc/posix-functions/ftello.texi: Likewise.
26537
26538 2010-05-01  Bruno Haible  <bruno@clisp.org>
26539
26540         lseek test: Fix failure on Solaris.
26541         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
26542         output.
26543
26544 2010-04-30  Jim Meyering  <meyering@redhat.com>
26545
26546         bootstrap: don't ignore failure to generate po*/Makevars
26547         * build-aux/bootstrap (with_gettext): Don't ignore failure
26548         to create po/Makevars or runtime-po/Makevars.
26549
26550 2010-04-29  Eric Blake  <eblake@redhat.com>
26551
26552         headers: relax license to LGPLv2+
26553         * modules/fcntl-h (License): Relax license.
26554         * modules/getopt-posix (License): Likewise.
26555         * modules/locale (License): Likewise.
26556         * modules/math (License): Likewise.
26557         * modules/pty (License): Likewise.
26558         * modules/sched (License): Likewise.
26559         * modules/search (License): Likewise.
26560         * modules/spawn (License): Likewise.
26561         * modules/stdarg (License): Likewise.
26562         * modules/sysexits (License): Likewise.
26563
26564 2010-04-29  Jim Meyering  <meyering@redhat.com>
26565
26566         inttypes: relax license to LGPLv2+
26567         * modules/inttypes (License): Relax license.
26568
26569 2010-04-29  Simon Josefsson  <simon@josefsson.org>
26570
26571         * top/maint.mk (indent): Run twice to produce idempotent results.
26572
26573 2010-04-28  Bruno Haible  <bruno@clisp.org>
26574
26575         getdate: Generate getdate.c in the source directory.
26576         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
26577         MOSTLYCLEANFILES.
26578         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
26579
26580 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
26581
26582         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
26583         is not declared as a const *; avoid warnings in that case.
26584
26585 2010-04-28  Eric Blake  <eblake@redhat.com>
26586
26587         canonicalize-lgpl: avoid compiler warning
26588         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
26589         declaration' / 'extraneous semicolon' warning with some compilers.
26590         Reported by Andreas Gruenbacher.
26591
26592 2010-04-28  Jim Meyering  <meyering@redhat.com>
26593
26594         init.sh: ensure a more reliable exit status when exiting via trap
26595         * tests/init.sh (setup_): Don't rely on $? in signal handler.
26596         Inspired by patches from Dmitry V. Levin.
26597         Also trap on signal 3 (SIGQUIT).
26598
26599 2010-04-27  Bruno Haible  <bruno@clisp.org>
26600
26601         Update doc about utimes().
26602         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
26603         'utimens' module.
26604         Reported by Andreas Gruenbacher <agruen@suse.de>.
26605
26606 2010-04-27  Eric Blake  <eblake@redhat.com>
26607
26608         full-read, full-write: relax license
26609         * modules/full-read (License): Drop to LGPLv2+.
26610         * modules/full-write (License): Likewise.
26611         * modules/safe-read (License): Likewise.
26612         * modules/safe-write (License): Likewise.
26613
26614         pthread: mention library for linking
26615         * modules/pthread (Link): Mention $(LIB_PTHREAD).
26616
26617 2010-04-27  Jim Meyering  <meyering@redhat.com>
26618
26619         maint.mk: fix a bug introduced in last change
26620         * top/maint.mk (gl_assured_headers_): Now that all names are on
26621         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
26622         is not anchored to end of word, it should be adequate.
26623
26624         maint.mk: avoid side-effect in latest syntax-check
26625         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
26626         to run commands via $(shell...), and hence to incur cost only when
26627         the new rule is actually run.
26628
26629         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
26630         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
26631         and use that to create a regexp used to detect all #if HAVE_..._H uses.
26632         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
26633         (gl_assured_headers_, az_, AZ_): Define.
26634         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
26635
26636 2010-04-26  Jim Meyering  <jim@meyering.net>
26637             Bruno Haible  <bruno@clisp.org>
26638
26639         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
26640         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
26641         Prompted by an exchange with Gilles Espinasse.
26642
26643 2010-04-26  Jim Meyering  <meyering@redhat.com>
26644
26645         git-version-gen: aesthetic tweak
26646         * build-aux/git-version-gen: Use "$nl" rather than a literal,
26647         so that the command remains on a single line.
26648
26649 2010-04-26  Eric Blake  <eblake@redhat.com>
26650
26651         git-version-gen: allow use on EBCDIC hosts
26652         * build-aux/git-version-gen (dirty): Use literal rather than tying
26653         ourselves to ascii.
26654         Reported by Steve Goetze.
26655
26656 2010-04-25  Bruno Haible  <bruno@clisp.org>
26657
26658         netdb: Add support for GNULIB_POSIXCHECK.
26659         * lib/netdb.in.h: Include warn-on-use.h.
26660         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
26661         functions are used when GNULIB_POSIXCHECK is defined and the
26662         getaddrinfo module is not in use.
26663         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
26664         freeaddrinfo, gai_strerror, getnameinfo are declared.
26665         * modules/netdb (Depends-on): Add warn-on-use.
26666         (Makefile.am): Include warn-on-use.h in netdb.h.
26667
26668 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
26669
26670         build: avoid "make check" failure without .git/ directory
26671         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
26672         there is no .git/ directory.
26673
26674 2010-04-25  Bruno Haible  <bruno@clisp.org>
26675
26676         ptsname: Fix misuse of ttyname_r.
26677         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
26678         of errno.
26679
26680 2010-04-25  Bruno Haible  <bruno@clisp.org>
26681
26682         ttyname_r: Make it work on Solaris 10.
26683         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
26684         if the system function has the POSIX declaration. Test whether the
26685         function fails if the buffer is less than 128 bytes large.
26686         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
26687         system's ttyname_r function. Provide a reasonably large buffer.
26688         * modules/ttyname_r (Depends-on): Add extensions.
26689         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
26690
26691 2010-04-25  Bruno Haible  <bruno@clisp.org>
26692
26693         Use the 'extensions' module for some more functions on Solaris.
26694         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
26695         module.
26696         * doc/posix-functions/ctime_r.texi: Likewise.
26697         * doc/posix-functions/getgrgid_r.texi: Likewise.
26698         * doc/posix-functions/getgrnam_r.texi: Likewise.
26699         * doc/posix-functions/getpwnam_r.texi: Likewise.
26700         * doc/posix-functions/getpwuid_r.texi: Likewise.
26701         * doc/posix-functions/readdir_r.texi: Likewise.
26702         * doc/posix-functions/sigwait.texi: Likewise.
26703         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
26704         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
26705
26706 2010-04-25  Bruno Haible  <bruno@clisp.org>
26707
26708         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
26709         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
26710         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
26711         * lib/ttyname_r.c: Include <limits.h>.
26712         (ttyname_r): Define using the system's ttyname_r function, if it exists
26713         and not on Solaris.
26714         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
26715         set.
26716         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
26717         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
26718         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
26719         Reported by Simon Josefsson.
26720
26721 2010-04-25  Bruno Haible  <bruno@clisp.org>
26722
26723         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
26724         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
26725         * doc/posix-functions/ctime_r.texi: Likewise.
26726         * doc/posix-functions/getgrgid_r.texi: Likewise.
26727         * doc/posix-functions/getgrnam_r.texi: Likewise.
26728         * doc/posix-functions/getlogin_r.texi: Likewise.
26729         * doc/posix-functions/getpwnam_r.texi: Likewise.
26730         * doc/posix-functions/getpwuid_r.texi: Likewise.
26731         * doc/posix-functions/readdir_r.texi: Likewise.
26732         * doc/posix-functions/sigwait.texi: Likewise.
26733         * doc/posix-functions/ttyname_r.texi: Likewise.
26734         Reported by Simon Josefsson.
26735
26736 2010-04-25  Bruno Haible  <bruno@clisp.org>
26737
26738         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
26739         * gnulib-tool (func_usage): Document that --with-*-tests options apply
26740         also to --create-testdir.
26741         (func_acceptable): Don't consider the status of *-tests modules here.
26742         (func_modules_transitive_closure): Consider it here, before including a
26743         test module.
26744         (func_import, func_create_testdir): Set inc_all_direct_tests,
26745         inc_all_indirect_tests.
26746         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
26747         --create-testdir and --create-megatestdir.
26748
26749 2010-04-25  Bruno Haible  <bruno@clisp.org>
26750
26751         gnulib-tool: Add --without-*-tests options.
26752         * gnulib-tool (func_usage): Document the --without-*-tests options.
26753         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
26754         excl_unportable_tests): New variables.
26755         Fail if they are specified with --import or --update.
26756         (func_acceptable): Respect the excl_*_tests variables.
26757         (func_import): Set the excl_*_tests variables to empty.
26758
26759 2010-04-25  Simon Josefsson  <simon@josefsson.org>
26760             Bruno Haible  <bruno@clisp.org>
26761
26762         Work around a MacOS X 10.4 bug with openpty.
26763         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
26764         * tests/test-openpty.c (main): Close the master side explicitly.
26765
26766 2010-04-25  Bruno Haible  <bruno@clisp.org>
26767
26768         strnlen: Fix a C++ test error on MacOS X and Solaris.
26769         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
26770         the function is not declared.
26771         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
26772         Simon Josefsson.
26773
26774 2010-04-24  Bruno Haible  <bruno@clisp.org>
26775
26776         Avoid a gcc warning.
26777         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
26778         of correct type for %08lx directive.
26779         Reported by Eric Blake.
26780
26781 2010-04-24  Bruno Haible  <bruno@clisp.org>
26782
26783         vasnprintf: Correct errno value in case of out-of-memory.
26784         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
26785         or sprintf. Use the errno value from SNPRINTF or sprintf.
26786         Reported by Ian Beckwith <ianb@erislabs.net>.
26787
26788 2010-04-24  Bruno Haible  <bruno@clisp.org>
26789
26790         ansi-c++-opt: Find correct compiler when cross-compiling.
26791         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
26792         AC_CHECK_PROGS.
26793         Reported by Simon Josefsson.
26794
26795 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
26796
26797         vc-list-files: Add support for subversion
26798         * build-aux/vc-list-files: Use "svn list" to generate the list of
26799         files controlled by subversion.
26800
26801 2010-04-23  Jim Meyering  <meyering@redhat.com>
26802
26803         vc-list-files tests: convert to use init.sh
26804         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
26805         path_prepend_.
26806         Use Exit, not exit.
26807         Use skip_ rather than open coding it.
26808         Remove trap set-up and compare definitions.
26809         * tests/test-vc-list-files-git.sh: Likewise.
26810         * modules/vc-list-files-tests (Files): Add tests/init.sh.
26811
26812 2010-04-22  Simon Josefsson  <simon@josefsson.org>
26813
26814         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
26815         backup files.
26816
26817 2010-04-21  Simon Josefsson  <simon@josefsson.org>
26818
26819         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
26820
26821 2010-04-20  Eric Blake  <eblake@redhat.com>
26822
26823         tests: be robust to ignored SIGPIPE
26824         * tests/test-select-in.sh: Consume all output.
26825         * tests/test-lseek.sh: Check correct exit status, while avoiding
26826         EPIPE.
26827
26828 2010-04-20  Simon Josefsson  <simon@josefsson.org>
26829             Bruno Haible  <bruno@clisp.org>
26830
26831         visibility: Don't use -fvisibility if it leads to a warning.
26832         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
26833         yes, don't pretend that visibility works if it leads to a warning.
26834         Reported by Mike Gran <spk121@yahoo.com>.
26835
26836 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
26837
26838         * build-aux/bootstrap: Use "git -h" for testing for supported options
26839         instead of "git --help".  The short-form option only shows a summary,
26840         and doesn't layout the full man page.  Grep for the full option name
26841         in the summary, too.
26842
26843 2010-04-19  Bruno Haible  <bruno@clisp.org>
26844
26845         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
26846         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
26847         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
26848         mention of RELOCATABLE_STRIP.
26849         Reported by Sylvain Beucler <beuc@beuc.net>.
26850
26851 2010-04-19  Bruno Haible  <bruno@clisp.org>
26852
26853         * lib/diffseq.h: Fix typo in comment.
26854         Reported by Eric Blake.
26855
26856 2010-04-19  Bruno Haible  <bruno@clisp.org>
26857
26858         ioctl: Move autoconf macro to a .m4 file.
26859         * m4/ioctl.m4: New file, extracted from modules/ioctl.
26860         * modules/ioctl (Files): Add it.
26861         (configure.ac): Simply invoke gl_FUNC_IOCTL.
26862         Reported by Ian Beckwith <ianb@erislabs.net>.
26863
26864 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
26865             Bruno Haible  <bruno@clisp.org>
26866
26867         diffseq: Accommodate use-case with abstract arrays.
26868         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
26869         is not defined.
26870         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
26871         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
26872
26873 2010-04-18  Bruno Haible  <bruno@clisp.org>
26874
26875         * doc/posix-headers/stdbool.texi: More precise wording.
26876
26877 2010-04-17  Jim Meyering  <meyering@redhat.com>
26878
26879         maint.mk: use gnu-style indentation in an embedded perl script
26880         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
26881         Rename variable: s/two/last_two_bytes/
26882
26883 2010-04-16  Eric Blake  <eblake@redhat.com>
26884
26885         test-stdbool: skip test that fails with Solaris CC
26886         * tests/test-stdbool.c (f): Skip test that causes compilation
26887         error under buggy C++ compiler.
26888         * lib/stdbool.in.h: Document the limitation.
26889         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
26890
26891         setenv: allow compilation with C++
26892         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
26893         register keyword.
26894
26895         stdint: allow test to pass with C++
26896         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
26897
26898         getopt: allow compilation with C++
26899         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
26900         struct.
26901         * lib/getopt.c (_getopt_internal_r): Use correct type.
26902         Reported by Dagobert Michelson, via Joel E. Denny.
26903
26904 2010-04-16  Bruno Haible  <bruno@clisp.org>
26905
26906         Override netdb.h always.
26907         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
26908         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
26909         Reported by Ludovic Courtès <ludo@gnu.org>.
26910
26911 2010-04-15  Bruno Haible  <bruno@clisp.org>
26912
26913         openpty: Fix mistake from 2010-03-21.
26914         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
26915         Reported by Simon Josefsson.
26916
26917 2010-04-15  Eric Blake  <eblake@redhat.com>
26918
26919         test-forkpty: fix expected signature
26920         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
26921         Reported by Simon Josefsson.
26922
26923 2010-04-15  Jim Meyering  <meyering@redhat.com>
26924
26925         maint.mk: texinfo_suffix_re_: correct the default regexp
26926         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
26927
26928         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
26929         make it configurable via texinfo_suffix_re_.
26930
26931 2010-04-14  Eric Blake  <eblake@redhat.com>
26932
26933         strtok_r: relax license to LGPLv2+
26934         * modules/strtok_r (License): Relax license.
26935         Reported by Matthias Bolte.
26936
26937 2010-04-14  Simon Josefsson  <simon@josefsson.org>
26938
26939         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
26940         version 1.4.4 by default instead of requiring the libgcrypt
26941         version used during build.  This makes it possible to use the
26942         application with older but still binary compatible libgcrypt
26943         versions.
26944
26945 2010-04-13  Eric Blake  <eblake@redhat.com>
26946
26947         getopt-gnu: match recent glibc fixes and posix ruling
26948         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
26949         '+' handling, when requesting extensions.
26950         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
26951         'W;' handling.
26952         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
26953         * doc/posix-functions/getopt.texi (getopt): Document this.
26954         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
26955         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26956         Likewise.
26957
26958         getopt: merge bug fixes from glibc
26959         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
26960         diagnostics.  Honor '+:' correctly.  Reject ';'.
26961
26962         getopt-posix: detect MacOS bug
26963         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
26964         optind when missing a required argument.
26965         * doc/posix-functions/getopt.texi (getopt): Document the bug.
26966         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
26967         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26968         Likewise.
26969
26970         getopt-posix: avoid spurious failure on Solaris
26971         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
26972         an indicator that setting optind=1 is sufficient for reset.
26973
26974         getopt-posix: avoid spurious failure on FreeBSD
26975         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
26976         in POSIX mode, since the m4 test uses it.
26977
26978         gnulib-tool: silence warning on BSD sh
26979         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
26980
26981 2010-04-13  Jim Meyering  <meyering@redhat.com>
26982
26983         doc: users.txt: GNU patch now uses gnulib
26984         * users.txt: Add patch.
26985
26986 2010-04-12  Jim Meyering  <meyering@redhat.com>
26987
26988         maint.mk: generate more concise timing data for syntax-check rules
26989         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
26990         " done" from each line that reports a syntax-check test duration.
26991
26992 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
26993
26994         git-version-gen: use "git update-index..." rather than "git status"
26995         * build-aux/git-version-gen: Use git update-index --refresh, not
26996         "git status".  With some versions of git, "git status" would fail
26997         to update the index and result in an unwarranted "-dirty" suffix.
26998
26999 2010-04-11  Jim Meyering  <meyering@redhat.com>
27000
27001         openat: correct formatting (no semantic change)
27002         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
27003         Suggested by Bruno Haible.
27004
27005 2010-04-11  Bruno Haible  <bruno@clisp.org>
27006
27007         Stricter declaration checking in testdirs.
27008         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27009         If for_tests is true, augment AM_CPPFLAGS to define
27010         GNULIB_STRICT_CHECKING.
27011         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
27012         GNULIB_STRICT_CHECKING is defined, verify that the function is
27013         declared.
27014
27015 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
27016             Bruno Haible  <bruno@clisp.org>
27017
27018         libunistring: Improve configure output.
27019         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
27020         Don't say "consider installing GNU libunistring" when checking again
27021         with libiconv.
27022
27023 2010-04-11  Bruno Haible  <bruno@clisp.org>
27024
27025         libunistring: Correct value of $LTLIBUNISTRING.
27026         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
27027         correct the value of $LTLIBUNISTRING.
27028
27029 2010-04-11  Bruno Haible  <bruno@clisp.org>
27030
27031         havelib: Add static libraries to LIBS in the right order.
27032         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
27033         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
27034
27035 2010-04-11  Bruno Haible  <bruno@clisp.org>
27036
27037         libunistring: Detect libunistring also when it depends on libiconv.
27038         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
27039         the second AC_LIB_HAVE_LINKFLAGS invocation.
27040
27041 2010-04-11  James Youngman  <jay@gnu.org>
27042
27043         close-stream: declare local scalars to be "const"
27044         * lib/close-stream.c (close_stream): Make boolean variables const
27045         to document the fact that we set but do not change them.
27046
27047 2010-04-11  Bruno Haible  <bruno@clisp.org>
27048
27049         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
27050
27051 2010-04-11  Jim Meyering  <meyering@redhat.com>
27052
27053         maint.mk: don't include dist-check.mk
27054         * top/maint.mk: Remove bogus include directive.
27055
27056         maint.mk: improve empty-line-at-EOF check
27057         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
27058         solution, rather than tail+Perl-based one.  The latter would read
27059         a few kilobytes from the end of each file, and did not handle empty
27060         files properly.
27061
27062         maint.mk: print the elapsed time for each syntax-check rule
27063         * top/maint.mk (sc_m_rules_): Save start time in a file.
27064         (sc_z_rules_): New rules: remove temp file and print elapsed time.
27065         (local-check): Interpose the .z rules
27066
27067 2010-04-11  Jim Meyering  <meyering@redhat.com>
27068
27069         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
27070         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
27071         empty file with one that ends in an empty line.
27072
27073 2010-04-10  Bruno Haible  <bruno@clisp.org>
27074
27075         mkdir: Make it work on mingw64.
27076         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
27077         * lib/mkdir.c: Update comment.
27078         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
27079
27080 2010-04-10  Bruno Haible  <bruno@clisp.org>
27081
27082         Don't override improved macro from newer autoconf.
27083         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
27084         autoconf >= 2.62.
27085         Reported by Joel E. Denny <jdenny@clemson.edu>.
27086
27087 2010-04-10  Jim Meyering  <meyering@redhat.com>
27088
27089         maint.mk: new syntax-check rule: prohibit empty lines at end of file
27090         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
27091
27092         maint.mk: correct a diagnostic
27093         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
27094         in diagnostic; now use $prohibit.
27095
27096 2010-04-10  Bruno Haible  <address@hidden>
27097
27098         fchownat: Fix a C++ test error on Solaris 8.
27099         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
27100         the function does not exist.
27101
27102 2010-04-10  Bruno Haible  <bruno@clisp.org>
27103
27104         vasnprintf: Add more tests.
27105         * tests/test-vasnprintf-posix.c: Include <errno.h>.
27106         (test_function): Test converting an invalid wide string.
27107
27108         vasnprintf: Correct handling of unconvertible wide string arguments.
27109         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
27110         VASNPRINTF.
27111         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
27112         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
27113         smaller than the expected maximum need for the directive. Set errno to
27114         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
27115         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
27116         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
27117         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
27118         * modules/vasnprintf (Files): Add m4/printf.m4.
27119         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27120
27121 2010-04-10  Bruno Haible  <bruno@clisp.org>
27122
27123         vasnprintf: Fix crash in %ls directive.
27124         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
27125         string is passed as argument to %ls, with no precision and no width.
27126         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27127
27128 2010-04-10  Bruno Haible  <bruno@clisp.org>
27129
27130         vasnprintf: Fix multiple test failures on mingw.
27131         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
27132         _snprintf, or snwprintf, not _snwprintf.
27133
27134 2010-04-10  Bruno Haible  <bruno@clisp.org>
27135
27136         write: Fix a C++ test error on mingw.
27137         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
27138
27139 2010-04-10  Bruno Haible  <bruno@clisp.org>
27140
27141         vasnprintf test: Reduce code duplication.
27142         * tests/test-vasnprintf.c (test_function): New function, extracted from
27143         test_vasnprintf.
27144         (test_vasnprintf, test_asnprintf): Invoke it.
27145
27146 2010-04-10  Bruno Haible  <bruno@clisp.org>
27147
27148         strnlen: Fix warning in C++ mode on MacOS X.
27149         * lib/string.in.h (strnlen): Use the modern idiom.
27150         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
27151         defining strnlen as a macro already in <config.h>.
27152         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27153         REPLACE_STRNLEN.
27154         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
27155         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27156
27157 2010-04-08  James Youngman  <jay@gnu.org>
27158
27159         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
27160         the example.
27161
27162 2010-04-09  Jim Meyering  <meyering@redhat.com>
27163
27164         maint.mk: print better diagnostic when there is no $(_hv_file)
27165         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
27166         announce that when $(_hv_file) (aka help-version) does not exist.
27167
27168         init.sh: run tr in the "C" locale to avoid multibyte interpretation
27169         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
27170         not try to interpret its random input bytes.  Jarno Rajahalme reported
27171         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
27172         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
27173         (mktempd_): Likewise, just in case.
27174
27175         ftruncate: add two years to projected module removal date: 2012
27176         * m4/ftruncate.m4: Adjust comments.
27177
27178         ftruncate: mark module as obsolete; even MinGW provides it, now
27179         * modules/ftruncate (Status): Obsolete.
27180         (Notice): Say that.
27181         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
27182         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
27183
27184 2010-04-08  Bruno Haible  <bruno@clisp.org>
27185
27186         Fix side effects from tests-related modules.
27187         * modules/dprintf-posix (Comment): New section.
27188         * modules/fprintf-posix (Comment): Likewise.
27189         * modules/obstack-printf-posix (Comment): Likewise.
27190         * modules/printf-posix (Comment): Likewise.
27191         * modules/snprintf-posix (Comment): Likewise.
27192         * modules/sprintf-posix (Comment): Likewise.
27193         * modules/vasnprintf-posix (Comment): Likewise.
27194         * modules/vasprintf-posix (Comment): Likewise.
27195         * modules/vdprintf-posix (Comment): Likewise.
27196         * modules/vfprintf-posix (Comment): Likewise.
27197         * modules/vprintf-posix (Comment): Likewise.
27198         * modules/vsnprintf-posix (Comment): Likewise.
27199         * modules/vsprintf-posix (Comment): Likewise.
27200         * modules/xprintf-posix (Comment): Likewise.
27201         * modules/xvasprintf-posix (Comment): Likewise.
27202         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
27203         * modules/floorf-tests (Depends-on): Likewise.
27204         * modules/round-tests (Depends-on): Likewise.
27205         * modules/roundf-tests (Depends-on): Likewise.
27206         * modules/trunc-tests (Depends-on): Likewise.
27207         * modules/truncf-tests (Depends-on): Likewise.
27208         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
27209         'fprintf-posix' module is not present.
27210         * tests/test-floorf2.c (check): Likewise.
27211         * tests/test-trunc2.c (check): Likewise.
27212         * tests/test-truncf2.c (check): Likewise.
27213         * tests/test-round2.c (equal): Likewise.
27214         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27215
27216 2010-04-07  Karl Berry  <karl@gnu.org>
27217
27218         * config/srclist.txt,
27219         * config/srclistvars.sh,
27220         * config/srclist-update: doc fixes.
27221
27222 2010-04-07  Jim Meyering  <meyering@redhat.com>
27223
27224         maint.mk: add a PATH crosschecking syntax-check rule
27225         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
27226         Useful if you use a test like the one in help-version (coreutils,
27227         diffutils, grep, gzip) that ensures $(VERSION) matches what is
27228         printed by prog --version.
27229
27230 2010-04-06  Bruno Haible  <bruno@clisp.org>
27231
27232         Fix link error on mingw.
27233         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
27234         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
27235
27236 2010-04-06  Bruno Haible  <bruno@clisp.org>
27237
27238         Assume rmdir exists.
27239         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
27240
27241 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
27242
27243         doc: update users.txt
27244         * users.txt: Add gcal.
27245
27246 2010-04-06  Jim Meyering  <meyering@redhat.com>
27247
27248         init.sh: simply unset TMPDIR rather than risking env -i
27249         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
27250         although it probably works fine on all Unix-based systems, some
27251         systems (Cygwin?) cannot tolerate a totally cleared environment.
27252         Suggestion from Eric Blake.
27253
27254 2010-04-06  Jim Meyering  <meyering@redhat.com>
27255
27256         init.sh: portability fix: use env's POSIX-specified -i option not -u
27257         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
27258         than unportable env -u.  Solaris 5.11's env lacks support for -u.
27259
27260 2010-04-05  Bruno Haible  <bruno@clisp.org>
27261
27262         btowc: Work around Cygwin 1.7.2 bug.
27263         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
27264         does not map NUL to 0.
27265         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
27266
27267 2010-04-05  Bruno Haible  <bruno@clisp.org>
27268
27269         Make the multithread modules work on Cygwin 1.7.2.
27270         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
27271         imported symbols can be declared weak, so that it returns "no" on
27272         Cygwin 1.7.2.
27273
27274 2010-04-05  Bruno Haible  <bruno@clisp.org>
27275
27276         Use the module 'strncat'.
27277         * modules/unistr/u8-strncat (Depends-on): Add strncat.
27278
27279         Tests for module 'strncat'.
27280         * modules/strncat-tests: New file.
27281         * tests/test-strncat.c: New file.
27282
27283         New module 'strncat'.
27284         * lib/string.in.h (strncat): New declaration.
27285         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
27286         * m4/strncat.m4: New file, based on m4/memchr.m4.
27287         * modules/strncat: New file.
27288         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
27289         is declared.
27290         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
27291         REPLACE_STRNCAT.
27292         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
27293         REPLACE_STRNCAT.
27294         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
27295         module.
27296         * tests/test-string-c++.cc: Check signature of strncat.
27297
27298 2010-04-05  Jim Meyering  <meyering@redhat.com>
27299
27300         xstrtoumax-tests: convert to use init.sh
27301         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
27302         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
27303         Use Exit, not exit.
27304         Remove uses of $EXEEXT and "./" to run a program in the current dir.
27305
27306         xstrtoimax-tests: convert to use init.sh
27307         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
27308         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
27309         Use Exit, not exit.
27310         Remove uses of $EXEEXT and "./" to run a program in the current dir.
27311
27312 2010-04-05  Bruno Haible  <bruno@clisp.org>
27313
27314         sys_socket: Avoid #define replacements in C++ mode.
27315         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
27316         warning to the function if possible, rather than #defining the symbol
27317         to a dysfunctional alias.
27318
27319 2010-04-05  Bruno Haible  <bruno@clisp.org>
27320
27321         fseeko: Fix C++ test error on mingw.
27322         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
27323         gl_FUNC_FSEEKO.
27324         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
27325         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
27326         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
27327         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
27328
27329 2010-04-05  Bruno Haible  <bruno@clisp.org>
27330
27331         duplocale: Improve test output.
27332         * tests/test-duplocale.c (main): Print reason for skipped test.
27333
27334 2010-04-05  Bruno Haible  <bruno@clisp.org>
27335
27336         Assume rmdir exists.
27337         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
27338         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
27339
27340 2010-04-05  Bruno Haible  <bruno@clisp.org>
27341
27342         Fix link error on Solaris 8 with cc.
27343         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
27344
27345 2010-04-05  Bruno Haible  <bruno@clisp.org>
27346
27347         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
27348         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
27349
27350 2010-04-05  Bruno Haible  <bruno@clisp.org>
27351
27352         vasprintf: Update documentation.
27353         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
27354
27355 2010-04-05  Bruno Haible  <bruno@clisp.org>
27356
27357         ptsname: Improve test.
27358         * tests/test-ptsname.c (main): Also try the various master names of BSD
27359         systems.
27360
27361 2010-04-05  Bruno Haible  <bruno@clisp.org>
27362
27363         memchr: Avoid a possible C++ test error.
27364         * lib/string.in.h (memchr): Provide declaration if function is missing.
27365         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
27366         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
27367         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
27368         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
27369
27370 2010-04-05  Bruno Haible  <bruno@clisp.org>
27371
27372         strtok_r: Improve idiom.
27373         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
27374         AC_LIBOBJ is used.
27375
27376 2010-04-05  Bruno Haible  <bruno@clisp.org>
27377
27378         strdup: Improve idiom.
27379         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
27380         AC_LIBOBJ is used.
27381         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
27382         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
27383         when AC_LIBOBJ is used.
27384
27385 2010-04-05  Bruno Haible  <bruno@clisp.org>
27386
27387         mbsinit, mbrtowc, wcrtomb: Improve idioms.
27388         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
27389         don't set REPLACE_MBSINIT to 1.
27390         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
27391         don't set REPLACE_MBRTOWC to 1.
27392         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
27393         exist, don't set REPLACE_MBSRTOWCS to 1.
27394         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
27395         exist, don't set REPLACE_MBSNRTOWCS to 1.
27396         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
27397         don't set REPLACE_WCRTOMB to 1.
27398         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
27399         exist, don't set REPLACE_WCSRTOMBS to 1.
27400         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
27401         exist, don't set REPLACE_WCSNRTOMBS to 1.
27402
27403 2010-04-05  Bruno Haible  <bruno@clisp.org>
27404
27405         ldexpl: Improve idiom.
27406         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
27407         make sure to set HAVE_DECL_LDEXPL to 0.
27408
27409 2010-04-05  Jim Meyering  <meyering@redhat.com>
27410
27411         xstrtol-tests: convert to use init.sh
27412         * modules/xstrtol-tests (Files): Add tests/init.sh.
27413         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
27414         Use Exit, not exit.
27415         Remove uses of $EXEEXT and "./" to run a program in the current dir.
27416
27417         atexit-tests: convert to use init.sh
27418         * modules/atexit-tests (Files): Add tests/init.sh.
27419         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
27420         Use Exit, not exit.
27421         Remove uses of $EXEEXT and "./" to run a program in the current dir.
27422
27423         init.sh: fix typo
27424         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
27425
27426         init.sh: make it easier for a test script to write to the tty, ...
27427         when using automake's parallel-tests mode.
27428         * tests/init.sh (stderr_fileno_): Define overridable variable.
27429         (warn_): New function, to use it.
27430         (fail_, skip_, framework_failure_): Use warn_.
27431
27432 2010-04-04  Bruno Haible  <bruno@clisp.org>
27433
27434         btowc: Avoid warning.
27435         * lib/btowc.c: Include <stdlib.h>.
27436         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
27437
27438 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
27439             Bruno Haible  <bruno@clisp.org>
27440
27441         wchar: Port to NetBSD 1.5.
27442         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
27443         * lib/wctype.in.h (WEOF): Likewise.
27444
27445 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
27446             Bruno Haible  <bruno@clisp.org>
27447
27448         Port extended stdio to NetBSD 1.5.
27449         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
27450         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
27451         older.
27452
27453 2010-04-04  Bruno Haible  <bruno@clisp.org>
27454
27455         string: Remove unused substitution.
27456         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
27457         HAVE_DECL_STRERROR.
27458         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
27459
27460 2010-04-04  Bruno Haible  <bruno@clisp.org>
27461
27462         strtod: Avoid a possible C++ test error.
27463         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
27464         set REPLACE_STRTOD.
27465
27466 2010-04-04  Bruno Haible  <bruno@clisp.org>
27467
27468         strerror: Update documentation.
27469         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
27470
27471 2010-04-04  Bruno Haible  <bruno@clisp.org>
27472
27473         stdio: Fix some C++ test errors on Solaris 8 with GCC.
27474         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
27475         _GL_CXXALIAS_SYS_CAST.
27476
27477 2010-04-04  Bruno Haible  <bruno@clisp.org>
27478
27479         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
27480         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
27481         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
27482         REPLACE_FREXPL to 1.
27483         * doc/posix-functions/frexpl.texi: Update documentation.
27484
27485 2010-04-04  Bruno Haible  <bruno@clisp.org>
27486
27487         math: Fix some C++ test errors on Solaris 8 and Cygwin.
27488         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
27489
27490 2010-04-04  Bruno Haible  <bruno@clisp.org>
27491
27492         Implement nanosleep for native Windows.
27493         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
27494
27495 2010-04-04  Bruno Haible  <bruno@clisp.org>
27496
27497         math: Fix some C++ test errors on Solaris 8.
27498         * lib/math.in.h (truncf, trunc): Use simpler idiom.
27499
27500 2010-04-04  Bruno Haible  <bruno@clisp.org>
27501
27502         math: Fix some C++ test errors on Cygwin.
27503         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
27504         truncl): Provide declaration if the system does not have it.
27505         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
27506         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
27507         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
27508         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
27509         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
27510         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
27511         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
27512         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
27513         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
27514         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
27515         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
27516         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
27517         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
27518         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
27519         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
27520         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
27521         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
27522         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
27523         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
27524         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
27525         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
27526         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
27527
27528 2010-04-04  Bruno Haible  <bruno@clisp.org>
27529
27530         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
27531         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
27532         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
27533         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
27534         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
27535         * m4/isinf.m4 (gl_ISINF): Likewise.
27536         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27537
27538 2010-04-04  Bruno Haible  <bruno@clisp.org>
27539
27540         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
27541         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
27542
27543 2010-04-04  Bruno Haible  <bruno@clisp.org>
27544
27545         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
27546         * modules/tmpfile (configure.ac): Update.
27547
27548         tmpfile: Fix C++ test error on mingw.
27549         * lib/stdio.in.h (tmpfile): New declaration.
27550         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
27551         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
27552         * modules/tmpfile (Depends-on): Add stdio.
27553         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
27554         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
27555         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
27556         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
27557         REPLACE_TMPFILE.
27558         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
27559
27560 2010-04-04  Bruno Haible  <bruno@clisp.org>
27561
27562         ioctl: Fix C++ test error on mingw.
27563         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
27564         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
27565         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
27566
27567 2010-04-03  Bruno Haible  <bruno@clisp.org>
27568
27569         wcwidth: Fix C++ test error on mingw.
27570         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
27571         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
27572         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
27573
27574 2010-04-03  Bruno Haible  <bruno@clisp.org>
27575
27576         nanosleep: Fix C++ test error on mingw.
27577         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
27578         * lib/time.in.h (nanosleep): Use modern idiom.
27579         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
27580         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
27581         REPLACE_NANOSLEEP to 1.
27582         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
27583         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
27584
27585 2010-04-03  Bruno Haible  <bruno@clisp.org>
27586
27587         strptime: Fix C++ test error on mingw.
27588         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
27589         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
27590         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
27591         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
27592         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
27593         not REPLACE_STRPTIME.
27594         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
27595         REPLACE_STRPTIME.
27596
27597 2010-04-03  Bruno Haible  <bruno@clisp.org>
27598
27599         timegm: Fix C++ test error on mingw.
27600         * lib/time.in.h (timegm): Use modern idiom.
27601         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
27602         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
27603         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
27604         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
27605
27606 2010-04-03  Bruno Haible  <bruno@clisp.org>
27607
27608         timegm: Assume declaration if function exists.
27609         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
27610         if it exists. Don't clobber ac_cv_func_timegm.
27611
27612 2010-04-03  Bruno Haible  <bruno@clisp.org>
27613
27614         time_r: Fix C++ test error on mingw.
27615         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
27616         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
27617         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
27618         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
27619         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
27620
27621 2010-04-03  Bruno Haible  <bruno@clisp.org>
27622
27623         time_r: Minor updates.
27624         * modules/time_r (Description): Mention the provided functions.
27625         * lib/time_r.c: Don't include <string.h>.
27626         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
27627         * doc/posix-functions/localtime_r.texi: Likewise.
27628
27629 2010-04-03  Bruno Haible  <bruno@clisp.org>
27630
27631         time: Fix regression introduced on 2010-03-08.
27632         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
27633         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
27634
27635 2010-04-03  Jim Meyering  <meyering@redhat.com>
27636
27637         maint.mk: don't silently disable project-specific syntax-check rules
27638         * top/maint.mk (_prohibit_regexp): Define, to help people realize
27639         that they need to convert their project-specific syntax-check rules
27640         to use the new _sc_search_regexp.
27641
27642 2010-04-03  Bruno Haible  <bruno@clisp.org>
27643
27644         fchdir: Fix regression introduced on 2010-03-08.
27645         * lib/unistd.in.h (fchdir): Fix declaration.
27646         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
27647         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
27648         REPLACE_FCHDIR.
27649         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
27650         REPLACE_FCHDIR.
27651
27652 2010-04-03  Bruno Haible  <bruno@clisp.org>
27653
27654         getpagesize: Fix C++ test error on mingw.
27655         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
27656         system does not declare the function.
27657         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
27658         declared.
27659         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27660         HAVE_DECL_GETPAGESIZE.
27661         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
27662
27663 2010-04-03  Bruno Haible  <bruno@clisp.org>
27664
27665         stdio: Make C++ tests work on mingw.
27666         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
27667         does not declare the function.
27668
27669 2010-04-03  Bruno Haible  <bruno@clisp.org>
27670
27671         ftello: Fix C++ test error on mingw.
27672         * lib/stdio.in.h (ftello): Use modern idiom.
27673         * lib/ftello.c (ftello): Renamed from rpl_ftello.
27674         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
27675         is missing and that it needs to be replaced.
27676         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
27677         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
27678         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
27679
27680 2010-04-03  Bruno Haible  <bruno@clisp.org>
27681
27682         fseeko: Fix C++ test error on mingw.
27683         * lib/stdio.in.h (fseeko): Use modern idiom.
27684         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
27685         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
27686         is missing and that it needs to be replaced.
27687         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
27688         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
27689         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
27690
27691 2010-04-03  Bruno Haible  <bruno@clisp.org>
27692
27693         mkstemp: Fix C++ test error on mingw.
27694         * lib/stdlib.in.h (mkstemp): Use modern idiom.
27695         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
27696         function is missing and that it needs to be replaced.
27697         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
27698         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
27699
27700 2010-04-03  Bruno Haible  <bruno@clisp.org>
27701
27702         stpncpy: Fix C++ test error on mingw.
27703         * lib/string.in.h (stpncpy): Use modern idiom.
27704         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
27705         function is missing and that it needs to be replaced.
27706         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27707         REPLACE_STPNCPY.
27708         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
27709
27710 2010-04-03  Bruno Haible  <bruno@clisp.org>
27711
27712         sys_stat: Fix C++ test error on mingw.
27713         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
27714         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
27715
27716 2010-04-03  Bruno Haible  <bruno@clisp.org>
27717
27718         pty: Update doc.
27719         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
27720
27721 2010-04-03  Bruno Haible  <bruno@clisp.org>
27722
27723         unistd: Fix C++ test error on mingw.
27724         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
27725
27726 2010-04-03  Bruno Haible  <bruno@clisp.org>
27727
27728         Update doc regarding mingw.
27729         * doc/glibc-functions/openpty.texi: Update regarding mingw.
27730         * doc/glibc-functions/login_tty.texi: Likewise.
27731         * doc/glibc-functions/forkpty.texi: Likewise.
27732
27733 2010-04-03  Bruno Haible  <bruno@clisp.org>
27734
27735         stdlib: Avoid compilation failure of c-strtold on mingw.
27736         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
27737
27738 2010-04-03  Bruno Haible  <bruno@clisp.org>
27739
27740         locale: Make C++ tests work on Cygwin and mingw.
27741         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
27742         cannot provide the function.
27743         Reported by Simon Josefsson.
27744
27745 2010-04-03  Bruno Haible  <bruno@clisp.org>
27746
27747         localename: Port to MacOS X 10.6.
27748         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
27749         memory layout of the locales in MacOS X 10.6 as well.
27750         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
27751
27752 2010-04-02  Bruno Haible  <bruno@clisp.org>
27753
27754         gnulib-tool: Ensure that long-running tests are executed last.
27755         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
27756         running tests after the one for the other tests.
27757
27758 2010-04-02  Bruno Haible  <bruno@clisp.org>
27759
27760         gnulib-tool: Ensure the tests in the main directory are executed first.
27761         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
27762         start with the current directory.
27763
27764 2010-04-02  Bruno Haible  <bruno@clisp.org>
27765
27766         Tests for module 'havelib', moved here from GNU gettext.
27767         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
27768         modifications.
27769         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
27770         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
27771         with modifications.
27772         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
27773         modifications.
27774         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
27775         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
27776         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
27777         with modifications.
27778         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
27779         with modifications.
27780         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
27781         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
27782         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
27783         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
27784         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
27785         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
27786         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
27787         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
27788         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
27789         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
27790         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
27791         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
27792         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
27793         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
27794         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
27795         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
27796         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
27797         with modifications.
27798         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
27799         with modifications.
27800         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
27801         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
27802         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
27803         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
27804         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
27805         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
27806         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
27807         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
27808         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
27809         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
27810         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
27811         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
27812         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
27813         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
27814         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
27815         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
27816         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
27817         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
27818         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
27819         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
27820         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
27821         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
27822         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
27823         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
27824         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
27825         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
27826         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
27827         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
27828         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
27829         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
27830         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
27831         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
27832         * tests/havelib/rpathx/rpathx.c: New file, from
27833         gettext/autoconf-lib-link.
27834         * tests/havelib/rpathx/Makefile.am: New file, from
27835         gettext/autoconf-lib-link.
27836         * tests/havelib/rpathx/configure.ac: New file, from
27837         gettext/autoconf-lib-link with modifications.
27838         * tests/havelib/rpathy/rpathy.c: New file, from
27839         gettext/autoconf-lib-link.
27840         * tests/havelib/rpathy/Makefile.am: New file, from
27841         gettext/autoconf-lib-link.
27842         * tests/havelib/rpathy/configure.ac: New file, from
27843         gettext/autoconf-lib-link with modifications.
27844         * tests/havelib/rpathz/rpathz.c: New file, from
27845         gettext/autoconf-lib-link.
27846         * tests/havelib/rpathz/Makefile.am: New file, from
27847         gettext/autoconf-lib-link.
27848         * tests/havelib/rpathz/configure.ac: New file, from
27849         gettext/autoconf-lib-link with modifications.
27850         * tests/havelib/rpathlx/usex.c: New file, from
27851         gettext/autoconf-lib-link.
27852         * tests/havelib/rpathlx/Makefile.am: New file, from
27853         gettext/autoconf-lib-link.
27854         * tests/havelib/rpathlx/configure.ac: New file, from
27855         gettext/autoconf-lib-link with modifications.
27856         * tests/havelib/rpathly/usey.c: New file, from
27857         gettext/autoconf-lib-link.
27858         * tests/havelib/rpathly/Makefile.am: New file, from
27859         gettext/autoconf-lib-link.
27860         * tests/havelib/rpathly/configure.ac: New file, from
27861         gettext/autoconf-lib-link with modifications.
27862         * tests/havelib/rpathlz/usez.c: New file, from
27863         gettext/autoconf-lib-link.
27864         * tests/havelib/rpathlz/Makefile.am: New file, from
27865         gettext/autoconf-lib-link.
27866         * tests/havelib/rpathlz/configure.ac: New file, from
27867         gettext/autoconf-lib-link with modifications.
27868         * tests/havelib/rpathlyx/usey.c: New file, from
27869         gettext/autoconf-lib-link.
27870         * tests/havelib/rpathlyx/Makefile.am: New file, from
27871         gettext/autoconf-lib-link.
27872         * tests/havelib/rpathlyx/configure.ac: New file, from
27873         gettext/autoconf-lib-link with modifications.
27874         * tests/havelib/rpathlzyx/usez.c: New file, from
27875         gettext/autoconf-lib-link.
27876         * tests/havelib/rpathlzyx/Makefile.am: New file, from
27877         gettext/autoconf-lib-link.
27878         * tests/havelib/rpathlzyx/configure.ac: New file, from
27879         gettext/autoconf-lib-link with modifications.
27880         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
27881         with modifications.
27882
27883 2010-04-02  Bruno Haible  <bruno@clisp.org>
27884
27885         gnulib-tool: Create distributed built sources also for the tests.
27886         * gnulib-tool (func_create_testdir): Also generate distributed built
27887         sources in the tests directory.
27888
27889 2010-04-02  Bruno Haible  <bruno@clisp.org>
27890
27891         gnulib-tool: Obey user's environment variables.
27892         * gnulib-tool (func_create_testdir): When creating built sources,
27893         respect the environment variables for autoconf, automake, etc. given by
27894         the user.
27895
27896 2010-04-02  Bruno Haible  <bruno@clisp.org>
27897
27898         gnulib-tool: Provide the value of --m4-base to modules.
27899         * gnulib-tool (func_import, func_create_testdir): Emit a definition
27900         of gl_m4_base.
27901
27902 2010-04-02  Eric Blake  <eblake@redhat.com>
27903
27904         maint.mk: fix some fallout
27905         * NEWS: Document the incompatible change, and its effect on cfg.mk.
27906         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
27907
27908 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
27909
27910         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
27911         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
27912         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
27913         (sc_cast_of_x_alloc_return_value): Likewise.
27914         (sc_cast_of_alloca_return_value): Likewise.
27915         (sc_space_tab): Likewise.
27916         (sc_prohibit_atoi_atof): Likewise.
27917         (sc_prohibit_magic_number_exit): Likewise.
27918         (sc_error_exit_success): Likewise.
27919         (sc_file_system): Likewise.
27920         (sc_prohibit_have_config_h): Likewise.
27921         (sc_require_config_h): Likewise.
27922         (sc_prohibit_HAVE_MBRTOWC): Likewise.
27923         (sc_obsolete_symbols): Likewise.
27924         (sc_changelog): Likewise.
27925         (sc_program_name): Likewise.
27926         (sc_the_the): Likewise.
27927         (sc_trailing_blank): Likewise.
27928         (sc_two_space_separator_in_usage): Likewise.
27929         (sc_useless_cpp_parens): Likewise.
27930         (sc_GPL_version): Likewise.
27931         (sc_GFDL_version): Likewise.
27932         (sc_texinfo_acronym): Likewise.
27933         (sc_prohibit_cvs_keyword): Likewise.
27934         (sc_prohibit_stat_st_blocks): Likewise.
27935         (sc_prohibit_S_IS_definition): Likewise.
27936         (sc_redundant_const): Likewise.
27937         (sc_makefile_TAB_only_indentation): Likewise.
27938         (sc_m4_quote_check): Likewise.
27939         (sc_makefile_path_separator_check): Likewise.
27940         (sc_copyright_check): Likewise.
27941         (sc_Wundef_boolean): Likewise.
27942         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
27943
27944         maint.mk: match 0 or more whitespace-before-function-call '('
27945         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
27946         that have zero or two-and-more spaces between the function name
27947         and the open parenthesis.
27948         (sc_error_message_warn_fatal): Likewise.
27949         (sc_error_message_uppercase): Likewise.
27950         (sc_error_message_period): Likewise.
27951
27952 2010-03-31  Eric Blake  <eblake@redhat.com>
27953
27954         maint.mk: check for [ as well as test
27955         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
27956         Based on a libvirt report by Matthias Bolte.
27957
27958         gnumakefile: don't squelch _version output
27959         * top/GNUmakefile (_version): Create one-shot dependency rather
27960         than using $(shell) when version must be regenerated.
27961         (_autoreconf): Run verbosely, by default.
27962
27963         sys_time: avoid compiler warnings
27964         * lib/sys_time.in.h (includes): Ensure gcc pragma is
27965         unconditional, fixing regression from 2010-03-29.
27966         Reported by Simon Josefsson.
27967
27968 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
27969
27970         maint.mk: s/_header_without_use/_sc_header_without_use/
27971         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
27972         (sc_prohibit_assert_without_use): Use the new name.
27973         (sc_prohibit_close_stream_without_use): Likewise.
27974         (sc_prohibit_getopt_without_use): Likewise.
27975         (sc_prohibit_quotearg_without_use): Likewise.
27976         (sc_prohibit_quote_without_use): Likewise.
27977         (sc_prohibit_long_options_without_use): Likewise.
27978         (sc_prohibit_inttostr_without_use): Likewise.
27979         (sc_prohibit_ignore_value_without_use): Likewise.
27980         (sc_prohibit_error_without_use): Likewise.
27981         (sc_prohibit_xalloc_without_use): Likewise.
27982         (sc_prohibit_hash_without_use): Likewise.
27983         (sc_prohibit_hash_pjw_without_use): Likewise.
27984         (sc_prohibit_safe_read_without_use): Likewise.
27985         (sc_prohibit_argmatch_without_use): Likewise.
27986         (sc_prohibit_canonicalize_without_use): Likewise.
27987         (sc_prohibit_root_dev_ino_without_use): Likewise.
27988         (sc_prohibit_openat_without_use): Likewise.
27989         (sc_prohibit_c_ctype_without_use): Likewise.
27990         (sc_prohibit_signal_without_use): Likewise.
27991         (sc_prohibit_intprops_without_use): Likewise.
27992
27993 2010-03-30  Eric Blake  <eblake@redhat.com>
27994
27995         maint: improve module indicators
27996         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
27997         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
27998         columns, and avoid extra macro expansion.
27999
28000         fdopendir: work around FreeBSD bug
28001         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
28002         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
28003         * modules/dirent (Makefile.am): Substitute it.
28004         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
28005         declaration.
28006         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
28007         fix.
28008         Reported by Christian Weisgerber <naddy@mips.inka.de>.
28009
28010 2010-03-29  Bruno Haible  <bruno@clisp.org>
28011
28012         Emit #pragma system_header after the inclusion guard, not before.
28013         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
28014         guard that spans the entire file, not before. This enables an
28015         optimization in GCC's preprocessor.
28016         * lib/ctype.in.h: Likewise.
28017         * lib/dirent.in.h: Likewise.
28018         * lib/errno.in.h: Likewise.
28019         * lib/float.in.h: Likewise.
28020         * lib/getopt.in.h: Likewise.
28021         * lib/iconv.in.h: Likewise.
28022         * lib/langinfo.in.h: Likewise.
28023         * lib/locale.in.h: Likewise.
28024         * lib/math.in.h: Likewise.
28025         * lib/netdb.in.h: Likewise.
28026         * lib/netinet_in.in.h: Likewise.
28027         * lib/pty.in.h: Likewise.
28028         * lib/sched.in.h: Likewise.
28029         * lib/se-selinux.in.h: Likewise.
28030         * lib/search.in.h: Likewise.
28031         * lib/spawn.in.h: Likewise.
28032         * lib/stdarg.in.h: Likewise.
28033         * lib/stdint.in.h: Likewise.
28034         * lib/string.in.h: Likewise.
28035         * lib/strings.in.h: Likewise.
28036         * lib/sys_file.in.h: Likewise.
28037         * lib/sys_ioctl.in.h: Likewise.
28038         * lib/sys_time.in.h: Likewise.
28039         * lib/sys_times.in.h: Likewise.
28040         * lib/sys_utsname.in.h: Likewise.
28041         * lib/sys_wait.in.h: Likewise.
28042         * lib/sysexits.in.h: Likewise.
28043         * lib/wctype.in.h: Likewise.
28044
28045 2010-03-28  James Youngman  <jay@gnu.org>
28046
28047         save-cwd: don't leak a file descriptor when the caller execs.
28048         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
28049         saved file descriptor.
28050         * modules/save-cwd (Depends-on): Depend on cloexec.
28051
28052 2010-03-29  Bruno Haible  <bruno@clisp.org>
28053
28054         Remove vestiges of fts-lgpl module.
28055         * lib/fts_.h: Assume GNULIB_FTS is 1.
28056         * lib/fts.c: Likewise.
28057         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
28058
28059 2010-03-28  Bruno Haible  <bruno@clisp.org>
28060
28061         Fix definition of tests witness macro.
28062         * gnulib-tool (func_import): Fix definition of witness macro.
28063
28064 2010-03-28  Bruno Haible  <bruno@clisp.org>
28065
28066         Fix ioctl's protoype on glibc systems.
28067         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
28068         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
28069         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
28070         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
28071         signature. If not, arrange to replace the ioctl function.
28072         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
28073         REPLACE_IOCTL.
28074         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
28075         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
28076         Reported by Ludovic Courtès <ludo@gnu.org>.
28077
28078 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
28079
28080         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
28081         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
28082         made it so grep -r --include=GLOB* ... did not work.
28083
28084 2010-03-26  Jim Meyering  <meyering@redhat.com>
28085             Eric Blake  <eblake@redhat.com>
28086
28087         maint.mk: prohibit use of test's -o and -a operators
28088         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
28089
28090 2010-03-28  Bruno Haible  <bruno@clisp.org>
28091
28092         Remove unused GNULIB_XYZ macro definitions.
28093         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
28094         invocation.
28095
28096 2010-03-28  Bruno Haible  <bruno@clisp.org>
28097
28098         Mark privileged tests modules.
28099         * modules/idpriv-drop-tests (Status): New section.
28100         * modules/idpriv-droptemp-tests (Status): New section.
28101
28102 2010-03-28  Bruno Haible  <bruno@clisp.org>
28103
28104         Split C++ tests into separate tests modules.
28105         * modules/dirent-c++-tests: New file, extracted from
28106         modules/dirent-tests.
28107         * modules/dirent-tests: Depend on it.
28108         * modules/fcntl-h-c++-tests: New file, extracted from
28109         modules/fcntl-h-tests.
28110         * modules/fcntl-h-tests: Depend on it.
28111         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
28112         * modules/glob-tests: Depend on it.
28113         * modules/iconv-h-c++-tests: New file, extracted from
28114         modules/iconv-h-tests.
28115         * modules/iconv-h-tests: Depend on it.
28116         * modules/langinfo-c++-tests: New file, extracted from
28117         modules/langinfo-tests.
28118         * modules/langinfo-tests: Depend on it.
28119         * modules/locale-c++-tests: New file, extracted from
28120         modules/locale-tests.
28121         * modules/locale-tests: Depend on it.
28122         * modules/math-c++-tests: New file, extracted from modules/math-tests.
28123         * modules/math-tests: Depend on it.
28124         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
28125         * modules/pty-tests: Depend on it.
28126         * modules/search-c++-tests: New file, extracted from
28127         modules/search-tests.
28128         * modules/search-tests: Depend on it.
28129         * modules/signal-c++-tests: New file, extracted from
28130         modules/signal-tests.
28131         * modules/signal-tests: Depend on it.
28132         * modules/spawn-c++-tests: New file, extracted from
28133         modules/spawn-tests.
28134         * modules/spawn-tests: Depend on it.
28135         * modules/stdio-c++-tests: New file, extracted from
28136         modules/stdio-tests.
28137         * modules/stdio-tests: Depend on it.
28138         * modules/stdlib-c++-tests: New file, extracted from
28139         modules/stdlib-tests.
28140         * modules/stdlib-tests: Depend on it.
28141         * modules/string-c++-tests: New file, extracted from
28142         modules/string-tests.
28143         * modules/string-tests: Depend on it.
28144         * modules/sys_ioctl-c++-tests: New file, extracted from
28145         modules/sys_ioctl-tests.
28146         * modules/sys_ioctl-tests: Depend on it.
28147         * modules/sys_select-c++-tests: New file, extracted from
28148         modules/sys_select-tests.
28149         * modules/sys_select-tests: Depend on it.
28150         * modules/sys_socket-c++-tests: New file, extracted from
28151         modules/sys_socket-tests.
28152         * modules/sys_socket-tests: Depend on it.
28153         * modules/sys_stat-c++-tests: New file, extracted from
28154         modules/sys_stat-tests.
28155         * modules/sys_stat-tests: Depend on it.
28156         * modules/sys_time-c++-tests: New file, extracted from
28157         modules/sys_time-tests.
28158         * modules/sys_time-tests: Depend on it.
28159         * modules/time-c++-tests: New file, extracted from modules/time-tests.
28160         * modules/time-tests: Depend on it.
28161         * modules/unistd-c++-tests: New file, extracted from
28162         modules/unistd-tests.
28163         * modules/unistd-tests: Depend on it.
28164         * modules/wchar-c++-tests: New file, extracted from
28165         modules/wchar-tests.
28166         * modules/wchar-tests: Depend on it.
28167         * modules/wctype-c++-tests: New file, extracted from
28168         modules/wctype-tests.
28169         * modules/wctype-tests: Depend on it.
28170         Reported by Simon Josefsson.
28171
28172 2010-03-28  Bruno Haible  <bruno@clisp.org>
28173
28174         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
28175         * gnulib-tool (func_exists_module): New function, extracted from
28176         func_verify_module.
28177         (func_verify_module): Use it.
28178         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
28179         'foo' only if 'foo' exists.
28180         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
28181         module.
28182
28183 2010-03-28  Bruno Haible  <bruno@clisp.org>
28184
28185         gnulib-tool: Add support for special categories of tests.
28186         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
28187         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
28188         (func_usage): Document them.
28189         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
28190         inc_unportable_tests, inc_all_tests): New variables.
28191         (func_acceptable): Consider these variables.
28192         (func_modules_transitive_closure): Make it work when the 'Status' field
28193         consists of multiple words.
28194         (func_import): Store and restore the values of inc_cxx_tests,
28195         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
28196         inc_all_tests in gnulib-comp.m4.
28197         (func_create_testdir): Set inc_all_tests to true.
28198         * doc/gnulib.texi (Extra tests modules): New section.
28199         Suggested by Jim Meyering.
28200
28201 2010-03-28  Bruno Haible  <bruno@clisp.org>
28202
28203         ansi-c++-opt: Allow turning off the C++ build by default.
28204         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
28205         gl_CXX_CHOICE_DEFAULT_NO is defined.
28206         Requested by Eric Blake.
28207
28208 2010-03-28  Bruno Haible  <bruno@clisp.org>
28209
28210         unistd: Avoid #define replacements in C++ mode.
28211         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
28212         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
28213         setsockopt, shutdown, select): In C++, attach a warning to the function
28214         if possible, rather than #defining the symbol to a dysfunctional alias.
28215         Reported by John W. Eaton <jwe@gnu.org>.
28216
28217 2010-03-28  Bruno Haible  <bruno@clisp.org>
28218
28219         Fix link errors on mingw.
28220         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
28221         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
28222         $(LIBSOCKET).
28223         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
28224         $(LIBSOCKET).
28225
28226 2010-03-28  Bruno Haible  <bruno@clisp.org>
28227             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28228
28229         lib-ignore: Determine different options for different compilers.
28230         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
28231         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
28232         Add comments.
28233         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
28234         * NEWS: Mention the change.
28235
28236 2010-03-27  Bruno Haible  <bruno@clisp.org>
28237
28238         Remove unused GNULIB_XYZ macro definitions.
28239         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
28240         * modules/fseek (configure.ac): Likewise.
28241         * modules/ioctl (configure.ac): Likewise.
28242         * modules/open (configure.ac): Likewise.
28243         * modules/stdlib-safer (configure.ac): Likewise.
28244
28245 2010-03-27  Bruno Haible  <bruno@clisp.org>
28246
28247         Add a remark about certain modules.
28248         * modules/malloc (Comment): New section.
28249         * modules/realloc (Comment): Likewise.
28250         * modules/sigpipe (Comment): Likewise.
28251
28252 2010-03-27  Bruno Haible  <bruno@clisp.org>
28253
28254         Resolve conflict between the two kinds of module indicators.
28255         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
28256         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
28257         * modules/canonicalize (configure.ac): Invoke
28258         gl_MODULE_INDICATOR_FOR_TESTS.
28259         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
28260         GNULIB_XYZ.
28261         * tests/test-dirent-c++.cc: Likewise.
28262         * tests/test-dirent-safer.c: Likewise.
28263         * tests/test-dup2.c: Likewise.
28264         * tests/test-fchdir.c: Likewise.
28265         * tests/test-fcntl-h-c++.cc: Likewise.
28266         * tests/test-getopt.c: Likewise.
28267         * tests/test-getopt.h: Likewise.
28268         * tests/test-langinfo-c++.cc: Likewise.
28269         * tests/test-locale-c++.cc: Likewise.
28270         * tests/test-math-c++.cc: Likewise.
28271         * tests/test-pty-c++.cc: Likewise.
28272         * tests/test-search-c++.cc: Likewise.
28273         * tests/test-signal-c++.cc: Likewise.
28274         * tests/test-spawn-c++.cc: Likewise.
28275         * tests/test-stdio-c++.cc: Likewise.
28276         * tests/test-stdlib-c++.cc: Likewise.
28277         * tests/test-string-c++.cc: Likewise.
28278         * tests/test-sys_ioctl-c++.cc: Likewise.
28279         * tests/test-sys_select-c++.cc: Likewise.
28280         * tests/test-sys_socket-c++.cc: Likewise.
28281         * tests/test-sys_stat-c++.cc: Likewise.
28282         * tests/test-sys_time-c++.cc: Likewise.
28283         * tests/test-time-c++.cc: Likewise.
28284         * tests/test-unistd-c++.cc: Likewise.
28285         * tests/test-wchar-c++.cc: Likewise.
28286         * tests/uninorm/test-u8-nfc.c: Likewise.
28287         * tests/uninorm/test-u8-nfd.c: Likewise.
28288         * tests/uninorm/test-u8-nfkc.c: Likewise.
28289         * tests/uninorm/test-u8-nfkd.c: Likewise.
28290         * tests/uninorm/test-u16-nfc.c: Likewise.
28291         * tests/uninorm/test-u16-nfd.c: Likewise.
28292         * tests/uninorm/test-u16-nfkc.c: Likewise.
28293         * tests/uninorm/test-u16-nfkd.c: Likewise.
28294         * tests/uninorm/test-u32-nfc.c: Likewise.
28295         * tests/uninorm/test-u32-nfc-big.c: Likewise.
28296         * tests/uninorm/test-u32-nfd.c: Likewise.
28297         * tests/uninorm/test-u32-nfd-big.c: Likewise.
28298         * tests/uninorm/test-u32-nfkc.c: Likewise.
28299         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
28300         * tests/uninorm/test-u32-nfkd.c: Likewise.
28301         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
28302         * tests/uninorm/test-u32-normalize-big.c: Likewise.
28303
28304 2010-03-27  Bruno Haible  <bruno@clisp.org>
28305
28306         Distinguish two kinds of module indicators.
28307         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
28308         gl_MODULE_INDICATOR.
28309         (gl_MODULE_INDICATOR): New macro.
28310         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
28311         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
28312         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
28313         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
28314         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
28315         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
28316         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
28317         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
28318         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
28319         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
28320         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
28321         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
28322         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
28323         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
28324         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
28325         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
28326         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
28327         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
28328         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
28329         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
28330         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
28331         * modules/cloexec (configure.ac): Likewise.
28332         * modules/getopt-gnu (configure.ac): Likewise.
28333         * modules/uninorm/u8-normalize (configure.ac): Likewise.
28334         * modules/uninorm/u16-normalize (configure.ac): Likewise.
28335         * modules/uninorm/u32-normalize (configure.ac): Likewise.
28336         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
28337
28338 2010-03-27  Bruno Haible  <bruno@clisp.org>
28339
28340         New module description field 'Comment'.
28341         * gnulib-tool: New option --extract-comment.
28342         (func_usage): Document it.
28343         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
28344         (func_get_comment): New function.
28345         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
28346
28347 2010-03-27  Bruno Haible  <bruno@clisp.org>
28348
28349         Addendum to 2010-02-07 commit.
28350         * gnulib-tool (func_usage): Document --extract-applicability option.
28351
28352 2010-03-27  Bruno Haible  <bruno@clisp.org>
28353
28354         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
28355         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
28356         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
28357         rather than link errors.
28358
28359 2010-03-27  Bruno Haible  <bruno@clisp.org>
28360
28361         Avoid side effects from tests-related modules on the compilation of lib.
28362         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
28363         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
28364         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
28365         parameter. Emit into AM_CPPFLAGS a definition of the designated C
28366         macro.
28367         (func_import): Define a witness macro. Assign it a value that depends
28368         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
28369         tests-related modules.
28370         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
28371         Reported by Jim Meyering.
28372
28373 2010-03-27  Bruno Haible  <bruno@clisp.org>
28374
28375         Factorize common .m4 code.
28376         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
28377         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
28378         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
28379         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
28380         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
28381         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
28382         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
28383         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
28384         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
28385         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
28386         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
28387         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
28388         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
28389         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
28390         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
28391         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
28392         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
28393         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
28394         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
28395         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
28396         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
28397         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
28398         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
28399         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
28400         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
28401         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
28402         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
28403         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
28404         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
28405         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
28406         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
28407         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
28408
28409 2010-03-27  Bruno Haible  <bruno@clisp.org>
28410
28411         Fix a compilation error on Cygwin with g++ >= 4.3.
28412         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
28413         if it is undefined or if we alias it to chmod.
28414         (lstat): Don't warn about the use of this function if it is undefined
28415         or if we alias it to stat.
28416         Reported by Simon Josefsson.
28417
28418 2010-03-27  Bruno Haible  <bruno@clisp.org>
28419
28420         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
28421         * modules/getlogin (configure.ac): Update.
28422
28423         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
28424         * modules/getlogin_r (configure.ac): Update.
28425
28426         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
28427         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
28428         * modules/inet_ntop (configure.ac): Update.
28429
28430         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
28431         * modules/inet_pton (configure.ac): Update.
28432
28433         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
28434         * modules/mbslen (configure.ac): Update.
28435
28436         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
28437         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
28438         * modules/forkpty (configure.ac): Update.
28439         * modules/openpty (configure.ac): Update.
28440
28441 2010-03-26  Simon Josefsson  <simon@josefsson.org>
28442
28443         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
28444         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
28445
28446 2010-03-25  Eric Blake  <eblake@redhat.com>
28447
28448         maint: use pragma consistently across replacement headers
28449         * lib/ctype.in.h (system_header): Hoist for consistent placement.
28450         * lib/dirent.in.h (system_header): Likewise.
28451         * lib/errno.in.h (system_header): Likewise.
28452         * lib/float.in.h (system_header): Likewise.
28453         * lib/getopt.in.h (system_header): Likewise.
28454         * lib/iconv.in.h (system_header): Likewise.
28455         * lib/inttypes.in.h (system_header): Likewise.
28456         * lib/langinfo.in.h (system_header): Likewise.
28457         * lib/locale.in.h (system_header): Likewise.
28458         * lib/math.in.h (system_header): Likewise.
28459         * lib/netdb.in.h (system_header): Likewise.
28460         * lib/netinet_in.in.h (system_header): Likewise.
28461         * lib/pty.in.h (system_header): Likewise.
28462         * lib/sched.in.h (system_header): Likewise.
28463         * lib/se-selinux.in.h (system_header): Likewise.
28464         * lib/search.in.h (system_header): Likewise.
28465         * lib/spawn.in.h (system_header): Likewise.
28466         * lib/stdarg.in.h (system_header): Likewise.
28467         * lib/stdint.in.h (system_header): Likewise.
28468         * lib/string.in.h (system_header): Likewise.
28469         * lib/strings.in.h (system_header): Likewise.
28470         * lib/sys_file.in.h (system_header): Likewise.
28471         * lib/sys_ioctl.in.h (system_header): Likewise.
28472         * lib/sys_socket.in.h (system_header): Likewise.
28473         * lib/sys_times.in.h (system_header): Likewise.
28474         * lib/sys_utsname.in.h (system_header): Likewise.
28475         * lib/sys_wait.in.h (system_header): Likewise.
28476         * lib/sysexits.in.h (system_header): Likewise.
28477         * lib/unistd.in.h (system_header): Likewise.
28478         * lib/wctype.in.h (system_header): Likewise.
28479
28480         arpa/inet: fix mingw compilation warning
28481         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
28482         Reported by Matthew Bolte.
28483
28484 2010-03-25  Bruno Haible  <bruno@clisp.org>
28485
28486         Avoid collision between gnulib wrapper and libintl wrapper.
28487         * lib/printf.c (printf): Don't define if a printf wrapper is already
28488         defined in intl/printf.c.
28489         Reported by Michel Boaventura <michel@michelboaventura.com>.
28490
28491 2010-03-25  Bruno Haible  <bruno@clisp.org>
28492
28493         Use ANSI C.
28494         * lib/readutmp.h (getutent): Provide ANSI C prototype.
28495
28496 2010-03-25  Bruno Haible  <bruno@clisp.org>
28497
28498         Minor formatting changes.
28499         * lib/acosl.c: Insert space before function argument list.
28500         * lib/argz.c: Likewise.
28501         * lib/asinl.c: Likewise.
28502         * lib/expl.c: Likewise.
28503         * lib/gen-uni-tables.c: Likewise.
28504         * lib/gettext.h: Likewise.
28505         * lib/glthread/lock.h: Likewise.
28506         * lib/tanl.c: Likewise.
28507         * lib/uniname/uniname.c: Likewise.
28508         * tests/test-idpriv-drop.c: Likewise.
28509         * tests/test-idpriv-droptemp.c: Likewise.
28510         * tests/test-lock.c: Likewise.
28511         * tests/test-tls.c: Likewise.
28512         * lib/argp-help.c: Insert space before function-like macro argument
28513         list.
28514         * lib/memcmp.c: Likewise.
28515         * tests/test-base64.c: Likewise.
28516         * lib/localename.c: Insert space before sizeof's argument list.
28517         * lib/safe-alloc.h: Likewise.
28518         * lib/file-set.h: Insert space before macro argument list.
28519         * tests/test-argp.c: Likewise.
28520         * lib/argp-namefrob.h: Insert space before function parameter list.
28521         * lib/getaddrinfo.c: Likewise.
28522         * lib/netdb.in.h: Likewise.
28523         * lib/parse-duration.h: Likewise.
28524         * lib/parse-duration.c: Likewise.
28525         * lib/poll.c: Likewise.
28526         * lib/select.c: Likewise.
28527         * lib/trim.h: Likewise.
28528         * tests/test-usleep.c: Likewise.
28529         * lib/ldexpl.c: Insert space before function parameter list and before
28530         function argument list.
28531         * lib/logl.c: Likewise.
28532         * lib/sqrtl.c: Likewise.
28533         * lib/trim.c: Likewise.
28534         * lib/cosl.c: Use GNU style indentation. Insert space before function
28535         argument list.
28536         * lib/sinl.c: Likewise.
28537         * lib/tsearch.c: Insert space after 'for'.
28538         Reported by Jim Meyering.
28539
28540 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
28541
28542         * maint.mk (sc_Wundef_boolean): Check for the presence of the
28543         config header before grepping, as it's not present before
28544         autoreconf/configure are run.  Reported by Simon Josefsson.
28545
28546 2010-03-23  Bruno Haible  <bruno@clisp.org>
28547
28548         pt_chown: Make it work with automake < 1.11.
28549         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
28550         Reported by Simon Josefsson.
28551
28552 2010-03-23  Bruno Haible  <bruno@clisp.org>
28553
28554         pt_chown: Don't depend on GPLed modules.
28555         * lib/pt_chown.c: Don't include idpriv.h.
28556         (main): Don't drop privileges.
28557         * modules/pt_chown (Depends-on): Remove idpriv-drop.
28558         Reported by Simon Josefsson.
28559
28560 2010-03-24  Simon Josefsson  <simon@josefsson.org>
28561
28562         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
28563         suggestions from karl@freefriends.org (Karl Berry).
28564
28565 2010-03-22  Eric Blake  <eblake@redhat.com>
28566
28567         gethostname: further tweaks
28568         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
28569         are overriding gethostname.
28570         Suggested by Bruno Haible.
28571
28572 2010-03-21  Bruno Haible  <bruno@clisp.org>
28573
28574         Fix comments.
28575         * lib/forkpty.c (rpl_forkpty): Fix comment.
28576         * lib/openpty.c (rpl_openpty): Likewise.
28577         Reported by Eric Blake.
28578
28579 2010-03-22  Eric Blake  <eblake@redhat.com>
28580
28581         gethostname: fix build on mingw
28582         * lib/unistd.in.h (includes): Work around fact that mingw
28583         <winsock2.h> re-includes <unistd.h>, by avoiding any
28584         redeclarations if we are being included by <winsock2.h>.
28585         Reported by Matthias Bolte.
28586
28587 2010-03-21  Bruno Haible  <bruno@clisp.org>
28588
28589         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
28590         * lib/forkpty.c (forkpty): New replacement function, from glibc with
28591         modifications.
28592         * lib/pty.in.h (forkpty): Update declaration. Add comments.
28593         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
28594         provide the replacement.
28595         * modules/forkpty (Depends-on): Add openpty, login_tty.
28596         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
28597         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
28598         * doc/glibc-functions/forkpty.texi: More supported platforms.
28599         * config/srclist.txt: Add forkpty.c (commented).
28600
28601 2010-03-21  Bruno Haible  <bruno@clisp.org>
28602
28603         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
28604         (Makefile.am): Verify that PTY_LIB is defined.
28605
28606         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
28607
28608 2010-03-21  Bruno Haible  <bruno@clisp.org>
28609
28610         Tests for module 'login_tty'.
28611         * modules/login_tty-tests: New file.
28612         * tests/test-login_tty.c: New file.
28613
28614         New module 'login_tty'.
28615         * lib/login_tty.c: New file.
28616         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
28617         * modules/login_tty: New file.
28618         * doc/glibc-functions/login_tty.texi: Mention the new module.
28619
28620 2010-03-21  Bruno Haible  <bruno@clisp.org>
28621
28622         login_tty: Documentation.
28623         * doc/glibc-functions/login_tty.texi: New file.
28624         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
28625
28626 2010-03-21  Bruno Haible  <bruno@clisp.org>
28627
28628         pty: Consistent macro naming.
28629         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
28630         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
28631         * modules/pty (configure.ac): Update.
28632
28633 2010-03-21  Bruno Haible  <bruno@clisp.org>
28634
28635         Tests for openpty: Make stricter.
28636         * tests/test-openpty.c (main): Add test of canonical processing and
28637         erase.
28638         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
28639
28640         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
28641         * lib/openpty.c (openpty): New replacement function.
28642         * lib/pty.in.h: Include <termios.h>.
28643         (openpty): Update declaration. Add comments.
28644         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
28645         is not declared, arrange to provide the replacement. Check for _getpty
28646         and posix_openpt.
28647         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
28648         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
28649         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
28650         * modules/pty-tests (test_pty_c___LDADD): New variable.
28651         * doc/glibc-functions/openpty.texi: More supported platforms.
28652
28653 2010-03-21  Bruno Haible  <bruno@clisp.org>
28654
28655         setenv: Tweaks.
28656         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
28657         the test program.
28658         * doc/posix-functions/setenv.texi: Update platforms list.
28659
28660 2010-03-21  Bruno Haible  <bruno@clisp.org>
28661
28662         New module 'unlockpt'.
28663         * lib/unlockpt.c: New file, from glibc with modifications.
28664         * m4/unlockpt.m4: New file.
28665         * modules/unlockpt: New file.
28666         * lib/stdlib.in.h (unlockpt): New declaration.
28667         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
28668         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
28669         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
28670         HAVE_UNLOCKPT.
28671         * doc/posix-functions/unlockpt.texi: Mention the new module.
28672         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
28673         * config/srclist.txt: Add unlockpt.c (commented).
28674
28675 2010-03-21  Jim Meyering  <meyering@redhat.com>
28676
28677         maint.mk: prohibit inclusion of "intprops.h" without use
28678         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
28679
28680 2010-03-21  Bruno Haible  <bruno@clisp.org>
28681
28682         New module 'grantpt'.
28683         * lib/grantpt.c: New file, from glibc with modifications.
28684         * m4/grantpt.m4: New file.
28685         * modules/grantpt: New file.
28686         * lib/stdlib.in.h (grantpt): New declaration.
28687         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
28688         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
28689         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
28690         HAVE_GRANTPT.
28691         * doc/posix-functions/grantpt.texi: Mention the new module.
28692         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
28693         * config/srclist.txt: Add grantpt.c (commented).
28694
28695 2010-03-21  Bruno Haible  <bruno@clisp.org>
28696
28697         New module 'pt_chown'.
28698         * lib/pt_chown.c: New file, from glibc with modifications.
28699         * lib/pty-private.h: New file, from glibc with modifications.
28700         * modules/pt_chown: New file.
28701         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
28702
28703 2010-03-21  Bruno Haible  <bruno@clisp.org>
28704
28705         Tests for module 'ptsname'.
28706         * modules/ptsname-tests: New file.
28707         * tests/test-ptsname.c: New file.
28708
28709         New module 'ptsname'.
28710         * lib/ptsname.c: New file, from glibc with modifications.
28711         * m4/ptsname.m4: New file.
28712         * modules/ptsname: New file.
28713         * lib/stdlib.in.h (ptsname): New declaration.
28714         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
28715         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
28716         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
28717         HAVE_PTSNAME.
28718         * doc/posix-functions/ptsname.texi: Mention the new module.
28719         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
28720         * config/srclist.txt: Add ptsname.c (commented).
28721
28722 2010-03-21  Bruno Haible  <bruno@clisp.org>
28723
28724         Tests for module 'ttyname_r'.
28725         * modules/ttyname_r-tests: New file.
28726         * tests/test-ttyname_r.c: New file.
28727
28728         New module 'ttyname_r'.
28729         * lib/ttyname_r.c: New file.
28730         * m4/ttyname_r.m4: New file.
28731         * modules/ttyname_r: New file.
28732         * lib/unistd.in.h (ttyname_r): New declaration.
28733         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
28734         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
28735         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
28736         HAVE_TTYNAME_R.
28737         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
28738         * doc/posix-functions/ttyname_r.texi: Mention the new module.
28739
28740 2010-03-20  Bruno Haible  <bruno@clisp.org>
28741
28742         signal: Undefine macro definitions in C++ mode.
28743         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
28744         sigfillset): Undefine macro definitions from the system header in C++
28745         mode.
28746         Reported by John W. Eaton <jwe@gnu.org>.
28747
28748 2010-03-20  Bruno Haible  <bruno@clisp.org>
28749
28750         Ensure no #include statements inside extern "C" { ... }.
28751         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
28752         contain #include statements.
28753         * lib/time.in.h: Likewise.
28754
28755 2010-03-20  Bruno Haible  <bruno@clisp.org>
28756
28757         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
28758         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
28759         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
28760         Reported by John W. Eaton <jwe@gnu.org>.
28761
28762 2010-03-20  Bruno Haible  <bruno@clisp.org>
28763
28764         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
28765         Reported by Jim Meyering.
28766
28767 2010-03-20  Bruno Haible  <bruno@clisp.org>
28768
28769         pipe: Set errno upon failure.
28770         * lib/pipe.h: Specify that when -1 is returned, errno is set.
28771         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
28772         errno value in error message.
28773
28774 2010-03-20  Bruno Haible  <bruno@clisp.org>
28775             Jim Meyering  <meyering@redhat.com>
28776
28777         lchown: Avoid "unused variable" warning.
28778         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
28779
28780 2010-03-20  Bruno Haible  <bruno@clisp.org>
28781
28782         Work around unlink() bug on MacOS X 10.5.6.
28783         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
28784         attempting to unlink a parent directory.
28785         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
28786         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
28787         activate for the replacement function.
28788         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
28789
28790 2010-03-20  Bruno Haible  <bruno@clisp.org>
28791
28792         Fix link errors on Solaris 8.
28793         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
28794         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
28795
28796 2010-03-19  Jim Meyering  <meyering@redhat.com>
28797
28798         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
28799         The _LIBC implementation of build_range_exp correctly honors the
28800         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
28801         However, the non-_LIBC implementation would ignore that syntax-bit
28802         flag and return REG_ERANGE unconditionally.
28803         This change makes it honor that flag.
28804         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
28805         Make two pointer parameters "const".
28806         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
28807         (parse_bracket_exp): Update caller.
28808
28809         regex.m4: correct the reversed range endpoint ([b-a]) test
28810         * m4/regex.m4: When requiring that [b-a] evoke failure,
28811         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
28812         test pass once again for x86-based systems.
28813
28814 2010-03-19  Bruno Haible  <bruno@clisp.org>
28815
28816         scandir: Fix link error on Solaris 8.
28817         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
28818         macros.
28819
28820 2010-03-19  Bruno Haible  <bruno@clisp.org>
28821
28822         getusershell: Fix documentation.
28823         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
28824         module.
28825         * doc/glibc-functions/setusershell.texi: Likewise.
28826
28827         getusershell: Provide declaration, missing on Solaris 9.
28828         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
28829         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
28830         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
28831         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
28832         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28833         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
28834         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
28835         HAVE_GETUSERSHELL.
28836         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
28837
28838 2010-03-19  Bruno Haible  <bruno@clisp.org>
28839
28840         wctype: Provide iswblank function.
28841         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
28842         exists and is fine.
28843         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
28844         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
28845         * tests/test-wctype.c (main): Re-enable the iswblank tests.
28846         * doc/posix-functions/iswblank.texi: Update.
28847
28848 2010-03-19  Bruno Haible  <bruno@clisp.org>
28849
28850         Tests of module 'pty' in C++ mode.
28851         * modules/pty-tests: New file.
28852         * tests/test-pty-c++.cc: New file.
28853         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
28854
28855 2010-03-19  Eric Blake  <eblake@redhat.com>
28856
28857         logb: fix documentation
28858         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
28859         1.5 declaration bug.
28860
28861         forkpty, openpty: prefer glibc's const-safe prototype
28862         * lib/forkpty.c (rpl_forkpty): New file.
28863         * lib/openpty.c (rpl_openpty): Likewise.
28864         * modules/forkpty (Files): Distribute it.
28865         * modules/openpty (Files): Likewise.
28866         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
28867         check...
28868         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
28869         replacement for for non-const BSD signature.
28870         * modules/pty (Makefile.am): Substitute witnesses.
28871         * lib/pty.in.h (forkpty, openpty): Declare replacements.
28872         * tests/test-forkpty.c: Update signature check.
28873         * tests/test-openpty.c: Likewise.
28874         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
28875         * doc/glibc-functions/openpty.texi (openpty): Likewise.
28876
28877         forkpty, openpty: split functions into new modules
28878         * modules/pty (Makefile.am): Substitute new witnesses.
28879         (Libraries): Move library detection...
28880         * modules/forkpty: ...into new module.
28881         * modules/openpty: Another new module.
28882         * modules/pty-tests: Rename and split...
28883         * modules/forkpty-tests: ...to this...
28884         * modules/openpty-tests: ...and this.
28885         * tests/test-pty.c: Rename and split...
28886         * tests/test-forkpty.c: ...to this...
28887         * tests/test-openpty.c: ...and this.
28888         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
28889         (gl_PTY): Split library searching...
28890         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
28891         (gl_FORKPTY, gl_OPENPTY): New macros.
28892         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
28893         * NEWS: Mention the split.
28894         * MODULES.html.sh (Misc): Document the modules.
28895         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
28896         * doc/glibc-functions/openpty.texi (openpty): Likewise.
28897
28898         pty: improve replacement header
28899         * lib/pty.in.h: New file.
28900         * modules/pty (Files): Ship it.
28901         (Makefile.am): Always build replacement.
28902         * m4/pty.m4: Rename...
28903         * m4/pty_h.m4: ...to this.
28904         (gl_PTY): Modernize setting of witness macros; update check of
28905         forkpty to take proper advantage of cache.
28906         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
28907
28908         getopt: avoid compiler warning
28909         * lib/getopt.c (attribute_hidden): Remove unused macro.
28910
28911 2010-03-18  Bruno Haible  <bruno@clisp.org>
28912
28913         Fix link errors on Solaris 8.
28914         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
28915         * modules/search-tests (test_search_c___LDADD): Likewise.
28916         * modules/signal-tests (test_signal_c___LDADD): Likewise.
28917         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
28918         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
28919         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
28920         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
28921         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
28922         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
28923
28924 2010-03-18  Bruno Haible  <bruno@clisp.org>
28925
28926         Fix bug introduced on 2010-03-14.
28927         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
28928         (gl_SPAWN_H): Require it.
28929         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
28930         Reported by Simon Josefsson.
28931
28932 2010-03-18  Bruno Haible  <bruno@clisp.org>
28933
28934         Fix typo introduced on 2009-12-31.
28935         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
28936         posix_spawn_file_actions_adddup2.
28937
28938 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
28939         and Eric Blake  <eblake@redhat.com>
28940
28941         test-vc-list-files-git: make more robust
28942         * tests/test-vc-list-files-git.sh: Unset problematic environment
28943         variables.  Chain commands together.
28944
28945 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
28946
28947         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
28948         `AC_CHECK_DECL' invocation.
28949
28950 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
28951
28952         * lib/inttostr.c (inttostr): Make sure the invocation of verify
28953         appears before executable statements. Suggested by Petr Sumbera
28954         <Petr.Sumbera@Sun.COM>.
28955
28956 2010-03-14  Bruno Haible  <bruno@clisp.org>
28957
28958         * tests/test-flock.c (test_exclusive): Comment out a test that causes
28959         portability problems. Instead use a simpler test.
28960         (main): Check that invalid arguments are rejected only on Linux.
28961
28962 2010-03-14  Bruno Haible  <bruno@clisp.org>
28963
28964         Fix bug introduced on 2009-12-31.
28965         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
28966         gl_PREREQ_SYS_H_WINSOCK2 always.
28967         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
28968         SYS_SOCKET_H variable.
28969         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
28970         Update comments.
28971         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
28972         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28973         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28974         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
28975         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
28976
28977 2010-03-14  Bruno Haible  <bruno@clisp.org>
28978
28979         Fix values returned by sinl, cosl.
28980         * lib/trigl.h: Add specification comments.
28981         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
28982         that combines the values from the precomputed table with the values of
28983         the Chebyshev polynomials.
28984
28985 2010-03-14  Bruno Haible  <bruno@clisp.org>
28986
28987         Fix compilation error when modules 'posix_spawn[p]' are not used.
28988         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
28989         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
28990
28991 2010-03-14  Bruno Haible  <bruno@clisp.org>
28992
28993         Fix compilation error on mingw when module 'time_r' is not used.
28994         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
28995         is 1.
28996         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
28997         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
28998         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
28999         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
29000
29001 2010-03-14  Bruno Haible  <bruno@clisp.org>
29002
29003         Fix compilation error with Sun C.
29004         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
29005         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
29006         instead of GCC specific ULONG_LONG_MAX.
29007         * lib/xstrtoll.c: Likewise.
29008         * lib/xstrtoull.c: Likewise.
29009
29010 2010-03-13  Bruno Haible  <bruno@clisp.org>
29011
29012         Allow the user to disable C++ code and tests.
29013         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
29014         (gl_PROG_ANSI_CXX): Require it.
29015
29016 2010-03-13  Bruno Haible  <bruno@clisp.org>
29017
29018         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
29019         cases.
29020
29021 2010-03-13  Bruno Haible  <bruno@clisp.org>
29022
29023         Test that gnulib does not break the standard C++ headers.
29024         * tests/test-locale-c++2.cc: New file.
29025         * modules/locale-tests (Files): Add it.
29026         (Makefile.am): Compile it for test-locale-c++.
29027         * tests/test-math-c++2.cc: New file.
29028         * modules/math-tests (Files): Add it.
29029         (Makefile.am): Compile it for test-math-c++.
29030         * tests/test-signal-c++2.cc: New file.
29031         * modules/signal-tests (Files): Add it.
29032         (Makefile.am): Compile it for test-signal-c++.
29033         * tests/test-stdio-c++2.cc: New file.
29034         * modules/stdio-tests (Files): Add it.
29035         (Makefile.am): Compile it for test-stdio-c++.
29036         * tests/test-stdlib-c++2.cc: New file.
29037         * modules/stdlib-tests (Files): Add it.
29038         (Makefile.am): Compile it for test-stdlib-c++.
29039         * tests/test-string-c++2.cc: New file.
29040         * modules/string-tests (Files): Add it.
29041         (Makefile.am): Compile it for test-string-c++.
29042         * tests/test-time-c++2.cc: New file.
29043         * modules/time-tests (Files): Add it.
29044         (Makefile.am): Compile it for test-time-c++.
29045         Reported by John W. Eaton <jwe@gnu.org>.
29046
29047 2010-03-13  Bruno Haible  <bruno@clisp.org>
29048
29049         * gnulib-tool (func_usage): Clarify which options are available for
29050         --create-testdir and --create-megatestdir.
29051
29052 2010-03-13  Bruno Haible  <bruno@clisp.org>
29053
29054         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
29055         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
29056         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
29057         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
29058         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
29059         when appropriate.
29060         Reported by Jim Meyering.
29061
29062 2010-03-12  Simon Josefsson  <simon@josefsson.org>
29063
29064         * gnulib-tool (func_import): Explain origin of code.
29065
29066 2010-03-12  Bruno Haible  <bruno@clisp.org>
29067
29068         Fix problem with automake's definition of CXXLINK.
29069         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
29070         Reported by Simon Josefsson and Ludovic Courtès.
29071
29072 2010-03-12  Bruno Haible  <bruno@clisp.org>
29073
29074         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
29075         stable releases.
29076
29077 2010-03-11  Bruno Haible  <bruno@clisp.org>
29078
29079         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
29080         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
29081         whether the system provides one variant or multiple variants of the
29082         function.
29083         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
29084         C++ compilers.
29085         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
29086         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
29087         Reported by Jim Meyering.
29088
29089 2010-03-09  Simon Josefsson  <simon@josefsson.org>
29090
29091         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
29092
29093 2010-03-08  Bruno Haible  <bruno@clisp.org>
29094
29095         gnulib-tool: Add support for --libtool in --create-testdir.
29096         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
29097         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
29098
29099 2010-03-08  Eric Blake  <eblake@redhat.com>
29100
29101         gnulib-tool.texi: mention possibility of git submodule
29102         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
29103         submodules.
29104         * doc/.gitignore: Ignore another generated file.
29105
29106 2010-03-08  Karl Berry  <karl@gnu.org>
29107
29108         * doc/gnulib-tool.texi (VCS Issues): Mention third option
29109         of committing gnulib files while skipping others.
29110
29111 2010-03-07  Bruno Haible  <bruno@clisp.org>
29112
29113         Tests of module 'wctype' in C++ mode.
29114         * tests/test-wctype-c++.cc: New file.
29115         * modules/wctype-tests (Files): Add it and tests/signature.h.
29116         (Depends-on): Add ansi-c++-opt.
29117         (Makefile.am): Arrange to compile and run test-wctype-c++.
29118
29119         Tests of module 'wchar' in C++ mode.
29120         * tests/test-wchar-c++.cc: New file.
29121         * modules/wchar-tests (Files): Add it and tests/signature.h.
29122         (Depends-on): Add ansi-c++-opt.
29123         (Makefile.am): Arrange to compile and run test-wchar-c++.
29124         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
29125         gl_MODULE_INDICATOR.
29126
29127         Tests of module 'unistd' in C++ mode.
29128         * tests/test-unistd-c++.cc: New file.
29129         * modules/unistd-tests (Files): Add it and tests/signature.h.
29130         (Depends-on): Add ansi-c++-opt.
29131         (Makefile.am): Arrange to compile and run test-unistd-c++.
29132         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
29133         gl_MODULE_INDICATOR.
29134
29135         Tests of module 'time' in C++ mode.
29136         * tests/test-time-c++.cc: New file.
29137         * modules/time-tests (Files): Add it and tests/signature.h.
29138         (Depends-on): Add ansi-c++-opt.
29139         (Makefile.am): Arrange to compile and run test-time-c++.
29140         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
29141
29142         Tests of module 'sys_time' in C++ mode.
29143         * tests/test-sys_time-c++.cc: New file.
29144         * modules/sys_time-tests (Files): Add it and tests/signature.h.
29145         (Depends-on): Add ansi-c++-opt.
29146         (Makefile.am): Arrange to compile and run test-sys_time-c++.
29147         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
29148         gl_MODULE_INDICATOR.
29149
29150         Tests of module 'sys_stat' in C++ mode.
29151         * tests/test-sys_stat-c++.cc: New file.
29152         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
29153         (Depends-on): Add ansi-c++-opt.
29154         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
29155         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
29156         gl_MODULE_INDICATOR.
29157
29158         Tests of module 'sys_socket' in C++ mode.
29159         * tests/test-sys_socket-c++.cc: New file.
29160         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
29161         (Depends-on): Add ansi-c++-opt.
29162         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
29163         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
29164         gl_MODULE_INDICATOR.
29165
29166         Tests of module 'sys_select' in C++ mode.
29167         * tests/test-sys_select-c++.cc: New file.
29168         * modules/sys_select-tests (Files): Add it and tests/signature.h.
29169         (Depends-on): Add ansi-c++-opt.
29170         (Makefile.am): Arrange to compile and run test-sys_select-c++.
29171         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
29172         gl_MODULE_INDICATOR.
29173
29174         Tests of module 'sys_ioctl' in C++ mode.
29175         * tests/test-sys_ioctl-c++.cc: New file.
29176         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
29177         (Depends-on): Add ansi-c++-opt.
29178         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
29179         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
29180         gl_MODULE_INDICATOR.
29181
29182         Tests of module 'string' in C++ mode.
29183         * tests/test-string-c++.cc: New file.
29184         * modules/string-tests (Files): Add it and tests/signature.h.
29185         (Depends-on): Add ansi-c++-opt.
29186         (Makefile.am): Arrange to compile and run test-string-c++.
29187         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
29188         gl_MODULE_INDICATOR.
29189
29190         Tests of module 'stdlib' in C++ mode.
29191         * tests/test-stdlib-c++.cc: New file.
29192         * modules/stdlib-tests (Files): Add it and tests/signature.h.
29193         (Depends-on): Add ansi-c++-opt.
29194         (Makefile.am): Arrange to compile and run test-stdlib-c++.
29195         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
29196         gl_MODULE_INDICATOR.
29197
29198         Tests of module 'stdio' in C++ mode.
29199         * tests/test-stdio-c++.cc: New file.
29200         * modules/stdio-tests (Files): Add it and tests/signature.h.
29201         (Depends-on): Add ansi-c++-opt.
29202         (Makefile.am): Arrange to compile and run test-stdio-c++.
29203         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
29204         gl_MODULE_INDICATOR.
29205
29206         Tests of module 'spawn' in C++ mode.
29207         * tests/test-spawn-c++.cc: New file.
29208         * modules/spawn-tests (Files): Add it and tests/signature.h.
29209         (Depends-on): Add ansi-c++-opt.
29210         (Makefile.am): Arrange to compile and run test-spawn-c++.
29211         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
29212         gl_MODULE_INDICATOR.
29213
29214         Tests of module 'signal' in C++ mode.
29215         * tests/test-signal-c++.cc: New file.
29216         * modules/signal-tests (Files): Add it and tests/signature.h.
29217         (Depends-on): Add ansi-c++-opt.
29218         (Makefile.am): Arrange to compile and run test-signal-c++.
29219         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
29220         gl_MODULE_INDICATOR.
29221
29222         Tests of module 'search' in C++ mode.
29223         * tests/test-search-c++.cc: New file.
29224         * modules/search-tests (Files): Add it and tests/signature.h.
29225         (Depends-on): Add ansi-c++-opt.
29226         (Makefile.am): Arrange to compile and run test-search-c++.
29227         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
29228         gl_MODULE_INDICATOR.
29229
29230         Tests of module 'math' in C++ mode.
29231         * tests/test-math-c++.cc: New file.
29232         * modules/math-tests (Files): Add it and tests/signature.h.
29233         (Depends-on): Add ansi-c++-opt.
29234         (Makefile.am): Arrange to compile and run test-math-c++.
29235         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
29236
29237         Tests of module 'locale' in C++ mode.
29238         * tests/test-locale-c++.cc: New file.
29239         * modules/locale-tests (Files): Add it and tests/signature.h.
29240         (Depends-on): Add ansi-c++-opt.
29241         (Makefile.am): Arrange to compile and run test-locale-c++.
29242         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
29243         gl_MODULE_INDICATOR.
29244
29245         Tests of module 'langinfo' in C++ mode.
29246         * tests/test-langinfo-c++.cc: New file.
29247         * modules/langinfo-tests (Files): Add it and tests/signature.h.
29248         (Depends-on): Add ansi-c++-opt.
29249         (Makefile.am): Arrange to compile and run test-langinfo-c++.
29250         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
29251         gl_MODULE_INDICATOR.
29252
29253         Tests of module 'iconv-h' in C++ mode.
29254         * tests/test-iconv-h-c++.cc: New file.
29255         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
29256         (Depends-on): Add ansi-c++-opt.
29257         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
29258
29259         Tests of module 'glob' in C++ mode.
29260         * tests/test-glob-c++.cc: New file.
29261         * modules/glob-tests (Files): Add it.
29262         (Depends-on): Add ansi-c++-opt.
29263         (Makefile.am): Arrange to compile and run test-glob-c++.
29264
29265         Tests of module 'fcntl-h' in C++ mode.
29266         * tests/test-fcntl-h-c++.cc: New file.
29267         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
29268         (Depends-on): Add ansi-c++-opt.
29269         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
29270         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
29271         gl_MODULE_INDICATOR.
29272
29273         Tests of module 'dirent' in C++ mode.
29274         * tests/test-dirent-c++.cc: New file.
29275         * modules/dirent-tests (Files): Add it and tests/signature.h.
29276         (Depends-on): Add ansi-c++-opt.
29277         (Makefile.am): Arrange to compile and run test-dirent-c++.
29278         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
29279         gl_MODULE_INDICATOR.
29280
29281         New module 'ansi-c++-opt'.
29282         * modules/ansi-c++-opt: New file.
29283         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
29284
29285         Document C++ namespace mode.
29286         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
29287
29288         wctype: Avoid #define replacements in C++ mode.
29289         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
29290         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
29291         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
29292         In C++, define a namespaced alias symbol.
29293         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
29294         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
29295         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
29296         rule.
29297
29298         wchar: Avoid #define replacements in C++ mode.
29299         * lib/wchar.in.h: Include c++defs.h.
29300         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
29301         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
29302         symbol.
29303         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
29304         * modules/wchar (Depends-on): Add c++defs.
29305         (Makefile.am): Update wchar.h rule.
29306
29307         unistd: Avoid #define replacements in C++ mode.
29308         * lib/unistd.in.h: Include c++defs.h.
29309         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
29310         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
29311         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
29312         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
29313         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
29314         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
29315         symbol.
29316         (environ): Update.
29317         * modules/unistd (Depends-on): Add c++defs.
29318         (Makefile.am): Update unistd.h rule.
29319
29320         time: Avoid #define replacements in C++ mode.
29321         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
29322         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
29323         define a namespaced alias symbol.
29324         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
29325         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
29326         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
29327         * modules/time (Depends-on): Add c++defs, warn-on-use.
29328         (Makefile.am): Update time.h rule.
29329         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
29330         * modules/nanosleep (configure.ac): Likewise.
29331         * modules/strptime (configure.ac): Likewise.
29332         * modules/timegm (configure.ac): Likewise.
29333
29334         sys_time: Avoid #define replacements in C++ mode.
29335         * lib/sys_time.in.h: Include c++defs.h.
29336         (gettimeofday): In C++, define a namespaced alias symbol.
29337         * modules/sys_time (Depends-on): Add c++defs.
29338         (Makefile.am): Update sys/time.h rule.
29339
29340         sys_stat: Avoid #define replacements in C++ mode.
29341         * lib/sys_stat.in.h: Include c++defs.h.
29342         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
29343         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
29344         namespaced alias symbol.
29345         In C++, define a namespaced alias symbol.
29346         * modules/sys_stat (Depends-on): Add c++defs.
29347         (Makefile.am): Update sys/stat.h rule.
29348
29349         sys_socket: Avoid #define replacements in C++ mode.
29350         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
29351         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
29352         definitions also when the system has a <sys/socket.h>.
29353         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
29354         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
29355         In C++, define a namespaced alias symbol.
29356         * modules/sys_socket (Depends-on): Add c++defs.
29357         (Makefile.am): Update sys/socket.h rule.
29358
29359         sys_select: Avoid #define replacements in C++ mode.
29360         * lib/sys_select.in.h: Include c++defs.h. Enable the function
29361         definitions also when the system has a <sys/select.h>.
29362         (select): In C++, define a namespaced alias symbol.
29363         * modules/sys_select (Depends-on): Add c++defs.
29364         (Makefile.am): Update sys/select.h rule.
29365
29366         sys_ioctl: Avoid #define replacements in C++ mode.
29367         * lib/sys_ioctl.in.h: Include c++defs.h.
29368         (ioctl): In C++, define a namespaced alias symbol.
29369         * modules/sys_ioctl (Depends-on): Add c++defs.
29370         (Makefile.am): Update sys/ioctl.h rule.
29371
29372         string: Avoid #define replacements in C++ mode.
29373         * lib/string.in.h: Include c++defs.h.
29374         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
29375         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
29376         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
29377         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
29378         strsignal, strverscmp): In C++, define a namespaced alias symbol.
29379         * modules/string (Depends-on): Add c++defs.
29380         (Makefile.am): Update string.h rule.
29381
29382         stdlib: Avoid #define replacements in C++ mode.
29383         * lib/stdlib.in.h: Include c++defs.h.
29384         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
29385         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
29386         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
29387         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
29388         symbol.
29389         * modules/stdlib (Depends-on): Add c++defs.
29390         (Makefile.am): Update stdlib.h rule.
29391
29392         stdio: Avoid #define replacements in C++ mode.
29393         * lib/stdio.in.h: Include c++defs.h.
29394         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
29395         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
29396         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
29397         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
29398         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
29399         namespaced alias symbol.
29400         * modules/stdio (Depends-on): Add c++defs.
29401         (Makefile.am): Update stdio.h rule.
29402
29403         spawn: Avoid #define replacements in C++ mode.
29404         * lib/spawn.in.h: Include c++defs.h.
29405         (posix_spawn, posix_spawnp, posix_spawnattr_init,
29406         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
29407         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
29408         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
29409         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
29410         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
29411         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
29412         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
29413         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
29414         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
29415         In C++, define a namespaced alias symbol.
29416         * modules/spawn (Depends-on): Add c++defs.
29417         (Makefile.am): Update spawn.h rule.
29418
29419         signal: Avoid #define replacements in C++ mode.
29420         * lib/signal.in.h: Include c++defs.h.
29421         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
29422         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
29423         namespaced alias symbol.
29424         * modules/signal (Depends-on): Add c++defs.
29425         (Makefile.am): Update signal.h rule.
29426
29427         search: Avoid #define replacements in C++ mode.
29428         * lib/search.in.h: Include c++defs.h.
29429         (_gl_search_compar_fn, _gl_search_action_fn): New types.
29430         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
29431         symbol.
29432         * modules/search (Depends-on): Add c++defs.
29433         (Makefile.am): Update search.h rule.
29434
29435         math: Avoid #define replacements in C++ mode.
29436         * lib/math.in.h: Include c++defs.h.
29437         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
29438         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
29439         trunc, truncl): In C++, define a namespaced alias symbol.
29440         * modules/math (Depends-on): Add c++defs.
29441         (Makefile.am): Update math.h rule.
29442
29443         locale: Avoid #define replacements in C++ mode.
29444         * lib/locale.in.h: Include c++defs.h.
29445         (duplocale): In C++, define a namespaced alias symbol.
29446         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
29447         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
29448         * modules/locale (Depends-on): Add c++defs.
29449         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
29450
29451         langinfo: Avoid #define replacements in C++ mode.
29452         * lib/langinfo.in.h: Include c++defs.h.
29453         (nl_langinfo): In C++, define a namespaced alias symbol.
29454         * modules/langinfo (Depends-on): Add c++defs.
29455         (Makefile.am): Update langinfo.h rule.
29456
29457         iconv-h: Avoid #define replacements in C++ mode.
29458         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
29459         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
29460         symbol.
29461         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
29462         whenever iconv is present.
29463         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
29464         (Makefile.am): Update iconv.h rule.
29465
29466         glob: Avoid #define replacements in C++ mode.
29467         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
29468         (_gl_glob_errfunc_fn): New type.
29469         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
29470         symbol.
29471         * modules/glob (Depends-on): Add c++defs, warn-on-use.
29472         (Makefile.am): Update glob.h rule.
29473
29474         fcntl-h: Avoid #define replacements in C++ mode.
29475         * lib/fcntl.in.h: Include c++defs.h.
29476         (fcntl, open, openat): In C++, define a namespaced alias symbol.
29477         * modules/fcntl-h (Depends-on): Add c++defs.
29478         (Makefile.am): Update fcntl.h rule.
29479
29480         dirent: Avoid #define replacements in C++ mode.
29481         * lib/dirent.in.h: Include c++defs.h.
29482         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
29483         namespaced alias symbol.
29484         (dirfd): Update declaration.
29485         * modules/dirent (Depends-on): Add c++defs.
29486         (Makefile.am): Update dirent.h rule.
29487
29488         ctype: Make it usable in C++ code.
29489         * lib/ctype.in.h: Include c++defs.h.
29490         (isblank): Declare as extern "C".
29491         * modules/ctype (Depends-on): Add c++defs.
29492         (Makefile.am): Update ctype.h rule.
29493
29494         New module 'c++defs'.
29495         * modules/c++defs: New file.
29496         * build-aux/c++defs.h: New file.
29497         Reported by John W. Eaton <jwe@gnu.org>.
29498
29499 2010-03-07  Bruno Haible  <bruno@clisp.org>
29500
29501         logb: Provide missing declaration for Cygwin.
29502         * lib/math.in.h (logb): New declaration.
29503         * m4/logb.m4: New file.
29504         * modules/logb (Files): Add m4/logb.m4.
29505         (Depends-on): Add math.
29506         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
29507         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
29508         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
29509         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
29510         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
29511
29512 2010-03-07  Bruno Haible  <bruno@clisp.org>
29513
29514         Fix test-cond link error.
29515         * tests/test-cond.c: Include <stdio.h>.
29516
29517 2010-03-07  Bruno Haible  <bruno@clisp.org>
29518
29519         Fix test-dirent-safer link error.
29520         * modules/dirent-safer-tests (Makefile.am): Define
29521         test_dirent_safer_LDADD.
29522
29523 2010-03-07  Bruno Haible  <bruno@clisp.org>
29524
29525         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
29526         among default module list.
29527
29528 2010-03-07  Bruno Haible  <bruno@clisp.org>
29529
29530         Fix link error on platforms with GNU libiconv.
29531         * modules/unistr/u8-strcoll-tests (Makefile): Define
29532         test_u8_strcoll_LDADD.
29533         * modules/unistr/u16-strcoll-tests (Makefile): Define
29534         test_u16_strcoll_LDADD.
29535         * modules/unistr/u32-strcoll-tests (Makefile): Define
29536         test_u32_strcoll_LDADD.
29537
29538 2010-03-07  Bruno Haible  <bruno@clisp.org>
29539
29540         Use POSIX declarations for socket functions.
29541         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
29542         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
29543         rpl_sendto): Change declaration to match POSIX.
29544         * lib/connect.c (rpl_connect): Likewise.
29545         * lib/accept.c (rpl_accept): Likewise.
29546         * lib/bind.c (rpl_bind): Likewise.
29547         * lib/getpeername.c (rpl_getpeername): Likewise.
29548         * lib/getsockname.c (rpl_getsockname): Likewise.
29549         * lib/recv.c (rpl_recv): Likewise.
29550         * lib/send.c (rpl_send): Likewise.
29551         * lib/recvfrom.c (rpl_recvfrom): Likewise.
29552         * lib/sendto.c (rpl_sendto): Likewise.
29553
29554 2010-03-06  Bruno Haible  <bruno@clisp.org>
29555
29556         Clarify access, euidaccess, faccessat.
29557         * doc/posix-functions/faccessat.texi: Mention security problem under
29558         "Other problems", not "Portability problems".
29559         * doc/posix-functions/access.texi: Likewise. Mention a related security
29560         problem.
29561         * doc/glibc-functions/euidaccess.texi: Mention security problems.
29562         * lib/euidaccess.c: Add comments about platforms.
29563         * lib/unistd.in.h (access, euidaccess): Add warnings.
29564
29565 2010-03-07  Bruno Haible  <bruno@clisp.org>
29566
29567         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
29568         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
29569         (POSIX_SPAWN_SETSCHEDULER): Likewise.
29570         (POSIX_SPAWN_USEVFORK): Define in a way that works when
29571         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
29572         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
29573         declare when POSIX_SPAWN_SETSCHEDULER is zero.
29574         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
29575         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
29576         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
29577         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
29578         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
29579         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
29580         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
29581         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
29582         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
29583         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
29584         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
29585         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
29586         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
29587         Likewise.
29588         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
29589         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
29590         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
29591         Likewise.
29592         * tests/test-spawn.c (main): Make it work when
29593         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
29594
29595 2010-03-07  Bruno Haible  <bruno@clisp.org>
29596
29597         Fix incorrect Makefile.am generation in German locale.
29598         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29599         Execute sed command with character range in C locale.
29600
29601 2010-03-06  Bruno Haible  <bruno@clisp.org>
29602
29603         Tests for module 'iconv-h'.
29604         * modules/iconv-h-tests: New file.
29605         * tests/test-iconv-h.c: New file.
29606
29607         New module 'iconv-h'.
29608         * modules/iconv-h: New file.
29609         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
29610         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
29611         (configure.ac): Remove gl_ICONV_H.
29612         (Makefile.am): Remove rule for iconv.h.
29613
29614 2010-03-06  Bruno Haible  <bruno@clisp.org>
29615
29616         More consistent naming of *.m4 files.
29617         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
29618         * modules/wctype (Files): Update.
29619
29620         More consistent naming of *.m4 files.
29621         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
29622         * modules/wchar (Files): Update.
29623
29624 2010-03-06  Jim Meyering  <meyering@redhat.com>
29625
29626         euidaccess: relax license to LGPLv2+
29627         * modules/euidaccess (License): Relax to LGPLv2+.
29628
29629 2010-03-06  Bruno Haible  <bruno@clisp.org>
29630
29631         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
29632         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
29633         (Makefile.am): Augment lib_SOURCES instead.
29634
29635 2010-03-04  Jim Meyering  <meyering@redhat.com>
29636
29637         utime: remove obsolete module
29638         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
29639         unnecessary for years, and has been marked as obsolete for 10 months.
29640         * modules/utime: Remove file.
29641         * lib/utime.c: Remove file.
29642         * m4/utime.m4: Remove file.
29643         * m4/utimes-null.m4: Remove file.
29644         * doc/posix-functions/utime.texi (utime): Remove reference to
29645         the module.  Move the sole "fixed by gnulib" item into the
29646         "problems not fixed by Gnulib" list.
29647         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
29648
29649 2010-03-05  Simon Josefsson  <simon@josefsson.org>
29650
29651         * modules/exit (License): Relax license to LGPLv2+.
29652         (Status): Mark as obsolete.
29653         * NEWS: Mention deprecated 'exit' module.
29654         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
29655         of now obsolete 'exit'.
29656
29657 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29658
29659         fts-lgpl: remove unused module
29660         * modules/fts-lgpl: Remove.
29661         * MODULES.html.sh (func_all_modules): Adjust.
29662         * check-module (find_included_lib_files): Adjust.
29663         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
29664
29665 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
29666
29667         copy-acl: enhance Solaris ACL error handling
29668         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
29669         * lib/set-mode-acl.c (qset_acl): Likewise.
29670
29671 2010-03-02  Bruno Haible  <bruno@clisp.org>
29672
29673         spawn: Don't override the system defined values on FreeBSD 8.
29674         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
29675         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
29676         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
29677         if HAVE_POSIX_SPAWN is 1.
29678         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
29679
29680 2010-03-01  Bruno Haible  <bruno@clisp.org>
29681
29682         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
29683         regarding Automake.
29684
29685 2010-02-25  Bruno Haible  <bruno@clisp.org>
29686
29687         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
29688         * gnulib-tool: Define 'echo' as a function only before the ksh alias
29689         setting, not afterwards.
29690         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
29691
29692 2010-02-24  Eric Blake  <eblake@redhat.com>
29693
29694         bootstrap, git-version-gen: use timestamp
29695         * build-aux/git-version-gen (scriptversion): Force UTC.
29696         * build-aux/bootstrap (scriptversion): New variable.
29697
29698         bootstrap: allow older git
29699         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
29700         older than 1.6.4.  Requested by the libvirt project.
29701
29702 2010-02-23  Eric Blake  <eblake@redhat.com>
29703
29704         warn-on-use: work with old autoconf
29705         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
29706         AS_VAR semantics of autoconf 2.60.
29707         Reported by Bruno Haible.
29708
29709         bootstrap: improve some comments
29710         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
29711         clarification comments.
29712
29713         gettimeofday: provide correct function
29714         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
29715         when replacement is declared, otherwise provide gettimeofday.
29716         Reported by Michael Goffioul.
29717
29718 2010-02-23  Jim Meyering  <meyering@redhat.com>
29719
29720         lib-ignore: relax license to "unlimited", not LGPLv2+
29721         * modules/lib-ignore (License): Relax to "unlimited".
29722
29723 2010-02-23  Jim Meyering  <meyering@redhat.com>
29724
29725         lib-ignore: relax license to LGPLv2+
29726         * modules/lib-ignore (License): Relax to LGPLv2+.
29727
29728 2010-02-22  Eric Blake  <eblake@redhat.com>
29729
29730         lseek: avoid bash 3.2 broken pipe bug
29731         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
29732         warning from bash 3.2.
29733         Reported by Ben Pfaff, with analysis from Bruno Haible.
29734
29735         bootstrap: support non-FSF copyright holder
29736         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
29737         bootstrap.conf override of COPYRIGHT_HOLDER.
29738         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
29739
29740         bootstrap: interoperate with gettext 0.14.1
29741         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
29742
29743         bootstrap: allow for alternate submodule location
29744         * build-aux/bootstrap (gnulib_path): New variable; use instead of
29745         hardcoding submodule location.
29746         (gnulib_mk): Allow direct use of Makefile.am.
29747
29748         bootstrap: use GNULIB_SRCDIR to reduce disk usage
29749         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
29750         rather than reconfiguring where the submodule points.
29751
29752         gettimeofday: restore support for platforms that lack function
29753         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
29754         replacement if function is missing.
29755         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
29756         * modules/sys_time (Makefile.am): Substitute it.
29757         * lib/sys_time.in.h (gettimeofday): Check it.
29758         Reported by Michael Goffioul.
29759
29760 2010-02-21  Bruno Haible  <bruno@clisp.org>
29761
29762         * lib/stdio.in.h (obstack_printf): Fix typo.
29763
29764 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
29765
29766         vc-list-files: use bzr ls's -R option
29767         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
29768         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
29769
29770 2010-02-21  Jim Meyering  <meyering@redhat.com>
29771
29772         init.sh: fix EXEEXT shims to work also for names like test-prog
29773         * tests/init.sh: Re-exec a better shell, when needed.
29774         If the current shell lacks support for posix $(...), an init.sh-using
29775         test will now try to find a shell that supports that.  If EXEEXT is
29776         nonempty, we also require support for hyphen-in-alias-name and shell
29777         substitutions like ${var#glob}.  Failure to find such a shell results
29778         in a skipped test.
29779
29780 2010-02-21  Bruno Haible  <bruno@clisp.org>
29781
29782         Really work around around "broken pipe" error message from bash 3.2.
29783         * gnulib-tool (func_reset_sigpipe): Remove function.
29784         (echo): In bash 3.2, define to a function that uses printf.
29785         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
29786
29787 2010-02-20  Bruno Haible  <bruno@clisp.org>
29788
29789         Restore support for automake 1.9.6 with autoconf 2.61.
29790         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
29791         Reported by James Youngman <jay@gnu.org>.
29792
29793 2010-02-20  Bruno Haible  <bruno@clisp.org>
29794
29795         Improve *printf warning condition.
29796         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
29797         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
29798         and the function is overridden due to SIGPIPE emulation.
29799
29800 2010-02-20  Bruno Haible  <bruno@clisp.org>
29801
29802         * lib/stdio.in.h: Tweak comments.
29803
29804 2010-02-19  Bruno Haible  <bruno@clisp.org>
29805
29806         Make it easier to find modules. New gnulib-tool option '--find'.
29807         * gnulib-tool: New option --find.
29808         (func_usage): Document it.
29809         (func_sanitize_modulelist): New function, extracted from
29810         func_all_modules.
29811         (func_all_modules): Invoke it.
29812         * doc/gnulib-tool.texi (Which modules?): New node.
29813
29814 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
29815
29816         * lib/sys_select.in.h: Provide select replacement even if
29817         sys/select.h exists on a system, for Interix.
29818
29819 2010-02-18  Jim Meyering  <meyering@redhat.com>
29820
29821         init.sh: don't use $(...) just yet
29822         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
29823         to accommodate e.g., Solaris' /bin/sh.
29824
29825 2010-02-17  Bruno Haible  <bruno@clisp.org>
29826
29827         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
29828         Reported by Ludovic Courtès <ludo@gnu.org>.
29829
29830 2010-02-16  Simon Josefsson  <simon@josefsson.org>
29831
29832         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
29833         linking with -lintl.
29834
29835 2010-02-17  Simon Josefsson  <simon@josefsson.org>
29836
29837         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
29838         if not provided by the system's netdb.h.  Reported by
29839         ludo@gnu.org (Ludovic Courtès).
29840
29841 2010-02-15  Jim Meyering  <meyering@redhat.com>
29842
29843         init.sh: improve portability and efficiency
29844         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
29845         "dummy" in a for loop.
29846         Use '!', not '^' to select the complement of a character set used
29847         in a "case" statement.
29848         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
29849         Suggestions from Eric Blake.
29850
29851         init.sh: automatically accommodate programs with the .exe suffix
29852         Automatically arrange for an invocation of "prog" to execute the
29853         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
29854         may use the simpler "prog", yet still work when built on a system
29855         that requires specifying the added suffix.
29856         Do this by constructing a function named "prog" that invokes
29857         "prog.exe" for each .exe file in selected directories.
29858         * tests/init.sh (find_exe_basenames_): New function.
29859         (create_exe_shim_functions_): New function.
29860         (path_prepend_): Use it.
29861
29862         maint.mk: mark syntax-check sc_*.m rules as .PHONY
29863         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
29864         "make -t syntax-check" doesn't create a ton of sc_*.m files.
29865
29866 2010-02-14  Jim Meyering  <meyering@redhat.com>
29867
29868         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
29869         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
29870         (sc_prohibit_hash_pjw_without_use): New rule.
29871
29872         maint.mk: allow the default upload destination dir to be overridden
29873         * top/maint.mk (upload_dest_dir_): Define with a default that
29874         preserves the status quo.
29875         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
29876         Reported by Peter Simons.
29877
29878         maint.mk: prohibit inclusion of "hash.h" without_use
29879         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
29880
29881 2010-02-10  Jim Meyering  <meyering@redhat.com>
29882
29883         maint.mk: prohibit inclusion of "ignore-value.h" without_use
29884         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
29885
29886 2010-02-09  Eric Blake  <ebb9@byu.net>
29887         and Bruno Haible  <bruno@clisp.org>
29888
29889         obstack-printf-posix: ensure declaration
29890         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
29891         extracted from gl_FUNC_OBSTACK_PRINTF.
29892         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
29893         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
29894         Likewise.
29895         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
29896         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
29897         0.
29898
29899 2010-02-08  Bruno Haible  <bruno@clisp.org>
29900
29901         gnulib-tool: Fix typo in 2010-02-07 commit.
29902         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
29903         Reported by Eric Blake.
29904
29905 2010-02-07  Bruno Haible  <bruno@clisp.org>
29906
29907         gnulib-tool: Fix up caching patches.
29908         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
29909         option --no-cache. Use associative arrays when supported by the shell.
29910         (sed_comments): New variable.
29911         (modcache): Renamed from do_cache.
29912         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
29913         abbreviate unnecessarily.
29914         (have_associative): New variable.
29915         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
29916         way also for ksh and zsh.
29917         (func_init_sed_convert_to_cache_statements): New function, extracted
29918         from func_cache_lookup_module. Add support for associative arrays.
29919         Don't set the c_MODULE_cached variable here. Ignore all lines before
29920         the first field header. Remove only the final newline, not all trailing
29921         newlines. Support empty fields correctly. Limit the use of 'eval' to
29922         assignments.
29923         (func_get_description, func_get_status, func_get_notice,
29924         func_get_applicability, func_get_filelist, func_get_dependencies,
29925         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
29926         func_get_automake_snippet, func_get_include_directive,
29927         func_get_link_directive, func_get_license, func_get_maintainer):
29928         Update documentation. List the unoptimized code first. Add support for
29929         associative arrays. Limit the use of 'eval' to assignments.
29930         (func_get_applicability): Undo stylistic pessimisations.
29931         (func_get_automake_snippet, func_get_include_directive): Reduce code
29932         duplication.
29933         (func_modules_transitive_closure, func_modules_add_dummy,
29934         func_modules_notice, func_modules_to_filelist, func_add_file,
29935         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
29936         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
29937         func_create_testdir, func_create_megatestdir): Update documentation.
29938
29939 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29940
29941         * gnulib-tool (func_cache_lookup_module): Store the module name
29942         belonging to the cache variable; error out if two different
29943         module names map to the same cache variable name.
29944
29945 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29946
29947         gnulib-tool: Make caching optional.
29948         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
29949         Update matching short versions of --no-changelog.
29950         (func_usage): Update.
29951         (sed_extract_cache_prog): Renamed from ...
29952         (sed_extract_prog): ... this; revert to old extraction script.
29953         (func_get_description, func_get_status)
29954         (func_get_notice, func_get_applicability, func_get_filelist)
29955         (func_get_dependencies, func_get_autoconf_early_snippet)
29956         (func_get_autoconf_snippet, func_get_automake_snippet)
29957         (func_get_include_directive, func_get_link_directive)
29958         (func_get_license, func_get_maintainer): If $do_cache is false,
29959         use old, non-caching extraction scripts.
29960         Suggestion by Bruno Haible.
29961
29962 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29963
29964         gnulib-tool: cache module metainformation.
29965         * gnulib-tool (sed_extract_prog): Match newline before each
29966         header, and rewrite header to a shell variable suffix.
29967         (func_cache_var, func_cache_lookup_module): New functions,
29968         to turn a module name into a cache variable prefix, and to
29969         look up and cache module metainformation.
29970         (func_get_description, func_get_status)
29971         (func_get_notice, func_get_applicability, func_get_filelist)
29972         (func_get_dependencies, func_get_autoconf_early_snippet)
29973         (func_get_autoconf_snippet, func_get_automake_snippet)
29974         (func_get_include_directive, func_get_link_directive)
29975         (func_get_license, func_get_maintainer): Use
29976         func_cache_lookup_module.
29977
29978 2010-02-07  Bruno Haible  <bruno@clisp.org>
29979
29980         fnctl: Fix missing dependency.
29981         * modules/fcntl (Depends-on): Add getdtablesize.
29982         Reported by John W. Eaton <jwe@gnu.org>.
29983
29984 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
29985
29986         Argp: fix recognition of short alias options.
29987
29988         * lib/argp-parse.c (convert_options): Fix improper use of
29989         `|' between character values.
29990         * tests/test-argp.c (group1_option): New alias option
29991         --read (-r).
29992         (group1_parser): Special handling for 'r'.
29993         (test15): New test case.
29994         (test_fun): Add test15.
29995         * tests/test-argp-2.sh: Update expected --help and --usage
29996         outputs.
29997
29998 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
29999
30000         * tests/test-argp.c: Fix indentation.
30001
30002 2010-02-04  Eric Blake  <ebb9@byu.net>
30003
30004         gettimeofday: expose type of second argument
30005         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
30006         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
30007         * tests/test-gettimeofday.c: Use it to silence warning.
30008         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
30009         the issue.
30010
30011 2010-02-03  Jim Meyering  <meyering@redhat.com>
30012
30013         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
30014         * lib/regcomp.c (TYPE_SIGNED): Define.
30015         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
30016
30017         regcomp.c: avoid a new -Wshadow warning
30018         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
30019
30020 2010-02-01  Jim Meyering  <meyering@redhat.com>
30021
30022         removing useless parentheses in cpp #define directives
30023         For motivation, see commit c0221df4, "define STREQ(a,b)
30024         consistently, removing useless parentheses"
30025         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
30026         * lib/mountlist.c (MNT_IGNORE): Likewise.
30027         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
30028
30029 2010-02-01  Eric Blake  <ebb9@byu.net>
30030
30031         sys_time: use link-warning
30032         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
30033         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
30034         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
30035         * modules/sys_time (Depends-on): Add warn-on-use.
30036         (Makefile.am): Always build replacement.
30037         (configure.ac): Update substitutions.
30038         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
30039         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
30040         bother with SYS_TIME_H.
30041         * modules/gettimeofday (configure.ac): Declare indicator.
30042         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
30043         in use.
30044
30045         closein-tests: silence compiler warning
30046         * tests/test-closein.c (main): Ignore fread result.
30047         * modules/closein-tests (Depends-on): Add ignore-value.
30048
30049         tests: silence warning about system return
30050         * tests/test-areadlink-with-size.c (main): Ignore system result.
30051         * tests/test-areadlink.c (main): Likewise.
30052         * tests/test-areadlinkat-with-size.c (main): Likewise.
30053         * tests/test-areadlinkat.c (main): Likewise.
30054         * tests/test-canonicalize-lgpl.c (main): Likewise.
30055         * tests/test-canonicalize.c (main): Likewise.
30056         * tests/test-chown.c (main): Likewise.
30057         * tests/test-fchownat.c (main): Likewise.
30058         * tests/test-fdutimensat.c (main): Likewise.
30059         * tests/test-fstatat.c (main): Likewise.
30060         * tests/test-futimens.c (main): Likewise.
30061         * tests/test-lchown.c (main): Likewise.
30062         * tests/test-link.c (main): Likewise.
30063         * tests/test-linkat.c (main): Likewise.
30064         * tests/test-lstat.c (main): Likewise.
30065         * tests/test-mkdir.c (main): Likewise.
30066         * tests/test-mkdirat.c (main): Likewise.
30067         * tests/test-mkfifo.c (main): Likewise.
30068         * tests/test-mkfifoat.c (main): Likewise.
30069         * tests/test-mknod.c (main): Likewise.
30070         * tests/test-readlink.c (main): Likewise.
30071         * tests/test-remove.c (main): Likewise.
30072         * tests/test-rename.c (main): Likewise.
30073         * tests/test-renameat.c (main): Likewise.
30074         * tests/test-rmdir.c (main): Likewise.
30075         * tests/test-symlink.c (main): Likewise.
30076         * tests/test-symlinkat.c (main): Likewise.
30077         * tests/test-unlink.c (main): Likewise.
30078         * tests/test-unlinkat.c (main): Likewise.
30079         * tests/test-utimens.c (main): Likewise.
30080         * tests/test-utimensat.c (main): Likewise.
30081         * modules/areadlink-tests (Depends-on): Add ignore-value.
30082         * modules/areadlink-with-size-tests (Depends-on): Likewise.
30083         * modules/areadlinkat-tests (Depends-on): Likewise.
30084         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
30085         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
30086         * modules/canonicalize-tests (Depends-on): Likewise.
30087         * modules/chown-tests (Depends-on): Likewise.
30088         * modules/fdutimensat-tests (Depends-on): Likewise.
30089         * modules/futimens-tests (Depends-on): Likewise.
30090         * modules/lchown-tests (Depends-on): Likewise.
30091         * modules/link-tests (Depends-on): Likewise.
30092         * modules/linkat-tests (Depends-on): Likewise.
30093         * modules/lstat-tests (Depends-on): Likewise.
30094         * modules/mkdir-tests (Depends-on): Likewise.
30095         * modules/mkfifo-tests (Depends-on): Likewise.
30096         * modules/mkfifoat-tests (Depends-on): Likewise.
30097         * modules/mknod-tests (Depends-on): Likewise.
30098         * modules/openat-tests (Depends-on): Likewise.
30099         * modules/readlink-tests (Depends-on): Likewise.
30100         * modules/remove-tests (Depends-on): Likewise.
30101         * modules/rename-tests (Depends-on): Likewise.
30102         * modules/renameat-tests (Depends-on): Likewise.
30103         * modules/rmdir-tests (Depends-on): Likewise.
30104         * modules/symlink-tests (Depends-on): Likewise.
30105         * modules/symlinkat-tests (Depends-on): Likewise.
30106         * modules/unlink-tests (Depends-on): Likewise.
30107         * modules/utimens-tests (Depends-on): Likewise.
30108         * modules/utimensat-tests (Depends-on): Likewise.
30109
30110 2010-01-31  Bruno Haible  <bruno@clisp.org>
30111
30112         Perform the same test for many <math.h> functions.
30113         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
30114         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
30115         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
30116         of gl_MATHFUNC.
30117         * modules/acos (configure.ac): Likewise.
30118         * modules/asin (configure.ac): Likewise.
30119         * modules/atan (configure.ac): Likewise.
30120         * modules/atan2 (configure.ac): Likewise.
30121         * modules/cbrt (configure.ac): Likewise.
30122         * modules/copysign (configure.ac): Likewise.
30123         * modules/cos (configure.ac): Likewise.
30124         * modules/cosh (configure.ac): Likewise.
30125         * modules/erf (configure.ac): Likewise.
30126         * modules/erfc (configure.ac): Likewise.
30127         * modules/exp (configure.ac): Likewise.
30128         * modules/fmod (configure.ac): Likewise.
30129         * modules/hypot (configure.ac): Likewise.
30130         * modules/j0 (configure.ac): Likewise.
30131         * modules/j1 (configure.ac): Likewise.
30132         * modules/jn (configure.ac): Likewise.
30133         * modules/lgamma (configure.ac): Likewise.
30134         * modules/log (configure.ac): Likewise.
30135         * modules/log10 (configure.ac): Likewise.
30136         * modules/log1p (configure.ac): Likewise.
30137         * modules/pow (configure.ac): Likewise.
30138         * modules/remainder (configure.ac): Likewise.
30139         * modules/sin (configure.ac): Likewise.
30140         * modules/sinh (configure.ac): Likewise.
30141         * modules/tan (configure.ac): Likewise.
30142         * modules/tanh (configure.ac): Likewise.
30143         * modules/y0 (configure.ac): Likewise.
30144         * modules/y1 (configure.ac): Likewise.
30145         * modules/yn (configure.ac): Likewise.
30146         Suggested by Paolo Bonzini.
30147
30148 2010-01-31  Bruno Haible  <bruno@clisp.org>
30149
30150         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
30151
30152 2010-01-31  Bruno Haible  <bruno@clisp.org>
30153
30154         Work around getdelim() bug on FreeBSD 8.0.
30155         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
30156         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
30157         not work.
30158         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
30159         is 1.
30160         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
30161         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
30162         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
30163         a non-zero size.
30164         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
30165
30166 2010-01-31  Bruno Haible  <bruno@clisp.org>
30167
30168         Work around getline() bug on FreeBSD 8.0.
30169         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
30170         and a non-zero size.
30171         * tests/test-getline.c (main): Likewise.
30172         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
30173         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
30174
30175 2010-01-28  Eric Blake  <ebb9@byu.net>
30176
30177         regex: fix build failure
30178         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
30179         platforms.
30180
30181 2010-01-28  Jim Meyering  <meyering@redhat.com>
30182
30183         regex: do not ignore memory allocation failure
30184         * lib/regex_internal.c (create_cd_newstate): Detect
30185         re_node_set_init_copy failure.   Extracted from glibc commit
30186         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
30187
30188         regex: sync more white-space changes from libc
30189         * lib/regex_internal.c: White-space only changes.
30190         * lib/regexec.c: Likewise.
30191
30192         regex: add many uses of __attribute_warn_unused_result__
30193         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
30194         * lib/regexec.c: Likewise.
30195         Extracted from a messy glibc commit.
30196
30197         regcomp.c: spelling and merge-artifact from glibc
30198         * lib/regcomp.c: Merge remainder of glibc's
30199         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
30200
30201         regcomp.c: sync white-space changes from glibc
30202         * lib/regcomp.c: Merge to accommodate white space
30203         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
30204
30205         regcomp.c: do not ignore internal return values
30206         * lib/regcomp.c: Do not ignore internal return values.
30207         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
30208         but without its white-space changes and spelling fixes.
30209
30210         regex_internal.h: define __attribute_warn_unused_result__
30211         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
30212
30213         maint: add a syntax-check rule to check for vulnerable Makefile.in
30214         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
30215
30216 2010-01-27  Jim Meyering  <meyering@redhat.com>
30217
30218         ncftpput-ftp: clean up spaces
30219         * build-aux/ncftpput-ftp: Make Copyright line consistent.
30220         Remove trailing blanks.
30221
30222 2010-01-27  Simon Josefsson  <simon@josefsson.org>
30223
30224         * build-aux/git-version-gen: Fix copyright statement.
30225         * build-aux/gnupload: Likewise.
30226         * tests/test-arcfour.c: Likewise.
30227         * tests/test-arctwo.c: Likewise.
30228         * tests/test-count-one-bits.c: Likewise.
30229         * tests/test-crc.c: Likewise.
30230         * tests/test-des.c: Likewise.
30231         * tests/test-gc-arcfour.c: Likewise.
30232         * tests/test-gc-arctwo.c: Likewise.
30233         * tests/test-gc-des.c: Likewise.
30234         * tests/test-gc-hmac-md5.c: Likewise.
30235         * tests/test-gc-hmac-sha1.c: Likewise.
30236         * tests/test-gc-md2.c: Likewise.
30237         * tests/test-gc-md4.c: Likewise.
30238         * tests/test-gc-md5.c: Likewise.
30239         * tests/test-gc-pbkdf2-sha1.c: Likewise.
30240         * tests/test-gc-rijndael.c: Likewise.
30241         * tests/test-gc-sha1.c: Likewise.
30242         * tests/test-gc.c: Likewise.
30243         * tests/test-gethostname.c: Likewise.
30244         * tests/test-gettimeofday.c: Likewise.
30245         * tests/test-hash.c: Likewise.
30246         * tests/test-hmac-md5.c: Likewise.
30247         * tests/test-hmac-sha1.c: Likewise.
30248         * tests/test-md2.c: Likewise.
30249         * tests/test-md4.c: Likewise.
30250         * tests/test-md5.c: Likewise.
30251         * tests/test-memchr.c: Likewise.
30252         * tests/test-memchr2.c: Likewise.
30253         * tests/test-memcmp.c: Likewise.
30254         * tests/test-memmem.c: Likewise.
30255         * tests/test-memrchr.c: Likewise.
30256         * tests/test-rawmemchr.c: Likewise.
30257         * tests/test-read-file.c: Likewise.
30258         * tests/test-rijndael.c: Likewise.
30259         * tests/test-sockets.c: Likewise.
30260         * tests/test-strchrnul.c: Likewise.
30261         * tests/test-strstr.c: Likewise.
30262         * tests/test-strtod.c: Likewise.
30263         * build-aux/ncftpput-ftp: Likewise.
30264
30265 2010-01-26  Eric Blake  <ebb9@byu.net>
30266
30267         ignore-value: update recommended header name
30268         * modules/ignore-value (Include): Only use <> for headers that
30269         exist in glibc.
30270
30271 2010-01-26  Jim Meyering  <meyering@redhat.com>
30272
30273         test-userspec.c: avoid compiler warnings
30274         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
30275         and "initialization discards qualifiers..." warnings.
30276         Put the first "uid" in its own scope, and make char* members "const".
30277
30278 2010-01-25  Bruno Haible  <bruno@clisp.org>
30279
30280         gnulib-tool: Make warning diagnostics consistent.
30281         * gnulib-tool (func_warning): New function.
30282         Use it everywhere where gnulib-tool produces output to stderr and it is
30283         not a fatal error.
30284
30285 2010-01-25  Bruno Haible  <bruno@clisp.org>
30286
30287         Fix test dependencies.
30288         * modules/xstrtol-tests (Depends-on): Add inttypes.
30289         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
30290
30291 2010-01-25 Pádraig Brady <P@draigBrady.com>
30292
30293         syntax-check: detect incorrect boolean macro values in config.h
30294         * modules/maintainer-makefile (configure.ac): Parameterize the location
30295         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
30296         The logic is from Eric Blake and the location indicated by Jim Meyering.
30297         Note the more natural CONFIG_HEADER name is prohibited by automake
30298         for backwards compatibility reasons.
30299         * top/maint.mk (sc_Wundef_boolean): New rule.
30300
30301 2010-01-25  Jim Meyering  <meyering@redhat.com>
30302
30303         bootstrap: detect MacOS 10.6's shasum, too
30304         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
30305         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
30306
30307 2010-01-23  Jim Meyering  <meyering@redhat.com>
30308
30309         xstrtoll: new module
30310         * modules/xstrtoll: New file.
30311         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
30312         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
30313         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
30314         ./configure fails if you use this module and lack "long long".
30315         * modules/xstrtoll-tests: New module.
30316         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
30317         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
30318         new init.sh-based test framework.
30319
30320 2010-01-24  Bruno Haible  <bruno@clisp.org>
30321
30322         Tests for module 'yn'.
30323         * modules/yn-tests: New file.
30324         * tests/test-yn.c: New file.
30325
30326         Tests for module 'y1'.
30327         * modules/y1-tests: New file.
30328         * tests/test-y1.c: New file.
30329
30330         Tests for module 'y0'.
30331         * modules/y0-tests: New file.
30332         * tests/test-y0.c: New file.
30333
30334         Tests for module 'tanh'.
30335         * modules/tanh-tests: New file.
30336         * tests/test-tanh.c: New file.
30337
30338         Tests for module 'tan'.
30339         * modules/tan-tests: New file.
30340         * tests/test-tan.c: New file.
30341
30342         Tests for module 'sqrt'.
30343         * modules/sqrt-tests: New file.
30344         * tests/test-sqrt.c: New file.
30345
30346         Tests for module 'sinh'.
30347         * modules/sinh-tests: New file.
30348         * tests/test-sinh.c: New file.
30349
30350         Tests for module 'sin'.
30351         * modules/sin-tests: New file.
30352         * tests/test-sin.c: New file.
30353
30354         Tests for module 'rint'.
30355         * modules/rint-tests: New file.
30356         * tests/test-rint.c: New file.
30357
30358         Tests for module 'remainder'.
30359         * modules/remainder-tests: New file.
30360         * tests/test-remainder.c: New file.
30361
30362         Tests for module 'pow'.
30363         * modules/pow-tests: New file.
30364         * tests/test-pow.c: New file.
30365
30366         Tests for module 'nextafter'.
30367         * modules/nextafter-tests: New file.
30368         * tests/test-nextafter.c: New file.
30369
30370         Tests for module 'modf'.
30371         * modules/modf-tests: New file.
30372         * tests/test-modf.c: New file.
30373
30374         Tests for module 'logb'.
30375         * modules/logb-tests: New file.
30376         * tests/test-logb.c: New file.
30377
30378         Tests for module 'log1p'.
30379         * modules/log1p-tests: New file.
30380         * tests/test-log1p.c: New file.
30381
30382         Tests for module 'log10'.
30383         * modules/log10-tests: New file.
30384         * tests/test-log10.c: New file.
30385
30386         Tests for module 'log'.
30387         * modules/log-tests: New file.
30388         * tests/test-log.c: New file.
30389
30390         Tests for module 'lgamma'.
30391         * modules/lgamma-tests: New file.
30392         * tests/test-lgamma.c: New file.
30393
30394         Tests for module 'ldexp'.
30395         * modules/ldexp-tests: New file.
30396         * tests/test-ldexp.c: New file.
30397
30398         Tests for module 'jn'.
30399         * modules/jn-tests: New file.
30400         * tests/test-jn.c: New file.
30401
30402         Tests for module 'j1'.
30403         * modules/j1-tests: New file.
30404         * tests/test-j1.c: New file.
30405
30406         Tests for module 'j0'.
30407         * modules/j0-tests: New file.
30408         * tests/test-j0.c: New file.
30409
30410         Tests for module 'hypot'.
30411         * modules/hypot-tests: New file.
30412         * tests/test-hypot.c: New file.
30413
30414         Tests for module 'fmod'.
30415         * modules/fmod-tests: New file.
30416         * tests/test-fmod.c: New file.
30417
30418         Tests for module 'fabs'.
30419         * modules/fabs-tests: New file.
30420         * tests/test-fabs.c: New file.
30421
30422         Tests for module 'exp'.
30423         * modules/exp-tests: New file.
30424         * tests/test-exp.c: New file.
30425
30426         Tests for module 'erfc'.
30427         * modules/erfc-tests: New file.
30428         * tests/test-erfc.c: New file.
30429
30430         Tests for module 'erf'.
30431         * modules/erf-tests: New file.
30432         * tests/test-erf.c: New file.
30433
30434         Tests for module 'cosh'.
30435         * modules/cosh-tests: New file.
30436         * tests/test-cosh.c: New file.
30437
30438         Tests for module 'cos'.
30439         * modules/cos-tests: New file.
30440         * tests/test-cos.c: New file.
30441
30442         Tests for module 'copysign'.
30443         * modules/copysign-tests: New file.
30444         * tests/test-copysign.c: New file.
30445
30446         Tests for module 'cbrt'.
30447         * modules/cbrt-tests: New file.
30448         * tests/test-cbrt.c: New file.
30449
30450         Tests for module 'atan2'.
30451         * modules/atan2-tests: New file.
30452         * tests/test-atan2.c: New file.
30453
30454         Tests for module 'atan'.
30455         * modules/atan-tests: New file.
30456         * tests/test-atan.c: New file.
30457
30458         Tests for module 'asin'.
30459         * modules/asin-tests: New file.
30460         * tests/test-asin.c: New file.
30461
30462         Tests for module 'acos'.
30463         * modules/acos-tests: New file.
30464         * tests/test-acos.c: New file.
30465
30466 2010-01-24  Bruno Haible  <bruno@clisp.org>
30467
30468         Fix tests for common <math.h> functions.
30469         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
30470         code snippet that references the function pointer, rather than merely
30471         calling the function. Substitute the FUNC_LIBM variable.
30472         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
30473         * modules/acos (configure.ac): Likewise.
30474         * modules/asin (configure.ac): Likewise.
30475         * modules/atan (configure.ac): Likewise.
30476         * modules/atan2 (configure.ac): Likewise.
30477         * modules/cbrt (configure.ac): Likewise.
30478         * modules/copysign (configure.ac): Likewise.
30479         * modules/cos (configure.ac): Likewise.
30480         * modules/cosh (configure.ac): Likewise.
30481         * modules/erf (configure.ac): Likewise.
30482         * modules/erfc (configure.ac): Likewise.
30483         * modules/exp (configure.ac): Likewise.
30484         * modules/fabs (configure.ac): Likewise.
30485         * modules/fmod (configure.ac): Likewise.
30486         * modules/hypot (configure.ac): Likewise.
30487         * modules/j0 (configure.ac): Likewise.
30488         * modules/j1 (configure.ac): Likewise.
30489         * modules/jn (configure.ac): Likewise.
30490         * modules/ldexp (configure.ac): Likewise.
30491         * modules/lgamma (configure.ac): Likewise.
30492         * modules/log (configure.ac): Likewise.
30493         * modules/log10 (configure.ac): Likewise.
30494         * modules/log1p (configure.ac): Likewise.
30495         * modules/logb (configure.ac): Likewise.
30496         * modules/modf (configure.ac): Likewise.
30497         * modules/nextafter (configure.ac): Likewise.
30498         * modules/pow (configure.ac): Likewise.
30499         * modules/remainder (configure.ac): Likewise.
30500         * modules/rint (configure.ac): Likewise.
30501         * modules/sin (configure.ac): Likewise.
30502         * modules/sinh (configure.ac): Likewise.
30503         * modules/tan (configure.ac): Likewise.
30504         * modules/tanh (configure.ac): Likewise.
30505         * modules/y0 (configure.ac): Likewise.
30506         * modules/y1 (configure.ac): Likewise.
30507         * modules/yn (configure.ac): Likewise.
30508
30509 2010-01-24  Bruno Haible  <bruno@clisp.org>
30510
30511         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
30512         * tests/test-acosl.c (x): New variable.
30513         (main): Store argument in x and fetch it from x.
30514         * tests/test-asinl.c (x): New variable.
30515         (main): Store argument in x and fetch it from x.
30516         * tests/test-atanl.c (x): New variable.
30517         (main): Store argument in x and fetch it from x.
30518         * tests/test-cosl.c (x): New variable.
30519         (main): Store argument in x and fetch it from x.
30520         * tests/test-expl.c (x): New variable.
30521         (main): Store argument in x and fetch it from x.
30522         * tests/test-logl.c (x): New variable.
30523         (main): Store argument in x and fetch it from x.
30524         * tests/test-sinl.c (x): New variable.
30525         (main): Store argument in x and fetch it from x.
30526         * tests/test-sqrtl.c (x): New variable.
30527         (main): Store argument in x and fetch it from x.
30528         * tests/test-tanl.c (x): New variable.
30529         (main): Store argument in x and fetch it from x.
30530
30531 2010-01-24  Bruno Haible  <bruno@clisp.org>
30532
30533         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
30534         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
30535         assignments to the initial TESTS_ENVIRONMENT.
30536         * doc/gnulib.texi (Unit test modules): Document it.
30537         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
30538         TESTS_ENVIRONMENT.
30539         * modules/btowc-tests (Makefile.am): Likewise.
30540         * modules/c-stack-tests (Makefile.am): Likewise.
30541         * modules/c-strcase-tests (Makefile.am): Likewise.
30542         * modules/copy-file-tests (Makefile.am): Likewise.
30543         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
30544         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
30545         * modules/mbrtowc-tests (Makefile.am): Likewise.
30546         * modules/mbscasecmp-tests (Makefile.am): Likewise.
30547         * modules/mbscasestr-tests (Makefile.am): Likewise.
30548         * modules/mbschr-tests (Makefile.am): Likewise.
30549         * modules/mbscspn-tests (Makefile.am): Likewise.
30550         * modules/mbsinit-tests (Makefile.am): Likewise.
30551         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
30552         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
30553         * modules/mbspbrk-tests (Makefile.am): Likewise.
30554         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
30555         * modules/mbsrchr-tests (Makefile.am): Likewise.
30556         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
30557         * modules/mbsspn-tests (Makefile.am): Likewise.
30558         * modules/mbsstr-tests (Makefile.am): Likewise.
30559         * modules/nl_langinfo-tests (Makefile.am): Likewise.
30560         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
30561         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
30562         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
30563         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
30564         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
30565         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
30566         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
30567         * modules/wcrtomb-tests (Makefile.am): Likewise.
30568         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
30569         * modules/wcsrtombs-tests (Makefile.am): Likewise.
30570         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
30571         assignments from TESTS_ENVIRONMENT.
30572         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
30573         augmentation.
30574         * modules/argp-version-etc-tests (Makefile.am): Likewise.
30575         * modules/atexit-tests (Makefile.am): Likewise.
30576         * modules/binary-io-tests (Makefile.am): Likewise.
30577         * modules/closein-tests (Makefile.am): Likewise.
30578         * modules/dprintf-posix-tests (Makefile.am): Likewise.
30579         * modules/exclude-tests (Makefile.am): Likewise.
30580         * modules/fflush-tests (Makefile.am): Likewise.
30581         * modules/fpending-tests (Makefile.am): Likewise.
30582         * modules/fprintf-posix-tests (Makefile.am): Likewise.
30583         * modules/freadahead-tests (Makefile.am): Likewise.
30584         * modules/freadptr-tests (Makefile.am): Likewise.
30585         * modules/freadseek-tests (Makefile.am): Likewise.
30586         * modules/fseek-tests (Makefile.am): Likewise.
30587         * modules/fseeko-tests (Makefile.am): Likewise.
30588         * modules/ftell-tests (Makefile.am): Likewise.
30589         * modules/ftello-tests (Makefile.am): Likewise.
30590         * modules/idpriv-drop-tests (Makefile.am): Likewise.
30591         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
30592         * modules/lseek-tests (Makefile.am): Likewise.
30593         * modules/parse-duration-tests (Makefile.am): Likewise.
30594         * modules/perror-tests (Makefile.am): Likewise.
30595         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
30596         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
30597         * modules/pipe-tests (Makefile.am): Likewise.
30598         * modules/pread-tests (Makefile.am): Likewise.
30599         * modules/printf-posix-tests (Makefile.am): Likewise.
30600         * modules/select-tests (Makefile.am): Likewise.
30601         * modules/sigpipe-tests (Makefile.am): Likewise.
30602         * modules/tsearch-tests (Makefile.am): Likewise.
30603         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
30604         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
30605         * modules/uniname/uniname-tests (Makefile.am): Likewise.
30606         * modules/uniwidth/width-tests (Makefile.am): Likewise.
30607         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
30608         * modules/version-etc-tests (Makefile.am): Likewise.
30609         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
30610         * modules/vprintf-posix-tests (Makefile.am): Likewise.
30611         * modules/xalloc-die-tests (Makefile.am): Likewise.
30612         * modules/xprintf-posix-tests (Makefile.am): Likewise.
30613         * modules/xstrtoimax-tests (Makefile.am): Likewise.
30614         * modules/xstrtol-tests (Makefile.am): Likewise.
30615         * modules/xstrtoumax-tests (Makefile.am): Likewise.
30616         * modules/yesno-tests (Makefile.am): Likewise.
30617         Suggested by Jim Meyering.
30618
30619 2010-01-24  Bruno Haible  <bruno@clisp.org>
30620
30621         More documentation.
30622         * doc/gnulib.texi (Writing modules): New chapter.
30623         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
30624         the new chapter.
30625
30626 2010-01-24  Jim Meyering  <meyering@redhat.com>
30627
30628         maint.mk: do not prepend "./" after filtering
30629         * top/maint.mk (_prepend_srcdir_prefix): New variable
30630         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
30631         "./" when $(srcdir) is ".".
30632
30633         define STREQ(a,b) consistently, removing useless parentheses
30634         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
30635         since the only risk is that "a" or "b" contains an unparenthesized
30636         comma, but if either did that, STREQ would have 3 or more arguments.
30637         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
30638         * lib/fts.c (STREQ): Remove unnecessary parentheses.
30639         * lib/hash-triple.c (STREQ): Likewise.
30640         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
30641         * lib/getugroups.c (STREQ): Likewise.
30642
30643 2010-01-23  Jim Meyering  <meyering@redhat.com>
30644
30645         maint.mk: fix syntax-check in a non-srcdir build directory
30646         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
30647         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
30648
30649 2010-01-22  Jim Meyering  <meyering@redhat.com>
30650
30651         userspec: add unit tests
30652         * tests/test-userspec.c: New file.
30653         * modules/userspec-tests: Likewise.
30654
30655 2010-01-21  Jim Meyering  <meyering@redhat.com>
30656
30657         maint.mk: handle source file names containing "." robustly
30658         * top/maint.mk (_dot_escaped_srcdir): Define.
30659         (VC_LIST): Use it in LHS of sed substitution.
30660
30661 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
30662
30663         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
30664         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
30665         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
30666         from a non-srcdir build.
30667
30668 2010-01-20  Eric Blake  <ebb9@byu.net>
30669
30670         warn-on-use: use instead of link-warning
30671         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
30672         * modules/unistd (Depends-on, Makefile.am): Likewise.
30673         * modules/arpa_inet (Depends-on): Replace link-warning with
30674         warn-on-use.
30675         (Makefile.am): Update rules accordingly.
30676         * modules/ctype (Depends-on, Makefile.am): Likewise.
30677         * modules/dirent (Depends-on, Makefile.am): Likewise.
30678         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
30679         * modules/inttypes (Depends-on, Makefile.am): Likewise.
30680         * modules/langinfo (Depends-on, Makefile.am): Likewise.
30681         * modules/locale (Depends-on, Makefile.am): Likewise.
30682         * modules/math (Depends-on, Makefile.am): Likewise.
30683         * modules/search (Depends-on, Makefile.am): Likewise.
30684         * modules/signal (Depends-on, Makefile.am): Likewise.
30685         * modules/spawn (Depends-on, Makefile.am): Likewise.
30686         * modules/stdlib (Depends-on, Makefile.am): Likewise.
30687         * modules/string (Depends-on, Makefile.am): Likewise.
30688         * modules/strings (Depends-on, Makefile.am): Likewise.
30689         * modules/sys_file (Depends-on, Makefile.am): Likewise.
30690         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
30691         * modules/sys_select (Depends-on, Makefile.am): Likewise.
30692         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
30693         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
30694         * modules/sys_times (Depends-on, Makefile.am): Likewise.
30695         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
30696         * modules/wchar (Depends-on, Makefile.am): Likewise.
30697         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
30698         should be poisoned.
30699         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
30700         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
30701         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
30702         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30703         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
30704         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
30705         * m4/math_h.m4 (gl_MATH_H): Likewise.
30706         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
30707         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
30708         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
30709         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
30710         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
30711         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
30712         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
30713         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
30714         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
30715         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30716         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
30717         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
30718         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30719         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
30720         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
30721         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
30722         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
30723         GL_LINK_WARNING.
30724         * lib/ctype.in.h: Likewise.
30725         * lib/dirent.in.h: Likewise.
30726         * lib/fcntl.in.h: Likewise.
30727         * lib/inttypes.in.h: Likewise.
30728         * lib/langinfo.in.h: Likewise.
30729         * lib/locale.in.h: Likewise.
30730         * lib/math.in.h: Likewise.
30731         * lib/search.in.h: Likewise.
30732         * lib/signal.in.h: Likewise.
30733         * lib/spawn.in.h: Likewise.
30734         * lib/stdio.in.h: Likewise.
30735         * lib/stdlib.in.h: Likewise.
30736         * lib/string.in.h: Likewise.
30737         * lib/strings.in.h: Likewise.
30738         * lib/sys_file.in.h: Likewise.
30739         * lib/sys_ioctl.in.h: Likewise.
30740         * lib/sys_select.in.h: Likewise.
30741         * lib/sys_socket.in.h: Likewise.
30742         * lib/sys_stat.in.h: Likewise.
30743         * lib/sys_times.in.h: Likewise.
30744         * lib/sys_utsname.in.h: Likewise.
30745         * lib/unistd.in.h: Likewise.
30746         * lib/wchar.in.h: Likewise.
30747
30748 2010-01-20  Bruno Haible  <bruno@clisp.org>
30749
30750         Avoid duplicate -lm.
30751         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
30752         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
30753         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
30754         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
30755         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
30756         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
30757         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
30758         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
30759         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
30760         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
30761         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
30762         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
30763         Reported by Paolo Bonzini.
30764
30765 2010-01-19  Bruno Haible  <bruno@clisp.org>
30766
30767         langinfo, nl_langinfo: Relicense under LGPLv2+.
30768         * modules/langinfo (License): Change to LGPLv2+.
30769         * modules/nl_langinfo (License): Likewise.
30770         Patch by David Lutterkort <lutter@redhat.com>.
30771
30772 2010-01-19  Bruno Haible  <bruno@clisp.org>
30773
30774         Avoid compilation error with cc on OSF/1 5.1.
30775         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
30776         statement, not before.
30777         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30778
30779 2010-01-18  Bruno Haible  <bruno@clisp.org>
30780
30781         Avoid a link error due to the __printf__ symbol.
30782         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
30783         and 2.6.x.
30784         (__format__, __printf__): Remove definitions.
30785         * lib/argp-fmtstream.h: Likewise.
30786         * lib/argp.h: Likewise.
30787         * lib/error.h: Likewise.
30788         * lib/vasnprintf.h: Likewise.
30789         * lib/xprintf.h: Likewise.
30790         * lib/xvasprintf.h: Likewise.
30791         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30792
30793 2010-01-18  Bruno Haible  <bruno@clisp.org>
30794
30795         Tests for module 'tanl'.
30796         * modules/tanl-tests: New file.
30797         * tests/test-tanl.c: New file.
30798
30799         Tests for module 'sqrtl'.
30800         * modules/sqrtl-tests: New file.
30801         * tests/test-sqrtl.c: New file.
30802
30803         Tests for module 'sinl'.
30804         * modules/sinl-tests: New file.
30805         * tests/test-sinl.c: New file.
30806
30807         Tests for module 'logl'.
30808         * modules/logl-tests: New file.
30809         * tests/test-logl.c: New file.
30810
30811         Tests for module 'expl'.
30812         * modules/expl-tests: New file.
30813         * tests/test-expl.c: New file.
30814
30815         Tests for module 'cosl'.
30816         * modules/cosl-tests: New file.
30817         * tests/test-cosl.c: New file.
30818
30819         Tests for module 'atanl'.
30820         * modules/atanl-tests: New file.
30821         * tests/test-atanl.c: New file.
30822
30823         Tests for module 'asinl'.
30824         * modules/asinl-tests: New file.
30825         * tests/test-asinl.c: New file.
30826
30827         Tests for module 'acosl'.
30828         * modules/acosl-tests: New file.
30829         * tests/test-acosl.c: New file.
30830
30831         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
30832         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
30833         tanl): Use the standard gnulib idiom.
30834         * lib/cosl.c: Don't include trigl.c and sincosl.c.
30835         * lib/sinl.c: Likewise.
30836         * lib/tanl.c: Don't include trigl.c.
30837         (kernel_tanl): Make static.
30838         * lib/sincosl.c: Include trigl.h first.
30839         * lib/trigl.c: Likewise.
30840         * m4/acosl.m4: New file.
30841         * m4/asinl.m4: New file.
30842         * m4/atanl.m4: New file.
30843         * m4/cosl.m4: New file.
30844         * m4/expl.m4: New file.
30845         * m4/logl.m4: New file.
30846         * m4/sinl.m4: New file.
30847         * m4/sqrtl.m4: New file.
30848         * m4/tanl.m4: New file.
30849         * m4/mathl.m4: Remove file.
30850         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
30851         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
30852         Don't initialize GNULIB_MATHL.
30853         * modules/acosl: New file.
30854         * modules/asinl: New file.
30855         * modules/atanl: New file.
30856         * modules/cosl: New file.
30857         * modules/expl: New file.
30858         * modules/logl: New file.
30859         * modules/sinl: New file.
30860         * modules/sqrtl: New file.
30861         * modules/tanl: New file.
30862         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
30863         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
30864         substitute GNULIB_MATHL.
30865         * modules/mathl: Rewritten.
30866         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
30867         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
30868         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
30869         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
30870         * doc/posix-functions/expl.texi: Mention the 'expl' module.
30871         * doc/posix-functions/logl.texi: Mention the 'logl' module.
30872         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
30873         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
30874         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
30875
30876 2010-01-18  Bruno Haible  <bruno@clisp.org>
30877
30878         sqrt: Make gl_FUNC_SQRT requirable.
30879         * m4/sqrt.m4: New file.
30880         * modules/sqrt (Files): Add it.
30881         (configure.ac): Invoke gl_FUNC_SQRT.
30882
30883 2010-01-18  Bruno Haible  <bruno@clisp.org>
30884
30885         New modules for common <math.h> functions.
30886         * m4/mathfunc.m4: New file.
30887         * modules/acos: New file.
30888         * modules/asin: New file.
30889         * modules/atan: New file.
30890         * modules/atan2: New file.
30891         * modules/cbrt: New file.
30892         * modules/copysign: New file.
30893         * modules/cos: New file.
30894         * modules/cosh: New file.
30895         * modules/erf: New file.
30896         * modules/erfc: New file.
30897         * modules/exp: New file.
30898         * modules/fabs: New file.
30899         * modules/fmod: New file.
30900         * modules/hypot: New file.
30901         * modules/j0: New file.
30902         * modules/j1: New file.
30903         * modules/jn: New file.
30904         * modules/ldexp: New file.
30905         * modules/lgamma: New file.
30906         * modules/log: New file.
30907         * modules/log10: New file.
30908         * modules/log1p: New file.
30909         * modules/logb: New file.
30910         * modules/modf: New file.
30911         * modules/nextafter: New file.
30912         * modules/pow: New file.
30913         * modules/remainder: New file.
30914         * modules/rint: New file.
30915         * modules/sin: New file.
30916         * modules/sinh: New file.
30917         * modules/sqrt: New file.
30918         * modules/tan: New file.
30919         * modules/tanh: New file.
30920         * modules/y0: New file.
30921         * modules/y1: New file.
30922         * modules/yn: New file.
30923         * doc/posix-functions/acos.texi: Mention the 'acos' module.
30924         * doc/posix-functions/asin.texi: Mention the 'asin' module.
30925         * doc/posix-functions/atan.texi: Mention the 'atan' module.
30926         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
30927         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
30928         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
30929         * doc/posix-functions/cos.texi: Mention the 'cos' module.
30930         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
30931         * doc/posix-functions/erf.texi: Mention the 'erf' module.
30932         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
30933         * doc/posix-functions/exp.texi: Mention the 'exp' module.
30934         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
30935         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
30936         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
30937         * doc/posix-functions/j0.texi: Mention the 'j0' module.
30938         * doc/posix-functions/j1.texi: Mention the 'j1' module.
30939         * doc/posix-functions/jn.texi: Mention the 'jn' module.
30940         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
30941         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
30942         * doc/posix-functions/log.texi: Mention the 'log' module.
30943         * doc/posix-functions/log10.texi: Mention the 'log10' module.
30944         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
30945         * doc/posix-functions/logb.texi: Mention the 'logb' module.
30946         * doc/posix-functions/modf.texi: Mention the 'modf' module.
30947         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
30948         * doc/posix-functions/pow.texi: Mention the 'pow' module.
30949         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
30950         * doc/posix-functions/rint.texi: Mention the 'rint' module.
30951         * doc/posix-functions/sin.texi: Mention the 'sin' module.
30952         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
30953         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
30954         * doc/posix-functions/tan.texi: Mention the 'tan' module.
30955         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
30956         * doc/posix-functions/y0.texi: Mention the 'y0' module.
30957         * doc/posix-functions/y1.texi: Mention the 'y1' module.
30958         * doc/posix-functions/yn.texi: Mention the 'yn' module.
30959
30960 2010-01-18  Jim Meyering  <meyering@redhat.com>
30961
30962         ignore-value: relax license to LGPLv2+
30963         * modules/ignore-value (License): Relax to LGPLv2+.
30964
30965         getdate: don't leak when TZ contains two or more '"'s
30966         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
30967         double quote in TZ after the first one.
30968
30969         readtokens: do not leak internal token_lengths buffer
30970         * lib/readtokens.c (readtokens): Free the local, lengths,
30971         when the supplied "token_lengths" parameter is NULL.
30972
30973 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30974
30975         Fix a couple of missing LIBTHREAD link failures on AIX.
30976         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
30977         $(LIBTHREAD).
30978         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
30979
30980         Link test-poll against INET_PTON_LIB.
30981         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
30982         for inet_pton on Solaris 10.
30983
30984 2010-01-17  Bruno Haible  <bruno@clisp.org>
30985
30986         unistdio/*-sprintf: Fix typo in module description.
30987         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
30988         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
30989         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
30990         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
30991         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
30992         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
30993         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
30994         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30995
30996 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30997
30998         gnulib-tool: fix filelist for AIX, HP-UX ksh.
30999         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
31000         variables in shell case patterns, for AIX and HP-UX ksh.
31001
31002         Split large sed scripts, for HP-UX sed.
31003         * modules/stdio: Split sed scripts around 50 sed commands,
31004         to avoid HP-UX limit of 99 commands, in the near future.
31005         * modules/string: Likewise.
31006         * modules/unistd: Likewise.
31007
31008         gnulib-tool: avoid writing in the current directory.
31009         * gnulib-tool (func_emit_lib_Makefile_am)
31010         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
31011         not in the current directory, so concurrent gnulib-tool
31012         instances do not interfere.
31013
31014 2010-01-16  Jim Meyering  <meyering@redhat.com>
31015
31016         doc: update users.txt
31017         * users.txt: Add grep.
31018         (diffutils, gzip): Update URLs.
31019
31020 2010-01-12  Bruno Haible  <bruno@clisp.org>
31021
31022         posix_spawn: Avoid test failure on Cygwin.
31023         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
31024         characters.
31025         Reported by Simon Josefsson.
31026
31027 2010-01-12  Bruno Haible  <bruno@clisp.org>
31028
31029         * tests/test-cond.c (main): When skipping the test, show the reason.
31030
31031 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31032
31033         * lib/striconv.c (str_cd_iconv): Avoid if before free.
31034
31035 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31036
31037         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
31038         VC_LIST_ALWAYS_EXCLUDE_REGEX.
31039
31040 2010-01-12  Eric Blake  <ebb9@byu.net>
31041
31042         build: guarantee AS_VAR_IF
31043         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
31044         (gl_AS_VAR_IF): Move...
31045         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
31046         Reported by Simon Josefsson.
31047
31048 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31049
31050         * lib/stdio.in.h: Fix typo.
31051
31052 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31053
31054         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
31055         libgpg-error.
31056
31057 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31058
31059         * tests/test-xalloc-die.sh: Use $EXEEXT.
31060
31061 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31062             Bruno Haible  <bruno@clisp.org>
31063
31064         getlogin, getlogin_r: Avoid test failure.
31065         * tests/test-getlogin.c: Include <stdio.h>.
31066         (main): Skip the test when the function fails because stdin is not a
31067         tty.
31068         * tests/test-getlogin_r.c: Include <stdio.h>.
31069         (main): Skip the test when the function fails because stdin is not a
31070         tty.
31071
31072 2010-01-11  Eric Blake  <ebb9@byu.net>
31073
31074         tests: avoid more large file warnings
31075         * tests/test-fflush.c: Avoid warning about ftell use.
31076         * tests/test-fseek.c: Avoid warning about fseek use.
31077
31078 2010-01-10  Bruno Haible  <bruno@clisp.org>
31079
31080         nproc: Work better on Linux when /proc and /sys are not mounted.
31081         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
31082         as lower bound when, on glibc/Linux systems,
31083         sysconf (_SC_NPROCESSORS_CONF) returns 1.
31084         Suggested by Pádraig Brady <P@draigbrady.com>.
31085         Reported by Dmitry V. Levin <ldv@altlinux.org>.
31086
31087         nproc: Refactor.
31088         * lib/nproc.c (num_processors_via_affinity_mask): New function,
31089         extracted from num_processors.
31090         (num_processors): Call it.
31091
31092 2010-01-11  Jim Meyering  <meyering@redhat.com>
31093
31094         utimecmp: avoid new warning from upcoming gcc-4.5.0
31095         * lib/utimecmp.c (BILLION): Define using #define rather than an
31096         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
31097
31098 2010-01-11  Eric Blake  <ebb9@byu.net>
31099
31100         math: add portability warnings for classification macros
31101         * modules/math (Depends-on): Add warn-on-use.
31102         (Makefile.am): Provide new substitutions.
31103         * m4/math_h.m4 (gl_MATH_H): Require inline.
31104         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
31105         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
31106         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
31107         implement warnings.
31108
31109         unistd: warn on use of environ without module
31110         * modules/unistd (Depends-on): Add warn-on-use.
31111         (Makefile.am): Provide new substitutions.
31112         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
31113         * lib/unistd.in.h (environ): Wrap with a warning helper function.
31114
31115         stdio: warn on suspicious uses
31116         * modules/stdio (Depends-on): Add warn-on-use.
31117         (Makefile.am): Provide new substitutions.
31118         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
31119         fseeko.
31120         * lib/stdio.in.h (gets): Always warn on use.
31121         (fseek, ftell): Adjust when warnings are issued, and honor
31122         _GL_NO_LARGE_FILES as a way to silence the warning.
31123         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
31124         any warning about large file offsets.
31125         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
31126         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
31127         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
31128         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
31129         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
31130         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
31131         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
31132         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
31133
31134         warn-on-use: new module
31135         * modules/warn-on-use: New file.
31136         * build-aux/warn-on-use.h: Likewise.
31137         * m4/warn-on-use.m4: Likewise.
31138         * MODULES.html.sh (Support for building): Mention it.
31139
31140 2010-01-10  Bruno Haible  <bruno@clisp.org>
31141
31142         Tests for module 'unistr/u32-strdup'.
31143         * modules/unistr/u32-strdup-tests: New file.
31144         * tests/unistr/test-u32-strdup.c: New file.
31145
31146         Tests for module 'unistr/u16-strdup'.
31147         * modules/unistr/u16-strdup-tests: New file.
31148         * tests/unistr/test-u16-strdup.c: New file.
31149
31150         Tests for module 'unistr/u8-strdup'.
31151         * modules/unistr/u8-strdup-tests: New file.
31152         * tests/unistr/test-u8-strdup.c: New file.
31153         * tests/unistr/test-strdup.h: New file.
31154
31155         Tests for module 'unistr/u32-strncmp'.
31156         * modules/unistr/u32-strncmp-tests: New file.
31157         * tests/unistr/test-u32-strncmp.c: New file.
31158
31159         Tests for module 'unistr/u16-strncmp'.
31160         * modules/unistr/u16-strncmp-tests: New file.
31161         * tests/unistr/test-u16-strncmp.c: New file.
31162
31163         Tests for module 'unistr/u8-strncmp'.
31164         * modules/unistr/u8-strncmp-tests: New file.
31165         * tests/unistr/test-u8-strncmp.c: New file.
31166         * tests/unistr/test-strncmp.h: New file.
31167
31168         Tests for module 'unistr/u32-strcoll'.
31169         * modules/unistr/u32-strcoll-tests: New file.
31170         * tests/unistr/test-u32-strcoll.c: New file.
31171
31172         Tests for module 'unistr/u16-strcoll'.
31173         * modules/unistr/u16-strcoll-tests: New file.
31174         * tests/unistr/test-u16-strcoll.c: New file.
31175
31176         Tests for module 'unistr/u8-strcoll'.
31177         * modules/unistr/u8-strcoll-tests: New file.
31178         * tests/unistr/test-u8-strcoll.c: New file.
31179
31180         Tests for module 'unistr/u32-strcmp'.
31181         * modules/unistr/u32-strcmp-tests: New file.
31182         * tests/unistr/test-u32-strcmp.c: New file.
31183         * tests/unistr/test-u32-strcmp.h: New file.
31184
31185         Tests for module 'unistr/u16-strcmp'.
31186         * modules/unistr/u16-strcmp-tests: New file.
31187         * tests/unistr/test-u16-strcmp.c: New file.
31188         * tests/unistr/test-u16-strcmp.h: New file.
31189
31190         Tests for module 'unistr/u8-strcmp'.
31191         * modules/unistr/u8-strcmp-tests: New file.
31192         * tests/unistr/test-u8-strcmp.c: New file.
31193         * tests/unistr/test-u8-strcmp.h: New file.
31194         * tests/unistr/test-strcmp.h: New file.
31195
31196         Tests for module 'unistr/u32-strncat'.
31197         * modules/unistr/u32-strncat-tests: New file.
31198         * tests/unistr/test-u32-strncat.c: New file.
31199
31200         Tests for module 'unistr/u16-strncat'.
31201         * modules/unistr/u16-strncat-tests: New file.
31202         * tests/unistr/test-u16-strncat.c: New file.
31203
31204         Tests for module 'unistr/u8-strncat'.
31205         * modules/unistr/u8-strncat-tests: New file.
31206         * tests/unistr/test-u8-strncat.c: New file.
31207         * tests/unistr/test-strncat.h: New file.
31208
31209         Tests for module 'unistr/u32-strcat'.
31210         * modules/unistr/u32-strcat-tests: New file.
31211         * tests/unistr/test-u32-strcat.c: New file.
31212
31213         Tests for module 'unistr/u16-strcat'.
31214         * modules/unistr/u16-strcat-tests: New file.
31215         * tests/unistr/test-u16-strcat.c: New file.
31216
31217         Tests for module 'unistr/u8-strcat'.
31218         * modules/unistr/u8-strcat-tests: New file.
31219         * tests/unistr/test-u8-strcat.c: New file.
31220         * tests/unistr/test-strcat.h: New file.
31221
31222         Tests for module 'unistr/u32-stpncpy'.
31223         * modules/unistr/u32-stpncpy-tests: New file.
31224         * tests/unistr/test-u32-stpncpy.c: New file.
31225
31226         Tests for module 'unistr/u16-stpncpy'.
31227         * modules/unistr/u16-stpncpy-tests: New file.
31228         * tests/unistr/test-u16-stpncpy.c: New file.
31229
31230         Tests for module 'unistr/u8-stpncpy'.
31231         * modules/unistr/u8-stpncpy-tests: New file.
31232         * tests/unistr/test-u8-stpncpy.c: New file.
31233         * tests/unistr/test-stpncpy.h: New file.
31234
31235         Tests for module 'unistr/u32-strncpy'.
31236         * modules/unistr/u32-strncpy-tests: New file.
31237         * tests/unistr/test-u32-strncpy.c: New file.
31238
31239         Tests for module 'unistr/u16-strncpy'.
31240         * modules/unistr/u16-strncpy-tests: New file.
31241         * tests/unistr/test-u16-strncpy.c: New file.
31242
31243         Tests for module 'unistr/u8-strncpy'.
31244         * modules/unistr/u8-strncpy-tests: New file.
31245         * tests/unistr/test-u8-strncpy.c: New file.
31246         * tests/unistr/test-strncpy.h: New file.
31247
31248         Tests for module 'unistr/u32-stpcpy'.
31249         * modules/unistr/u32-stpcpy-tests: New file.
31250         * tests/unistr/test-u32-stpcpy.c: New file.
31251
31252         Tests for module 'unistr/u16-stpcpy'.
31253         * modules/unistr/u16-stpcpy-tests: New file.
31254         * tests/unistr/test-u16-stpcpy.c: New file.
31255
31256         Tests for module 'unistr/u8-stpcpy'.
31257         * modules/unistr/u8-stpcpy-tests: New file.
31258         * tests/unistr/test-u8-stpcpy.c: New file.
31259         * tests/unistr/test-stpcpy.h: New file.
31260
31261         Tests for module 'unistr/u32-strcpy'.
31262         * modules/unistr/u32-strcpy-tests: New file.
31263         * tests/unistr/test-u32-strcpy.c: New file.
31264
31265         Tests for module 'unistr/u16-strcpy'.
31266         * modules/unistr/u16-strcpy-tests: New file.
31267         * tests/unistr/test-u16-strcpy.c: New file.
31268
31269         Tests for module 'unistr/u8-strcpy'.
31270         * modules/unistr/u8-strcpy-tests: New file.
31271         * tests/unistr/test-u8-strcpy.c: New file.
31272         * tests/unistr/test-strcpy.h: New file.
31273
31274         Tests for module 'unistr/u32-strnlen'.
31275         * modules/unistr/u32-strnlen-tests: New file.
31276         * tests/unistr/test-u32-strnlen.c: New file.
31277
31278         Tests for module 'unistr/u16-strnlen'.
31279         * modules/unistr/u16-strnlen-tests: New file.
31280         * tests/unistr/test-u16-strnlen.c: New file.
31281
31282         Tests for module 'unistr/u8-strnlen'.
31283         * modules/unistr/u8-strnlen-tests: New file.
31284         * tests/unistr/test-u8-strnlen.c: New file.
31285         * tests/unistr/test-strnlen.h: New file.
31286
31287         Tests for module 'unistr/u32-strlen'.
31288         * modules/unistr/u32-strlen-tests: New file.
31289         * tests/unistr/test-u32-strlen.c: New file.
31290
31291         Tests for module 'unistr/u16-strlen'.
31292         * modules/unistr/u16-strlen-tests: New file.
31293         * tests/unistr/test-u16-strlen.c: New file.
31294
31295         Tests for module 'unistr/u8-strlen'.
31296         * modules/unistr/u8-strlen-tests: New file.
31297         * tests/unistr/test-u8-strlen.c: New file.
31298
31299         Tests for module 'unistr/u32-prev'.
31300         * modules/unistr/u32-prev-tests: New file.
31301         * tests/unistr/test-u32-prev.c: New file.
31302
31303         Tests for module 'unistr/u16-prev'.
31304         * modules/unistr/u16-prev-tests: New file.
31305         * tests/unistr/test-u16-prev.c: New file.
31306
31307         Tests for module 'unistr/u8-prev'.
31308         * modules/unistr/u8-prev-tests: New file.
31309         * tests/unistr/test-u8-prev.c: New file.
31310
31311         Tests for module 'unistr/u32-next'.
31312         * modules/unistr/u32-next-tests: New file.
31313         * tests/unistr/test-u32-next.c: New file.
31314
31315         Tests for module 'unistr/u16-next'.
31316         * modules/unistr/u16-next-tests: New file.
31317         * tests/unistr/test-u16-next.c: New file.
31318
31319         Tests for module 'unistr/u8-next'.
31320         * modules/unistr/u8-next-tests: New file.
31321         * tests/unistr/test-u8-next.c: New file.
31322
31323         Tests for module 'unistr/u32-strmbtouc'.
31324         * modules/unistr/u32-strmbtouc-tests: New file.
31325         * tests/unistr/test-u32-strmbtouc.c: New file.
31326
31327         Tests for module 'unistr/u16-strmbtouc'.
31328         * modules/unistr/u16-strmbtouc-tests: New file.
31329         * tests/unistr/test-u16-strmbtouc.c: New file.
31330
31331         Tests for module 'unistr/u8-strmbtouc'.
31332         * modules/unistr/u8-strmbtouc-tests: New file.
31333         * tests/unistr/test-u8-strmbtouc.c: New file.
31334
31335         Tests for module 'unistr/u32-strmblen'.
31336         * modules/unistr/u32-strmblen-tests: New file.
31337         * tests/unistr/test-u32-strmblen.c: New file.
31338
31339         Tests for module 'unistr/u16-strmblen'.
31340         * modules/unistr/u16-strmblen-tests: New file.
31341         * tests/unistr/test-u16-strmblen.c: New file.
31342
31343         Tests for module 'unistr/u8-strmblen'.
31344         * modules/unistr/u8-strmblen-tests: New file.
31345         * tests/unistr/test-u8-strmblen.c: New file.
31346
31347         Tests for module 'unistr/u32-cpy-alloc'.
31348         * modules/unistr/u32-cpy-alloc-tests: New file.
31349         * tests/unistr/test-u32-cpy-alloc.c: New file.
31350
31351         Tests for module 'unistr/u16-cpy-alloc'.
31352         * modules/unistr/u16-cpy-alloc-tests: New file.
31353         * tests/unistr/test-u16-cpy-alloc.c: New file.
31354
31355         Tests for module 'unistr/u8-cpy-alloc'.
31356         * modules/unistr/u8-cpy-alloc-tests: New file.
31357         * tests/unistr/test-u8-cpy-alloc.c: New file.
31358         * tests/unistr/test-cpy-alloc.h: New file.
31359
31360         Tests for module 'unistr/u32-mbsnlen'.
31361         * modules/unistr/u32-mbsnlen-tests: New file.
31362         * tests/unistr/test-u32-mbsnlen.c: New file.
31363
31364         Tests for module 'unistr/u16-mbsnlen'.
31365         * modules/unistr/u16-mbsnlen-tests: New file.
31366         * tests/unistr/test-u16-mbsnlen.c: New file.
31367
31368         Tests for module 'unistr/u8-mbsnlen'.
31369         * modules/unistr/u8-mbsnlen-tests: New file.
31370         * tests/unistr/test-u8-mbsnlen.c: New file.
31371
31372         Tests for module 'unistr/u32-chr'.
31373         * modules/unistr/u32-chr-tests: New file.
31374         * tests/unistr/test-u32-chr.c: New file.
31375
31376         Tests for module 'unistr/u16-chr'.
31377         * modules/unistr/u16-chr-tests: New file.
31378         * tests/unistr/test-u16-chr.c: New file.
31379
31380         Tests for module 'unistr/u8-chr'.
31381         * modules/unistr/u8-chr-tests: New file.
31382         * tests/unistr/test-u8-chr.c: New file.
31383         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
31384
31385         Tests for module 'unistr/u32-cmp2'.
31386         * modules/unistr/u32-cmp2-tests: New file.
31387         * tests/unistr/test-u32-cmp2.c: New file.
31388
31389         Tests for module 'unistr/u16-cmp2'.
31390         * modules/unistr/u16-cmp2-tests: New file.
31391         * tests/unistr/test-u16-cmp2.c: New file.
31392
31393         Tests for module 'unistr/u8-cmp2'.
31394         * modules/unistr/u8-cmp2-tests: New file.
31395         * tests/unistr/test-u8-cmp2.c: New file.
31396         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
31397
31398         Tests for module 'unistr/u32-cmp'.
31399         * modules/unistr/u32-cmp-tests: New file.
31400         * tests/unistr/test-u32-cmp.c: New file.
31401
31402         Tests for module 'unistr/u16-cmp'.
31403         * modules/unistr/u16-cmp-tests: New file.
31404         * tests/unistr/test-u16-cmp.c: New file.
31405
31406         Tests for module 'unistr/u8-cmp'.
31407         * modules/unistr/u8-cmp-tests: New file.
31408         * tests/unistr/test-u8-cmp.c: New file.
31409         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
31410
31411         Tests for module 'unistr/u32-set'.
31412         * modules/unistr/u32-set-tests: New file.
31413         * tests/unistr/test-u32-set.c: New file.
31414
31415         Tests for module 'unistr/u16-set'.
31416         * modules/unistr/u16-set-tests: New file.
31417         * tests/unistr/test-u16-set.c: New file.
31418
31419         Tests for module 'unistr/u8-set'.
31420         * modules/unistr/u8-set-tests: New file.
31421         * tests/unistr/test-u8-set.c: New file.
31422         * tests/unistr/test-set.h: New file.
31423
31424         Tests for module 'unistr/u32-move'.
31425         * modules/unistr/u32-move-tests: New file.
31426         * tests/unistr/test-u32-move.c: New file.
31427
31428         Tests for module 'unistr/u16-move'.
31429         * modules/unistr/u16-move-tests: New file.
31430         * tests/unistr/test-u16-move.c: New file.
31431
31432         Tests for module 'unistr/u8-move'.
31433         * modules/unistr/u8-move-tests: New file.
31434         * tests/unistr/test-u8-move.c: New file.
31435         * tests/unistr/test-move.h: New file.
31436
31437         Tests for module 'unistr/u32-cpy'.
31438         * modules/unistr/u32-cpy-tests: New file.
31439         * tests/unistr/test-u32-cpy.c: New file.
31440
31441         Tests for module 'unistr/u16-cpy'.
31442         * modules/unistr/u16-cpy-tests: New file.
31443         * tests/unistr/test-u16-cpy.c: New file.
31444
31445         Tests for module 'unistr/u8-cpy'.
31446         * modules/unistr/u8-cpy-tests: New file.
31447         * tests/unistr/test-u8-cpy.c: New file.
31448         * tests/unistr/test-cpy.h: New file.
31449
31450 2010-01-09  Bruno Haible  <bruno@clisp.org>
31451
31452         Tests for module 'unistr/u32-uctomb'.
31453         * modules/unistr/u32-uctomb-tests: New file.
31454         * tests/unistr/test-u32-uctomb.c: New file.
31455
31456         Tests for module 'unistr/u16-uctomb'.
31457         * modules/unistr/u16-uctomb-tests: New file.
31458         * tests/unistr/test-u16-uctomb.c: New file.
31459
31460         Tests for module 'unistr/u8-uctomb'.
31461         * modules/unistr/u8-uctomb-tests: New file.
31462         * tests/unistr/test-u8-uctomb.c: New file.
31463
31464         Tests for module 'unistr/u32-mbtoucr'.
31465         * modules/unistr/u32-mbtoucr-tests: New file.
31466         * tests/unistr/test-u32-mbtoucr.c: New file.
31467
31468         Tests for module 'unistr/u16-mbtoucr'.
31469         * modules/unistr/u16-mbtoucr-tests: New file.
31470         * tests/unistr/test-u16-mbtoucr.c: New file.
31471
31472         Tests for module 'unistr/u8-mbtoucr'.
31473         * modules/unistr/u8-mbtoucr-tests: New file.
31474         * tests/unistr/test-u8-mbtoucr.c: New file.
31475
31476         Tests for module 'unistr/u32-mbtouc'.
31477         * modules/unistr/u32-mbtouc-tests: New file.
31478         * tests/unistr/test-u32-mbtouc.c: New file.
31479
31480         Tests for module 'unistr/u16-mbtouc'.
31481         * modules/unistr/u16-mbtouc-tests: New file.
31482         * tests/unistr/test-u16-mbtouc.c: New file.
31483
31484         Tests for module 'unistr/u8-mbtouc'.
31485         * modules/unistr/u8-mbtouc-tests: New file.
31486         * tests/unistr/test-u8-mbtouc.c: New file.
31487
31488         Tests for module 'unistr/u32-mbtouc-unsafe'.
31489         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
31490         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
31491         * tests/unistr/test-u32-mbtouc.h: New file.
31492
31493         Tests for module 'unistr/u16-mbtouc-unsafe'.
31494         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
31495         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
31496         * tests/unistr/test-u16-mbtouc.h: New file.
31497
31498         Tests for module 'unistr/u8-mbtouc-unsafe'.
31499         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
31500         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
31501         * tests/unistr/test-u8-mbtouc.h: New file.
31502
31503         Tests for module 'unistr/u32-mblen'.
31504         * modules/unistr/u32-mblen-tests: New file.
31505         * tests/unistr/test-u32-mblen.c: New file.
31506
31507         Tests for module 'unistr/u16-mblen'.
31508         * modules/unistr/u16-mblen-tests: New file.
31509         * tests/unistr/test-u16-mblen.c: New file.
31510
31511         Tests for module 'unistr/u8-mblen'.
31512         * modules/unistr/u8-mblen-tests: New file.
31513         * tests/unistr/test-u8-mblen.c: New file.
31514
31515         Tests for module 'unistr/u32-to-u16'.
31516         * modules/unistr/u32-to-u16-tests: New file.
31517         * tests/unistr/test-u32-to-u16.c: New file.
31518
31519         Tests for module 'unistr/u32-to-u8'.
31520         * modules/unistr/u32-to-u8-tests: New file.
31521         * tests/unistr/test-u32-to-u8.c: New file.
31522
31523         Tests for module 'unistr/u16-to-u32'.
31524         * modules/unistr/u16-to-u32-tests: New file.
31525         * tests/unistr/test-u16-to-u32.c: New file.
31526
31527         Tests for module 'unistr/u16-to-u8'.
31528         * modules/unistr/u16-to-u8-tests: New file.
31529         * tests/unistr/test-u16-to-u8.c: New file.
31530
31531         Tests for module 'unistr/u8-to-u32'.
31532         * modules/unistr/u8-to-u32-tests: New file.
31533         * tests/unistr/test-u8-to-u32.c: New file.
31534
31535         Tests for module 'unistr/u8-to-u16'.
31536         * modules/unistr/u8-to-u16-tests: New file.
31537         * tests/unistr/test-u8-to-u16.c: New file.
31538
31539         Tests for module 'unistr/u32-check'.
31540         * modules/unistr/u32-check-tests: New file.
31541         * tests/unistr/test-u32-check.c: New file.
31542
31543         Tests for module 'unistr/u16-check'.
31544         * modules/unistr/u16-check-tests: New file.
31545         * tests/unistr/test-u16-check.c: New file.
31546
31547         Tests for module 'unistr/u8-check'.
31548         * modules/unistr/u8-check-tests: New file.
31549         * tests/unistr/test-u8-check.c: New file.
31550
31551         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
31552         (category_equals): New function.
31553         (main): Add more tests.
31554         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
31555
31556         * tests/unictype/test-bidi_byname.c (main): Add more tests.
31557
31558 2010-01-10  Bruno Haible  <bruno@clisp.org>
31559
31560         unistr/u*-strcoll: Try harder to distinguish different strings.
31561         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
31562         compare s1 and s2 to see if they are different.
31563
31564 2010-01-10  Bruno Haible  <bruno@clisp.org>
31565
31566         unistr/u*-stpncpy: Fix the return value.
31567         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
31568         description of the return value consistent with stpncpy in glibc.
31569         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
31570         written non-NUL unit.
31571
31572 2010-01-10  Bruno Haible  <bruno@clisp.org>
31573
31574         unistr/u*-next: Add missing dependencies.
31575         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
31576         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
31577         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
31578
31579 2010-01-10  Bruno Haible  <bruno@clisp.org>
31580
31581         unistr/u8-mbsnlen: Fix return value for incomplete character.
31582         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
31583         u8_mblen.
31584         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
31585         Remove unistr/u8-mblen.
31586         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
31587         u16_mblen.
31588         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
31589         Remove unistr/u16-mblen.
31590
31591 2010-01-10  Bruno Haible  <bruno@clisp.org>
31592
31593         wchar: Fix compilation error when <wchar.h> is used from coreutils.
31594         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
31595         Reported by Brian Gough <bjg@gnu.org> and
31596         Chris Clayton <chris2553@googlemail.com> via
31597         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
31598
31599 2010-01-09  Bruno Haible  <bruno@clisp.org>
31600
31601         unistr/u16-to-u32: Reject invalid input.
31602         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
31603         u16_mbtouc.
31604         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
31605         Remove unistr/u16-mbtouc.
31606
31607         unistr/u16-to-u8: Reject invalid input.
31608         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
31609         u16_mbtouc.
31610         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
31611         Remove unistr/u16-mbtouc.
31612
31613         unistr/u8-to-u32: Reject invalid input.
31614         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
31615         u8_mbtouc.
31616         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
31617         Remove unistr/u8-mbtouc.
31618
31619         unistr/u8-to-u16: Reject invalid input.
31620         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
31621         u8_mbtouc.
31622         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
31623         Remove unistr/u8-mbtouc.
31624
31625 2010-01-09  Bruno Haible  <bruno@clisp.org>
31626
31627         Tests for module 'getlogin'.
31628         * modules/getlogin-tests: New file.
31629         * tests/test-getlogin.c: New file.
31630
31631         New module 'getlogin'.
31632         * lib/unistd.in.h (getlogin): New declaration.
31633         * lib/getlogin.c: New file.
31634         * m4/getlogin.m4: New file.
31635         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
31636         HAVE_GETLOGIN.
31637         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
31638         HAVE_GETLOGIN.
31639         * modules/getlogin: New file.
31640         * doc/posix-functions/getlogin.texi: Mention the new module.
31641         Reported by John W. Eaton <jwe@gnu.org>.
31642
31643 2010-01-09  Bruno Haible  <bruno@clisp.org>
31644
31645         getlogin_r: Support for native Windows.
31646         * lib/getlogin_r.c: Include <windows.h>
31647         (getlogin_r): Implement for native Windows.
31648         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
31649         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
31650         via John W. Eaton <jwe@gnu.org>.
31651
31652 2010-01-09  Bruno Haible  <bruno@clisp.org>
31653
31654         getlogin_r: Small fixes.
31655         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
31656         succeeds.
31657         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
31658         before testing whether getlogin_r is declared. No need to set
31659         HAVE_DECL_GETLOGIN_R to 1.
31660         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
31661
31662 2010-01-09  Bruno Haible  <bruno@clisp.org>
31663
31664         * lib/unistd.in.h (getlogin_r): Add comment.
31665
31666 2010-01-09  Bruno Haible  <bruno@clisp.org>
31667
31668         Tests for module 'getlogin_r'.
31669         * modules/getlogin_r-tests: New file.
31670         * tests/test-getlogin_r.c: New file.
31671
31672 2010-01-09  Jim Meyering  <meyering@redhat.com>
31673
31674         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
31675         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
31676         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
31677
31678 2010-01-08  Simon Josefsson  <simon@josefsson.org>
31679
31680         * lib/dup2.c (rpl_dup2): Improve comment.
31681
31682 2010-01-08  Eric Blake  <ebb9@byu.net>
31683
31684         maint.mk: allow packages to add makefile @@ exceptions
31685         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
31686         (sc_makefile_check): Rename...
31687         (sc_makefile_at_at_check): ...to this, and use hook.
31688
31689         dup2: work around mingw bug
31690         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
31691         Reported by Simon Josefsson.
31692
31693 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
31694
31695         glob: Fix C++ compilation.
31696         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
31697         C++.
31698
31699 2010-01-07  Bruno Haible  <bruno@clisp.org>
31700
31701         Fix indentation of wctype.in.h, broken since 2007-01-06.
31702         * lib/wctype.in.h: Fix indentation of preprocessor directives.
31703
31704 2010-01-07  Bruno Haible  <bruno@clisp.org>
31705
31706         mbslen: Avoid collision with system function.
31707         * lib/string.in.h [MirBSD]: Include <wchar.h>.
31708         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
31709         * m4/mbslen.m4: New file.
31710         * modules/mbslen (Files): Add it.
31711         (configure.ac): Invoke gl_MBSLEN.
31712         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
31713         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
31714         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
31715         via Ian Beckwith <ianb@erislabs.net>.
31716
31717 2010-01-07  Bruno Haible  <bruno@clisp.org>
31718
31719         dirent: Document the last fix.
31720         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
31721
31722 2010-01-07  Bruno Haible  <bruno@clisp.org>
31723
31724         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
31725         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
31726         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
31727         va_list are defined.
31728         * doc/posix-headers/stdio.texi: Document the bug of missing types.
31729         Reported by Eric Blake.
31730
31731 2010-01-07  Bruno Haible  <bruno@clisp.org>
31732
31733         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
31734         * modules/xlist (Depends-on): Add 'list',
31735         * modules/xoset (Depends-on): Add 'oset'.
31736         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31737
31738 2010-01-07  Bruno Haible  <bruno@clisp.org>
31739
31740         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
31741         * doc/posix-functions/strncasecmp.texi: Likewise.
31742
31743 2010-01-07  Bruno Haible  <bruno@clisp.org>
31744
31745         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
31746
31747 2010-01-07  John W. Eaton  <jwe@octave.org>
31748
31749         wctype: allow C++ use
31750         * lib/wctype.in.h: Add extern "C" block for C++.
31751
31752 2010-01-06  Eric Blake  <ebb9@byu.net>
31753
31754         maint.mk: detect incorrect GFDL usage
31755         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
31756
31757 2010-01-06  Jim Meyering  <meyering@redhat.com>
31758         and Eric Blake  <ebb9@byu.net>
31759
31760         maint.mk: ignore multi-line copyright in NEWS
31761         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
31762
31763 2010-01-06  Eric Blake  <ebb9@byu.net>
31764
31765         select: add missing dependency
31766         * modules/select-tests (Depends-on): Move sockets dependency...
31767         * modules/select (Depends-on): ...here.
31768         Reported by Ian Beckwith.
31769
31770         doc: regenerate INSTALL
31771         * doc/INSTALL: Reflect recent autoconf update.
31772         * doc/INSTALL.ISO: Likewise.
31773         * doc/INSTALL.UTF-8: Likewise.
31774
31775         pread: fix compilation on glibc
31776         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
31777         Reported by Ralf Wildenhues.
31778
31779         dirent: fix test failure
31780         * lib/dirent.in.h (includes): Guarantee ino_t.
31781         Reported by Ralf Wildenhues.
31782
31783 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
31784
31785         linkat, renameat: avoid bad free
31786         * lib/at-func2.c (at_func2): Fix typo.
31787         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
31788
31789 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31790
31791         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
31792         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
31793         to avoid failure of symlink test later.
31794
31795 2010-01-06  Eric Blake  <ebb9@byu.net>
31796
31797         stdio, unistd: guarantee ssize_t
31798         * lib/unistd.in.h (includes): Ensure that types required by POSIX
31799         2008 are exposed when needed.
31800         * lib/stdio.in.h (includes): Likewise.
31801         Reported by Ralf Wildenhues.
31802
31803 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
31804
31805         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
31806         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
31807         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
31808
31809 2010-01-06  Jim Meyering  <meyering@redhat.com>
31810
31811         readtokens: this module *does* require xalloc.h
31812         It uses only functions that were omitted by the old syntax-check rule.
31813         * lib/readtokens.c: Include "xalloc.h" once again.
31814         * modules/readtokens (Depends-on): Add xalloc.
31815         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
31816
31817 2010-01-05  Eric Blake  <ebb9@byu.net>
31818
31819         maint: support 'make announcement' from a VPATH build
31820         * top/maint.mk (announcement): Look for correct NEWS file.
31821
31822 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
31823
31824         utimens (fdutimens): ignore a negative FD, per contract
31825         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
31826         when we have a valid file descriptor.  Otherwise, using a brand
31827         new glibc (with just-patched futimens that now fails with EBADF)
31828         would cause this function to fail with ENOSYS.
31829         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
31830         See also http://bugzilla.redhat.com/552320.
31831
31832 2010-01-05  Eric Blake  <ebb9@byu.net>
31833
31834         strcase: document what it provides
31835         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
31836         gnulib module.
31837         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
31838         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
31839
31840 2010-01-05  Jim Meyering  <meyering@redhat.com>
31841
31842         maint: remove useless inclusions of "xalloc.h"
31843         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
31844         * lib/readtokens.c: Likewise.
31845         * lib/same.c: Likewise.
31846         * modules/getloadavg (Depends-on): Remove xalloc.
31847         * modules/readtokens: Likewise.
31848         * modules/same: Likewise.
31849
31850         maint.mk: include 4 more function names in alloca.h-checking regexp
31851         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
31852         regexp.  Before, we would give a false-positive (saying alloca.h
31853         is included unnecessarily) when the only uses involved omitted symbols.
31854
31855         xalloc.h: use consistent formatting
31856         * lib/xalloc.h: Move declarations to start in the first column.
31857
31858 2010-01-05  Eric Blake  <ebb9@byu.net>
31859
31860         mkdir: avoid xalloc
31861         * lib/mkdir.c (includes): Drop unused header.
31862         Reported by John W. Eaton.
31863
31864 2010-01-04  Jim Meyering  <meyering@redhat.com>
31865
31866         nl_langinfo: avoid configure-time syntax error
31867         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
31868         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
31869         the empty string.  Don't let that provoke a shell syntax error.
31870
31871         regcomp, regexec, fnmatch: avoid array bounds read error
31872         * lib/regcomp.c (build_equiv_class): From glibc:
31873         Use only the low 24 bits of a findidx return value as an index
31874         into the weights array.  Patch by Ulrich Drepper:
31875         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
31876         * lib/regexec.c (check_node_accept_bytes): Likewise.
31877         * lib/fnmatch_loop.c (FCT): Likewise.
31878
31879         regcomp: skip collseq lookup when there are no rules
31880         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
31881         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
31882
31883         regcomp: recognize ill-formed { } expressions
31884         * lib/regcomp.c (parse_dup_op): From glibc:
31885         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
31886
31887         regcomp: fix typo in comment
31888         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
31889         s/satisfy/satisfies/.
31890
31891         regcomp: sync from glibc: remove dead store
31892         * lib/regcomp.c (duplicate_node_closure): Remove useless
31893         search_duplicated_node call and dead store.
31894
31895         regcomp: sync from glibc; always use nl_langinfo
31896         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
31897         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
31898         * modules/regex (Depends-on): Add nl_langinfo.
31899
31900 2010-01-04  Eric Blake  <ebb9@byu.net>
31901
31902         fdopendir: fix configure test
31903         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
31904
31905 2010-01-01  Bruno Haible  <bruno@clisp.org>
31906
31907         wchar: Remove unused configure check.
31908         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
31909
31910 2010-01-01  Eric Blake  <ebb9@byu.net>
31911
31912         headers: make check of system header explicit
31913         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
31914         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
31915         ourselves.
31916         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
31917         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31918         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
31919         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
31920         internals.
31921         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
31922         missing.
31923         Suggested by Bruno Haible.
31924
31925 2010-01-01  Jim Meyering  <meyering@redhat.com>
31926
31927         ChangeLog: tweak to eliminate unnecessary copyright line
31928         * ChangeLog: Remove a copyright line that was mistakenly updated
31929         by today's update-copyright run.  Reported by Eric Blake.
31930
31931         test-update-copyright: don't let envvar setting cause test failure
31932         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
31933
31934 2010-01-01  Bruno Haible  <bruno@clisp.org>
31935
31936         localename: Avoid gcc warning.
31937         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
31938         function if it is not used.
31939
31940 2010-01-01  Jim Meyering  <meyering@redhat.com>
31941
31942         update nearly all FSF copyright year lists to include 2010
31943         Use the same procedure as for 2009, outlined in
31944         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
31945
31946         version-etc: set COPYRIGHT_YEAR to 2010
31947         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
31948
31949 2009-12-31  Eric Blake  <ebb9@byu.net>
31950
31951         doc: correct availability of cygwin 1.5.x getopt
31952         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
31953         variables.
31954         * doc/posix-functions/opterr.texi (opterr): Likewise.
31955         * doc/posix-functions/optind.texi (optind): Likewise.
31956         * doc/posix-functions/optopt.texi (optopt): Likewise.
31957         * doc/posix-functions/tzname.texi (tzname): Likewise.
31958
31959         openat: update maintainer
31960         * modules/openat (Maintainer): Add myself.
31961
31962         utimens: avoid shadowing warning
31963         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
31964         buffers into one, to avoid shadowing, as well as avoiding a
31965         redundant stat.
31966         Reported by Jim Meyering.
31967
31968         test-dup2: avoid compiler warning
31969         * tests/test-dup2.c (is_inheritable): Only define if used.
31970
31971 2010-01-01  Bruno Haible  <bruno@clisp.org>
31972
31973         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
31974         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
31975         defined, use wctomb instead of wcrtomb.
31976
31977 2010-01-01  Bruno Haible  <bruno@clisp.org>
31978
31979         iconv: Reject native Solaris iconv.
31980         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
31981         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
31982
31983 2009-12-31  Bruno Haible  <bruno@clisp.org>
31984
31985         * tests/test-signal.c (main): Remove test of 'SIG'.
31986
31987 2009-12-31  Bruno Haible  <bruno@clisp.org>
31988
31989         spawn: Fix incomplete fix.
31990         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
31991         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
31992         warnings for GNULIB_POSIXCHECK again.
31993         Reported by Eric Blake.
31994
31995 2009-12-31  Bruno Haible  <bruno@clisp.org>
31996
31997         Avoid namespace pollution on glibc systems.
31998         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
31999         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
32000         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
32001         glibc systems.
32002
32003 2009-12-31  Bruno Haible  <bruno@clisp.org>
32004
32005         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
32006         (gl_REPLACE_WCHAR_H): Turn into a no-op.
32007         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
32008         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
32009         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
32010         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
32011         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
32012
32013 2009-12-31  Bruno Haible  <bruno@clisp.org>
32014
32015         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
32016         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
32017         afterwards.
32018
32019 2009-12-31  Bruno Haible  <bruno@clisp.org>
32020
32021         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
32022         SYS_UTSNAME_H.
32023
32024 2009-12-31  Bruno Haible  <bruno@clisp.org>
32025
32026         spawn: Fix misapplied patch.
32027         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
32028         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
32029         warnings for GNULIB_POSIXCHECK.
32030
32031 2009-12-31  Bruno Haible  <bruno@clisp.org>
32032
32033         times: Update after sys_times changed.
32034         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
32035         * modules/times (Files): Add it.
32036         (configure.ac): Invoke gl_FUNC_TIMES.
32037
32038 2009-12-31  Bruno Haible  <bruno@clisp.org>
32039
32040         Use AC_C_INLINE where necessary.
32041         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
32042         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
32043         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
32044         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
32045         * m4/mbfile.m4 (gl_MBFILE): Likewise.
32046         * m4/mbiter.m4 (gl_MBITER): Likewise.
32047         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32048         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
32049         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
32050         * modules/u64 (configure.ac): Likewise.
32051
32052 2009-12-31  Bruno Haible  <bruno@clisp.org>
32053
32054         Use AC_C_INLINE instead of module 'inline' where possible.
32055         * modules/inline (Description): Clarify purpose.
32056         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
32057         * modules/count-one-bits (Depends-on): Remove inline.
32058         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
32059         * modules/openat (Depends-on): Remove inline.
32060         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
32061         instead of depending on module 'inline'.
32062         * modules/filevercmp (Depends-on, configure.ac): Likewise.
32063         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
32064         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
32065         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
32066         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
32067         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
32068         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
32069         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
32070         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
32071         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
32072         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
32073         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
32074         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
32075         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
32076         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
32077         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
32078         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
32079         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
32080         Likewise.
32081         * modules/unictype/property-ascii-hex-digit (Depends-on,
32082         configure.ac): Likewise.
32083         * modules/unictype/property-bidi-arabic-digit (Depends-on,
32084         configure.ac): Likewise.
32085         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
32086         configure.ac): Likewise.
32087         * modules/unictype/property-bidi-block-separator (Depends-on,
32088         configure.ac): Likewise.
32089         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
32090         configure.ac): Likewise.
32091         * modules/unictype/property-bidi-common-separator (Depends-on,
32092         configure.ac): Likewise.
32093         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
32094         Likewise.
32095         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
32096         configure.ac): Likewise.
32097         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
32098         configure.ac): Likewise.
32099         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
32100         configure.ac): Likewise.
32101         * modules/unictype/property-bidi-european-digit (Depends-on,
32102         configure.ac): Likewise.
32103         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
32104         configure.ac): Likewise.
32105         * modules/unictype/property-bidi-left-to-right (Depends-on,
32106         configure.ac): Likewise.
32107         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
32108         configure.ac): Likewise.
32109         * modules/unictype/property-bidi-other-neutral (Depends-on,
32110         configure.ac): Likewise.
32111         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
32112         Likewise.
32113         * modules/unictype/property-bidi-segment-separator (Depends-on,
32114         configure.ac): Likewise.
32115         * modules/unictype/property-bidi-whitespace (Depends-on,
32116         configure.ac): Likewise.
32117         * modules/unictype/property-combining (Depends-on, configure.ac):
32118         Likewise.
32119         * modules/unictype/property-composite (Depends-on, configure.ac):
32120         Likewise.
32121         * modules/unictype/property-currency-symbol (Depends-on,
32122         configure.ac): Likewise.
32123         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
32124         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
32125         Likewise.
32126         * modules/unictype/property-default-ignorable-code-point (Depends-on,
32127         configure.ac): Likewise.
32128         * modules/unictype/property-deprecated (Depends-on, configure.ac):
32129         Likewise.
32130         * modules/unictype/property-diacritic (Depends-on, configure.ac):
32131         Likewise.
32132         * modules/unictype/property-extender (Depends-on, configure.ac):
32133         Likewise.
32134         * modules/unictype/property-format-control (Depends-on, configure.ac):
32135         Likewise.
32136         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
32137         Likewise.
32138         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
32139         Likewise.
32140         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
32141         Likewise.
32142         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
32143         Likewise.
32144         * modules/unictype/property-hyphen (Depends-on, configure.ac):
32145         Likewise.
32146         * modules/unictype/property-id-continue (Depends-on, configure.ac):
32147         Likewise.
32148         * modules/unictype/property-id-start (Depends-on, configure.ac):
32149         Likewise.
32150         * modules/unictype/property-ideographic (Depends-on, configure.ac):
32151         Likewise.
32152         * modules/unictype/property-ids-binary-operator (Depends-on,
32153         configure.ac): Likewise.
32154         * modules/unictype/property-ids-trinary-operator (Depends-on,
32155         configure.ac): Likewise.
32156         * modules/unictype/property-ignorable-control (Depends-on,
32157         configure.ac): Likewise.
32158         * modules/unictype/property-iso-control (Depends-on, configure.ac):
32159         Likewise.
32160         * modules/unictype/property-join-control (Depends-on, configure.ac):
32161         Likewise.
32162         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
32163         Likewise.
32164         * modules/unictype/property-line-separator (Depends-on, configure.ac):
32165         Likewise.
32166         * modules/unictype/property-logical-order-exception (Depends-on,
32167         configure.ac): Likewise.
32168         * modules/unictype/property-lowercase (Depends-on, configure.ac):
32169         Likewise.
32170         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
32171         * modules/unictype/property-non-break (Depends-on, configure.ac):
32172         Likewise.
32173         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
32174         Likewise.
32175         * modules/unictype/property-numeric (Depends-on, configure.ac):
32176         Likewise.
32177         * modules/unictype/property-other-alphabetic (Depends-on,
32178         configure.ac): Likewise.
32179         * modules/unictype/property-other-default-ignorable-code-point
32180         (Depends-on, configure.ac): Likewise.
32181         * modules/unictype/property-other-grapheme-extend (Depends-on,
32182         configure.ac): Likewise.
32183         * modules/unictype/property-other-id-continue (Depends-on,
32184         configure.ac): Likewise.
32185         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
32186         Likewise.
32187         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
32188         Likewise.
32189         * modules/unictype/property-other-math (Depends-on, configure.ac):
32190         Likewise.
32191         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
32192         Likewise.
32193         * modules/unictype/property-paired-punctuation (Depends-on,
32194         configure.ac): Likewise.
32195         * modules/unictype/property-paragraph-separator (Depends-on,
32196         configure.ac): Likewise.
32197         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
32198         Likewise.
32199         * modules/unictype/property-pattern-white-space (Depends-on,
32200         configure.ac): Likewise.
32201         * modules/unictype/property-private-use (Depends-on, configure.ac):
32202         Likewise.
32203         * modules/unictype/property-punctuation (Depends-on, configure.ac):
32204         Likewise.
32205         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
32206         Likewise.
32207         * modules/unictype/property-radical (Depends-on, configure.ac):
32208         Likewise.
32209         * modules/unictype/property-sentence-terminal (Depends-on,
32210         configure.ac): Likewise.
32211         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
32212         Likewise.
32213         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
32214         * modules/unictype/property-terminal-punctuation (Depends-on,
32215         configure.ac): Likewise.
32216         * modules/unictype/property-titlecase (Depends-on, configure.ac):
32217         Likewise.
32218         * modules/unictype/property-unassigned-code-value (Depends-on,
32219         configure.ac): Likewise.
32220         * modules/unictype/property-unified-ideograph (Depends-on,
32221         configure.ac): Likewise.
32222         * modules/unictype/property-uppercase (Depends-on, configure.ac):
32223         Likewise.
32224         * modules/unictype/property-variation-selector (Depends-on,
32225         configure.ac): Likewise.
32226         * modules/unictype/property-white-space (Depends-on, configure.ac):
32227         Likewise.
32228         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
32229         Likewise.
32230         * modules/unictype/property-xid-start (Depends-on, configure.ac):
32231         Likewise.
32232         * modules/unictype/property-zero-width (Depends-on, configure.ac):
32233         Likewise.
32234         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
32235         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
32236         Likewise.
32237
32238 2009-12-31  Bruno Haible  <bruno@clisp.org>
32239
32240         Remove unnecessary AC_C_INLINE invocation.
32241         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
32242         since 2009-08-21.
32243
32244 2009-12-31  Jim Meyering  <meyering@redhat.com>
32245
32246         maint.mk: don't require explicit gpg_key_ID in cfg.mk
32247         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
32248         With this change, we can all remove the gpg_key_ID = ... definition
32249         from our respective cfg.mk files.
32250
32251         maint.mk: create announcement template in ~/, not in /tmp
32252         * top/maint.mk (emit_upload_commands): Adjust.
32253         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
32254         Remove temporary file, .ci-msg.
32255
32256 2009-12-31  Eric Blake  <ebb9@byu.net>
32257
32258         link-warning: always build headers with link warnings
32259         * modules/arpa_inet (Makefile.am): Always build replacement
32260         header.
32261         * modules/ctype (Makefile.am): Likewise.
32262         * modules/dirent (Makefile.am): Likewise.
32263         * modules/inttypes (Makefile.am): Likewise.
32264         * modules/langinfo (Makefile.am): Likewise.
32265         * modules/locale (Makefile.am): Likewise.
32266         * modules/spawn (Makefile.am): Likewise.
32267         * modules/sys_file (Makefile.am): Likewise.
32268         * modules/sys_ioctl (Makefile.am): Likewise.
32269         * modules/sys_select (Makefile.am): Likewise.
32270         * modules/sys_socket (Makefile.am): Likewise.
32271         * modules/sys_times (Makefile.am): Likewise.
32272         * modules/sys_utsname (Makefile.am): Likewise.
32273         * modules/sys_wait (Makefile.am): Likewise.
32274         * modules/wchar (Makefile.am): Likewise.
32275         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
32276         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
32277         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
32278         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
32279         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
32280         Likewise.
32281         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32282         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
32283         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
32284         Likewise.
32285         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
32286         Likewise.
32287         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
32288         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
32289         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
32290         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32291         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
32292         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
32293         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
32294         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
32295         (gl_WCHAR_H_DEFAULTS): Likewise.
32296
32297 2009-12-31  Eric Blake  <ebb9@byu.net>
32298
32299         signal, spawn: use link warnings
32300         * lib/signal.in.h (sigset_t): Make unconditional.
32301         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
32302         (sigpending, sigprocmask, sigaction): Add link warnings.
32303         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
32304         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
32305         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
32306         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
32307         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
32308         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
32309         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
32310         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
32311         (posix_spawn_file_actions_destroy)
32312         (posix_spawn_file_actions_addopen)
32313         (posix_spawn_file_actions_addclose)
32314         (posix_spawn_file_actions_adddup2): Likewise.
32315         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
32316         * tests/test-signal.c (main): Enhance test.
32317
32318         spawn: improve wrapper support
32319         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
32320         (gl_SPAWN_H_DEFAULTS): New defaults.
32321         * modules/spawn (Makefile.am): Substitute them.
32322         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
32323         Only declare if missing or broken.
32324
32325         sys_times, sys_utsname: use include_next
32326         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
32327         header.
32328         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
32329         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
32330         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
32331         * modules/sys_times (Depends-on): Add include_next.
32332         (Makefile.am): Substitute additional values.
32333         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
32334         * lib/sys_times.in.h (includes): Include native header, if
32335         available.
32336         * lib/sys_utsname.in.h (includes): Likewise.
32337         * tests/test-sys_times.c (main): Enhance test.
32338
32339         fdutimensat: revert prior patch
32340         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
32341         utimens.h.
32342         Reported by Bruno Haible.
32343
32344 2009-12-30  Eric Blake  <ebb9@byu.net>
32345
32346         sys_wait: drop link-warning dependency
32347         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
32348         link-warning efforts.
32349         * lib/sys_wait.in.h: Likewise.
32350
32351         fdutimensat: remove bogus dependency
32352         * modules/fdutimensat (Depends-on): Drop inline.
32353
32354         unistd: fix typo
32355         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
32356
32357 2009-12-30  Bruno Haible  <bruno@clisp.org>
32358
32359         Fix compilation error with Solaris cc.
32360         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
32361         * lib/unicase/u16-is-invariant.c: Likewise.
32362         * lib/unicase/u32-is-invariant.c: Likewise.
32363         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
32364
32365 2009-12-30  Bruno Haible  <bruno@clisp.org>
32366
32367         Fix test crash.
32368         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
32369         locales.
32370         Reported by Simon Josefsson <simon@josefsson.org>.
32371
32372 2009-12-30  Bruno Haible  <bruno@clisp.org>
32373
32374         Fix compilation error on most platforms.
32375         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
32376         Reported by Simon Josefsson <simon@josefsson.org>
32377         and Nelson H. F. Beebe <beebe@math.utah.edu>.
32378
32379 2009-12-30  Eric Blake  <ebb9@byu.net>
32380
32381         futimens, utimensat: work around ntfs-3g bug
32382         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
32383         a ctime bug is present, and expand workaround to cover ntfs-3g.
32384         * lib/utimens.c (fdutimens, lutimens): Likewise.
32385         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
32386         (validate_timespec): Adjust return value.
32387         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
32388         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32389         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
32390
32391 2009-12-29  Eric Blake  <ebb9@byu.net>
32392
32393         link-warning: make usage consistent
32394         * modules/ctype (Depends-on): Add link-warning.
32395         (Makefile.am): Update rules accordingly.
32396         * modules/langinfo (Depends-on, Makefile.am): Likewise.
32397         * modules/locale (Depends-on, Makefile.am): Likewise.
32398         * modules/sys_file (Makefile.am): Likewise.
32399         * modules/getopt-posix (Makefile.am): Delete unused link warning
32400         efforts.
32401         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
32402         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
32403         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
32404         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
32405
32406         stdio: remove unused variables
32407         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
32408         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
32409         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
32410
32411         tests: test more substitute headers
32412         * modules/ctype-tests: New file.
32413         * modules/dirent-tests: Likewise.
32414         * modules/spawn-tests: Likewise.
32415         * modules/sys_file-tests: Likewise.
32416         * modules/sys_ioctl-tests: Likewise.
32417         * modules/sys_wait-tests: Likewise.
32418         * tests/test-ctype.c: Likewise.
32419         * tests/test-dirent.c: Likewise.
32420         * tests/test-spawn.c: Likewise.
32421         * tests/test-sys_file.c: Likewise.
32422         * tests/test-sys_ioctl.c: Likewise.
32423         * tests/test-sys_wait.c: Likewise.
32424         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
32425         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
32426         whether or not flock is in use.
32427
32428         tests: remove License section from module
32429         * modules/arpa_inet-tests: Remove unneeded section.
32430         * modules/byteswap-tests: Likewise.
32431         * modules/ceilf-tests: Likewise.
32432         * modules/ceill-tests: Likewise.
32433         * modules/crypto/des-tests: Likewise.
32434         * modules/crypto/gc-arcfour-tests: Likewise.
32435         * modules/crypto/gc-arctwo-tests: Likewise.
32436         * modules/crypto/gc-des-tests: Likewise.
32437         * modules/crypto/gc-hmac-md5-tests: Likewise.
32438         * modules/crypto/gc-hmac-sha1-tests: Likewise.
32439         * modules/crypto/gc-md2-tests: Likewise.
32440         * modules/crypto/gc-md4-tests: Likewise.
32441         * modules/crypto/gc-md5-tests: Likewise.
32442         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
32443         * modules/crypto/gc-rijndael-tests: Likewise.
32444         * modules/crypto/gc-sha1-tests: Likewise.
32445         * modules/crypto/gc-tests: Likewise.
32446         * modules/crypto/md2-tests: Likewise.
32447         * modules/crypto/md4-tests: Likewise.
32448         * modules/fcntl-h-tests: Likewise.
32449         * modules/floorf-tests: Likewise.
32450         * modules/floorl-tests: Likewise.
32451         * modules/frexp-nolibm-tests: Likewise.
32452         * modules/frexp-tests: Likewise.
32453         * modules/frexpl-nolibm-tests: Likewise.
32454         * modules/frexpl-tests: Likewise.
32455         * modules/getaddrinfo-tests: Likewise.
32456         * modules/inttypes-tests: Likewise.
32457         * modules/isfinite-tests: Likewise.
32458         * modules/isinf-tests: Likewise.
32459         * modules/ldexpl-tests: Likewise.
32460         * modules/locale-tests: Likewise.
32461         * modules/math-tests: Likewise.
32462         * modules/netdb-tests: Likewise.
32463         * modules/netinet_in-tests: Likewise.
32464         * modules/printf-frexp-tests: Likewise.
32465         * modules/printf-frexpl-tests: Likewise.
32466         * modules/priv-set-tests: Likewise.
32467         * modules/random_r-tests: Likewise.
32468         * modules/round-tests: Likewise.
32469         * modules/roundf-tests: Likewise.
32470         * modules/roundl-tests: Likewise.
32471         * modules/search-tests: Likewise.
32472         * modules/select-tests: Likewise.
32473         * modules/signal-tests: Likewise.
32474         * modules/stdbool-tests: Likewise.
32475         * modules/stddef-tests: Likewise.
32476         * modules/stdint-tests: Likewise.
32477         * modules/stdio-tests: Likewise.
32478         * modules/stdlib-tests: Likewise.
32479         * modules/string-tests: Likewise.
32480         * modules/strings-tests: Likewise.
32481         * modules/sys_select-tests: Likewise.
32482         * modules/sys_socket-tests: Likewise.
32483         * modules/sys_stat-tests: Likewise.
32484         * modules/sys_time-tests: Likewise.
32485         * modules/sys_utsname-tests: Likewise.
32486         * modules/sysexits-tests: Likewise.
32487         * modules/time-tests: Likewise.
32488         * modules/trunc-tests: Likewise.
32489         * modules/truncf-tests: Likewise.
32490         * modules/truncl-tests: Likewise.
32491         * modules/tsearch-tests: Likewise.
32492         * modules/unistd-tests: Likewise.
32493         * modules/wchar-tests: Likewise.
32494         * modules/wctype-tests: Likewise.
32495
32496         tests: fix license on several tests
32497         * tests/test-des.c: Update to GPLv3+.
32498         * tests/test-flock.c: Likewise.
32499         * tests/test-fsync.c: Likewise.
32500         * tests/test-futimens.h: Likewise.
32501         * tests/test-gc-arcfour.c: Likewise.
32502         * tests/test-gc-arctwo.c: Likewise.
32503         * tests/test-gc-des.c: Likewise.
32504         * tests/test-gc-hmac-md5.c: Likewise.
32505         * tests/test-gc-hmac-sha1.c: Likewise.
32506         * tests/test-gc-md2.c: Likewise.
32507         * tests/test-gc-md4.c: Likewise.
32508         * tests/test-gc-md5.c: Likewise.
32509         * tests/test-gc-pbkdf2-sha1.c: Likewise.
32510         * tests/test-gc-rijndael.c: Likewise.
32511         * tests/test-gc-sha1.c: Likewise.
32512         * tests/test-gc.c: Likewise.
32513         * tests/test-getcwd.c: Likewise.
32514         * tests/test-link.c: Likewise.
32515         * tests/test-link.h: Likewise.
32516         * tests/test-lutimens.h: Likewise.
32517         * tests/test-md2.c: Likewise.
32518         * tests/test-md4.c: Likewise.
32519         * tests/test-mkdir.h: Likewise.
32520         * tests/test-rename.c: Likewise.
32521         * tests/test-rename.h: Likewise.
32522         * tests/test-safe-alloc.c: Likewise.
32523         * tests/test-utimens-common.h: Likewise.
32524         * tests/test-utimens.h: Likewise.
32525
32526         maint: sync license texts
32527         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
32528         * doc/gpl-3.0.texi: Revert copyright year update.
32529         * doc/lgpl-3.0.texi: Likewise.
32530
32531 2009-12-29  Jim Meyering  <meyering@redhat.com>
32532
32533         update nearly all FSF copyright year lists to include 2009
32534         The files named by the following are exempted:
32535             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
32536               test -f "$dst" && { echo "$dst"; continue; }
32537               test -d "$dst" || continue
32538               echo "$dst"/$(basename "$src")
32539             done > exempt
32540             git ls-files tests/unictype >> exempt
32541         In the remaining files, convert to all-interval notation if
32542         - there is already at least one year interval like 2000-2003
32543         - the file is maintained by me
32544         - the file is in lib/uni*/, where that style already prevails
32545         Otherwise, use update-copyright's default.
32546
32547 2009-12-29  Simon Josefsson  <simon@josefsson.org>
32548         and Eric Blake  <ebb9@byu.net>
32549
32550         tests: don't require debug system() to pass
32551         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
32552         * tests/test-rmdir.h (test_rmdir_func): Likewise.
32553         * tests/test-unlink.h (test_unlink_func): Likewise.
32554         * tests/test-fstatat.c (main): ...into callers.
32555         * tests/test-lstat.c (main): Likewise.
32556         * tests/test-rmdir.c (main): Likewise.
32557         * tests/test-unlink.c (main): Likewise.
32558         * tests/test-unlinkat.c (main): Likewise.
32559         * tests/test-areadlink-with-size.c (main): Don't require a
32560         debug-only system call to pass, aiding cross-testing to mingw.
32561         * tests/test-areadlink.c (main): Likewise.
32562         * tests/test-areadlinkat-with-size.c (main): Likewise.
32563         * tests/test-areadlinkat.c (main): Likewise.
32564         * tests/test-canonicalize-lgpl.c (main): Likewise.
32565         * tests/test-canonicalize.c (main): Likewise.
32566         * tests/test-chown.c (main): Likewise.
32567         * tests/test-fchownat.c (main): Likewise.
32568         * tests/test-lchown.c (main): Likewise.
32569         * tests/test-fdutimensat.c (main): Likewise.
32570         * tests/test-futimens.c (main): Likewise.
32571         * tests/test-link.c (main): Likewise.
32572         * tests/test-linkat.c (main): Likewise.
32573         * tests/test-mkdir.c (main): Likewise.
32574         * tests/test-mkdirat.c (main): Likewise.
32575         * tests/test-mkfifo.c (main): Likewise.
32576         * tests/test-mkfifoat.c (main): Likewise.
32577         * tests/test-mknod.c (main): Likewise.
32578         * tests/test-readlink.c (main): Likewise.
32579         * tests/test-remove.c (main): Likewise.
32580         * tests/test-rename.c (main): Likewise.
32581         * tests/test-renameat.c (main): Likewise.
32582         * tests/test-symlink.c (main): Likewise.
32583         * tests/test-symlinkat.c (main): Likewise.
32584         * tests/test-utimens.c (main): Likewise.
32585         * tests/test-utimensat.c (main): Likewise.
32586
32587 2009-12-29  Simon Josefsson  <simon@josefsson.org>
32588
32589         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
32590         on $(UNUSED_PARAMETER_H) to avoid build failure.
32591
32592 2009-12-28  Jim Meyering  <meyering@redhat.com>
32593
32594         update-copyright: you may specify a max. line length other than 72
32595         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
32596
32597         maint: use consistent FSF copyright line syntax
32598         * lib/posixtm.c: Add missing comma in FSF copyright line.
32599         * lib/posixtm.h: Likewise.
32600         * lib/getugroups.c: Add missing ", Inc.".
32601
32602         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
32603         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
32604         FSF copyright line.  Remove trailing blanks.
32605
32606 2009-12-28  Eric Blake  <ebb9@byu.net>
32607
32608         test-dup2: reduce dependencies
32609         * modules/cloexec (Configure.ac): Set witness.
32610         * modules/dup2-tests (Depends-on): Drop cloexec.
32611         * tests/test-dup2.c (main): Skip portion of test if cloexec module
32612         not present.
32613         Suggested by Bruno Haible.
32614
32615 2009-12-26  Bruno Haible  <bruno@clisp.org>
32616
32617         Remove an unneeded dependency.
32618         * modules/fseterr (Depends-on): Remove dup2.
32619
32620 2009-12-26  Eric Blake  <ebb9@byu.net>
32621
32622         tests: use macros.h in more places
32623         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
32624         (ASSERT_STREAM): Provide default of stderr.
32625         * tests/test-dirent-safer.c: Include macros.h, using alternate
32626         stream for assertions.
32627         * tests/test-dup-safer.c: Likewise.
32628         * tests/test-freopen-safer.c: Likewise.
32629         * tests/test-getopt.c: Likewise.
32630         * tests/test-openat-safer.c: Likewise.
32631         * tests/test-pipe.c: Likewise.
32632         * tests/test-popen-safer.c: Likewise.
32633         * modules/dirent-safer-tests (Files): Include macros.h.
32634         * modules/unistd-safer-tests (Files): Likewise.
32635         * modules/freopen-safer-tests (Files): Likewise.
32636         * modules/getopt-posix-tests (Files): Likewise.
32637         * modules/openat-safer-tests (Files): Likewise.
32638         * modules/pipe-tests (Files): Likewise.
32639
32640 2009-12-26  Bruno Haible  <bruno@clisp.org>
32641
32642         javacomp: Portability fix.
32643         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
32644         that it also works on Solaris.
32645
32646 2009-12-26  Bruno Haible  <bruno@clisp.org>
32647
32648         localename: Fix storage allocation of gl_locale_name_thread's result.
32649         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
32650         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
32651         all platforms that have 'uselocale'.
32652         (gl_locale_name_thread_unsafe): New function, extracted from
32653         gl_locale_name_thread.
32654         (gl_locale_name_thread): Call struniq on all platforms that have
32655         'uselocale'.
32656         * tests/test-localename.c (test_locale_name_thread): Check that the
32657         resulting strings are permanently allocated.
32658         * modules/localename-tests (Depends-on): Add strdup.
32659
32660 2009-12-26  Bruno Haible  <bruno@clisp.org>
32661
32662         * tests/test-localename.c (categories): Fill in the strings.
32663
32664 2009-12-26  Jim Meyering  <meyering@redhat.com>
32665
32666         isdir: complete the removal of m4/isdir.m4
32667         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
32668
32669         isdir: clean up, since at least grep still uses it
32670         * lib/isdir.c: Include "isdir.h".
32671         (S_ISDIR): Remove now-unneeded definition.
32672         * modules/isdir (Files): Add lib/isdir.h.
32673         * lib/isdir.h: New file, with declaration.
32674         * m4/isdir.m4: Remove file -- unneeded.
32675
32676 2009-12-25  Bruno Haible  <bruno@clisp.org>
32677
32678         selinux-h: Make generated .h files standalone.
32679         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
32680         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
32681         * lib/se-selinux.in.h: Likewise.
32682         * modules/selinux-h (Depends-on): Add unused-parameter.
32683         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
32684         selinux/selinux.h and selinux/context.h.
32685         Suggested by Eric Blake.
32686
32687 2009-12-25  Bruno Haible  <bruno@clisp.org>
32688
32689         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
32690         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
32691         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
32692         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
32693         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
32694
32695 2009-12-24  Bruno Haible  <bruno@clisp.org>
32696
32697         openat: Fix warning.
32698         * lib/openat-proc.c: Include <unistd.h>.
32699
32700 2009-12-24  Bruno Haible  <bruno@clisp.org>
32701
32702         New module 'unused-parameter'.
32703         * build-aux/unused-parameter.h: New file, extracted from earlier
32704         gnulib-common.m4.
32705         * modules/unused-parameter: New file.
32706         * lib/unistr.h: Include unused-parameter.h.
32707         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
32708         _GL_UNUSED.
32709         * modules/unistr/base (Depends-on): Add unused-parameter.
32710
32711 2009-12-24  Bruno Haible  <bruno@clisp.org>
32712
32713         Add missing dependencies to 'extensions' module.
32714         * m4/extensions.m4: Add comment.
32715         * modules/accept4 (Depends-on): Add extensions.
32716         * modules/dup3 (Depends-on): Likewise.
32717         * modules/fcntl (Depends-on): Likewise.
32718         * modules/futimens (Depends-on): Likewise.
32719         * modules/mknod (Depends-on): Likewise.
32720         * modules/pipe2 (Depends-on): Likewise.
32721         * modules/stat-time (Depends-on): Likewise.
32722         * modules/strcasestr-simple (Depends-on): Likewise.
32723         * modules/strsignal (Depends-on): Likewise.
32724         * modules/utimensat (Depends-on): Likewise.
32725         * modules/localcharset (Depends-on): Likewise. Needed because of
32726         gl_FCNTL_O_FLAGS.
32727         * modules/wcrtomb (Depends-on): Likewise. Needed because of
32728         AC_TYPE_MBSTATE_T.
32729         * modules/wcsnrtombs (Depends-on): Likewise.
32730         * modules/wcsrtombs (Depends-on): Likewise.
32731
32732 2009-12-24  Bruno Haible  <bruno@clisp.org>
32733
32734         binary-io: Avoid gcc warning due to SET_BINARY.
32735         * lib/binary-io.h (SET_BINARY): Cast the result to void.
32736         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
32737
32738 2009-12-24  Bruno Haible  <bruno@clisp.org>
32739
32740         Avoid future namespace pollution on glibc systems.
32741         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
32742         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
32743         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
32744         glibc systems.
32745
32746 2009-12-24  Bruno Haible  <bruno@clisp.org>
32747
32748         Refactor common macros used in tests.
32749         * tests/macros.h: New file.
32750         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
32751         and/or <stdlib.h>, if appropriate.
32752         (ASSERT, SIZEOF): Remove macros.
32753         * tests/test-areadlink-with-size.c: Likewise.
32754         * tests/test-areadlinkat.c: Likewise.
32755         * tests/test-areadlinkat-with-size.c: Likewise.
32756         * tests/test-argmatch.c: Likewise.
32757         * tests/test-argv-iter.c: Likewise.
32758         * tests/test-array-mergesort.c: Likewise.
32759         * tests/test-array_list.c: Likewise.
32760         * tests/test-array_oset.c: Likewise.
32761         * tests/test-avltree_list.c: Likewise.
32762         * tests/test-avltree_oset.c: Likewise.
32763         * tests/test-avltreehash_list.c: Likewise.
32764         * tests/test-base64.c: Likewise.
32765         * tests/test-binary-io.c: Likewise.
32766         * tests/test-bitrotate.c: Likewise.
32767         * tests/test-btowc.c: Likewise.
32768         * tests/test-byteswap.c: Likewise.
32769         * tests/test-c-ctype.c: Likewise.
32770         * tests/test-c-stack.c: Likewise.
32771         * tests/test-c-strcasecmp.c: Likewise.
32772         * tests/test-c-strcasestr.c: Likewise.
32773         * tests/test-c-strncasecmp.c: Likewise.
32774         * tests/test-c-strstr.c: Likewise.
32775         * tests/test-canonicalize-lgpl.c: Likewise.
32776         * tests/test-canonicalize.c: Likewise.
32777         * tests/test-carray_list.c: Likewise.
32778         * tests/test-ceilf1.c: Likewise.
32779         * tests/test-ceilf2.c: Likewise.
32780         * tests/test-ceill.c: Likewise.
32781         * tests/test-chown.c: Likewise.
32782         * tests/test-cloexec.c: Likewise.
32783         * tests/test-copy-acl.c: Likewise.
32784         * tests/test-copy-file.c: Likewise.
32785         * tests/test-count-one-bits.c: Likewise.
32786         * tests/test-dprintf-posix.c: Likewise.
32787         * tests/test-dup2.c: Likewise.
32788         * tests/test-dup3.c: Likewise.
32789         * tests/test-duplocale.c: Likewise.
32790         * tests/test-fbufmode.c: Likewise.
32791         * tests/test-fchdir.c: Likewise.
32792         * tests/test-fchownat.c: Likewise.
32793         * tests/test-fcntl-safer.c: Likewise.
32794         * tests/test-fcntl.c: Likewise.
32795         * tests/test-fdopendir.c: Likewise.
32796         * tests/test-fdutimensat.c: Likewise.
32797         * tests/test-fflush2.c: Likewise.
32798         * tests/test-file-has-acl.c: Likewise.
32799         * tests/test-filevercmp.c: Likewise.
32800         * tests/test-flock.c: Likewise.
32801         * tests/test-floorf1.c: Likewise.
32802         * tests/test-floorf2.c: Likewise.
32803         * tests/test-floorl.c: Likewise.
32804         * tests/test-fnmatch.c: Likewise.
32805         * tests/test-fopen.h: Likewise.
32806         * tests/test-fpending.c: Likewise.
32807         * tests/test-fprintf-posix.c: Likewise.
32808         * tests/test-fpurge.c: Likewise.
32809         * tests/test-freadable.c: Likewise.
32810         * tests/test-freadahead.c: Likewise.
32811         * tests/test-freading.c: Likewise.
32812         * tests/test-freadptr.c: Likewise.
32813         * tests/test-freadptr2.c: Likewise.
32814         * tests/test-freadseek.c: Likewise.
32815         * tests/test-freopen.c: Likewise.
32816         * tests/test-frexp.c: Likewise.
32817         * tests/test-frexpl.c: Likewise.
32818         * tests/test-fseek.c: Likewise.
32819         * tests/test-fseeko.c: Likewise.
32820         * tests/test-fstatat.c: Likewise.
32821         * tests/test-fstrcmp.c: Likewise.
32822         * tests/test-fsync.c: Likewise.
32823         * tests/test-ftell.c: Likewise.
32824         * tests/test-ftello.c: Likewise.
32825         * tests/test-func.c: Likewise.
32826         * tests/test-futimens.c: Likewise.
32827         * tests/test-fwritable.c: Likewise.
32828         * tests/test-fwriting.c: Likewise.
32829         * tests/test-getcwd.c: Likewise.
32830         * tests/test-getdate.c: Likewise.
32831         * tests/test-getdelim.c: Likewise.
32832         * tests/test-getdtablesize.c: Likewise.
32833         * tests/test-getgroups.c: Likewise.
32834         * tests/test-getline.c: Likewise.
32835         * tests/test-getndelim2.c: Likewise.
32836         * tests/test-glob.c: Likewise.
32837         * tests/test-hash.c: Likewise.
32838         * tests/test-i-ring.c: Likewise.
32839         * tests/test-iconv-utf.c: Likewise.
32840         * tests/test-iconv.c: Likewise.
32841         * tests/test-idpriv-drop.c: Likewise.
32842         * tests/test-idpriv-droptemp.c: Likewise.
32843         * tests/test-inet_ntop.c: Likewise.
32844         * tests/test-inet_pton.c: Likewise.
32845         * tests/test-isblank.c: Likewise.
32846         * tests/test-isfinite.c: Likewise.
32847         * tests/test-isinf.c: Likewise.
32848         * tests/test-isnan.c: Likewise.
32849         * tests/test-isnand.h: Likewise.
32850         * tests/test-isnanf.h: Likewise.
32851         * tests/test-isnanl.h: Likewise.
32852         * tests/test-lchown.c: Likewise.
32853         * tests/test-ldexpl.c: Likewise.
32854         * tests/test-link.c: Likewise.
32855         * tests/test-linkat.c: Likewise.
32856         * tests/test-linked_list.c: Likewise.
32857         * tests/test-linkedhash_list.c: Likewise.
32858         * tests/test-localename.c: Likewise.
32859         * tests/test-lseek.c: Likewise.
32860         * tests/test-lstat.c: Likewise.
32861         * tests/test-mbmemcasecmp.c: Likewise.
32862         * tests/test-mbmemcasecoll.c: Likewise.
32863         * tests/test-mbrtowc.c: Likewise.
32864         * tests/test-mbscasecmp.c: Likewise.
32865         * tests/test-mbscasestr1.c: Likewise.
32866         * tests/test-mbscasestr2.c: Likewise.
32867         * tests/test-mbscasestr3.c: Likewise.
32868         * tests/test-mbscasestr4.c: Likewise.
32869         * tests/test-mbschr.c: Likewise.
32870         * tests/test-mbscspn.c: Likewise.
32871         * tests/test-mbsinit.c: Likewise.
32872         * tests/test-mbsncasecmp.c: Likewise.
32873         * tests/test-mbsnrtowcs.c: Likewise.
32874         * tests/test-mbspbrk.c: Likewise.
32875         * tests/test-mbspcasecmp.c: Likewise.
32876         * tests/test-mbsrchr.c: Likewise.
32877         * tests/test-mbsrtowcs.c: Likewise.
32878         * tests/test-mbsspn.c: Likewise.
32879         * tests/test-mbsstr1.c: Likewise.
32880         * tests/test-mbsstr2.c: Likewise.
32881         * tests/test-mbsstr3.c: Likewise.
32882         * tests/test-memchr.c: Likewise.
32883         * tests/test-memchr2.c: Likewise.
32884         * tests/test-memcmp.c: Likewise.
32885         * tests/test-memmem.c: Likewise.
32886         * tests/test-memrchr.c: Likewise.
32887         * tests/test-mkdir.c: Likewise.
32888         * tests/test-mkdirat.c: Likewise.
32889         * tests/test-mkfifo.c: Likewise.
32890         * tests/test-mkfifoat.c: Likewise.
32891         * tests/test-mknod.c: Likewise.
32892         * tests/test-nanosleep.c: Likewise.
32893         * tests/test-nl_langinfo.c: Likewise.
32894         * tests/test-obstack-printf.c: Likewise.
32895         * tests/test-open.c: Likewise.
32896         * tests/test-openat.c: Likewise.
32897         * tests/test-pipe-filter-gi1.c: Likewise.
32898         * tests/test-pipe-filter-gi2-main.c: Likewise.
32899         * tests/test-pipe-filter-ii1.c: Likewise.
32900         * tests/test-pipe-filter-ii2-main.c: Likewise.
32901         * tests/test-pipe2.c: Likewise.
32902         * tests/test-popen.h: Likewise.
32903         * tests/test-posixtm.c: Likewise.
32904         * tests/test-pread.c: Likewise.
32905         * tests/test-printf-frexp.c: Likewise.
32906         * tests/test-printf-frexpl.c: Likewise.
32907         * tests/test-printf-posix.c: Likewise.
32908         * tests/test-priv-set.c: Likewise.
32909         * tests/test-quotearg.c: Likewise.
32910         * tests/test-random_r.c: Likewise.
32911         * tests/test-rawmemchr.c: Likewise.
32912         * tests/test-rbtree_list.c: Likewise.
32913         * tests/test-rbtree_oset.c: Likewise.
32914         * tests/test-rbtreehash_list.c: Likewise.
32915         * tests/test-readlink.c: Likewise.
32916         * tests/test-remove.c: Likewise.
32917         * tests/test-rename.c: Likewise.
32918         * tests/test-renameat.c: Likewise.
32919         * tests/test-rmdir.c: Likewise.
32920         * tests/test-round1.c: Likewise.
32921         * tests/test-roundf1.c: Likewise.
32922         * tests/test-roundl.c: Likewise.
32923         * tests/test-safe-alloc.c: Likewise.
32924         * tests/test-sameacls.c: Likewise.
32925         * tests/test-set-mode-acl.c: Likewise.
32926         * tests/test-setenv.c: Likewise.
32927         * tests/test-sigaction.c: Likewise.
32928         * tests/test-signbit.c: Likewise.
32929         * tests/test-sleep.c: Likewise.
32930         * tests/test-snprintf-posix.c: Likewise.
32931         * tests/test-snprintf.c: Likewise.
32932         * tests/test-sprintf-posix.c: Likewise.
32933         * tests/test-stat-time.c: Likewise.
32934         * tests/test-stat.c: Likewise.
32935         * tests/test-strcasestr.c: Likewise.
32936         * tests/test-strchrnul.c: Likewise.
32937         * tests/test-strerror.c: Likewise.
32938         * tests/test-striconv.c: Likewise.
32939         * tests/test-striconveh.c: Likewise.
32940         * tests/test-striconveha.c: Likewise.
32941         * tests/test-strsignal.c: Likewise.
32942         * tests/test-strstr.c: Likewise.
32943         * tests/test-strtod.c: Likewise.
32944         * tests/test-strverscmp.c: Likewise.
32945         * tests/test-symlink.c: Likewise.
32946         * tests/test-symlinkat.c: Likewise.
32947         * tests/test-trunc1.c: Likewise.
32948         * tests/test-trunc2.c: Likewise.
32949         * tests/test-truncf1.c: Likewise.
32950         * tests/test-truncf2.c: Likewise.
32951         * tests/test-truncl.c: Likewise.
32952         * tests/test-uname.c: Likewise.
32953         * tests/test-unlink.c: Likewise.
32954         * tests/test-unlinkat.c: Likewise.
32955         * tests/test-unsetenv.c: Likewise.
32956         * tests/test-usleep.c: Likewise.
32957         * tests/test-utimens.c: Likewise.
32958         * tests/test-utimensat.c: Likewise.
32959         * tests/test-vasnprintf-posix.c: Likewise.
32960         * tests/test-vasnprintf-posix2.c: Likewise.
32961         * tests/test-vasnprintf.c: Likewise.
32962         * tests/test-vasprintf-posix.c: Likewise.
32963         * tests/test-vasprintf.c: Likewise.
32964         * tests/test-vdprintf-posix.c: Likewise.
32965         * tests/test-vfprintf-posix.c: Likewise.
32966         * tests/test-vprintf-posix.c: Likewise.
32967         * tests/test-vsnprintf-posix.c: Likewise.
32968         * tests/test-vsnprintf.c: Likewise.
32969         * tests/test-vsprintf-posix.c: Likewise.
32970         * tests/test-wcrtomb.c: Likewise.
32971         * tests/test-wcsnrtombs.c: Likewise.
32972         * tests/test-wcsrtombs.c: Likewise.
32973         * tests/test-wctype.c: Likewise.
32974         * tests/test-wcwidth.c: Likewise.
32975         * tests/test-xfprintf-posix.c: Likewise.
32976         * tests/test-xmemdup0.c: Likewise.
32977         * tests/test-xprintf-posix.c: Likewise.
32978         * tests/test-xvasprintf.c: Likewise.
32979         * tests/unicase/test-locale-language.c: Likewise.
32980         * tests/unicase/test-mapping-part1.h: Likewise.
32981         * tests/unicase/test-predicate-part1.h: Likewise.
32982         * tests/unicase/test-u8-casecmp.c: Likewise.
32983         * tests/unicase/test-u8-casecoll.c: Likewise.
32984         * tests/unicase/test-u8-casefold.c: Likewise.
32985         * tests/unicase/test-u8-is-cased.c: Likewise.
32986         * tests/unicase/test-u8-is-casefolded.c: Likewise.
32987         * tests/unicase/test-u8-is-lowercase.c: Likewise.
32988         * tests/unicase/test-u8-is-titlecase.c: Likewise.
32989         * tests/unicase/test-u8-is-uppercase.c: Likewise.
32990         * tests/unicase/test-u8-tolower.c: Likewise.
32991         * tests/unicase/test-u8-totitle.c: Likewise.
32992         * tests/unicase/test-u8-toupper.c: Likewise.
32993         * tests/unicase/test-u16-casecmp.c: Likewise.
32994         * tests/unicase/test-u16-casecoll.c: Likewise.
32995         * tests/unicase/test-u16-casefold.c: Likewise.
32996         * tests/unicase/test-u16-is-cased.c: Likewise.
32997         * tests/unicase/test-u16-is-casefolded.c: Likewise.
32998         * tests/unicase/test-u16-is-lowercase.c: Likewise.
32999         * tests/unicase/test-u16-is-titlecase.c: Likewise.
33000         * tests/unicase/test-u16-is-uppercase.c: Likewise.
33001         * tests/unicase/test-u16-tolower.c: Likewise.
33002         * tests/unicase/test-u16-totitle.c: Likewise.
33003         * tests/unicase/test-u16-toupper.c: Likewise.
33004         * tests/unicase/test-u32-casecmp.c: Likewise.
33005         * tests/unicase/test-u32-casecoll.c: Likewise.
33006         * tests/unicase/test-u32-casefold.c: Likewise.
33007         * tests/unicase/test-u32-is-cased.c: Likewise.
33008         * tests/unicase/test-u32-is-casefolded.c: Likewise.
33009         * tests/unicase/test-u32-is-lowercase.c: Likewise.
33010         * tests/unicase/test-u32-is-titlecase.c: Likewise.
33011         * tests/unicase/test-u32-is-uppercase.c: Likewise.
33012         * tests/unicase/test-u32-tolower.c: Likewise.
33013         * tests/unicase/test-u32-totitle.c: Likewise.
33014         * tests/unicase/test-u32-toupper.c: Likewise.
33015         * tests/unicase/test-ulc-casecmp.c: Likewise.
33016         * tests/unicase/test-ulc-casecoll.c: Likewise.
33017         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
33018         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
33019         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
33020         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
33021         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
33022         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
33023         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
33024         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
33025         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
33026         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
33027         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
33028         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
33029         * tests/unictype/test-bidi_byname.c: Likewise.
33030         * tests/unictype/test-bidi_name.c: Likewise.
33031         * tests/unictype/test-bidi_of.c: Likewise.
33032         * tests/unictype/test-bidi_test.c: Likewise.
33033         * tests/unictype/test-block_list.c: Likewise.
33034         * tests/unictype/test-block_of.c: Likewise.
33035         * tests/unictype/test-block_test.c: Likewise.
33036         * tests/unictype/test-categ_and.c: Likewise.
33037         * tests/unictype/test-categ_and_not.c: Likewise.
33038         * tests/unictype/test-categ_byname.c: Likewise.
33039         * tests/unictype/test-categ_name.c: Likewise.
33040         * tests/unictype/test-categ_none.c: Likewise.
33041         * tests/unictype/test-categ_of.c: Likewise.
33042         * tests/unictype/test-categ_or.c: Likewise.
33043         * tests/unictype/test-categ_test_withtable.c: Likewise.
33044         * tests/unictype/test-combining.c: Likewise.
33045         * tests/unictype/test-decdigit.c: Likewise.
33046         * tests/unictype/test-digit.c: Likewise.
33047         * tests/unictype/test-mirror.c: Likewise.
33048         * tests/unictype/test-numeric.c: Likewise.
33049         * tests/unictype/test-pr_byname.c: Likewise.
33050         * tests/unictype/test-pr_test.c: Likewise.
33051         * tests/unictype/test-predicate-part1.h: Likewise.
33052         * tests/unictype/test-scripts.c: Likewise.
33053         * tests/unictype/test-sy_c_ident.c: Likewise.
33054         * tests/unictype/test-sy_java_ident.c: Likewise.
33055         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
33056         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
33057         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
33058         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
33059         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
33060         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
33061         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
33062         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
33063         * tests/uninorm/test-canonical-decomposition.c: Likewise.
33064         * tests/uninorm/test-compat-decomposition.c: Likewise.
33065         * tests/uninorm/test-composition.c: Likewise.
33066         * tests/uninorm/test-decomposing-form.c: Likewise.
33067         * tests/uninorm/test-decomposition.c: Likewise.
33068         * tests/uninorm/test-u8-nfc.c: Likewise.
33069         * tests/uninorm/test-u8-nfd.c: Likewise.
33070         * tests/uninorm/test-u8-nfkc.c: Likewise.
33071         * tests/uninorm/test-u8-nfkd.c: Likewise.
33072         * tests/uninorm/test-u8-normcmp.c: Likewise.
33073         * tests/uninorm/test-u8-normcoll.c: Likewise.
33074         * tests/uninorm/test-u16-nfc.c: Likewise.
33075         * tests/uninorm/test-u16-nfd.c: Likewise.
33076         * tests/uninorm/test-u16-nfkc.c: Likewise.
33077         * tests/uninorm/test-u16-nfkd.c: Likewise.
33078         * tests/uninorm/test-u16-normcmp.c: Likewise.
33079         * tests/uninorm/test-u16-normcoll.c: Likewise.
33080         * tests/uninorm/test-u32-nfc.c: Likewise.
33081         * tests/uninorm/test-u32-nfd.c: Likewise.
33082         * tests/uninorm/test-u32-nfkc.c: Likewise.
33083         * tests/uninorm/test-u32-nfkd.c: Likewise.
33084         * tests/uninorm/test-u32-normalize-big.c: Likewise.
33085         * tests/uninorm/test-u32-normcmp.c: Likewise.
33086         * tests/uninorm/test-u32-normcoll.c: Likewise.
33087         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
33088         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
33089         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
33090         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
33091         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
33092         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
33093         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
33094         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
33095         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
33096         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
33097         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
33098         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
33099         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
33100         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
33101         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
33102         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
33103         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
33104         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
33105         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
33106         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
33107         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
33108         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
33109         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
33110         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
33111         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
33112         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
33113         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
33114         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
33115         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
33116         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
33117         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
33118         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
33119         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
33120         * tests/uniwidth/test-u8-strwidth.c: Likewise.
33121         * tests/uniwidth/test-u8-width.c: Likewise.
33122         * tests/uniwidth/test-u16-strwidth.c: Likewise.
33123         * tests/uniwidth/test-u16-width.c: Likewise.
33124         * tests/uniwidth/test-u32-strwidth.c: Likewise.
33125         * tests/uniwidth/test-u32-width.c: Likewise.
33126         * tests/uniwidth/test-uc_width.c: Likewise.
33127         * tests/uniwidth/test-uc_width2.c: Likewise.
33128         * modules/acl-tests (Files): Add tests/macros.h.
33129         * modules/areadlink-tests (Files): Likewise.
33130         * modules/areadlink-with-size-tests (Files): Likewise.
33131         * modules/areadlinkat-tests (Files): Likewise.
33132         * modules/areadlinkat-with-size-tests (Files): Likewise.
33133         * modules/argmatch-tests (Files): Likewise.
33134         * modules/argv-iter-tests (Files): Likewise.
33135         * modules/array-list-tests (Files): Likewise.
33136         * modules/array-mergesort-tests (Files): Likewise.
33137         * modules/array-oset-tests (Files): Likewise.
33138         * modules/avltree-list-tests (Files): Likewise.
33139         * modules/avltree-oset-tests (Files): Likewise.
33140         * modules/avltreehash-list-tests (Files): Likewise.
33141         * modules/base64-tests (Files): Likewise.
33142         * modules/binary-io-tests (Files): Likewise.
33143         * modules/bitrotate-tests (Files): Likewise.
33144         * modules/btowc-tests (Files): Likewise.
33145         * modules/byteswap-tests (Files): Likewise.
33146         * modules/c-ctype-tests (Files): Likewise.
33147         * modules/c-stack-tests (Files): Likewise.
33148         * modules/c-strcase-tests (Files): Likewise.
33149         * modules/c-strcasestr-tests (Files): Likewise.
33150         * modules/c-strstr-tests (Files): Likewise.
33151         * modules/canonicalize-lgpl-tests (Files): Likewise.
33152         * modules/canonicalize-tests (Files): Likewise.
33153         * modules/carray-list-tests (Files): Likewise.
33154         * modules/ceilf-tests (Files): Likewise.
33155         * modules/ceill-tests (Files): Likewise.
33156         * modules/chown-tests (Files): Likewise.
33157         * modules/cloexec-tests (Files): Likewise.
33158         * modules/copy-file-tests (Files): Likewise.
33159         * modules/count-one-bits-tests (Files): Likewise.
33160         * modules/dprintf-posix-tests (Files): Likewise.
33161         * modules/dup2-tests (Files): Likewise.
33162         * modules/dup3-tests (Files): Likewise.
33163         * modules/duplocale-tests (Files): Likewise.
33164         * modules/fbufmode-tests (Files): Likewise.
33165         * modules/fchdir-tests (Files): Likewise.
33166         * modules/fcntl-safer-tests (Files): Likewise.
33167         * modules/fcntl-tests (Files): Likewise.
33168         * modules/fdopendir-tests (Files): Likewise.
33169         * modules/fdutimensat-tests (Files): Likewise.
33170         * modules/fflush-tests (Files): Likewise.
33171         * modules/filevercmp-tests (Files): Likewise.
33172         * modules/flock-tests (Files): Likewise.
33173         * modules/floorf-tests (Files): Likewise.
33174         * modules/floorl-tests (Files): Likewise.
33175         * modules/fnmatch-tests (Files): Likewise.
33176         * modules/fopen-safer-tests (Files): Likewise.
33177         * modules/fopen-tests (Files): Likewise.
33178         * modules/fpending-tests (Files): Likewise.
33179         * modules/fprintf-posix-tests (Files): Likewise.
33180         * modules/fpurge-tests (Files): Likewise.
33181         * modules/freadable-tests (Files): Likewise.
33182         * modules/freadahead-tests (Files): Likewise.
33183         * modules/freading-tests (Files): Likewise.
33184         * modules/freadptr-tests (Files): Likewise.
33185         * modules/freadseek-tests (Files): Likewise.
33186         * modules/freopen-tests (Files): Likewise.
33187         * modules/frexp-nolibm-tests (Files): Likewise.
33188         * modules/frexp-tests (Files): Likewise.
33189         * modules/frexpl-nolibm-tests (Files): Likewise.
33190         * modules/frexpl-tests (Files): Likewise.
33191         * modules/fseek-tests (Files): Likewise.
33192         * modules/fseeko-tests (Files): Likewise.
33193         * modules/fstrcmp-tests (Files): Likewise.
33194         * modules/fsync-tests (Files): Likewise.
33195         * modules/ftell-tests (Files): Likewise.
33196         * modules/ftello-tests (Files): Likewise.
33197         * modules/func-tests (Files): Likewise.
33198         * modules/futimens-tests (Files): Likewise.
33199         * modules/fwritable-tests (Files): Likewise.
33200         * modules/fwriting-tests (Files): Likewise.
33201         * modules/getcwd-tests (Files): Likewise.
33202         * modules/getdate-tests (Files): Likewise.
33203         * modules/getdelim-tests (Files): Likewise.
33204         * modules/getdtablesize-tests (Files): Likewise.
33205         * modules/getgroups-tests (Files): Likewise.
33206         * modules/getline-tests (Files): Likewise.
33207         * modules/getndelim2-tests (Files): Likewise.
33208         * modules/glob-tests (Files): Likewise.
33209         * modules/hash-tests (Files): Likewise.
33210         * modules/i-ring-tests (Files): Likewise.
33211         * modules/iconv-tests (Files): Likewise.
33212         * modules/iconv_open-utf-tests (Files): Likewise.
33213         * modules/idpriv-drop-tests (Files): Likewise.
33214         * modules/idpriv-droptemp-tests (Files): Likewise.
33215         * modules/inet_ntop-tests (Files): Likewise.
33216         * modules/inet_pton-tests (Files): Likewise.
33217         * modules/isblank-tests (Files): Likewise.
33218         * modules/isfinite-tests (Files): Likewise.
33219         * modules/isinf-tests (Files): Likewise.
33220         * modules/isnan-tests (Files): Likewise.
33221         * modules/isnand-nolibm-tests (Files): Likewise.
33222         * modules/isnand-tests (Files): Likewise.
33223         * modules/isnanf-nolibm-tests (Files): Likewise.
33224         * modules/isnanf-tests (Files): Likewise.
33225         * modules/isnanl-nolibm-tests (Files): Likewise.
33226         * modules/isnanl-tests (Files): Likewise.
33227         * modules/lchown-tests (Files): Likewise.
33228         * modules/ldexpl-tests (Files): Likewise.
33229         * modules/link-tests (Files): Likewise.
33230         * modules/linkat-tests (Files): Likewise.
33231         * modules/linked-list-tests (Files): Likewise.
33232         * modules/linkedhash-list-tests (Files): Likewise.
33233         * modules/localename-tests (Files): Likewise.
33234         * modules/lseek-tests (Files): Likewise.
33235         * modules/lstat-tests (Files): Likewise.
33236         * modules/mbmemcasecmp-tests (Files): Likewise.
33237         * modules/mbmemcasecoll-tests (Files): Likewise.
33238         * modules/mbrtowc-tests (Files): Likewise.
33239         * modules/mbscasecmp-tests (Files): Likewise.
33240         * modules/mbscasestr-tests (Files): Likewise.
33241         * modules/mbschr-tests (Files): Likewise.
33242         * modules/mbscspn-tests (Files): Likewise.
33243         * modules/mbsinit-tests (Files): Likewise.
33244         * modules/mbsncasecmp-tests (Files): Likewise.
33245         * modules/mbsnrtowcs-tests (Files): Likewise.
33246         * modules/mbspbrk-tests (Files): Likewise.
33247         * modules/mbspcasecmp-tests (Files): Likewise.
33248         * modules/mbsrchr-tests (Files): Likewise.
33249         * modules/mbsrtowcs-tests (Files): Likewise.
33250         * modules/mbsspn-tests (Files): Likewise.
33251         * modules/mbsstr-tests (Files): Likewise.
33252         * modules/memchr-tests (Files): Likewise.
33253         * modules/memchr2-tests (Files): Likewise.
33254         * modules/memcmp-tests (Files): Likewise.
33255         * modules/memmem-tests (Files): Likewise.
33256         * modules/memrchr-tests (Files): Likewise.
33257         * modules/mkdir-tests (Files): Likewise.
33258         * modules/mkfifo-tests (Files): Likewise.
33259         * modules/mkfifoat-tests (Files): Likewise.
33260         * modules/mknod-tests (Files): Likewise.
33261         * modules/nanosleep-tests (Files): Likewise.
33262         * modules/nl_langinfo-tests (Files): Likewise.
33263         * modules/obstack-printf-tests (Files): Likewise.
33264         * modules/open-tests (Files): Likewise.
33265         * modules/openat-tests (Files): Likewise.
33266         * modules/pipe-filter-gi-tests (Files): Likewise.
33267         * modules/pipe-filter-ii-tests (Files): Likewise.
33268         * modules/pipe2-tests (Files): Likewise.
33269         * modules/popen-safer-tests (Files): Likewise.
33270         * modules/popen-tests (Files): Likewise.
33271         * modules/posixtm-tests (Files): Likewise.
33272         * modules/pread-tests (Files): Likewise.
33273         * modules/printf-frexp-tests (Files): Likewise.
33274         * modules/printf-frexpl-tests (Files): Likewise.
33275         * modules/printf-posix-tests (Files): Likewise.
33276         * modules/priv-set-tests (Files): Likewise.
33277         * modules/quotearg-tests (Files): Likewise.
33278         * modules/random_r-tests (Files): Likewise.
33279         * modules/rawmemchr-tests (Files): Likewise.
33280         * modules/rbtree-list-tests (Files): Likewise.
33281         * modules/rbtree-oset-tests (Files): Likewise.
33282         * modules/rbtreehash-list-tests (Files): Likewise.
33283         * modules/readlink-tests (Files): Likewise.
33284         * modules/remove-tests (Files): Likewise.
33285         * modules/rename-tests (Files): Likewise.
33286         * modules/renameat-tests (Files): Likewise.
33287         * modules/rmdir-tests (Files): Likewise.
33288         * modules/round-tests (Files): Likewise.
33289         * modules/roundf-tests (Files): Likewise.
33290         * modules/roundl-tests (Files): Likewise.
33291         * modules/safe-alloc-tests (Files): Likewise.
33292         * modules/setenv-tests (Files): Likewise.
33293         * modules/sigaction-tests (Files): Likewise.
33294         * modules/signbit-tests (Files): Likewise.
33295         * modules/sleep-tests (Files): Likewise.
33296         * modules/snprintf-posix-tests (Files): Likewise.
33297         * modules/snprintf-tests (Files): Likewise.
33298         * modules/sprintf-posix-tests (Files): Likewise.
33299         * modules/stat-tests (Files): Likewise.
33300         * modules/stat-time-tests (Files): Likewise.
33301         * modules/strcasestr-tests (Files): Likewise.
33302         * modules/strchrnul-tests (Files): Likewise.
33303         * modules/strerror-tests (Files): Likewise.
33304         * modules/striconv-tests (Files): Likewise.
33305         * modules/striconveh-tests (Files): Likewise.
33306         * modules/striconveha-tests (Files): Likewise.
33307         * modules/strsignal-tests (Files): Likewise.
33308         * modules/strstr-tests (Files): Likewise.
33309         * modules/strtod-tests (Files): Likewise.
33310         * modules/strverscmp-tests (Files): Likewise.
33311         * modules/symlink-tests (Files): Likewise.
33312         * modules/symlinkat-tests (Files): Likewise.
33313         * modules/trunc-tests (Files): Likewise.
33314         * modules/truncf-tests (Files): Likewise.
33315         * modules/truncl-tests (Files): Likewise.
33316         * modules/uname-tests (Files): Likewise.
33317         * modules/unicase/cased-tests (Files): Likewise.
33318         * modules/unicase/ignorable-tests (Files): Likewise.
33319         * modules/unicase/locale-language-tests (Files): Likewise.
33320         * modules/unicase/tolower-tests (Files): Likewise.
33321         * modules/unicase/totitle-tests (Files): Likewise.
33322         * modules/unicase/toupper-tests (Files): Likewise.
33323         * modules/unicase/u8-casecmp-tests (Files): Likewise.
33324         * modules/unicase/u8-casecoll-tests (Files): Likewise.
33325         * modules/unicase/u8-casefold-tests (Files): Likewise.
33326         * modules/unicase/u8-is-cased-tests (Files): Likewise.
33327         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
33328         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
33329         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
33330         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
33331         * modules/unicase/u8-tolower-tests (Files): Likewise.
33332         * modules/unicase/u8-totitle-tests (Files): Likewise.
33333         * modules/unicase/u8-toupper-tests (Files): Likewise.
33334         * modules/unicase/u16-casecmp-tests (Files): Likewise.
33335         * modules/unicase/u16-casecoll-tests (Files): Likewise.
33336         * modules/unicase/u16-casefold-tests (Files): Likewise.
33337         * modules/unicase/u16-is-cased-tests (Files): Likewise.
33338         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
33339         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
33340         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
33341         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
33342         * modules/unicase/u16-tolower-tests (Files): Likewise.
33343         * modules/unicase/u16-totitle-tests (Files): Likewise.
33344         * modules/unicase/u16-toupper-tests (Files): Likewise.
33345         * modules/unicase/u32-casecmp-tests (Files): Likewise.
33346         * modules/unicase/u32-casecoll-tests (Files): Likewise.
33347         * modules/unicase/u32-casefold-tests (Files): Likewise.
33348         * modules/unicase/u32-is-cased-tests (Files): Likewise.
33349         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
33350         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
33351         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
33352         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
33353         * modules/unicase/u32-tolower-tests (Files): Likewise.
33354         * modules/unicase/u32-totitle-tests (Files): Likewise.
33355         * modules/unicase/u32-toupper-tests (Files): Likewise.
33356         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
33357         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
33358         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
33359         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
33360         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
33361         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
33362         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
33363         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
33364         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
33365         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
33366         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
33367         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
33368         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
33369         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
33370         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
33371         * modules/unictype/bidicategory-name-tests (Files): Likewise.
33372         * modules/unictype/bidicategory-of-tests (Files): Likewise.
33373         * modules/unictype/bidicategory-test-tests (Files): Likewise.
33374         * modules/unictype/block-list-tests (Files): Likewise.
33375         * modules/unictype/block-of-tests (Files): Likewise.
33376         * modules/unictype/block-test-tests (Files): Likewise.
33377         * modules/unictype/category-C-tests (Files): Likewise.
33378         * modules/unictype/category-Cc-tests (Files): Likewise.
33379         * modules/unictype/category-Cf-tests (Files): Likewise.
33380         * modules/unictype/category-Cn-tests (Files): Likewise.
33381         * modules/unictype/category-Co-tests (Files): Likewise.
33382         * modules/unictype/category-Cs-tests (Files): Likewise.
33383         * modules/unictype/category-L-tests (Files): Likewise.
33384         * modules/unictype/category-Ll-tests (Files): Likewise.
33385         * modules/unictype/category-Lm-tests (Files): Likewise.
33386         * modules/unictype/category-Lo-tests (Files): Likewise.
33387         * modules/unictype/category-Lt-tests (Files): Likewise.
33388         * modules/unictype/category-Lu-tests (Files): Likewise.
33389         * modules/unictype/category-M-tests (Files): Likewise.
33390         * modules/unictype/category-Mc-tests (Files): Likewise.
33391         * modules/unictype/category-Me-tests (Files): Likewise.
33392         * modules/unictype/category-Mn-tests (Files): Likewise.
33393         * modules/unictype/category-N-tests (Files): Likewise.
33394         * modules/unictype/category-Nd-tests (Files): Likewise.
33395         * modules/unictype/category-Nl-tests (Files): Likewise.
33396         * modules/unictype/category-No-tests (Files): Likewise.
33397         * modules/unictype/category-P-tests (Files): Likewise.
33398         * modules/unictype/category-Pc-tests (Files): Likewise.
33399         * modules/unictype/category-Pd-tests (Files): Likewise.
33400         * modules/unictype/category-Pe-tests (Files): Likewise.
33401         * modules/unictype/category-Pf-tests (Files): Likewise.
33402         * modules/unictype/category-Pi-tests (Files): Likewise.
33403         * modules/unictype/category-Po-tests (Files): Likewise.
33404         * modules/unictype/category-Ps-tests (Files): Likewise.
33405         * modules/unictype/category-S-tests (Files): Likewise.
33406         * modules/unictype/category-Sc-tests (Files): Likewise.
33407         * modules/unictype/category-Sk-tests (Files): Likewise.
33408         * modules/unictype/category-Sm-tests (Files): Likewise.
33409         * modules/unictype/category-So-tests (Files): Likewise.
33410         * modules/unictype/category-Z-tests (Files): Likewise.
33411         * modules/unictype/category-Zl-tests (Files): Likewise.
33412         * modules/unictype/category-Zp-tests (Files): Likewise.
33413         * modules/unictype/category-Zs-tests (Files): Likewise.
33414         * modules/unictype/category-and-not-tests (Files): Likewise.
33415         * modules/unictype/category-and-tests (Files): Likewise.
33416         * modules/unictype/category-byname-tests (Files): Likewise.
33417         * modules/unictype/category-name-tests (Files): Likewise.
33418         * modules/unictype/category-none-tests (Files): Likewise.
33419         * modules/unictype/category-of-tests (Files): Likewise.
33420         * modules/unictype/category-or-tests (Files): Likewise.
33421         * modules/unictype/category-test-withtable-tests (Files): Likewise.
33422         * modules/unictype/combining-class-tests (Files): Likewise.
33423         * modules/unictype/ctype-alnum-tests (Files): Likewise.
33424         * modules/unictype/ctype-alpha-tests (Files): Likewise.
33425         * modules/unictype/ctype-blank-tests (Files): Likewise.
33426         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
33427         * modules/unictype/ctype-digit-tests (Files): Likewise.
33428         * modules/unictype/ctype-graph-tests (Files): Likewise.
33429         * modules/unictype/ctype-lower-tests (Files): Likewise.
33430         * modules/unictype/ctype-print-tests (Files): Likewise.
33431         * modules/unictype/ctype-punct-tests (Files): Likewise.
33432         * modules/unictype/ctype-space-tests (Files): Likewise.
33433         * modules/unictype/ctype-upper-tests (Files): Likewise.
33434         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
33435         * modules/unictype/decimal-digit-tests (Files): Likewise.
33436         * modules/unictype/digit-tests (Files): Likewise.
33437         * modules/unictype/mirror-tests (Files): Likewise.
33438         * modules/unictype/numeric-tests (Files): Likewise.
33439         * modules/unictype/property-alphabetic-tests (Files): Likewise.
33440         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
33441         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
33442         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
33443         Likewise.
33444         * modules/unictype/property-bidi-block-separator-tests (Files):
33445         Likewise.
33446         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
33447         Likewise.
33448         * modules/unictype/property-bidi-common-separator-tests (Files):
33449         Likewise.
33450         * modules/unictype/property-bidi-control-tests (Files): Likewise.
33451         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
33452         Likewise.
33453         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
33454         Likewise.
33455         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
33456         Likewise.
33457         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
33458         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
33459         Likewise.
33460         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
33461         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
33462         Likewise.
33463         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
33464         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
33465         * modules/unictype/property-bidi-segment-separator-tests (Files):
33466         Likewise.
33467         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
33468         * modules/unictype/property-byname-tests (Files): Likewise.
33469         * modules/unictype/property-combining-tests (Files): Likewise.
33470         * modules/unictype/property-composite-tests (Files): Likewise.
33471         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
33472         * modules/unictype/property-dash-tests (Files): Likewise.
33473         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
33474         * modules/unictype/property-default-ignorable-code-point-tests (Files):
33475         Likewise.
33476         * modules/unictype/property-deprecated-tests (Files): Likewise.
33477         * modules/unictype/property-diacritic-tests (Files): Likewise.
33478         * modules/unictype/property-extender-tests (Files): Likewise.
33479         * modules/unictype/property-format-control-tests (Files): Likewise.
33480         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
33481         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
33482         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
33483         * modules/unictype/property-hex-digit-tests (Files): Likewise.
33484         * modules/unictype/property-hyphen-tests (Files): Likewise.
33485         * modules/unictype/property-id-continue-tests (Files): Likewise.
33486         * modules/unictype/property-id-start-tests (Files): Likewise.
33487         * modules/unictype/property-ideographic-tests (Files): Likewise.
33488         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
33489         * modules/unictype/property-ids-trinary-operator-tests (Files):
33490         Likewise.
33491         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
33492         * modules/unictype/property-iso-control-tests (Files): Likewise.
33493         * modules/unictype/property-join-control-tests (Files): Likewise.
33494         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
33495         * modules/unictype/property-line-separator-tests (Files): Likewise.
33496         * modules/unictype/property-logical-order-exception-tests (Files):
33497         Likewise.
33498         * modules/unictype/property-lowercase-tests (Files): Likewise.
33499         * modules/unictype/property-math-tests (Files): Likewise.
33500         * modules/unictype/property-non-break-tests (Files): Likewise.
33501         * modules/unictype/property-not-a-character-tests (Files): Likewise.
33502         * modules/unictype/property-numeric-tests (Files): Likewise.
33503         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
33504         * modules/unictype/property-other-default-ignorable-code-point-tests
33505         (Files): Likewise.
33506         * modules/unictype/property-other-grapheme-extend-tests (Files):
33507         Likewise.
33508         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
33509         * modules/unictype/property-other-id-start-tests (Files): Likewise.
33510         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
33511         * modules/unictype/property-other-math-tests (Files): Likewise.
33512         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
33513         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
33514         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
33515         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
33516         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
33517         * modules/unictype/property-private-use-tests (Files): Likewise.
33518         * modules/unictype/property-punctuation-tests (Files): Likewise.
33519         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
33520         * modules/unictype/property-radical-tests (Files): Likewise.
33521         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
33522         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
33523         * modules/unictype/property-space-tests (Files): Likewise.
33524         * modules/unictype/property-terminal-punctuation-tests (Files):
33525         Likewise.
33526         * modules/unictype/property-test-tests (Files): Likewise.
33527         * modules/unictype/property-titlecase-tests (Files): Likewise.
33528         * modules/unictype/property-unassigned-code-value-tests (Files):
33529         Likewise.
33530         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
33531         * modules/unictype/property-uppercase-tests (Files): Likewise.
33532         * modules/unictype/property-variation-selector-tests (Files): Likewise.
33533         * modules/unictype/property-white-space-tests (Files): Likewise.
33534         * modules/unictype/property-xid-continue-tests (Files): Likewise.
33535         * modules/unictype/property-xid-start-tests (Files): Likewise.
33536         * modules/unictype/property-zero-width-tests (Files): Likewise.
33537         * modules/unictype/scripts-tests (Files): Likewise.
33538         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
33539         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
33540         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
33541         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
33542         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
33543         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
33544         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
33545         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
33546         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
33547         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
33548         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
33549         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
33550         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
33551         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
33552         * modules/uninorm/composition-tests (Files): Likewise.
33553         * modules/uninorm/decomposing-form-tests (Files): Likewise.
33554         * modules/uninorm/decomposition-tests (Files): Likewise.
33555         * modules/uninorm/filter-tests (Files): Likewise.
33556         * modules/uninorm/nfc-tests (Files): Likewise.
33557         * modules/uninorm/nfd-tests (Files): Likewise.
33558         * modules/uninorm/nfkc-tests (Files): Likewise.
33559         * modules/uninorm/nfkd-tests (Files): Likewise.
33560         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
33561         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
33562         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
33563         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
33564         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
33565         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
33566         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
33567         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
33568         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
33569         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
33570         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
33571         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
33572         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
33573         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
33574         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
33575         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
33576         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
33577         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
33578         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
33579         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
33580         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
33581         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
33582         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
33583         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
33584         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
33585         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
33586         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
33587         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
33588         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
33589         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
33590         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
33591         * modules/uniwidth/u8-width-tests (Files): Likewise.
33592         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
33593         * modules/uniwidth/u16-width-tests (Files): Likewise.
33594         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
33595         * modules/uniwidth/u32-width-tests (Files): Likewise.
33596         * modules/uniwidth/width-tests (Files): Likewise.
33597         * modules/unlink-tests (Files): Likewise.
33598         * modules/unsetenv-tests (Files): Likewise.
33599         * modules/usleep-tests (Files): Likewise.
33600         * modules/utimens-tests (Files): Likewise.
33601         * modules/utimensat-tests (Files): Likewise.
33602         * modules/vasnprintf-posix-tests (Files): Likewise.
33603         * modules/vasnprintf-tests (Files): Likewise.
33604         * modules/vasprintf-posix-tests (Files): Likewise.
33605         * modules/vasprintf-tests (Files): Likewise.
33606         * modules/vdprintf-posix-tests (Files): Likewise.
33607         * modules/vfprintf-posix-tests (Files): Likewise.
33608         * modules/vprintf-posix-tests (Files): Likewise.
33609         * modules/vsnprintf-posix-tests (Files): Likewise.
33610         * modules/vsnprintf-tests (Files): Likewise.
33611         * modules/vsprintf-posix-tests (Files): Likewise.
33612         * modules/wcrtomb-tests (Files): Likewise.
33613         * modules/wcsnrtombs-tests (Files): Likewise.
33614         * modules/wcsrtombs-tests (Files): Likewise.
33615         * modules/wctype-tests (Files): Likewise.
33616         * modules/wcwidth-tests (Files): Likewise.
33617         * modules/xmemdup0-tests (Files): Likewise.
33618         * modules/xprintf-posix-tests (Files): Likewise.
33619         * modules/xvasprintf-tests (Files): Likewise.
33620
33621 2009-12-24  Eric Blake  <ebb9@byu.net>
33622
33623         test-nanosleep: fix typo
33624         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
33625         patch.
33626         Reported by Bruno Haible.
33627
33628 2009-12-24  Bruno Haible  <bruno@clisp.org>
33629
33630         Reduce namespace pollution on glibc systems.
33631         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
33632         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
33633         systems.
33634         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
33635         <getopt.h> on glibc systems.
33636         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
33637         systems.
33638         * lib/fcntl.c: Include <unistd.h> here instead.
33639
33640 2009-12-24  Bruno Haible  <bruno@clisp.org>
33641
33642         * lib/stdlib.in.h (includes): Fix typo in today's commit.
33643
33644 2009-12-24  Eric Blake  <ebb9@byu.net>
33645
33646         tests: add signature checks
33647         * tests/signature.h (SIGNATURE_CHECK): New file.
33648         * modules/atexit-tests (Files): Use it.
33649         * modules/btowc-tests (Files): Likewise.
33650         * modules/canonicalize-lgpl-tests (Files): Likewise.
33651         * modules/ceilf-tests (Files): Likewise.
33652         * modules/ceill-tests (Files): Likewise.
33653         * modules/chown-tests (Files): Likewise.
33654         * modules/dprintf-posix-tests (Files): Likewise.
33655         * modules/dup2-tests (Files): Likewise.
33656         * modules/dup3-tests (Files): Likewise.
33657         * modules/duplocale-tests (Files): Likewise.
33658         * modules/fchdir-tests (Files): Likewise.
33659         * modules/fcntl-tests (Files): Likewise.
33660         * modules/fdopendir-tests (Files): Likewise.
33661         * modules/fflush-tests (Files): Likewise.
33662         * modules/flock-tests (Files): Likewise.
33663         * modules/floorf-tests (Files): Likewise.
33664         * modules/floorl-tests (Files): Likewise.
33665         * modules/fnmatch-tests (Files): Likewise.
33666         * modules/fopen-tests (Files): Likewise.
33667         * modules/fprintf-posix-tests (Files): Likewise.
33668         * modules/freopen-tests (Files): Likewise.
33669         * modules/frexp-nolibm-tests (Files): Likewise.
33670         * modules/frexp-tests (Files): Likewise.
33671         * modules/frexpl-nolibm-tests (Files): Likewise.
33672         * modules/frexpl-tests (Files): Likewise.
33673         * modules/fseek-tests (Files): Likewise.
33674         * modules/fseeko-tests (Files): Likewise.
33675         * modules/fsync-tests (Files): Likewise.
33676         * modules/ftell-tests (Files): Likewise.
33677         * modules/ftello-tests (Files): Likewise.
33678         * modules/futimens-tests (Files): Likewise.
33679         * modules/getaddrinfo-tests (Files): Likewise.
33680         * modules/getcwd-tests (Files): Likewise.
33681         * modules/getdelim-tests (Files): Likewise.
33682         * modules/getdtablesize-tests (Files): Likewise.
33683         * modules/getgroups-tests (Files): Likewise.
33684         * modules/gethostname-tests (Files): Likewise.
33685         * modules/getline-tests (Files): Likewise.
33686         * modules/getopt-posix-tests (Files): Likewise.
33687         * modules/gettimeofday-tests (Files): Likewise.
33688         * modules/glob-tests (Files): Likewise.
33689         * modules/iconv-tests (Files): Likewise.
33690         * modules/inet_ntop-tests (Files): Likewise.
33691         * modules/inet_pton-tests (Files): Likewise.
33692         * modules/isblank-tests (Files): Likewise.
33693         * modules/lchown-tests (Files): Likewise.
33694         * modules/ldexpl-tests (Files): Likewise.
33695         * modules/link-tests (Files): Likewise.
33696         * modules/linkat-tests (Files): Likewise.
33697         * modules/lseek-tests (Files): Likewise.
33698         * modules/lstat-tests (Files): Likewise.
33699         * modules/mbrtowc-tests (Files): Likewise.
33700         * modules/mbsinit-tests (Files): Likewise.
33701         * modules/mbsnrtowcs-tests (Files): Likewise.
33702         * modules/mbsrtowcs-tests (Files): Likewise.
33703         * modules/memchr-tests (Files): Likewise.
33704         * modules/memcmp-tests (Files): Likewise.
33705         * modules/memmem-tests (Files): Likewise.
33706         * modules/memrchr-tests (Files): Likewise.
33707         * modules/mkdir-tests (Files): Likewise.
33708         * modules/mkfifo-tests (Files): Likewise.
33709         * modules/mkfifoat-tests (Files): Likewise.
33710         * modules/mknod-tests (Files): Likewise.
33711         * modules/nanosleep-tests (Files): Likewise.
33712         * modules/nl_langinfo-tests (Files): Likewise.
33713         * modules/obstack-printf-tests (Files): Likewise.
33714         * modules/open-tests (Files): Likewise.
33715         * modules/openat-tests (Files): Likewise.
33716         * modules/perror-tests (Files): Likewise.
33717         * modules/pipe2-tests (Files): Likewise.
33718         * modules/poll-tests (Files): Likewise.
33719         * modules/popen-tests (Files): Likewise.
33720         * modules/posix_spawn-tests (Files): Likewise.
33721         * modules/posix_spawnp-tests (Files): Likewise.
33722         * modules/pread-tests (Files): Likewise.
33723         * modules/printf-posix-tests (Files): Likewise.
33724         * modules/pty-tests (Files): Likewise.
33725         * modules/random_r-tests (Files): Likewise.
33726         * modules/rawmemchr-tests (Files): Likewise.
33727         * modules/readlink-tests (Files): Likewise.
33728         * modules/remove-tests (Files): Likewise.
33729         * modules/rename-tests (Files): Likewise.
33730         * modules/renameat-tests (Files): Likewise.
33731         * modules/rmdir-tests (Files): Likewise.
33732         * modules/round-tests (Files): Likewise.
33733         * modules/roundf-tests (Files): Likewise.
33734         * modules/roundl-tests (Files): Likewise.
33735         * modules/select-tests (Files): Likewise.
33736         * modules/setenv-tests (Files): Likewise.
33737         * modules/sigaction-tests (Files): Likewise.
33738         * modules/sleep-tests (Files): Likewise.
33739         * modules/snprintf-posix-tests (Files): Likewise.
33740         * modules/snprintf-tests (Files): Likewise.
33741         * modules/sprintf-posix-tests (Files): Likewise.
33742         * modules/stat-tests (Files): Likewise.
33743         * modules/strcasestr-tests (Files): Likewise.
33744         * modules/strchrnul-tests (Files): Likewise.
33745         * modules/strerror-tests (Files): Likewise.
33746         * modules/strsignal-tests (Files): Likewise.
33747         * modules/strstr-tests (Files): Likewise.
33748         * modules/strtod-tests (Files): Likewise.
33749         * modules/strverscmp-tests (Files): Likewise.
33750         * modules/symlink-tests (Files): Likewise.
33751         * modules/symlinkat-tests (Files): Likewise.
33752         * modules/times-tests (Files): Likewise.
33753         * modules/trunc-tests (Files): Likewise.
33754         * modules/truncf-tests (Files): Likewise.
33755         * modules/truncl-tests (Files): Likewise.
33756         * modules/tsearch-tests (Files): Likewise.
33757         * modules/uname-tests (Files): Likewise.
33758         * modules/unlink-tests (Files): Likewise.
33759         * modules/unsetenv-tests (Files): Likewise.
33760         * modules/usleep-tests (Files): Likewise.
33761         * modules/utimensat-tests (Files): Likewise.
33762         * modules/vasprintf-tests (Files): Likewise.
33763         * modules/vdprintf-posix-tests (Files): Likewise.
33764         * modules/vfprintf-posix-tests (Files): Likewise.
33765         * modules/vprintf-posix-tests (Files): Likewise.
33766         * modules/vsnprintf-posix-tests (Files): Likewise.
33767         * modules/vsnprintf-tests (Files): Likewise.
33768         * modules/vsprintf-posix-tests (Files): Likewise.
33769         * modules/wcrtomb-tests (Files): Likewise.
33770         * modules/wcsnrtombs-tests (Files): Likewise.
33771         * modules/wcsrtombs-tests (Files): Likewise.
33772         * modules/wcwidth-tests (Files): Likewise.
33773         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
33774         * tests/test-isinf.c (isinf): Likewise.
33775         * tests/test-isnan.c (isnan): Likewise.
33776         * tests/test-signbit.c (signbit): Likewise.
33777         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
33778         declaration, either as macro or with correct signature.
33779         (select): Ensure function under test is declared with correct
33780         signature in correct header.
33781         * tests/test-atexit.c (atexit): Likewise.
33782         * tests/test-btowc.c (btowc): Likewise.
33783         * tests/test-canonicalize-lgpl.c (realpath)
33784         (canonicalize_file_name): Likewise.
33785         * tests/test-ceilf1.c (ceilf): Likewise.
33786         * tests/test-ceill.c (ceill): Likewise.
33787         * tests/test-chown.c (chown): Likewise.
33788         * tests/test-dprintf-posix.c (dprintf): Likewise.
33789         * tests/test-dup2.c (dup2): Likewise.
33790         * tests/test-dup3.c (dup3): Likewise.
33791         * tests/test-duplocale.c (duplocale): Likewise.
33792         * tests/test-fchdir.c (fchdir): Likewise.
33793         * tests/test-fchownat.c (fchownat): Likewise.
33794         * tests/test-fcntl.c (fcntl): Likewise.
33795         * tests/test-fdopendir.c (fdopendir): Likewise.
33796         * tests/test-fflush.c (fflush): Likewise.
33797         * tests/test-flock.c (flock): Likewise.
33798         * tests/test-floorf1.c (floorf): Likewise.
33799         * tests/test-floorl.c (floorl): Likewise.
33800         * tests/test-fnmatch.c (fnmatch): Likewise.
33801         * tests/test-fopen.c (fopen): Likewise.
33802         * tests/test-fprintf-posix.c (fprintf): Likewise.
33803         * tests/test-freopen.c (freopen): Likewise.
33804         * tests/test-frexp.c (frexp): Likewise.
33805         * tests/test-frexpl.c (frexpl): Likewise.
33806         * tests/test-fseek.c (fseek): Likewise.
33807         * tests/test-fseeko.c (fseeko): Likewise.
33808         * tests/test-fstatat.c (fstatat): Likewise.
33809         * tests/test-fsync.c (fsync): Likewise.
33810         * tests/test-ftell.c (ftell): Likewise.
33811         * tests/test-ftello.c (ftello): Likewise.
33812         * tests/test-futimens.c (futimens): Likewise.
33813         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
33814         (gai_strerror): Likewise.
33815         * tests/test-getcwd.c (getcwd): Likewise.
33816         * tests/test-getdelim.c (getdelim): Likewise.
33817         * tests/test-getdtablesize.c (getdtablesize): Likewise.
33818         * tests/test-getgroups.c (getgroups): Likewise.
33819         * tests/test-gethostname.c (gethostname): Likewise.
33820         * tests/test-getline.c (getline): Likewise.
33821         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
33822         Likewise.
33823         * tests/test-gettimeofday.c (gettimeofday): Likewise.
33824         * tests/test-glob.c (glob, globfree): Likewise.
33825         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
33826         * tests/test-inet_ntop.c (inet_ntop): Likewise.
33827         * tests/test-inet_pton.c (inet_pton): Likewise.
33828         * tests/test-isblank.c (isblank): Likewise.
33829         * tests/test-lchown.c (lchown): Likewise.
33830         * tests/test-ldexpl.c (ldexpl): Likewise.
33831         * tests/test-link.c (link): Likewise.
33832         * tests/test-linkat.c (linkat): Likewise.
33833         * tests/test-lseek.c (lseek): Likewise.
33834         * tests/test-lstat.c (lstat): Likewise.
33835         * tests/test-mbrtowc.c (mbrtowc): Likewise.
33836         * tests/test-mbsinit.c (mbsinit): Likewise.
33837         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
33838         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
33839         * tests/test-memchr.c (memchr): Likewise.
33840         * tests/test-memcmp.c (memcmp): Likewise.
33841         * tests/test-memmem.c (memmem): Likewise.
33842         * tests/test-memrchr.c (memrchr): Likewise.
33843         * tests/test-mkdir.c (mkdir): Likewise.
33844         * tests/test-mkdirat.c (mkdirat): Likewise.
33845         * tests/test-mkfifo.c (mkfifo): Likewise.
33846         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
33847         * tests/test-mknod.c (mknod): Likewise.
33848         * tests/test-nanosleep.c (nanosleep): Likewise.
33849         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
33850         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
33851         Likewise.
33852         * tests/test-open.c (open): Likewise.
33853         * tests/test-openat.c (openat): Likewise.
33854         * tests/test-perror.c (perror): Likewise.
33855         * tests/test-pipe2.c (pipe2): Likewise.
33856         * tests/test-poll.c (poll): Likewise.
33857         * tests/test-popen.c (popen, pclose): Likewise.
33858         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
33859         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
33860         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
33861         (posix_spawn_file_actions_destroy)
33862         (posix_spawn_file_actions_addclose)
33863         (posix_spawn_file_actions_addopen)
33864         (posix_spawn_file_actions_adddup2): Likewise.
33865         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
33866         * tests/test-pread.c (pread): Likewise.
33867         * tests/test-printf-posix.c (printf): Likewise.
33868         * tests/test-pty.c (openpty, forkpty): Likewise.
33869         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
33870         (random_r): Likewise.
33871         * tests/test-rawmemchr.c (rawmemchr): Likewise.
33872         * tests/test-readlink.c (readlink): Likewise.
33873         * tests/test-remove.c (remove): Likewise.
33874         * tests/test-rename.c (rename): Likewise.
33875         * tests/test-renameat.c (renameat): Likewise.
33876         * tests/test-rmdir.c (rmdir): Likewise.
33877         * tests/test-round1.c (round): Likewise.
33878         * tests/test-roundf1.c (roundf): Likewise.
33879         * tests/test-roundl.c (roundl): Likewise.
33880         * tests/test-setenv.c (setenv): Likewise.
33881         * tests/test-sigaction.c (sigaction): Likewise.
33882         * tests/test-sleep.c (sleep): Likewise.
33883         * tests/test-snprintf.c (snprintf): Likewise.
33884         * tests/test-sprintf-posix.c (sprintf): Likewise.
33885         * tests/test-stat.c (stat): Likewise.
33886         * tests/test-stpncpy.c (stpncpy): Likewise.
33887         * tests/test-strcasestr.c (strcasestr): Likewise.
33888         * tests/test-strchrnul.c (strchrnul): Likewise.
33889         * tests/test-strerror.c (strerror): Likewise.
33890         * tests/test-strsignal.c (strsignal): Likewise.
33891         * tests/test-strstr.c (strstr): Likewise.
33892         * tests/test-strtod.c (strtod): Likewise.
33893         * tests/test-strverscmp.c (strverscmp): Likewise.
33894         * tests/test-symlink.c (symlink): Likewise.
33895         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
33896         * tests/test-times.c (times): Likewise.
33897         * tests/test-trunc1.c (trunc): Likewise.
33898         * tests/test-truncf1.c (truncf): Likewise.
33899         * tests/test-truncl.c (truncl): Likewise.
33900         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
33901         Likewise.
33902         * tests/test-uname.c (uname): Likewise.
33903         * tests/test-unlink.c (unlink): Likewise.
33904         * tests/test-unlinkat.c (unlinkat): Likewise.
33905         * tests/test-unsetenv.c (unsetenv): Likewise.
33906         * tests/test-usleep.c (usleep): Likewise.
33907         * tests/test-utimensat.c (utimensat): Likewise.
33908         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
33909         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
33910         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
33911         * tests/test-vprintf-posix.c (vprintf): Likewise.
33912         * tests/test-vsnprintf.c (vsnprintf): Likewise.
33913         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
33914         * tests/test-wcrtomb.c (wcrtomb): Likewise.
33915         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
33916         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
33917         * tests/test-wcwidth.c (wcwidth): Likewise.
33918
33919         build: pull in conditional headers during GNULIB_POSIXCHECK
33920         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
33921         definitions from any conditionally-included headers.
33922         * lib/stdlib.in.h (includes): Likewise.
33923         * lib/unistd.in.h (includes): Likewise.
33924
33925 2009-12-24  Bruno Haible  <bruno@clisp.org>
33926
33927         * tests/test-argv-iter.c: Include header file being tested immediately
33928         after config.h.
33929         * tests/test-base64.c: Likewise.
33930         * tests/test-flock.c: Likewise.
33931         * tests/test-fsync.c: Likewise.
33932         * tests/test-getdate.c: Likewise.
33933         * tests/test-getndelim2.c: Likewise.
33934         * tests/test-isfinite.c: Likewise.
33935         * tests/test-isinf.c: Likewise.
33936         * tests/test-strerror.c: Likewise.
33937         * tests/test-strsignal.c: Likewise.
33938
33939 2009-12-23  Eric Blake  <ebb9@byu.net>
33940
33941         unistd: work around cygwin bug
33942         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
33943         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
33944         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
33945
33946 2009-12-23  Bruno Haible  <bruno@clisp.org>
33947
33948         localename: More tests.
33949         * tests/test-localename.c (SIZEOF): New macro.
33950         (categories): New variable.
33951         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
33952         test_locale_name_default): Add test w.r.t. thread locale.
33953         (test_locale_name_thread): New function.
33954         (main): Invoke it.
33955
33956         localename: Make aware of thread locale.
33957         * lib/localename.h (gl_locale_name_thread): New declaration.
33958         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
33959         behaviour with respect to thread locale.
33960         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
33961         <langinfo.h>, glthread/lock.h.
33962         (SIZE_BITS): New macro.
33963         (string_hash): New function.
33964         (struct hash_node): New type.
33965         (HASH_TABLE_SIZE): New macro.
33966         (struniq_hash_table, struniq_lock): New variables.
33967         (struniq): New function.
33968         (gl_locale_name_thread): New function.
33969         (gl_locale_name): Invoke it.
33970         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
33971         * modules/localename (Depends-on): Add lock.
33972         Reported by Mike Gran <spk121@yahoo.com>.
33973
33974 2009-12-23  Eric Blake  <ebb9@byu.net>
33975
33976         va-args: new module
33977         * modules/va-args: New file.
33978         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
33979         * MODULES.html.sh (Core language properties): Mention it.
33980
33981         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
33982         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
33983         named alias for __attribute__((__unused__)).
33984         * lib/chown.c: Update client.
33985         * lib/fchmodat.c: Likewise.
33986         * lib/fts.c: Likewise.
33987         * lib/getdate.y: Likewise.
33988         * lib/getgroups.c: Likewise.
33989         * lib/getopt.c: Likewise.
33990         * lib/getugroups.c: Likewise.
33991         * lib/mkdir.c: Likewise.
33992         * lib/mkfifo.c: Likewise.
33993         * lib/mkfifoat.c: Likewise.
33994         * lib/mknod.c: Likewise.
33995         * lib/mknodat.c: Likewise.
33996         * lib/readlink.c: Likewise.
33997         * lib/se-context.in.h: Likewise.
33998         * lib/se-selinux.in.h: Likewise.
33999         * lib/sockets.c: Likewise.
34000         * lib/symlink.c: Likewise.
34001         * lib/symlinkat.c: Likewise.
34002         * lib/unicodeio.c: Likewise.
34003         * lib/unistr.h: Likewise.
34004         * tests/test-areadlink.c: Likewise.
34005         * tests/test-areadlinkat.c: Likewise.
34006         * tests/test-filenamecat.c: Likewise.
34007         * tests/test-fseeko.c: Likewise.
34008         * tests/test-ftello.c: Likewise.
34009         * tests/test-getdate.c: Likewise.
34010         * tests/test-getgroups.c: Likewise.
34011         * tests/test-gethostname.c: Likewise.
34012         * tests/test-quotearg.c: Likewise.
34013         * tests/test-version-etc.c: Likewise.
34014         * tests/test-xalloc-die.c: Likewise.
34015         * tests/test-xfprintf-posix.c: Likewise.
34016         * tests/test-xprintf-posix.c: Likewise.
34017         * tests/test-xvasprintf.c: Likewise.
34018
34019         tests: avoid compiler warnings
34020         * tests/test-fcntl.c (main): Delete unused parameters.
34021         * tests/test-freopen-safer.c (main): Likewise.
34022         * tests/test-xalloc-die.c (main): Mark unused parameters.
34023         * tests/test-fseeko.c (main): Likewise.
34024         * tests/test-ftello.c (main): Likewise.
34025         * tests/test-nanosleep.c (main): Avoid declaration warning.
34026         * tests/test-sleep.c (main): Likewise.
34027         * tests/test-unsetenv.c (main): Silence warning about string
34028         literal.
34029         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
34030
34031 2009-12-23  Bruno Haible  <bruno@clisp.org>
34032
34033         * tests/test-localename.c (test_locale_name): New function, extracted
34034         from main. Also test mixed situations.
34035         (test_locale_name_posix, test_locale_name_environ,
34036         test_locale_name_default): New functions.
34037         (main): Invoke them all.
34038         * modules/localename-tests (configure.ac): Test for newlocale.
34039
34040 2009-12-23  Bruno Haible  <bruno@clisp.org>
34041
34042         unistd: Ensure getcwd gets declared before being overridden.
34043         * lib/unistd.in.h: Conditionally include <io.h>.
34044
34045 2009-12-22  Bruno Haible  <bruno@clisp.org>
34046
34047         wchar: Diagnose broken combination of glibc and gcc versions and flags.
34048         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
34049         (gl_WCHAR_H): Invoke it.
34050         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
34051         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
34052         Reported by Karl Berry <karl@freefriends.org>.
34053
34054 2009-12-22  Eric Blake  <ebb9@byu.net>
34055
34056         math, unistd: avoid redundant includes
34057         * lib/math.in.h (isnan): No need to re-include <math.h>.
34058         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
34059
34060         getsubopt: work around cygwin bug
34061         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
34062         avoid conflicting with system getsubopt.
34063         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
34064         bug.
34065
34066         getopt: synchronize from glibc
34067         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
34068         parameter order.  Adjust all callers.
34069         (_getopt_internal_r, main): Adjust quoting in error messages.
34070         Drop considerations for outdated POSIX 1003.2 error message.
34071         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
34072         callers.
34073         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
34074
34075         test-getopt: test stderr behavior
34076         * modules/getopt-posix-tests (Depends-on): Add dup2.
34077         * tests/test-getopt.c (ASSERT): Avoid stderr.
34078         (main): Move stderr to a temporary file.
34079         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
34080         Instead, add parameter to inform caller if output occurred.
34081         (test_getopt): Adjust all existing tests to expect silence, and
34082         add new tests of leading ":".
34083         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
34084         glibc shortcomings with leading "-:" or "+:" in optstring.
34085         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34086         Likewise.
34087         * doc/posix-functions/getopt.texi (getopt): Likewise.
34088
34089         test-getopt: enhance test
34090         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
34091         supports optind=0.
34092         * tests/test-getopt.c (OPTIND_MIN): Move...
34093         * tests/test-getopt.h (OPTIND_MIN): ...here.
34094         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
34095         Require that optind=0 works, since modern BSD supports it in
34096         addition to optreset, and since coreutils expects it.
34097         (test_getopt_long_only): New test.
34098         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
34099         glibc shortcomings with 'W;', and enforcement of optind=0.
34100         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34101         Likewise.
34102
34103 2009-12-21  Bruno Haible  <bruno@clisp.org>
34104
34105         localename: Improvements for MacOS X and Cygwin.
34106         * lib/localename.h (gl_locale_name_environ): New declaration.
34107         * lib/localename.c (gl_locale_name_environ): New function, extracted from
34108         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
34109         (gl_locale_name_posix): Invoke it.
34110         (gl_locale_name_default): Add comments. Use Windows native API also on
34111         Cygwin.
34112
34113 2009-12-21  Bruno Haible  <bruno@clisp.org>
34114
34115         Update list of Win32 locale ids.
34116         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
34117         (LANG_SAMI): Renamed from LANG_SAAMI.
34118         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
34119         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
34120         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
34121         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
34122         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
34123         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
34124         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
34125         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
34126         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
34127         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
34128         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
34129         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
34130         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
34131         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
34132         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
34133         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
34134         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
34135         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
34136         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
34137         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
34138         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
34139         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
34140         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
34141         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
34142         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
34143         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
34144         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
34145         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
34146         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
34147         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
34148         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
34149         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
34150         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
34151         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
34152         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
34153         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
34154         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
34155         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
34156         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
34157         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
34158         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
34159         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
34160         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
34161         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
34162         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
34163         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
34164         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
34165         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
34166         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
34167         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
34168         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
34169         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
34170         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
34171         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
34172         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
34173         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
34174         Add more languages and countries for Sami, Sorbian. Add more countries
34175         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
34176         for Pashto. Change country for Syriac, Tswana.
34177
34178 2009-12-21  Eric Blake  <ebb9@byu.net>
34179
34180         test-utimens: avoid spurious failure
34181         * tests/test-chown.h (nap): Factor...
34182         * tests/nap.h: ...into new file.
34183         * tests/test-lchown.h (nap): Avoid duplication.
34184         * tests/test-utimens-common.h (nap): Use shared implementation,
34185         necessary on file systems with 1-second resolution.
34186         * modules/chown-tests (Files): Include new file.
34187         * modules/fdutimensat-tests (Files): Likewise.
34188         * modules/futimens-tests (Files): Likewise.
34189         * modules/lchown-tests (Files): Likewise.
34190         * modules/openat-tests (Files): Likewise.
34191         * modules/utimens-tests (Files): Likewise.
34192         * modules/utimensat-tests (Files): Likewise.
34193
34194 2009-12-19  Eric Blake  <ebb9@byu.net>
34195
34196         futimens, utimensat: work around Linux bug
34197         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
34198         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34199         * lib/utimensat.c (rpl_utimensat): Work around it.
34200         * lib/futimens.c (rpl_futimens): Adjust comment.
34201
34202         utimens: work around Linux ctime bug
34203         * lib/utimens.c (detect_ctime_bug): New helper function.
34204         (update_timespec): Differentiate between workaround needed for
34205         this bug vs. what is needed for systems that lack utimensat.
34206         (fdutimens, lutimens): Work around bug.
34207
34208         utimens: check for ctime update
34209         * tests/test-utimens-common.h (check_ctime): Define.
34210         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
34211         * tests/test-futimens.h (test_futimens): Likewise.
34212         * tests/test-lutimens.h (test_lutimens): Likewise.
34213         * doc/posix-functions/futimens.texi (futimens): Document the bug.
34214         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34215
34216 2009-12-19  Bruno Haible  <bruno@clisp.org>
34217
34218         dprintf-posix: Check against memory leak fixed on 2009-12-15.
34219         * tests/test-dprintf-posix2.sh: New file.
34220         * tests/test-dprintf-posix2.c: New file.
34221         * modules/dprintf-posix-tests (Files): Add them.
34222         (configure.ac): Check for getrlimit and setrlimit.
34223         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
34224
34225 2009-12-19  Bruno Haible  <bruno@clisp.org>
34226
34227         fprintf-posix: Check against memory leak fixed on 2009-12-15.
34228         * tests/test-fprintf-posix3.sh: New file.
34229         * tests/test-fprintf-posix3.c: New file.
34230         * modules/fprintf-posix-tests (Files): Add them.
34231         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
34232
34233 2009-12-19  Eric Blake  <ebb9@byu.net>
34234
34235         dirfd: fix prototype
34236         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
34237         * lib/dirfd.c (dirfd): Likewise.
34238
34239         canonicalize: reduce memory usage
34240         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
34241         allocation to size.
34242         Reported by Solar Designer <solar@openwall.com>.
34243
34244 2009-12-19  Bruno Haible  <bruno@clisp.org>
34245
34246         New module attribute 'Applicability'.
34247         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
34248         * gnulib-tool: New option --extract-applicability.
34249         (func_usage): Document it.
34250         (sed_extract_prog): Recognize it.
34251         (func_get_applicability): New function.
34252         (func_import): Generalize handling of 'link-warning' module.
34253         * modules/link-warning (Applicability): New section.
34254         * modules/arg-nonnull (Applicability): New section.
34255         Repoted by Simon Josefsson <simon@josefsson.org>.
34256
34257 2009-12-19  Bruno Haible  <bruno@clisp.org>
34258
34259         fflush: tweak
34260         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
34261         * lib/fseeko.c (rpl_fseeko): Likewise.
34262
34263 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
34264
34265         * lib/gl_list.h: Fix typo in comment.
34266
34267 2009-12-16  Eric Blake  <ebb9@byu.net>
34268
34269         fcntl: use to simplify other modules
34270         * modules/cloexec (Depends-on): Add fcntl.
34271         * modules/fchdir (Depends-on): Likewise.
34272         * modules/fd-safer-flag (Depends-on): Likewise.
34273         * modules/unistd-safer (Depends-on): Likewise.
34274         * modules/dup3 (configure.ac): Set module indicator.
34275         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
34276         missing.
34277         * lib/fchdir.c (_gl_register_dup): Fix comment.
34278         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
34279         * lib/dup-safer.c (dup_safer): Likewise.
34280         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
34281         * lib/dup3.c (dup3): Likewise.
34282         * tests/test-fchdir.c (main): Enhance test.
34283         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
34284
34285         fcntl: port portions of fcntl to mingw
34286         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
34287         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
34288         replacement for mingw.
34289         * modules/fcntl (Description): Update.
34290         (Depends-on): Add dup2.
34291         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
34292         * modules/fcntl-h (Makefile.am): Substitute it.
34293         * lib/fcntl.in.h (fcntl): Update declaration.
34294         (F_DUPFD, F_GETFD): New macros, when needed.
34295         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
34296         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
34297         * tests/test-fcntl.c (check_flags, main): Enhance test for items
34298         we now guarantee.
34299
34300         fcntl: work around cygwin bug in F_DUPFD
34301         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
34302         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
34303         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
34304         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
34305         * doc/posix-functions/fcntl.texi (fcntl): Document it.
34306
34307         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
34308         * modules/fcntl (Files): List new files.
34309         (configure.ac): Run a test.
34310         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
34311         * lib/fcntl.c (rpl_fcntl): Likewise.
34312         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
34313         (gl_FCNTL_H): Always replace fcntl.h.
34314         * modules/fcntl-h (Makefile.am): Substitute witnesses.
34315         * lib/fcntl.in.h (fcntl): Declare replacement.
34316         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
34317         needed, plus a witness.
34318         * doc/posix-functions/fcntl.texi (fcntl): Document this.
34319         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
34320         * tests/test-fcntl.c: New file.
34321         * modules/fcntl-tests: Likewise.
34322
34323         binary-io: avoid potential compilation warning
34324         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
34325         directives.
34326
34327         fflush: avoid compilation error on NetBSD
34328         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
34329         between off_t and fpos_t, since the latter is sometimes a struct.
34330         * lib/fseeko.c (rpl_fseeko): Likewise.
34331         Reported by Alexander Nasonov <alnsn@yandex.ru>.
34332
34333 2009-12-15  Eric Blake  <ebb9@byu.net>
34334
34335         fcntl-h, stdio, sys_ioctl: fix declarations
34336         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
34337         function must not take arguments.
34338         * lib/sys_ioctl.in.h (ioctl): Likewise.
34339         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
34340         (open): Add a link warning.
34341
34342 2009-12-15  Jim Meyering  <meyering@redhat.com>
34343
34344         areadlink, areadlink-with-size: relax license to LGPLv2+
34345         * modules/areadlink (License): Relax to LGPLv2+.
34346         * modules/areadlink-with-size (License): Likewise.
34347
34348 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
34349             Bruno Haible  <bruno@clisp.org>
34350
34351         *printf: Fix memory leak.
34352         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
34353         * lib/vfprintf.c (vfprintf): Likewise.
34354         * lib/dprintf.c (dprintf): Likewise.
34355         * lib/vdprintf.c (vdprintf): Likewise.
34356
34357 2009-12-14  Eric Blake  <ebb9@byu.net>
34358
34359         accept4: adjust module dependencies
34360         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
34361
34362         utimens: one more try at avoiding compiler warning
34363         * lib/utimens.c (lutimens): Lower scope of result.
34364
34365 2009-12-13  Bruno Haible  <bruno@clisp.org>
34366
34367         Move the malloc checking from module 'list' to new module 'xlist'.
34368         * modules/xlist: New file.
34369         * lib/gl_xlist.h: New file.
34370         * lib/gl_xlist.c: New file.
34371         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
34372         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
34373         gl_list_add_last, gl_list_add_before, gl_list_add_after,
34374         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
34375         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
34376         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
34377         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
34378         gl_sortedlist_nx_add): New declarations.
34379         (struct gl_list_implementation): Rename and change methods accordingly.
34380         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
34381         (gl_list_nx_create): Renamed from gl_list_create.
34382         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
34383         (gl_list_nx_set_at): Renamed from gl_list_set_at.
34384         (gl_list_nx_add_first): Renamed from gl_list_add_first.
34385         (gl_list_nx_add_last): Renamed from gl_list_add_last.
34386         (gl_list_nx_add_before): Renamed from gl_list_add_before.
34387         (gl_list_nx_add_after): Renamed from gl_list_add_after.
34388         (gl_list_nx_add_at): Renamed from gl_list_add_at.
34389         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
34390         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
34391         gl_list_create_empty.
34392         (gl_list_nx_create): Renamed from gl_list_create.
34393         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
34394         (gl_list_nx_set_at): Renamed from gl_list_set_at.
34395         (gl_list_nx_add_first): Renamed from gl_list_add_first.
34396         (gl_list_nx_add_last): Renamed from gl_list_add_last.
34397         (gl_list_nx_add_before): Renamed from gl_list_add_before.
34398         (gl_list_nx_add_after): Renamed from gl_list_add_after.
34399         (gl_list_nx_add_at): Renamed from gl_list_add_at.
34400         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
34401         * lib/gl_array_list.c: Don't include xalloc.h.
34402         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
34403         NULL upon out-of-memory.
34404         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
34405         out-of-memory.
34406         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
34407         Change return type to 'int'.
34408         (gl_array_nx_set_at): Renamed from gl_array_set_at.
34409         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
34410         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
34411         upon out-of-memory.
34412         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
34413         upon out-of-memory.
34414         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
34415         upon out-of-memory.
34416         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
34417         upon out-of-memory.
34418         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
34419         out-of-memory.
34420         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
34421         Update.
34422         (gl_array_list_implementation): Update.
34423         * lib/gl_carray_list.c: Don't include xalloc.h.
34424         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
34425         Return NULL upon out-of-memory.
34426         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
34427         out-of-memory.
34428         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
34429         Change return type to 'int'.
34430         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
34431         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
34432         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
34433         upon out-of-memory.
34434         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
34435         upon out-of-memory.
34436         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
34437         out-of-memory.
34438         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
34439         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
34440         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
34441         Update.
34442         (gl_carray_list_implementation): Update.
34443         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
34444         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
34445         gl_linked_create_empty. Return NULL upon out-of-memory.
34446         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
34447         out-of-memory.
34448         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
34449         Change return type to 'int'. Return -1 upon out-of-memory.
34450         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
34451         out-of-memory.
34452         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
34453         upon out-of-memory.
34454         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
34455         upon out-of-memory.
34456         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
34457         NULL upon out-of-memory.
34458         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
34459         upon out-of-memory.
34460         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
34461         out-of-memory.
34462         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
34463         Update.
34464         * lib/gl_linked_list.c: Don't include xalloc.h.
34465         (gl_linked_list_implementation): Update.
34466         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
34467         (add_to_bucket): Change return type to 'int'.
34468         (gl_linkedhash_list_implementation): Update.
34469         * lib/gl_anytree_list1.h (free_subtree): New function.
34470         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
34471         gl_tree_create_empty. Return NULL upon out-of-memory.
34472         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
34473         Change return type to 'int'. Return -1 upon out-of-memory.
34474         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
34475         out-of-memory.
34476         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
34477         (gl_tree_remove_node): New function, moved here from
34478         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
34479         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
34480         Update.
34481         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
34482         malloc, not xmalloc. Return NULL upon out-of-memory.
34483         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
34484         out-of-memory.
34485         (gl_tree_remove_node_from_tree): New function, extracted from
34486         gl_tree_remove_node.
34487         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
34488         upon out-of-memory.
34489         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
34490         out-of-memory.
34491         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
34492         upon out-of-memory.
34493         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
34494         upon out-of-memory.
34495         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
34496         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
34497         not xmalloc. Return NULL upon out-of-memory.
34498         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
34499         out-of-memory.
34500         (gl_tree_remove_node_from_tree): New function, extracted from
34501         gl_tree_remove_node.
34502         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
34503         upon out-of-memory.
34504         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
34505         out-of-memory.
34506         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
34507         upon out-of-memory.
34508         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
34509         upon out-of-memory.
34510         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
34511         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
34512         gl_anytree_list1.h before gl_anyavltree_list2.h.
34513         (gl_avltree_list_implementation): Update.
34514         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
34515         gl_anytree_list1.h before gl_anyavltree_list2.h.
34516         (gl_rbtree_list_implementation): Update.
34517         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
34518         Change return type to 'int'. Return -1 upon out-of-memory. Use
34519         __builtin_expect.
34520         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
34521         (gl_avltreehash_list_implementation): Update.
34522         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
34523         (gl_rbtreehash_list_implementation): Update.
34524         * modules/array-list (Depends-on): Remove xalloc.
34525         * modules/carray-list (Depends-on): Likewise.
34526         * modules/linked-list (Depends-on): Likewise.
34527         * modules/linkedhash-list (Depends-on): Likewise.
34528         * modules/avltree-list (Depends-on): Likewise.
34529         * modules/rbtree-list (Depends-on): Likewise.
34530         * modules/avltreehash-list (Depends-on): Likewise.
34531         * modules/rbtreehash-list (Depends-on): Likewise.
34532
34533         * modules/xsublist: New file.
34534         * lib/gl_xsublist.h: New file.
34535         * lib/gl_xsublist.c: New file.
34536         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
34537         (gl_sublist_nx_create): New declaration.
34538         * lib/gl_sublist.c: Don't include xalloc.h.
34539         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
34540         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
34541         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
34542         Change return type to 'int'. Return -1 upon out-of-memory.
34543         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
34544         upon out-of-memory.
34545         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
34546         NULL upon out-of-memory.
34547         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
34548         upon out-of-memory.
34549         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
34550         NULL upon out-of-memory.
34551         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
34552         NULL upon out-of-memory.
34553         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
34554         upon out-of-memory.
34555         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
34556         (gl_sublist_list_implementation): Update.
34557         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
34558         upon out-of-memory.
34559         * modules/sublist (Depends-on): Remove xalloc.
34560
34561         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
34562         * tests/test-carray_list.c: Likewise.
34563         * tests/test-linked_list.c: Likewise.
34564         * tests/test-linkedhash_list.c: Likewise.
34565         * tests/test-avltree_list.c: Likewise.
34566         * tests/test-rbtree_list.c: Likewise.
34567         * tests/test-avltreehash_list.c: Likewise.
34568         * tests/test-rbtreehash_list.c: Likewise.
34569         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
34570         * modules/carray-list-tests (Makefile.am): Likewise.
34571         * modules/linked-list-tests (Makefile.am): Likewise.
34572         * modules/linkedhash-list-tests (Makefile.am): Likewise.
34573         * modules/avltree-list-tests (Makefile.am): Likewise.
34574         * modules/rbtree-list-tests (Makefile.am): Likewise.
34575         * modules/avltreehash-list-tests (Makefile.am): Likewise.
34576         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
34577
34578         * NEWS: Mention the changes.
34579
34580         * lib/clean-temp.c: Include gl_xlist.h.
34581         * modules/clean-temp (Depends-on): Add xlist.
34582
34583         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
34584         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
34585
34586         * tests/test-array_oset.c: Include gl_xlist.h.
34587         * modules/array-oset-tests (Depends-on): Add xlist.
34588
34589         Reported by José E. Marchesi <jemarch@gnu.org>.
34590
34591 2009-12-13  Bruno Haible  <bruno@clisp.org>
34592
34593         Move the malloc checking from module 'oset' to new module 'xoset'.
34594         * modules/xoset: New file.
34595         * lib/gl_xoset.h: New file.
34596         * lib/gl_xoset.c: New file.
34597         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
34598         declarations.
34599         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
34600         (struct gl_oset_implementation): Rename and change methods accordingly.
34601         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
34602         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
34603         'int'. Mark as __warn_unused_result__.
34604         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
34605         gl_oset_create_empty.
34606         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
34607         'int'.
34608         * lib/gl_array_oset.c: Don't include xalloc.h.
34609         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
34610         malloc, not xmalloc.
34611         (grow): Change return type to 'int'. Don't call xalloc_die.
34612         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
34613         to 'int'.
34614         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
34615         'int'.
34616         (gl_array_oset_implementation): Update.
34617         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
34618         gl_tree_create_empty.
34619         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
34620         'int'.
34621         * lib/gl_avltree_oset.c: Don't include xalloc.h.
34622         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
34623         xmalloc.
34624         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
34625         not xmalloc.
34626         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
34627         xmalloc.
34628         (gl_avltree_oset_implementation): Update.
34629         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
34630         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
34631         xmalloc.
34632         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
34633         not xmalloc.
34634         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
34635         xmalloc.
34636         (gl_rbtree_oset_implementation): Update.
34637         * modules/array-oset (Depends-on): Remove xalloc.
34638         * modules/avltree-oset (Depends-on): Likewise.
34639         * modules/rbtree-oset (Depends-on): Likewise.
34640         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
34641         * tests/test-avltree_oset.c: Likewise.
34642         * tests/test-rbtree_oset.c: Likewise.
34643         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
34644         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
34645         * modules/rbtree-oset-tests (Makefile.am): Likewise.
34646         * NEWS: Mention the change.
34647
34648 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
34649
34650         maint.mk: allow a project to override release-prep commands
34651         * top/maint.mk (alpha, beta, stable): Move release-preparatory
34652         commands into a new rule.
34653         (release-prep): New rule.
34654         (release-prep-hook): New overridable variable.
34655
34656 2009-12-13  Bruno Haible  <bruno@clisp.org>
34657
34658         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
34659
34660 2009-12-13  Jim Meyering  <meyering@redhat.com>
34661
34662         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
34663         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
34664
34665 2009-12-12  Bruno Haible  <bruno@clisp.org>
34666
34667         duplocale: Tweak.
34668         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
34669
34670 2009-12-12  Karl Berry  <karl@gnu.org>
34671
34672         * config/srclist.txt (strtoll.c): tab changes, no more sync.
34673
34674 2009-12-12  Bruno Haible  <bruno@clisp.org>
34675
34676         * m4/po.m4: Undo incorrect untabification.
34677
34678 2009-12-12  Bruno Haible  <bruno@clisp.org>
34679
34680         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
34681         * modules/c-strtod (Depends-on): Add locale.
34682         * modules/c-strtold (Depends-on): Likewise.
34683
34684 2009-12-12  Bruno Haible  <bruno@clisp.org>
34685
34686         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
34687
34688 2009-12-11  Eric Blake  <ebb9@byu.net>
34689
34690         setenv: relax requirement in light of POSIX ruling
34691         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
34692         not NULL.
34693         * tests/test-setenv.c (main): Relax test.
34694         * tests/test-unsetenv.c (main): Likewise.
34695         * doc/posix-functions/setenv.texi (setenv): Document this.
34696         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
34697
34698 2009-12-11  Bruno Haible  <bruno@clisp.org>
34699
34700         New module 'fd-safer-flag'.
34701         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
34702         * lib/dup-safer.c (dup_safer_flag): Remove function.
34703         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
34704         * lib/fd-safer.c (fd_safer_flag): Remove function.
34705         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
34706         * modules/cloexec (configure.ac): Drop indicator macro.
34707         * modules/fd-safer-flag: New file.
34708         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
34709         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
34710         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
34711
34712 2009-12-11  Bruno Haible  <bruno@clisp.org>
34713
34714         Tests for module 'nl_langinfo'.
34715         * modules/nl_langinfo-tests: New file.
34716         * tests/test-nl_langinfo.sh: New file.
34717         * tests/test-nl_langinfo.c: New file.
34718
34719         New module 'nl_langinfo'.
34720         * lib/nl_langinfo.c: New file.
34721         * m4/nl_langinfo.m4: New file.
34722         * modules/nl_langinfo: New file.
34723         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
34724
34725 2009-12-11  Bruno Haible  <bruno@clisp.org>
34726
34727         Tests for module 'langinfo'.
34728         * modules/langinfo-tests: New file.
34729         * tests/test-langinfo.c: New file.
34730
34731         New module 'langinfo'.
34732         * lib/langinfo.in.h: New file.
34733         * m4/langinfo_h.m4: New file.
34734         * modules/langinfo: New file.
34735         * doc/posix-headers/langinfo.texi: Mention the new module.
34736
34737 2009-12-11  Bruno Haible  <bruno@clisp.org>
34738
34739         * lib/config.charset: Untabify.
34740
34741 2009-12-11  Bruno Haible  <bruno@clisp.org>
34742
34743         * modules/unistd-safer (configure.ac): Drop indicator macro.
34744
34745 2009-12-11  Bruno Haible  <bruno@clisp.org>
34746
34747         Move pipe2-safer code to its own file.
34748         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
34749         * lib/pipe-safer.c (pipe2_safer): Remove function.
34750         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
34751         (Makefile.am): Add it to lib_SOURCES.
34752
34753 2009-12-10  Bruno Haible  <bruno@clisp.org>
34754
34755         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
34756
34757 2009-12-10  Bruno Haible  <bruno@clisp.org>
34758
34759         Declare which arguments expect non-NULL values, for GCC and clang.
34760         * build-aux/arg-nonnull.h: New file.
34761         * modules/arg-nonnull: New file.
34762         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
34763         (inet_ntop, inet_pton): Use it.
34764         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
34765         (closedir, dirfd, opendir, scandir, alphasort): Use it.
34766         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
34767         (open, openat): Use it.
34768         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
34769         (fnmatch): Use it.
34770         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
34771         (getopt, getopt_long, getopt_long_only): Use it.
34772         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
34773         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
34774         Use it.
34775         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
34776         (iconv_open): Use it.
34777         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
34778         (strtoimax, strtoumax): Use it.
34779         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
34780         (duplocale): Use it.
34781         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
34782         (frexp, frexpl): Use it.
34783         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
34784         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
34785         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
34786         (tsearch, tfind, tdelete, twalk): Use it.
34787         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
34788         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
34789         sigpending): Use it.
34790         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
34791         (posix_spawn, posix_spawnp, posix_spawnattr_init,
34792         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
34793         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
34794         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
34795         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
34796         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
34797         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
34798         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
34799         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
34800         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
34801         Use it.
34802         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
34803         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
34804         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
34805         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
34806         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
34807         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
34808         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
34809         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
34810         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
34811         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
34812         strtoull, unsetenv): Use it.
34813         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
34814         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
34815         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
34816         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
34817         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
34818         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
34819         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
34820         (strcasecmp, strncasecmp): Use it.
34821         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
34822         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
34823         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
34824         rpl_setsockopt): Use it.
34825         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
34826         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
34827         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
34828         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
34829         (gettimeofday): Use it.
34830         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
34831         (times): Use it.
34832         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
34833         (uname): Use it.
34834         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
34835         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
34836         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
34837         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
34838         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
34839         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
34840         unlinkat, write): Use it.
34841         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
34842         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
34843         * lib/argv-iter.h: Include arg-nonnull.h.
34844         (_ATTRIBUTE_NONNULL_): Remove macro.
34845         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
34846         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
34847         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
34848         optimization.
34849         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
34850         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
34851         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
34852         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
34853         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
34854         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
34855         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
34856         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
34857         * modules/arpa_inet (Depends-on): Add arg-nonnull.
34858         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
34859         * modules/dirent (Depends-on): Add arg-nonnull.
34860         (Makefile.am): Insert arg-nonnull.h into dirent.h.
34861         * modules/fcntl-h (Depends-on): Add arg-nonnull.
34862         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
34863         * modules/fnmatch (Depends-on): Add arg-nonnull.
34864         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
34865         * modules/getopt-posix (Depends-on): Add arg-nonnull.
34866         (Makefile.am): Insert arg-nonnull.h into getopt.h.
34867         * modules/glob (Depends-on): Add arg-nonnull.
34868         (Makefile.am): Insert arg-nonnull.h into glob.h.
34869         * modules/iconv_open (Depends-on): Add arg-nonnull.
34870         (Makefile.am): Insert arg-nonnull.h into iconv.h.
34871         * modules/inttypes (Depends-on): Add arg-nonnull.
34872         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
34873         * modules/locale (Depends-on): Add arg-nonnull.
34874         (Makefile.am): Insert arg-nonnull.h into locale.h.
34875         * modules/math (Depends-on): Add arg-nonnull.
34876         (Makefile.am): Insert arg-nonnull.h into math.h.
34877         * modules/netdb (Depends-on): Add arg-nonnull.
34878         (Makefile.am): Insert arg-nonnull.h into netdb.h.
34879         * modules/search (Depends-on): Add arg-nonnull.
34880         (Makefile.am): Insert arg-nonnull.h into search.h.
34881         * modules/signal (Depends-on): Add arg-nonnull.
34882         (Makefile.am): Insert arg-nonnull.h into signal.h.
34883         * modules/spawn (Depends-on): Add arg-nonnull.
34884         (Makefile.am): Insert arg-nonnull.h into spawn.h.
34885         * modules/stdio (Depends-on): Add arg-nonnull.
34886         (Makefile.am): Insert arg-nonnull.h into stdio.h.
34887         * modules/stdlib (Depends-on): Add arg-nonnull.
34888         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
34889         * modules/string (Depends-on): Add arg-nonnull.
34890         (Makefile.am): Insert arg-nonnull.h into string.h.
34891         * modules/strings (Depends-on): Add arg-nonnull.
34892         (Makefile.am): Insert arg-nonnull.h into strings.h.
34893         * modules/sys_socket (Depends-on): Add arg-nonnull.
34894         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
34895         * modules/sys_stat (Depends-on): Add arg-nonnull.
34896         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
34897         * modules/sys_time (Depends-on): Add arg-nonnull.
34898         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
34899         * modules/sys_times (Depends-on): Add arg-nonnull.
34900         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
34901         * modules/sys_utsname (Depends-on): Add arg-nonnull.
34902         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
34903         * modules/time (Depends-on): Add arg-nonnull.
34904         (Makefile.am): Insert arg-nonnull.h into time.h.
34905         * modules/unistd (Depends-on): Add arg-nonnull.
34906         (Makefile.am): Insert arg-nonnull.h into unistd.h.
34907         * modules/wchar (Depends-on): Add arg-nonnull.
34908         (Makefile.am): Insert arg-nonnull.h into wchar.h.
34909         * modules/argv-iter (Depends-on): Add arg-nonnull.
34910         * tests/test-canonicalize.c (null_ptr): New function.
34911         (main): Use it.
34912         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
34913         (main): Use it.
34914         * tests/test-memmem.c (null_ptr): New function.
34915         (main): Use it.
34916         Reported by Jim Meyering.
34917
34918 2009-12-10  Bruno Haible  <bruno@clisp.org>
34919
34920         Use spaces for indentation, not tabs.
34921         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
34922         * m4/*.m4: Untabify.
34923         * build-aux/*.h: Untabify.
34924         * tests/**/*.[hc]: Untabify.
34925         * README: New section "Indent with spaces, not TABs", based on
34926         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
34927         * NEWS: Mention the change.
34928
34929 2009-12-10  Bruno Haible  <bruno@clisp.org>
34930
34931         pty test: Fix link error.
34932         * modules/pty-tests (Makefile.am): Add the default LDADD value to
34933         test_pty_LDADD.
34934
34935 2009-12-07  Simon Josefsson  <simon@josefsson.org>
34936
34937         * modules/pty: New file.
34938         * modules/pty-tests: New file.
34939         * m4/pty.m4: New file.
34940         * tests/test-pty.c: New file.
34941         * doc/glibc-headers/pty.texi: Modified.
34942         * doc/glibc-functions/forkpty.texi: Modified.
34943         * doc/glibc-functions/openpty.texi: Modified.
34944
34945 2009-12-10  Bruno Haible  <bruno@clisp.org>
34946
34947         Avoid syntax error in C++ mode.
34948         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
34949
34950 2009-12-10  Bruno Haible  <bruno@clisp.org>
34951
34952         Use sed with option -e.
34953         * gnulib-tool (func_version, func_emit_copyright_notice,
34954         func_emit_initmacro_end, func_import, func_create_testdir): Pass
34955         option -e to sed.
34956         * modules/link-warning (Makefile.am): Likewise.
34957
34958 2009-12-10  Jim Meyering  <meyering@redhat.com>
34959
34960         mgetgroups: do not write bytes beyond end of malloc'd buffer
34961         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
34962         username, we call getgroups with a one-element-shorter buffer,
34963         but still told it the length was original, max_n_groups.
34964
34965 2009-12-09  Eric Blake  <ebb9@byu.net>
34966
34967         cloexec: relax license
34968         * modules/cloexec (Maintainer): Add myself.
34969         (License): Use LGPL, not GPL.
34970
34971         link-warning: optimize generation
34972         * modules/link-warning (Makefile.am): Reduce process usage.
34973
34974 2009-12-09  Bruno Haible  <bruno@clisp.org>
34975
34976         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
34977         workaround was added on 2009-11-17.
34978
34979 2009-12-09  Jim Meyering  <meyering@redhat.com>
34980             Bruno Haible  <bruno@clisp.org>
34981
34982         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
34983         * modules/link-warning (Makefile.am): Make the comment-removing sed
34984         command more robust in the face of bootstrap-prepended comment lines.
34985
34986 2009-12-09  Bruno Haible  <bruno@clisp.org>
34987
34988         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
34989         most one group.
34990
34991 2009-12-09  Simon Josefsson <simon@josefsson.org>
34992             Bruno Haible  <bruno@clisp.org>
34993
34994         * build-aux/link-warning.h: Add copyright notice.
34995         * modules/link-warning (Makefile.am): Generate link-warning.h from
34996         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
34997         * NEWS: Mention change in link-warning module.
34998         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
34999         * modules/dirent (Makefile.am): Add dependency to dirent.h.
35000         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
35001         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
35002         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
35003         * modules/math (Makefile.am): Add dependency to math.h.
35004         * modules/search (Makefile.am): Add dependency to search.h.
35005         * modules/signal (Makefile.am): Add dependency to signal.h.
35006         * modules/spawn (Makefile.am): Add dependency to spawn.h.
35007         * modules/stdio (Makefile.am): Add dependency to stdio.h.
35008         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
35009         * modules/string (Makefile.am): Add dependency to string.h.
35010         * modules/strings (Makefile.am): Add dependency to strings.h.
35011         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
35012         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
35013         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
35014         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
35015         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
35016         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
35017         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
35018         * modules/unistd (Makefile.am): Add dependency to unistd.h.
35019         * modules/wchar (Makefile.am): Add dependency to wchar.h.
35020
35021 2009-12-09  Bruno Haible  <bruno@clisp.org>
35022
35023         fchdir: Optimize away rpl_fstat when possible.
35024         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
35025         REPLACE_OPEN_DIRECTORY.
35026         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
35027
35028 2009-12-09  Bruno Haible  <bruno@clisp.org>
35029
35030         * lib/fchdir.c: Update comment.
35031
35032 2009-12-09  Bruno Haible  <bruno@clisp.org>
35033
35034         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
35035
35036 2009-12-08  Eric Blake  <ebb9@byu.net>
35037
35038         fchdir: avoid memory leak on re-registration.
35039         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
35040
35041 2009-12-08  Jim Meyering  <meyering@redhat.com>
35042
35043         init.sh: avoid Solaris 10 /bin/sh portability problem
35044         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
35045         sourced script:
35046           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
35047           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
35048           bar
35049         tests/init.sh relied on that, accepting a --set-path=DIR argument,
35050         and two tests used that idiom.
35051         * tests/init.sh: Update suggested usage comments.
35052         (path_prepend_): New function, to be used in place
35053         of the --src-path=DIR option.
35054         (setup_): Move PATH-prepending code into path_prepend_.
35055         * tests/test-pread.sh: Adapt to new usage.
35056         * tests/test-xalloc-die.sh: Likewise.
35057
35058 2009-12-08  Simon Josefsson  <simon@josefsson.org>
35059
35060         * doc/gnulib.texi (Glibc pty.h): Add.
35061         * doc/glibc-functions/forkpty.texi: Add.
35062         * doc/glibc-functions/openpty.texi: Add.
35063         Suggested by Bruno Haible.
35064
35065 2009-12-08  Eric Blake  <ebb9@byu.net>
35066
35067         fchdir: fix logic bugs
35068         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
35069         * tests/test-fchdir.c (main): Enhance test.
35070         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
35071         is in use.
35072
35073         dup2: fix logic bugs
35074         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
35075         REPLACE_DUP2 to decide when rpl_dup2 is needed.
35076         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
35077         exists.
35078         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
35079
35080 2009-12-07  Eric Blake  <ebb9@byu.net>
35081
35082         unlink: fix m4 detection
35083         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
35084
35085         unistd-safer: add unit test
35086         * modules/unistd-safer-tests: New file.
35087         * tests/test-dup-safer.c: Likewise.
35088         * tests/test-cloexec.c (setmode): Avoid compiler warning.
35089         * tests/test-dup2.c (setmode): Likewise.
35090         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
35091
35092         cloexec: preserve text vs. binary across dup_cloexec
35093         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
35094         mode.
35095         * modules/dup2-tests (Depends-on): Add binary-io.
35096         * modules/cloexec-tests (Depends-on): Likewise.
35097         * tests/test-dup2.c (setmode, is_mode): New helpers.
35098         (main): Add tests that translation mode is preserved.
35099         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
35100         Reported by Bruno Haible.
35101
35102         mgetgroups: reduce duplicate listings
35103         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
35104         resulting array.
35105         * tests/test-chown.h (test_chown): Simplify client.
35106         * tests/test-lchown.h (test_lchown): Likewise.
35107
35108 2009-12-06  Bruno Haible  <bruno@clisp.org>
35109
35110         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
35111         value.
35112
35113 2009-12-06  Bruno Haible  <bruno@clisp.org>
35114
35115         * lib/progname.c: Include stdio.h, stdlib.h.
35116         (set_program_name): Reject a NULL argument.
35117
35118 2009-12-05  Eric Blake  <ebb9@byu.net>
35119
35120         pipe2-safer: new module
35121         * modules/pipe2-safer: New file.
35122         * lib/unistd-safer.h (pipe2_safer): New prototype.
35123         * lib/unistd--.h (pipe2): New wrapper.
35124         * lib/pipe-safer.c (pipe2_safer): New function.
35125         * modules/pipe (Depends-on): Add pipe2-safer.
35126         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
35127
35128         stdlib-safer: preserve cloexec flag for mkostemp[s]
35129         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
35130         fd_safer_flag.
35131
35132         unistd-safer: allow preservation of cloexec status via flag
35133         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
35134         prototypes.
35135         * lib/dup-safer.c (dup_safer_flag): New function.
35136         * lib/fd-safer.c (fd_safer_flag): Likewise.
35137         * modules/cloexec (configure.ac): Set witness.
35138
35139         test-dup2: enhance test
35140         * modules/dup2-tests (Depends-on): Add cloexec.
35141         * tests/test-dup2.c (main): Enhance test.
35142
35143         cloexec: add dup_cloexec
35144         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
35145         header and comments.
35146         * lib/cloexec.c (set_cloexec_flag): Add comments.
35147         (dup_cloexec): New function, with mingw implementation borrowed
35148         from...
35149         * lib/w32spawn.h (dup_noinherit): ...here.
35150         * modules/execute (Depends-on): Add cloexec.
35151         * modules/pipe (Depends-on): Likewise.
35152         * modules/cloexec (Depends-on): Add dup2.
35153         * modules/cloexec-tests (Files): New file.
35154         * tests/test-cloexec.c: Likewise.
35155
35156         test-xalloc-die: fix test for mingw
35157         * modules/xalloc-die-tests (Files): Add tests/init.sh.
35158         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
35159         directory and .exe suffix off argv[0] output.
35160
35161         test-fseeko: fix test for mingw
35162         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
35163         than undefining fseek, so test will pass on mingw.
35164
35165 2009-12-05  Bruno Haible  <bruno@clisp.org>
35166
35167         * lib/progname.h (set_program_name): Clarify specification.
35168         * lib/progname.c (set_program_name): Likewise.
35169         Reported by Jim Meyering.
35170
35171 2009-12-05  Jim Meyering  <meyering@redhat.com>
35172
35173         maint.mk: backslash-escape parens in default regexp
35174         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
35175         backslash-escape the literal parentheses.
35176
35177         maint.mk: news-date-check: use grep -E
35178         * top/maint.mk (today): Define a Make variable, not a...
35179         (news-date-check): ...shell variable.
35180         (news-date-regexp): Use the Make variable.
35181         Use grep's -E option.  Change the failing diagnostic to mention
35182         the variable, $(news-date-regexp).
35183
35184 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
35185
35186         maintainer-makefile: allow customization of NEWS entry format
35187         * top/maint.mk (news-date-regexp): New overridable variable.
35188         (news-date-check): Use it.
35189
35190 2009-12-04  Eric Blake  <ebb9@byu.net>
35191
35192         mgetgroups: add xgetgroups, and avoid ENOSYS failures
35193         * lib/mgetgroups.h (xgetgroups): New prototype.
35194         * lib/mgetgroups.c (xgetgroups): New wrapper.
35195         (mgetgroups): Handle ENOSYS.
35196         * modules/mgetgroups (Depends-on): Add realloc.
35197         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
35198
35199         mgetgroups: avoid argument promotion issues with -1
35200         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
35201         for invalid gid_t.
35202         * tests/test-chown.h (getegid, test_chown): Likewise.
35203         * tests/test-lchown.h (getegid, test_lchown): Likewise.
35204
35205 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
35206
35207         exclude: Fix header file problems.
35208         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
35209
35210 2009-12-01  Jim Meyering  <meyering@redhat.com>
35211
35212         fts: fts_open: do not let an empty string cause immediate failure
35213         This is required in support of GNU rm, for which the command
35214         "rm A '' B" must process and remove both A and B, in spite of
35215         the empty string argument.
35216         * lib/fts.c (fts_open): Do not let the presence of an empty string
35217         cause fts_open to fail immediately.  Most fts-using tools must be
35218         able to process all arguments, in order, and can be expected to
35219         diagnose such arguments themselves.
35220
35221 2009-11-30  Eric Blake  <ebb9@byu.net>
35222
35223         utimens: fix compilation error
35224         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
35225         Declare variable at right scope.
35226
35227 2009-11-29  Jim Meyering  <meyering@redhat.com>
35228
35229         bootstrap: handle perl-5.11's changed --version output
35230         * build-aux/bootstrap (get_version): Handle perl separately,
35231         since perl-5.11's --version output is different.
35232
35233 2009-11-28  Jim Meyering  <meyering@redhat.com>
35234
35235         userspec: depend on the inttostr module, too
35236         * modules/userspec (Depends-on): Add inttostr.
35237
35238         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
35239         * lib/userspec.c (parse_with_separator): Do not accept a user ID
35240         number of MAXUID when it evaluates to (uid_t) -1.
35241         Likewise for group ID.  Reported by Matt McCutchen in
35242         <http://savannah.gnu.org/bugs/?28113>
35243
35244         userspec: reformat to use spaces, not TABs
35245         * lib/userspec.c: Expand TABs to spaces.
35246         Add Emacs' "indent-tabs-mode: nil" hint.
35247
35248 2009-11-27  Eric Blake  <ebb9@byu.net>
35249
35250         getopt-gnu: flush out another BSD bug
35251         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
35252         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
35253         flush out BSD bug.
35254         * tests/test-getopt.h (test_getopt): End lists with NULL.
35255         * tests/test-getopt_long.h (test_getopt_long): Likewise.
35256         (test_getopt_long_posix): Enhance test.
35257         * modules/getopt-posix-tests (Depends-on): Add stdbool.
35258         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
35259         getopt-gnu.
35260         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35261         Likewise.
35262
35263 2009-11-27  Simon Josefsson  <simon@josefsson.org>
35264
35265         * modules/idpriv-droptemp-tests (Notice): Fix text.
35266
35267 2009-11-27  Jim Meyering  <meyering@redhat.com>
35268
35269         test-xalloc-die: avoid spurious failure due to libtool argv difference
35270         In a libtool-enabled project, this test would fail due to a difference
35271         in the emitted program name, e.g.,
35272         -test-xalloc-die: memory exhausted
35273         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
35274         Use program to avoid that.
35275         * modules/xalloc-die-tests (Depends-on): Add progname.
35276         * tests/test-xalloc-die.c: Include progname.h".
35277         (program_name): Remove decl.
35278         (main): Call set_program_name.
35279         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
35280
35281 2009-11-26  Richard Jones  <rjones@redhat.com>
35282
35283         w32sock: leave win32 error in place.
35284         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
35285
35286 2009-11-26  Eric Blake  <ebb9@byu.net>
35287
35288         init.sh: suggest to use skip_ and fail_ functions in comments
35289         * tests/init.sh: Add a sentence.
35290
35291 2009-11-25  Bruno Haible  <bruno@clisp.org>
35292
35293         init.sh: add documentation in comments
35294         * tests/init.sh: Add some developer and user documentation.
35295
35296 2009-11-26  Jim Meyering  <meyering@redhat.com>
35297
35298         init.sh: accommodate even those who specify bogus srcdir manually
35299         * tests/init.sh: Normally, srcdir is guaranteed by automake and
35300         configure-time tests to be sanitized, so that there is no need to
35301         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
35302         (with no double quotes) suffices.  However, since tests may be
35303         invoked manually, and since you may explicitly set srcdir to the
35304         name of a directory containing spaces, do quote its uses here.
35305         * tests/test-pread.sh: Likewise.
35306         Suggested by Bruno Haible.
35307
35308         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
35309         * tests/test-pread.sh: Write no data into the pipe, because
35310         test-pread actually reads none.  This avoids a diagnostic,
35311         "bash: echo: write error: Broken pipe", that arises in the unusual
35312         event something is ignoring SIGPIPE, and might be interpreted
35313         as some sort of failure.  Reported by Bruno Haible.
35314
35315 2009-11-25  Jim Meyering  <meyering@redhat.com>
35316
35317         test-pread: cover failure with ESPIPE and EINVAL
35318         * tests/test-pread.c (main): Test for failure, too.
35319         * tests/test-pread.sh: Invoke with stdin on a pipe.
35320         Suggested by Eric Blake.
35321
35322         pread: improvement and fix
35323         * modules/pread (Depends-on): Depend on lseek, for portability to
35324         e.g., mingw.  Suggested by Eric Blake.
35325         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
35326
35327         unistd.in.h: correct declaration of pread
35328         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
35329         Reported by Richard W.M. Jones.
35330
35331         test-pread.sh: distribute the test script
35332         * modules/pread-tests (Files): Include test-pread.sh.
35333
35334         test-pread.sh: clean up
35335         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
35336         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
35337         That is unnecessary, since it's always ".".
35338         Suggestion from Eric Blake.
35339
35340         test-pread.sh: make executable
35341         * tests/test-pread.sh: Set executable bit.
35342         Reported by Eric Blake.
35343
35344         correct typo in test-pread.sh
35345         * tests/test-pread.sh: Add #! line.
35346
35347         test pread
35348         * tests/test-pread.c: New file.
35349         * tests/test-pread.sh: Likewise.
35350         * modules/pread-tests: Likewise.
35351
35352         pread: new module
35353         * modules/pread: New file.
35354         * lib/unistd.in.h (pread): Define/declare.
35355         * lib/pread.c (pread): New file.
35356         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
35357         * modules/unistd (Makefile.am): Substitute witnesses.
35358         * doc/posix-functions/pread.texi (pread): Update.
35359         * MODULES.html.sh: Add pread.
35360
35361 2009-11-25  Jim Meyering  <meyering@redhat.com>
35362
35363         tests/init.sh: new file to be used via most *.sh tests
35364         * tests/init.sh: New file.
35365
35366 2009-11-25  Eric Blake  <ebb9@byu.net>
35367
35368         utimens: work around older Linux failure with symlinks
35369         * lib/utimens.c (lutimensat_works_really): New variable.
35370         (fdutimens, lutimens): Use it to manage kernels that support
35371         nanosecond times on files, but not on symlinks.
35372         Reported by OndÅ™ej Vašík.
35373
35374         utimes: fix configure grammar
35375         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
35376
35377 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
35378
35379         regex: Fix fastmap for multibyte character ranges.
35380         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
35381         characters when a multibyte character range is included.
35382
35383 2009-11-22  Andy Wingo  <wingo@pobox.com>
35384
35385         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
35386         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
35387
35388 2009-11-24  Bruno Haible  <bruno@clisp.org>
35389
35390         doc: Most *_l functions exist in MacOS X 10.5.
35391         * doc/posix-functions/duplocale.texi: Update platforms list.
35392         * doc/posix-functions/freelocale.texi: Likewise.
35393         * doc/posix-functions/newlocale.texi: Likewise.
35394         * doc/posix-functions/uselocale.texi: Likewise.
35395         * doc/posix-functions/isalnum_l.texi: Likewise.
35396         * doc/posix-functions/isalpha_l.texi: Likewise.
35397         * doc/posix-functions/isblank_l.texi: Likewise.
35398         * doc/posix-functions/iscntrl_l.texi: Likewise.
35399         * doc/posix-functions/isdigit_l.texi: Likewise.
35400         * doc/posix-functions/isgraph_l.texi: Likewise.
35401         * doc/posix-functions/islower_l.texi: Likewise.
35402         * doc/posix-functions/isprint_l.texi: Likewise.
35403         * doc/posix-functions/ispunct_l.texi: Likewise.
35404         * doc/posix-functions/isspace_l.texi: Likewise.
35405         * doc/posix-functions/isupper_l.texi: Likewise.
35406         * doc/posix-functions/iswalnum_l.texi: Likewise.
35407         * doc/posix-functions/iswalpha_l.texi: Likewise.
35408         * doc/posix-functions/iswblank_l.texi: Likewise.
35409         * doc/posix-functions/iswcntrl_l.texi: Likewise.
35410         * doc/posix-functions/iswctype_l.texi: Likewise.
35411         * doc/posix-functions/iswdigit_l.texi: Likewise.
35412         * doc/posix-functions/iswgraph_l.texi: Likewise.
35413         * doc/posix-functions/iswlower_l.texi: Likewise.
35414         * doc/posix-functions/iswprint_l.texi: Likewise.
35415         * doc/posix-functions/iswpunct_l.texi: Likewise.
35416         * doc/posix-functions/iswspace_l.texi: Likewise.
35417         * doc/posix-functions/iswupper_l.texi: Likewise.
35418         * doc/posix-functions/iswxdigit_l.texi: Likewise.
35419         * doc/posix-functions/isxdigit_l.texi: Likewise.
35420         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
35421         * doc/posix-functions/strcasecmp_l.texi: Likewise.
35422         * doc/posix-functions/strcoll_l.texi: Likewise.
35423         * doc/posix-functions/strfmon_l.texi: Likewise.
35424         * doc/posix-functions/strftime_l.texi: Likewise.
35425         * doc/posix-functions/strncasecmp_l.texi: Likewise.
35426         * doc/posix-functions/strxfrm_l.texi: Likewise.
35427         * doc/posix-functions/tolower_l.texi: Likewise.
35428         * doc/posix-functions/toupper_l.texi: Likewise.
35429         * doc/posix-functions/towctrans_l.texi: Likewise.
35430         * doc/posix-functions/towlower_l.texi: Likewise.
35431         * doc/posix-functions/towupper_l.texi: Likewise.
35432         * doc/posix-functions/wcscoll_l.texi: Likewise.
35433         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
35434         * doc/posix-functions/wctrans_l.texi: Likewise.
35435         * doc/posix-functions/wctype_l.texi: Likewise.
35436         * doc/glibc-functions/strptime_l.texi: Likewise.
35437         * doc/glibc-functions/strtod_l.texi: Likewise.
35438         * doc/glibc-functions/strtof_l.texi: Likewise.
35439         * doc/glibc-functions/strtol_l.texi: Likewise.
35440         * doc/glibc-functions/strtold_l.texi: Likewise.
35441         * doc/glibc-functions/strtoll_l.texi: Likewise.
35442         * doc/glibc-functions/strtoul_l.texi: Likewise.
35443         * doc/glibc-functions/strtoull_l.texi: Likewise.
35444         * doc/glibc-functions/wcsftime_l.texi: Likewise.
35445         * doc/glibc-functions/wcstod_l.texi: Likewise.
35446         * doc/glibc-functions/wcstof_l.texi: Likewise.
35447         * doc/glibc-functions/wcstol_l.texi: Likewise.
35448         * doc/glibc-functions/wcstold_l.texi: Likewise.
35449         * doc/glibc-functions/wcstoll_l.texi: Likewise.
35450         * doc/glibc-functions/wcstoul_l.texi: Likewise.
35451         * doc/glibc-functions/wcstoull_l.texi: Likewise.
35452
35453 2009-11-24  Bruno Haible  <bruno@clisp.org>
35454
35455         duplocale: Fix logic bug.
35456         * lib/duplocale.c: Don't include <langinfo.h>.
35457         (_NL_LOCALE_NAME): Remove macro.
35458         (rpl_duplocale): Use setlocale instead of nl_langinfo.
35459         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
35460
35461 2009-11-23  Jim Meyering  <meyering@redhat.com>
35462
35463         test-update-copyright: don't hard-code /usr/bin/perl
35464         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
35465         perl to print the current year.  Gilles Espinasse reported that
35466         the replaced use of perl was hard-coded as /usr/bin/perl.
35467
35468 2009-11-23  Bruno Haible  <bruno@clisp.org>
35469
35470         duplocale: Add support for glibc 2.3.x.
35471         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
35472
35473 2009-11-22  Bruno Haible  <bruno@clisp.org>
35474
35475         vasnprintf: Tiny optimization.
35476         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
35477         MacOS X.
35478
35479 2009-11-22  Bruno Haible  <bruno@clisp.org>
35480
35481         Tests for module 'duplocale'.
35482         * modules/duplocale-tests: New file.
35483         * tests/test-duplocale.c: New file.
35484
35485         New module 'duplocale'.
35486         * m4/duplocale.m4: New file.
35487         * lib/locale.in.h (duplocale): New declaration.
35488         * lib/duplocale.c: New file.
35489         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
35490         gl_LOCALE_H_DEFAULTS): New macros.
35491         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
35492         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
35493         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
35494         REPLACE_DUPLOCALE.
35495         * modules/duplocale: New file.
35496         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
35497
35498 2009-11-22  Bruno Haible  <bruno@clisp.org>
35499
35500         * modules/locale-tests (configure.ac): Test for newlocale function.
35501         * tests/test-locale.c: When the system has extended locale functions,
35502         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
35503
35504         locale: Make locale_t available when possible.
35505         * lib/locale.in.h: Include <xlocale.h> when it exists.
35506         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
35507         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
35508         * modules/locale (Depends-on): Add extensions.
35509         (Makefile.am): Also substitute HAVE_XLOCALE_H.
35510         * doc/posix-headers/locale.texi: Document the problem with locale_t.
35511
35512 2009-11-22  Bruno Haible  <bruno@clisp.org>
35513
35514         Add comments.
35515         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
35516         invocation.
35517         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
35518         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
35519         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
35520
35521 2009-11-22  Bruno Haible  <bruno@clisp.org>
35522
35523         error: account for the possibility of freopen (stdout).
35524         * lib/error.c: Include <unistd.h>.
35525         (flush_stdout): New function, extracted from error and error_at_line.
35526         Determine stdout's fd dynamically.
35527         (error, error_at_line): Invoke flush_stdout.
35528         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
35529         * modules/error (Depends-on): Add unistd.
35530
35531 2009-11-22  Bruno Haible  <bruno@clisp.org>
35532
35533         diffseq: Add comment.
35534         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
35535
35536 2009-11-22  Jim Meyering  <meyering@redhat.com>
35537
35538         c-stack: avoid defining an unused static function
35539         * lib/c-stack.c (find_stack_direction): Do not define this function
35540         when it will not be used.
35541
35542         diffseq: avoid spurious gcc warnings
35543         * lib/diffseq.h (IF_LINT2): Define.
35544         (compareseq): Use it to initialize two members of "part".
35545         This avoids two used-uninitialized warnings.
35546
35547 2009-11-21  Jim Meyering  <meyering@redhat.com>
35548
35549         c-stack: avoid "ignoring return value of `write'" warning
35550         * lib/c-stack.c: Include "ignore-value.h".
35551         (die): Explicitly ignore each write return value.
35552         * modules/c-stack (Depends-on): Add ignore-value.
35553
35554 2009-11-21  Bruno Haible  <bruno@clisp.org>
35555
35556         diffseq: reduce scope of variable 'best'.
35557         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
35558         variable, earlier used for two different purposes.
35559
35560 2009-11-21  Jim Meyering  <meyering@redhat.com>
35561
35562         diffseq: remove useless assignment to "best"
35563         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
35564         assignment.  At that point "best" is already guaranteed to be zero.
35565
35566 2009-11-20  Eric Blake  <ebb9@byu.net>
35567
35568         build: mention ftp redirector in release announcements
35569         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
35570         values that used to come from cfg.mk; mention FTP redirect URL.
35571         * build-aux/announce-gen: Mention the mirror list.
35572         Suggested by Karl Berry.
35573
35574         nanosleep: improve port to mingw
35575         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
35576         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
35577         LIB_NANOSLEEP, but only when needed.
35578         * modules/select (Link): Document LIBSOCKET.
35579         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
35580         enough.
35581
35582         nanosleep: work around cygwin bug
35583         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
35584         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
35585         bug.
35586         (getnow): Delete, not needed.
35587         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
35588         LIB_CLOCK_GETTIME.
35589         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
35590         clock-time, gettime.
35591         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
35592         bug.
35593         * modules/nanosleep-tests: New test.
35594         * tests/test-nanosleep.c: New file.
35595
35596         sleep: work around cygwin bug
35597         * lib/sleep.c (rpl_sleep): Work around the bug.
35598         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
35599         (gl_PREREQ_SLEEP): Delete unused macro.
35600         * modules/sleep (Depends-on): Add verify.
35601         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
35602         * modules/unistd (Makefile.am): Substitute witness.
35603         * lib/unistd.in.h (sleep): Update prototype.
35604         * doc/posix-functions/sleep.texi (sleep): Document the bug.
35605         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
35606         * modules/sleep-tests (Depends-on): Check for alarm.
35607
35608 2009-11-20  Jim Meyering  <meyering@redhat.com>
35609
35610         maint.mk: improve sc_prohibit_magic_number_exit
35611         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
35612         so it does not match uses like System.exit(1).
35613         Add comments showing how to correct all offenders.
35614
35615 2009-11-19  Eric Blake  <ebb9@byu.net>
35616
35617         xalloc-die-tests: add missing library
35618         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
35619
35620         test-xvasprintf: silence compiler warnings
35621         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
35622         empty string from gcc.
35623
35624 2009-11-19  Jim Meyering  <meyering@redhat.com>
35625
35626         xfreopen: new module, from coreutils
35627         * modules/xfreopen: New module.
35628         * lib/xfreopen.c: New file.
35629         * lib/xfreopen.h: New file.
35630         * MODULES.html.sh (File stream based Input/Output"): Add it.
35631
35632 2009-11-19  Eric Blake  <ebb9@byu.net>
35633
35634         manywarnings: depend on warnings
35635         * modules/manywarnings (Depends-on): Add warnings.
35636
35637         build: avoid compiler warnings
35638         * lib/select.c (rpl_select): Delete unused variable.
35639         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
35640
35641 2009-11-18  Eric Blake  <ebb9@byu.net>
35642
35643         tests: avoid false negative with --with-packager
35644         * tests/test-version-etc.sh: Discard packager information.
35645         * tests/test-argp-version-etc-1.sh: Likewise.
35646         Reported by Mike Frysinger.
35647
35648         utimens: fix regression on Solaris
35649         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
35650         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
35651         can only change fd timestamps via futimesat.  Instead, use an
35652         additional witness macro to avoid BSD bug.
35653         Reported by Jim Meyering.
35654
35655 2009-11-17  Eric Blake  <ebb9@byu.net>
35656
35657         usleep: use it to simplify tests
35658         * modules/stat-time-tests (Depends-on): Add usleep.
35659         (configure.ac): Drop usleep check.
35660         * modules/chown-tests (Depends-on, configure.ac): Likewise.
35661         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
35662         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
35663         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
35664         * modules/openat-tests (Depends-on, configure.ac): Likewise.
35665         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
35666         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
35667         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
35668         Likewise.
35669         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
35670         * tests/test-lchown.h (nap): Likewise.
35671         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
35672         * tests/test-stat-time.c (nap): Likewise.
35673         * tests/test-utimens-common.h (nap): Update comments.
35674
35675         usleep: new module
35676         * modules/usleep: New file.
35677         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
35678         * lib/usleep.c (usleep): Likewise.
35679         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
35680         * modules/unistd (Makefile.am): Substitute witnesses.
35681         * lib/unistd.in.h (usleep): Add declaration.
35682         * doc/pastposix-functions/usleep.texi (usleep): Document this.
35683         * MODULES.html.sh (Date and time): Likewise.
35684         * modules/usleep-tests (Depends-on): New test.
35685         * tests/test-usleep.c: New file.
35686
35687         chown: work around OpenBSD bug
35688         * lib/chown.c (rpl_chown): Work around the bug.
35689         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
35690         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
35691         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
35692         * modules/chown (Depends-on): Add stdbool.
35693         * modules/lchown (Depends-on): Likewise.
35694         * doc/posix-functions/chown.texi (chown): Document the bug.
35695         * doc/posix-functions/lchown.texi (lchown): Likewise.
35696         * tests/test-lchown.h (test_chown): Relax test.
35697
35698         mkstemp: avoid conflict with C++ keyword template
35699         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
35700         * lib/mkostemp.c (mkostemp): Likewise.
35701         * lib/mkostemps.c (mkostemps): Likewise.
35702         * lib/mkstemp.c (mkstemp): Likewise.
35703         * lib/mkstemps.c (mkstemps): Likewise.
35704
35705         xalloc-die-tests: optimize
35706         * tests/test-xalloc-die.sh: Reduce number of processes.
35707
35708 2009-11-17  Simon Josefsson  <simon@josefsson.org>
35709
35710         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
35711         patch from ludo@gnu.org (Ludovic Courtès).
35712
35713 2009-11-17  Jim Meyering  <meyering@redhat.com>
35714
35715         version-etc: use proper license string
35716         * modules/version-etc (License): Use LGPL, not LGPLv3+.
35717         * modules/version-etc-fsf: Likewise.
35718
35719 2009-11-17  Simon Josefsson  <simon@josefsson.org>
35720
35721         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
35722         printed to stdout.  Deal with EOL differences.
35723
35724 2009-11-17  Eric Blake  <ebb9@byu.net>
35725
35726         unsetenv: work around Solaris bug
35727         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
35728         * lib/unsetenv.c (rpl_unsetenv): Work around it.
35729         Reported by Jim Meyering.
35730
35731         vasnprintf: avoid compiler warnings
35732         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
35733         variables.
35734         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
35735
35736 2009-11-17  Simon Josefsson  <simon@josefsson.org>
35737
35738         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
35739         settings since xalloc-die is no longer the self test,
35740         xalloc-die.sh is.
35741
35742 2009-11-17  Jim Meyering  <meyering@redhat.com>
35743
35744         test-xalloc-die.sh: make the code agree with the commit log
35745         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
35746         at the end, just in case you happen to have a test-xalloc-die
35747         program in some other PATH directory.
35748
35749         test-xalloc-die.sh: fix a portability bug
35750         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
35751         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
35752         Otherwise, argv[0] (as often seen in diagnostics) would be too
35753         system-dependent, sometimes with, and sometimes without the leading "./".
35754
35755         version-etc-fsf: relax license to LGPLv3+
35756         * modules/version-etc-fsf (License): Relax license.
35757
35758 2009-11-16  Eric Blake  <ebb9@byu.net>
35759
35760         xalloc-die-tests: avoid printing null pointer
35761         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
35762         shell script.
35763         * tests/test-xalloc-die.c (program_name): Declare.
35764         * tests/test-xalloc-die.sh (tmpfiles): New file.
35765
35766         setenv, unsetenv: work around various bugs
35767         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
35768         (setenv) [HAVE_SETENV]: Work around bugs.
35769         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
35770         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
35771         for bugs.
35772         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
35773         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
35774         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
35775         * modules/stdlib (Makefile.am): Update substitutions.
35776         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
35777         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
35778         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
35779         * modules/setenv-tests: New test.
35780         * modules/unsetenv-tests: Likewise.
35781         * tests/test-setenv.c: New file.
35782         * tests/test-unsetenv.c: Likewise.
35783
35784 2009-11-16  Jim Meyering  <meyering@redhat.com>
35785
35786         version-etc: relax license to LGPLv3+
35787         * modules/version-etc (License): Relax license.
35788
35789         better AC_REQUIRE expanded-before-required-warning avoidance
35790         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
35791         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
35792         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
35793         which is no longer needed.
35794
35795 2009-11-16  Eric Blake  <ebb9@byu.net>
35796
35797         test-freading: clean up temporary file
35798         * tests/test-freading.c (main): Remove file on success, and use
35799         ASSERT more liberally.
35800         Reported by Jim Meyering.
35801
35802 2009-11-16  Jim Meyering  <meyering@redhat.com>
35803
35804         avoid new AC_REQUIRE expanded-before-required warnings
35805         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
35806         merely using it.
35807         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
35808         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
35809
35810 2009-11-15  Simon Josefsson  <simon@josefsson.org>
35811
35812         * tests/test-xalloc-die.c: New file.
35813         * modules/xalloc-die-tests: New file.
35814         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
35815         XFAIL_TESTS so it can be appended by modules.
35816
35817 2009-11-15  Simon Josefsson  <simon@josefsson.org>
35818
35819         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
35820         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
35821
35822 2009-11-14  Eric Blake  <ebb9@byu.net>
35823
35824         fnmatch: avoid compiler warning
35825         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
35826         to silence compiler warning about mismatch signedness in ?:.
35827         Reported by Robert Millan.
35828
35829         intprops: add double-inclusion guard
35830         * lib/intprops.h: Allow idempotent includes.
35831         Suggested by Bruce Korb.
35832
35833         openat: detect Solaris fchownat bug
35834         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
35835         penalizing glibc chownat when only lchownat is broken.
35836         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
35837         trailing slash bugs.
35838         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
35839         * modules/openat-tests (Files): Include more files.
35840         (Depends-on): Add mgetgroups, sleep, stat-time.
35841         (configure.ac): Add additional checks.
35842         (Makefile.am): Build new test.
35843         * tests/test-fchownat.c: New file.
35844
35845         lchown: detect Solaris and FreeBSD bug
35846         * lib/lchown.c (rpl_lchown): Work around bug.
35847         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
35848         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35849         * modules/unistd (Makefile.am): Populate it.
35850         * lib/unistd.in.h (lchown): Update declaration.
35851         * doc/posix-functions/lchown.texi (lchown): Document the bug.
35852         * modules/lchown-tests: New file.
35853         * tests/test-lchown.h (test_lchown): Likewise.
35854         * tests/test-lchown.c (main): Likewise.
35855
35856         chown: detect Solaris and FreeBSD bug
35857         * lib/chown.c (rpl_chown): Work around bug.
35858         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
35859         (gl_PREREQ_CHOWN): Delete.
35860         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35861         * modules/unistd (Makefile.am): Populate it.
35862         * lib/unistd.in.h (chown): Update declaration.
35863         * lib/lchown.c (chown): Update client.
35864         * modules/lchown (Depends-on): Add lstat.
35865         * doc/posix-functions/chown.texi (chown): Document the bug.
35866         * doc/posix-functions/getgroups.texi (getgroups): Document
35867         getgroups pitfall.
35868         * modules/chown-tests: New file.
35869         * tests/test-chown.h (test_chown): Likewise.
35870         * tests/test-chown.c (main): Likewise.
35871
35872 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
35873
35874         gnulib-tool: correctly detect absence of m4 directories
35875         * gnulib-tool: Avoid extra newline on data passed to wc -l.
35876
35877 2009-11-14  Jim Meyering  <meyering@redhat.com>
35878
35879         maint.mk: Prohibit inclusion of "xalloc.h" without use.
35880         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
35881
35882 2009-11-14  John W. Eaton  <jwe@gnu.org>
35883
35884         strftime.h: wrap funtion declaration in extern "C" block
35885         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
35886
35887 2009-11-13  Eric Blake  <ebb9@byu.net>
35888
35889         getgroups: avoid compiler warning
35890         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
35891
35892         getgroups: work around FreeBSD bug
35893         * lib/getgroups.c (rpl_getgroups): Work around the bug.
35894         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
35895         * doc/posix-functions/getgroups.texi (getgroups): Document it.
35896         * tests/test-getgroups.c (main): Fix buffer overrun.
35897
35898         getgroups: avoid compilation failure
35899         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
35900         * modules/getgroups (Depends-on): Add stdint.
35901
35902 2009-11-13  Jim Meyering  <meyering@redhat.com>
35903
35904         test-getgroups: avoid compilation failure
35905         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
35906
35907 2009-11-13  Eric Blake  <ebb9@byu.net>
35908
35909         mgetgroups: new module, taken from coreutils
35910         * modules/mgetgroups: New file.
35911         * lib/mgetgroups.h: Likewise.
35912         * lib/mgetgroups.c (mgetgroups): Likewise.
35913         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
35914         * MODULES.html.sh (Users and groups): Mention it.
35915
35916         getgroups: don't expose GETGROUPS_T to user
35917         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
35918         an element at a time if GETGROUPS_T is wrong size.
35919         * lib/getugroups.h (getugroups): Change signature.
35920         * lib/unistd.in.h (getgroups): Likewise.
35921         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
35922         signature needs fixing.
35923         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
35924         AC_TYPE_GETGROUPS.
35925         * modules/group-member (Depends-on): Add getgroups.
35926         * lib/group-member.c (group_info, get_group_info): Use gid_t.
35927         (group_member): Rely on getgroups replacement.
35928         * lib/getugroups.c (getugroups): Use gid_t.
35929         * tests/test-getgroups.c (main): Likewise.
35930         * NEWS: Mention the signature change.
35931         * doc/posix-functions/getgroups.texi (getgroups): Mention the
35932         problem with signature.
35933         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
35934         GETGROUPS_T is still useful for setgroups.
35935
35936         getgroups, getugroups: provide stubs for mingw
35937         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
35938         * lib/getugroups.c (getugroups): Likewise.
35939         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
35940         function.  Modernize replacement scheme.
35941         (gl_PREREQ_GETGROUPS): Delete.
35942         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
35943         * modules/getgroups (configure.ac): Declare witness.
35944         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
35945         * modules/unistd (Depends-on): Substitute witness.
35946         * lib/unistd.in.h (getgroups): Declare replacement.
35947
35948         getgroups: avoid calling exit
35949         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
35950         drop xalloc.
35951         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
35952         dependencies.
35953         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
35954         exiting, in the rare case of malloc failure.
35955
35956         getgroups: fix logic error
35957         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
35958         has more than 20 groups.
35959         * modules/getgroups-tests: New test.
35960         * tests/test-getgroups.c: New file.
35961
35962 2009-11-13  Simon Josefsson  <simon@josefsson.org>
35963
35964         * tests/test-base64.c: Improve.
35965
35966 2009-11-13  Simon Josefsson  <simon@josefsson.org>
35967
35968         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
35969         Blake <ebb9@byu.net>.
35970
35971 2009-11-13  Simon Josefsson  <simon@josefsson.org>
35972
35973         * tests/test-xvasprintf.c: Add %s%s related checks.
35974
35975 2009-11-12  Eric Blake  <ebb9@byu.net>
35976
35977         version-etc: match standards.texi style
35978         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
35979         and use <> only for URLs.
35980
35981 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
35982
35983         fts: do not fail on a submount during traversal
35984         * lib/fts.c (fts_build): Read the stat info again after opening
35985         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
35986         Original report at http://bugzilla.redhat.com/501848.
35987
35988 2009-11-12  Jim Meyering  <meyering@redhat.com>
35989
35990         bootstrap: sync from coreutils
35991         * build-aux/bootstrap (bootstrap_epilogue): New function.
35992         Use git_modules_config in one more place.  This make bootstrap's
35993         --gnulib-srcdir option more useful for testing.
35994
35995         bootstrap: generalize autoheader check
35996         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
35997         AC_CONFIG_HEADERS.
35998
35999 2009-11-11  Eric Blake  <ebb9@byu.net>
36000
36001         mkfifoat: use new modules for Solaris and BSD bugs
36002         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
36003         * lib/mkfifoat.c (mknodat): Split...
36004         * lib/mknodat.c (mknodat): ...into new file.
36005         * modules/mkfifoat (Files): Ship new file.
36006         (Depends-on): Add mkfifo, mknod.
36007         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
36008         (Depends-on): Add symlink.
36009         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
36010         redundant with test_mkfifo.h.
36011         (do_mkfifoat, do_mknodat): New helpers.
36012
36013         mknod: new module
36014         * modules/mknod: New file.
36015         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
36016         * lib/mknod.c (mknod): Likewise.
36017         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
36018         defaults.
36019         * modules/sys_stat (Makefile.am): Substitute them.
36020         * lib/sys_stat.in.h (mknod): Declare replacement.
36021         * MODULES.html.sh (Support for systems lacking POSIX:2008):
36022         Document it.
36023         * doc/posix-functions/mknod.texi (mknod): Likewise.
36024         * modules/mknod-tests: New test.
36025         * tests/test-mknod.c: Likewise.
36026
36027         mkfifo: new module
36028         * modules/mkfifo: New file.
36029         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
36030         * lib/mkfifo.c (mkfifo): Likewise.
36031         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
36032         defaults.
36033         * modules/sys_stat (Makefile.am): Substitute them.
36034         * lib/sys_stat.in.h (mkfifo): Declare replacement.
36035         * MODULES.html.sh (Support for systems lacking POSIX:2008):
36036         Document it.
36037         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
36038         * modules/mkfifo-tests: New test.
36039         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
36040         from test-mkfifoat.c.
36041         * tests/test-mkfifo.c: New file.
36042
36043         readlink: detect FreeBSD bug
36044         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
36045         slash on symlink.
36046         * doc/posix-functions/readlink.texi (readlink): Document the bug.
36047         * tests/test-readlink.h (test_readlink): Enhance test.
36048
36049         symlink: detect FreeBSD bug
36050         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
36051         slash on symlink.
36052         * doc/posix-functions/symlink.texi (symlink): Document the bug.
36053         * tests/test-symlink.h (test_symlink): Enhance test.
36054
36055 2009-11-10  Eric Blake  <ebb9@byu.net>
36056
36057         link: detect FreeBSD bug
36058         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
36059         symlink.
36060         * doc/posix-functions/link.texi (link): Document the bug.
36061         * tests/test-link.h (test_link): Enhance test.
36062         * tests/test-linkat.c (main): Update caller.
36063
36064         unlink, remove: detect FreeBSD bug
36065         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
36066         slash on symlink.
36067         * doc/posix-functions/unlink.texi (unlink): Document the bug.
36068         * doc/posix-functions/remove.texi (remove): Likewise.
36069         * tests/test-unlink.h (test_unlink): Enhance test.
36070         * tests/test-remove.c (main): Likewise.
36071
36072 2009-11-09  Eric Blake  <ebb9@byu.net>
36073
36074         rename: detect FreeBSD bug
36075         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
36076         slash on symlink.
36077         * modules/renameat-tests (Depends-on): Add filenamecat.
36078         * tests/test-rename.h (test_rename): Allow one more errno.
36079         * tests/test-renameat.c (main): Likewise.
36080         * doc/posix-functions/rename.texi (rename): Document the bug.
36081
36082         open: detect FreeBSD bug
36083         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
36084         symlink.
36085         * doc/posix-functions/open.texi (open): Document the bug.
36086         * doc/posix-functions/utimes.texi (utimes): Likewise.
36087         * tests/test-open.h (test_open): Add parameters, and test symlink
36088         handling.
36089         * tests/test-open.c (main): Adjust caller.
36090         * tests/test-fcntl-safer.c (main): Likewise.
36091         * modules/open-tests (Depends-on): Add stdbool, symlink.
36092         * modules/fcntl-safer-tests (Depends-on): Likewise.
36093         * tests/test-openat.c (main): Add test-open tests.
36094
36095         stat: detect FreeBSD bug
36096         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
36097         symlink.
36098         * doc/posix-functions/stat.texi (stat): Document the bug.
36099         * tests/test-stat.h (test_stat_func): Add argument.
36100         * tests/test-stat.c (main): Adjust caller.
36101         * tests/test-fstatat.c (main): Likewise.
36102         * modules/stat-tests (Depends-on): Add stdbool, symlink.
36103         Reported by Jim Meyering.
36104
36105 2009-11-09  James Youngman  <jay@gnu.org>
36106
36107         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
36108         * lib/strftime.c: Correct placement of #include "ignore-value.h".
36109
36110 2009-11-08  Jim Meyering  <meyering@redhat.com>
36111
36112         utimens: remove invalid futimesat call
36113         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
36114         It used the file descriptor of the target file as the DIR_FD
36115         parameter and NULL as the file name.  That caused failure with
36116         errno == EFAULT on FreeBSD-8.0-rc2
36117
36118 2009-11-07  Eric Blake  <ebb9@byu.net>
36119
36120         fflush, freadseek: use fseeko, not fseek
36121         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
36122         (clear_ungetc_buffer): Avoid potential problems on large files.
36123         * lib/freadseek.c (freadseek): Likewise.
36124         * modules/freadseek (Depends-on): Add fseeko.
36125         * modules/fseek (configure.ac): Set a witness.
36126         * tests/test-fflush.c (main): Use fseeko.
36127         * tests/test-fpurge.c (fseek): Disable link warning.
36128         * tests/test-freadable.c (fseek): Likewise.
36129         * tests/test-freading.c (fseek): Likewise.
36130         * tests/test-fseeko.c (fseek): Likewise.
36131         * tests/test-ftell.c (fseek): Likewise.
36132         * tests/test-ftello.c (fseek): Likewise.
36133         * tests/test-fwritable.c (fseek): Likewise.
36134         * tests/test-fwriting.c (fseek): Likewise.
36135
36136 2009-11-06  Simon Josefsson  <simon@josefsson.org>
36137
36138         * modules/memchr (Depends-on): Drop getpagesize dependency.
36139
36140 2009-11-06  Simon Josefsson  <simon@josefsson.org>
36141
36142         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
36143         Reported by Ludovic Courtès.
36144         * build-aux/pmccabe2html: Improve example usage.
36145         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
36146
36147 2009-11-06  Jim Meyering  <meyering@redhat.com>
36148
36149         do-release-commit-and-tag: New module.
36150         Automate the release-commit and tag process.
36151         * build-aux/do-release-commit-and-tag: New script, from coreutils.
36152         * modules/do-release-commit-and-tag: New file.
36153         * MODULES.html.sh (Support for maintaining and releasing): Add it.
36154
36155 2009-11-06  Simon Josefsson  <simon@josefsson.org>
36156
36157         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
36158         because test-select.c uses inet_pton.
36159
36160 2009-11-06  Simon Josefsson  <simon@josefsson.org>
36161
36162         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
36163         GETADDRINFO_LIB.  Bump serial number.
36164         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
36165         Suggested by Eric Blake <ebb9@byu.net>.
36166
36167 2009-11-05  Eric Blake  <ebb9@byu.net>
36168
36169         strtod: detect darwin bug
36170         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
36171         Reported by Leo Davis.
36172
36173         freopen-safer: new module
36174         * modules/freopen-safer: New module.
36175         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
36176         * lib/freopen-safer.c (freopen_safer): New file.
36177         * lib/stdio-safer.h (freopen_safer): New declaration.
36178         * lib/stdio--.h (freopen): New override.
36179         * MODULES.html.sh (File stream based Input/Output): Mention it.
36180         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
36181         freopen-safer module.
36182         * doc/posix-functions/stderr.texi (stderr): Likewise.
36183         * doc/posix-functions/stdin.texi (stdin): Likewise.
36184         * doc/posix-functions/stdout.texi (stdout): Likewise.
36185         * modules/freopen-safer-tests: New test.
36186         * tests/test-reopen-safer.c: New file.
36187
36188 2009-11-05  Jim Meyering  <meyering@redhat.com>
36189
36190         maint.mk: Prohibit inclusion of "close-stream.h" without use.
36191         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
36192
36193 2009-11-05  Simon Josefsson  <simon@josefsson.org>
36194
36195         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
36196
36197 2009-11-05  Simon Josefsson  <simon@josefsson.org>
36198
36199         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
36200
36201 2009-11-05  Simon Josefsson  <simon@josefsson.org>
36202
36203         Fix link error.
36204         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
36205         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
36206
36207 2009-11-05  Simon Josefsson  <simon@josefsson.org>
36208
36209         * tests/test-func.c: Also test value of __func__.
36210
36211 2009-11-05  Simon Josefsson  <simon@josefsson.org>
36212
36213         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
36214         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
36215
36216 2009-11-05  Bruno Haible  <bruno@clisp.org>
36217
36218         Fix link error.
36219         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
36220         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
36221         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
36222
36223 2009-11-05  Bruno Haible  <bruno@clisp.org>
36224
36225         Tests for module 'inet_pton'.
36226         * modules/inet_pton-tests: New file.
36227         * tests/test-inet_pton.c: New file.
36228
36229 2009-11-05  Bruno Haible  <bruno@clisp.org>
36230
36231         Tests for module 'inet_ntop'.
36232         * modules/inet_ntop-tests: New file.
36233         * tests/test-inet_ntop.c: New file.
36234
36235 2009-11-04  Eric Blake  <ebb9@byu.net>
36236
36237         stdlib-safer: wrap all mkstemp variants
36238         * modules/mkostemp (configure.ac): Set witness.
36239         * modules/mkostemps (configure.ac): Likewise.
36240         * modules/mkstemps (configure.ac): Likewise.
36241         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
36242         (mkstemps_safer): Wrap more functions.
36243         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
36244         wrapping.
36245         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
36246         (mkstemps_safer): Implement the wrappers.
36247
36248         mkstemps, mkostemps: new modules
36249         * modules/mkostemps: New module.
36250         * modules/mkstemps: Likewise.
36251         * lib/mkostemps.c (mkostemps): New file.
36252         * lib/mkstemps.c (mkstemps): Likewise.
36253         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
36254         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
36255         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
36256         * modules/stdlib (Makefile.am): Substitute them.
36257         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
36258         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
36259         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
36260         * doc/gnulib.texi (Glibc stdlib.h): Include them.
36261         * MODULES.html.sh (File system functions): Mention them.
36262
36263         tempname: resync from glibc
36264         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
36265         same values for __GT_FILE as glibc.  Abort even when assertions
36266         are disabled.
36267         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
36268         match its value otherwise.  Allow idempotent inclusion.
36269         * lib/mkdtemp.c (mkdtemp): Adjust caller.
36270         * lib/mkostemp.c (mkostemp): Likewise.
36271         * lib/mkstemp.c (mkstemp): Likewise.
36272         * lib/tmpfile.c (tmpfile): Likewise.
36273         * NEWS: Document this.
36274
36275         utimens: fix use of futimens on older Linux
36276         * lib/utimens.c (fdutimens): Use updated, rather than original,
36277         timespec to avoid bug in older Linux kernel.
36278         Reported by Simon Josefsson.
36279
36280 2009-11-04  Bruno Haible  <bruno@clisp.org>
36281
36282         Make num_processors more flexible and consistent.
36283         * lib/nproc.h (enum nproc_query): New type.
36284         (num_processors): Add a 'query' argument.
36285         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
36286         (num_processors): Add a 'query' argument. Test the value of the
36287         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
36288         mingw, count the number of CPUs available for the current process.
36289         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
36290         Check for sched_getaffinity and sched_getaffinity_np.
36291         * modules/nproc (Depends-on): Add c-ctype, extensions.
36292         * NEWS: Mention the change.
36293
36294 2009-11-03  Bruno Haible  <bruno@clisp.org>
36295
36296         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
36297
36298 2009-11-03  Jim Meyering  <meyering@redhat.com>
36299
36300         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
36301         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
36302         if it is defined.
36303
36304 2009-11-02  Eric Blake  <ebb9@byu.net>
36305
36306         mktime, timegm: share common declaration
36307         * lib/mktime-internal.h: New file.
36308         * lib/mktime.c: Use it rather than open-coding a declaration.
36309         * lib/timegm.c: Likewise.
36310         * modules/mktime (Files): Ship it.
36311         * modules/timegm (Files): Likewise.
36312         Suggested by Bruno Haible.
36313
36314         test-update-copyright: update test to match script changes
36315         * tests/test-update-copyright.sh: Avoid hard-coding perl
36316         location.  Don't update *.bak created by earlier runs.
36317
36318 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
36319             Simon Josefsson  <simon@josefsson.org>
36320             Bruno Haible  <bruno@clisp.org>
36321
36322         Fix link error on Solaris 8.
36323         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
36324         also in libnsl. Define also INET_PTON_LIB.
36325         * modules/inet_pton (Link): New section.
36326
36327 2009-11-02  Simon Josefsson  <simon@josefsson.org>
36328             Bruno Haible  <bruno@clisp.org>
36329
36330         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
36331         * modules/inet_ntop (Link): New section.
36332         Reported by Boyan Kasarov <bkasarov@gmail.com>.
36333
36334 2009-11-02  Eric Blake  <ebb9@byu.net>
36335
36336         maint: avoid compiler warnings in m4 macros
36337         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
36338         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
36339
36340 2009-11-02  Simon Josefsson  <simon@josefsson.org>
36341
36342         * m4/pmccabe2html.m4: Remove file.
36343         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
36344         function.  Change maintainer.
36345         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
36346         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
36347         Courtès).
36348
36349 2009-10-31  Eric Blake  <ebb9@byu.net>
36350
36351         fseeko: fix m4 regression
36352         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
36353         regression from 2009-10-27.
36354         Reported by Ralf Wildenhues.
36355
36356 2009-10-31  Jim Meyering  <meyering@redhat.com>
36357
36358         inttostr: aesthetics and improved (compile-time) safety
36359         Define inttype_is_signed rather than inttype_is_unsigned,
36360         since the sole use is via "#if inttype_is_signed".
36361         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
36362         inttype_is_unsigned.
36363         * lib/offtostr.c (inttype_is_signed): Likewise.
36364         * lib/uinttostr.c (inttype_is_signed): Likewise.
36365         * lib/umaxtostr.c (inttype_is_signed): Likewise.
36366         * lib/inttostr.c (inttostr): Use verify to cross-check the
36367         inttype_is_signed value and the signedness of the actual type.
36368         * modules/inttostr (Depends-on): Add verify.
36369
36370 2009-10-30  Eric Blake  <ebb9@byu.net>
36371
36372         build: avoid compiler warnings
36373         * lib/fchmodat.c (lchmod): Mark unused variables.
36374         * lib/getopt.c (_getopt_initialize): Likewise.
36375         * lib/mktime.c (__mktime_internal): Provide prototype.
36376         * lib/inttostr.c (inttostr): Avoid compiler warning even with
36377         older gcc that do not understand #pragma GCC diagnostic.
36378         * lib/uinttostr.c (inttype_is_unsigned): Define.
36379         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
36380
36381 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
36382
36383         stat: fix compilation on AIX
36384         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
36385         only see struct stat64.
36386
36387 2009-10-30  Eric Blake  <ebb9@byu.net>
36388
36389         exclude: make more robust
36390         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
36391         rather than masking a coding bug.
36392         Suggested by Bruno Haible.
36393
36394 2009-10-30  Jim Meyering  <meyering@redhat.com>
36395
36396         perl scripts: remove #!/usr/bin/perl in favor of more portable...
36397         Rather than putting #!/usr/bin/perl on the first line,
36398         start with a variant of what's recommended by "man perlrun" that
36399         invokes the first "perl" program from your shell's search path.
36400         * build-aux/gitlog-to-changelog: Replace #!... as above.
36401         Add a "Local Variables" perl mode setting.
36402         Prompted by a patch from Ludovic Courtès.
36403         Improved by Eric Blake.
36404         * build-aux/useless-if-before-free: Likewise.
36405         * build-aux/announce-gen: Likewise.
36406         * build-aux/update-copyright: Likewise.
36407
36408 2009-10-29  Eric Blake  <ebb9@byu.net>
36409
36410         filenamecat-lgpl: adjust clients
36411         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
36412         filenamecat.
36413         * modules/renameat (Depends-on): Likewise.
36414
36415         filenamecat: split into filenamecat-lgpl
36416         * modules/filenamecat-lgpl: New module.
36417         * modules/filenamecat (Files): Move library-safe files into
36418         filenamecat-lgpl.
36419         (Depends-on): Add filenamecat-lgpl.
36420         (configure.ac): Declare witness.
36421         * lib/filenamecat.h (file_name_concat): Only declare when using
36422         GPL module.
36423         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
36424         Move...
36425         * lib/filenamecat-lgpl.c: ...into new file.
36426         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
36427         (gl_FILE_NAME_CONCAT): Use it.
36428         * MODULES.html.sh (File system functions): Mention new module.
36429
36430         argp: avoid memory leak
36431         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
36432         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
36433         base_name, since the latter malloc()s and can call exit().
36434         Leak introduced 2006-07-03.
36435
36436         dirname-lgpl: adjust clients that don't need full dirname
36437         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
36438         * modules/filenamecat (Depends-on): Likewise.
36439         * modules/linkat (Depends-on): Likewise.
36440         * modules/mkancesdirs (Depends-on): Likewise.
36441         * modules/mkdir (Depends-on): Likewise.
36442         * modules/openat (Depends-on): Likewise.
36443         * modules/savewd (Depends-on): Likewise.
36444         * modules/rename (Depends-on): Likewise.
36445         (License): Relax license.
36446         * modules/mkdir-tests (Depends-on): Drop progname.
36447         (Makefile.am): Delete unneeded LDADD.
36448         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
36449
36450         dirname: split into dirname-lgpl
36451         * modules/dirname-lgpl: New module.
36452         * modules/dirname (Files): Move library-safe files into
36453         dirname-lgpl.
36454         (Depends-on): Add dirname-lgpl.
36455         (configure.ac): Declare witness.
36456         * modules/double-slash-root (License): Relax license.
36457         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
36458         module.
36459         * lib/dirname.c (dir_len, mdir_name): Move...
36460         * lib/dirname-lgpl.c: ...into new file.
36461         * lib/basename.c (last_component, base_len): Move...
36462         * lib/basename-lgpl.c: ...into new file.
36463         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
36464         (gl_DIRNAME): Use it.
36465         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
36466         Mention new module.
36467         * modules/dirname-tests (Depends-on): Add progname.
36468         * tests/test-dirname.c (program_name): Delete.
36469
36470         mkdir: make safe for libraries
36471         * modules/mkdir (Depends-on): Drop xalloc.
36472         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
36473         exit.
36474
36475         tests: avoid some compiler warnings
36476         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
36477         literals.
36478         * tests/test-memchr.c (main): Avoid type mismatch.
36479         * tests/test-arpa_inet.c (main): Avoid unused parameters.
36480         * tests/test-base64.c (main): Likewise.
36481         * tests/test-getdelim.c (main): Likewise.
36482         * tests/test-gethostname.c (main): Likewise.
36483         * tests/test-getline.c (main): Likewise.
36484         * tests/test-netinet_in.c (main): Likewise.
36485         * tests/test-select.c (open_server_socket, main): Likewise.
36486         * tests/test-select-stdin.c (main): Likewise.
36487         * tests/test-sockets.c (main): Likewise.
36488         * tests/test-strsignal.c (main): Likewise.
36489         * tests/test-sys_select.c (main): Likewise.
36490         * tests/test-sys_socket.c (main): Likewise.
36491         * tests/test-u64.c (main): Likewise.
36492         * tests/test-xfprintf-posix.c (main): Likewise.
36493         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
36494
36495         sockets: avoid compiler warning
36496         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
36497
36498         maint: detect usage(1) and other suspicious exits
36499         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
36500
36501 2009-10-29  Jim Meyering  <meyering@redhat.com>
36502
36503         timespec: long-to-int truncation could make timespec_cmp malfunction
36504         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
36505         a multiple of 2^32 nanoseconds as no difference.
36506
36507 2009-10-28  Jim Meyering  <meyering@redhat.com>
36508
36509         fprintftime: wrap macro code argument in "do {...} while(0)"
36510         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
36511         cpy macro must be a statement that can be followed by a semicolon.
36512         Now that the else clause contains a comment and is hence longer
36513         than one line, I require curly braces.  That in turn requires
36514         that we wrap this code block in the standard do...while(0).
36515
36516         fprintftime: remove stray semicolon from previous change
36517         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
36518
36519         fprintftime: avoid a warning about ignored fwrite return value
36520         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
36521         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
36522         that is unsafe.
36523         * modules/fprintftime (Depends-on): Add ignore-value.
36524
36525         exclude: avoid an unwarranted warning
36526         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
36527
36528 2009-10-27  Eric Blake  <ebb9@byu.net>
36529
36530         fseek: avoid compilation failure when fflush is replaced
36531         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
36532         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
36533         module is in use.
36534         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
36535         module is not in use; since REPLACE_FSEEK worked otherwise.
36536         (GNULIB_FTELLO): Likewise for ftell.
36537         Reported by Ian Beckwith and others.
36538
36539 2009-10-27  Bruno Haible  <bruno@clisp.org>
36540
36541         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
36542         Reported by Jim Meyering.
36543
36544 2009-10-27  Jim Meyering  <jim@meyering.net>
36545             Bruno Haible  <bruno@clisp.org>
36546
36547         Avoid warning despite dropping the return value of fwrite.
36548         * lib/unicodeio.c: Include ignore-value.h.
36549         (fwrite_success_callback): Explicitly ignore fwrite's return value.
36550         * modules/unicodeio (Depends-on): Add ignore-value.
36551
36552 2009-10-26  Eric Blake  <ebb9@byu.net>
36553
36554         areadlinkat: fix fallback path
36555         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
36556         pointer and zero.
36557
36558 2009-10-22  Pádraig Brady  <P@draigBrady.com>
36559
36560         Use a better IO block size for modern systems
36561         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
36562         * lib/md2.c: Likewise.
36563         * lib/md4.c: Likewise.
36564         * lib/md5.c: Likewise.
36565         * lib/sha1.c: Likewise.
36566         * lib/sha256.c: Likewise.
36567         * lib/sha512.c: Likewise.
36568
36569 2009-10-22  Eric Blake  <ebb9@byu.net>
36570
36571         tests: avoid several compiler warnings
36572         * tests/test-getcwd.c (main): Avoid buffer underflow.
36573         * tests/test-getdate.c (main): String literals are not safe with
36574         putenv, so use setenv.  Declare unused argument.
36575         * modules/getdate-tests (Depends-on): Add setenv.
36576         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
36577         problems with string literals in char *.
36578         * tests/test-hash.c (main): Avoid shadowing declaration.
36579         (insert_new): Treat string literals as char const *.
36580         * tests/test-getopt.h (test_getopt): Likewise.
36581         (getopt_loop): Alter types to minimize casting elsewhere.
36582         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
36583         (test_getopt_long_posix): Likewise.
36584         (do_getopt_long): Add wrapper to minimize casting.
36585         * tests/test-atexit.c (clear_temp_file): Use void.
36586         * tests/test-areadlink-with-size.c (main): Declare unused
36587         arguments.
36588         * tests/test-areadlink.c (main): Likewise.
36589         * tests/test-areadlinkat-with-size.c (main): Likewise.
36590         * tests/test-areadlinkat.c (main): Likewise.
36591         * tests/test-canonicalize-lgpl.c (main): Likewise.
36592         * tests/test-canonicalize.c (main): Likewise.
36593         * tests/test-dirent-safer.c (main): Likewise.
36594         * tests/test-dirname.c (main): Likewise.
36595         * tests/test-dup2.c (main): Likewise.
36596         * tests/test-fchdir.c (main): Likewise.
36597         * tests/test-fcntl-h.c (main): Likewise.
36598         * tests/test-fcntl-safer.c (main): Likewise.
36599         * tests/test-fdopendir.c (main): Likewise.
36600         * tests/test-fdutimensat.c (main): Likewise.
36601         * tests/test-fflush.c (main): Likewise.
36602         * tests/test-filenamecat.c (main): Likewise.
36603         * tests/test-filevercmp.c (main): Likewise.
36604         * tests/test-fopen-safer.c (main): Likewise.
36605         * tests/test-fopen.c (main): Likewise.
36606         * tests/test-fpending.c (main): Likewise.
36607         * tests/test-fpurge.c (main): Likewise.
36608         * tests/test-freading.c (main): Likewise.
36609         * tests/test-fstatat.c (main): Likewise.
36610         * tests/test-fsync.c (main): Likewise.
36611         * tests/test-futimens.c (main): Likewise.
36612         * tests/test-getndelim2.c (main): Likewise.
36613         * tests/test-gettimeofday.c (main): Likewise.
36614         * tests/test-getopt.c (main): Likewise.
36615         * tests/test-i-ring.c (main): Likewise.
36616         * tests/test-inttypes.c (main): Likewise.
36617         * tests/test-link.c (main): Likewise.
36618         * tests/test-lstat.c (main): Likewise.
36619         * tests/test-math.c (main): Likewise.
36620         * tests/test-md5.c (main): Likewise.
36621         * tests/test-memchr2.c (main): Likewise.
36622         * tests/test-memrchr.c (main): Likewise.
36623         * tests/test-mkdir.c (main): Likewise.
36624         * tests/test-mkdirat.c (main): Likewise.
36625         * tests/test-mkfifoat.c (main): Likewise.
36626         * tests/test-open.c (main): Likewise.
36627         * tests/test-openat-safer.c (main): Likewise.
36628         * tests/test-openat.c (main): Likewise.
36629         * tests/test-quotearg.c (main): Likewise.
36630         * tests/test-rawmemchr.c (main): Likewise.
36631         * tests/test-readlink.c (main): Likewise.
36632         * tests/test-remove.c (main): Likewise.
36633         * tests/test-rename.c (main): Likewise.
36634         * tests/test-renameat.c (main): Likewise.
36635         * tests/test-rmdir.c (main): Likewise.
36636         * tests/test-sha1.c (main): Likewise.
36637         * tests/test-signal.c (main): Likewise.
36638         * tests/test-sigaction.c (main): Likewise.
36639         * tests/test-stat.c (main): Likewise.
36640         * tests/test-stat-time.c (main): Likewise.
36641         * tests/test-stddef.c (main): Likewise.
36642         * tests/test-stdint.c (main): Likewise.
36643         * tests/test-stdio.c (main): Likewise.
36644         * tests/test-stdlib.c (main): Likewise.
36645         * tests/test-strchrnul.c (main): Likewise.
36646         * tests/test-strerror.c (main): Likewise.
36647         * tests/test-string.c (main): Likewise.
36648         * tests/test-strtod.c (main): Likewise.
36649         * tests/test-strverscmp.c (main): Likewise.
36650         * tests/test-symlink.c (main): Likewise.
36651         * tests/test-symlinkat.c (main): Likewise.
36652         * tests/test-sys_stat.c (main): Likewise.
36653         * tests/test-sys_time.c (main): Likewise.
36654         * tests/test-time.c (main): Likewise.
36655         * tests/test-unistd.c (main): Likewise.
36656         * tests/test-unlink.c (main): Likewise.
36657         * tests/test-unlinkat.c (main): Likewise.
36658         * tests/test-utimens.c (main): Likewise.
36659         * tests/test-utimensat.c (main): Likewise.
36660         * tests/test-version-etc.c (main): Likewise.
36661         * tests/test-wchar.c (main): Likewise.
36662         * tests/test-wctype.c (main): Likewise.
36663         * tests/test-xprintf-posix.c (main): Likewise.
36664         * tests/test-posixtm.c (main): Likewise.
36665         (STREQ): Delete unused macro.
36666         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
36667         shadowed variables.
36668         * tests/test-memchr.c (main): Likewise.
36669
36670 2009-10-21  Eric Blake  <ebb9@byu.net>
36671
36672         areadlinkat: avoid failure on older glibc
36673         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
36674         rather than mis-comparing 0 against FUNC_RESULT of char*.
36675
36676 2009-10-21  Bruno Haible  <bruno@clisp.org>
36677
36678         * modules/stpncpy (License): Relicense under LGPLv2+.
36679         Reported by David Lutterkort <lutter@redhat.com>.
36680
36681 2009-10-20  Eric Blake  <ebb9@byu.net>
36682
36683         utimensat: work around Solaris 9 bug
36684         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
36685         has trailing slash bugs.
36686         * tests/test-lutimens.h (test_lutimens): Enhance test.
36687         * tests/test-utimens.h (test_utimens): Likewise.
36688         * doc/posix-functions/utime.texi (utime): Enhance documentation.
36689         * doc/posix-functions/utimes.texi (utimes): Likewise.
36690         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36691         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
36692         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
36693         * doc/posix-functions/futimens.texi (futimens): Likewise.
36694
36695         fdutimensat: new module
36696         * modules/fdutimensat: New file.
36697         * lib/fdutimensat.c (fdutimensat): Likewise.
36698         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
36699         * MODULES.html.sh (File system functions): Mention module.
36700         * modules/fdutimensat-tests: New test.
36701         * tests/test-fdutimensat.c: Likewise.
36702
36703         doc: regenerate INSTALL
36704         * doc/INSTALL: Reflect recent autoconf update.
36705         * doc/INSTALL.ISO: Likewise.
36706         * doc/INSTALL.UTF-8: Likewise.
36707
36708 2009-10-20  Pádraig Brady  <P@draigBrady.com>
36709
36710         acl: warn if ACL support is not detected
36711         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
36712
36713 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
36714
36715         * lib/nproc.h: Add extern "C" block for C++.
36716
36717 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
36718             Bruno Haible  <bruno@clisp.org>
36719
36720         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
36721         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
36722         * doc/posix-functions/isalpha.texi: Likewise.
36723         * doc/posix-functions/isblank.texi: Likewise.
36724         * doc/posix-functions/iscntrl.texi: Likewise.
36725         * doc/posix-functions/isdigit.texi: Likewise.
36726         * doc/posix-functions/isgraph.texi: Likewise.
36727         * doc/posix-functions/islower.texi: Likewise.
36728         * doc/posix-functions/isprint.texi: Likewise.
36729         * doc/posix-functions/ispunct.texi: Likewise.
36730         * doc/posix-functions/isspace.texi: Likewise.
36731         * doc/posix-functions/isupper.texi: Likewise.
36732         * doc/posix-functions/isxdigit.texi: Likewise.
36733
36734 2009-10-18  Bruno Haible  <bruno@clisp.org>
36735
36736         Tests for module 'isblank'.
36737         * modules/isblank-tests: New file.
36738         * tests/test-isblank.c: New file.
36739
36740         New module 'isblank'.
36741         * lib/isblank.c: New file.
36742         * m4/isblank.m4: New file.
36743         * modules/isblank: New file.
36744         * doc/posix-functions/isblank.texi: Mention the new module.
36745
36746 2009-10-18  Bruno Haible  <bruno@clisp.org>
36747
36748         New module 'ctype'.
36749         * lib/ctype.in.h: New file.
36750         * m4/ctype.m4: New file.
36751         * modules/ctype: New file.
36752         * doc/posix-headers/ctype.texi: Mention the new module.
36753
36754 2009-10-18  Jim Meyering  <meyering@redhat.com>
36755
36756         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
36757         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
36758         right after its initialization, rather than farther down.
36759         Keeping these in close proximity makes it easier to ensure
36760         that each such variable is initialized.  E.g.,
36761
36762             LIB_CLOCK_GETTIME=
36763             AC_SUBST([LIB_CLOCK_GETTIME])
36764
36765         This change also increments these serial numbers.
36766         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
36767         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
36768         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
36769
36770 2009-10-18  Bruno Haible  <bruno@clisp.org>
36771
36772         Don't let environment variables perturb build.
36773         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
36774         (gl_PREREQ_GETHRXTIME): ... not here.
36775
36776 2009-10-18  Bruno Haible  <bruno@clisp.org>
36777
36778         Avoid symlink attack in localcharset module.
36779         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
36780         (O_NOFOLLOW): Define fallback.
36781         (get_charset_aliases): Don't open the file if it is a symbolic link.
36782         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
36783         gl_FCNTL_H.
36784         (gl_FCNTL_H): Require it.
36785         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
36786         * modules/localcharset (Files): Add m4/fcntl_h.m4.
36787         Reported by Fergal Glynn <fglynn@veracode.com>.
36788
36789 2009-10-18  Bruno Haible  <bruno@clisp.org>
36790
36791         Implement nproc for mingw.
36792         * lib/nproc.c: Include <windows.h>
36793         (num_processors): On native Windows platforms, try GetSystemInfo.
36794
36795 2009-10-18  Bruno Haible  <bruno@clisp.org>
36796
36797         Implement nproc for IRIX.
36798         * lib/nproc.c: Include <sys/sysmp.h>.
36799         (num_processors): On IRIX systems, try sysmp.
36800         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
36801
36802 2009-10-18  Bruno Haible  <bruno@clisp.org>
36803
36804         Implement nproc for HP-UX.
36805         * lib/nproc.c: Include <sys/pstat.h>
36806         (num_processors): On HP-UX systems, try pstat_getdynamic.
36807         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
36808         pstat_getdynamic.
36809
36810 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
36811             Bruno Haible  <bruno@clisp.org>
36812
36813         Implement nproc for NetBSD, OpenBSD.
36814         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
36815         (ARRAY_SIZE): New macro.
36816         (num_processors): On BSD systems, try sysctl of HW_NCPU.
36817         * m4/nproc.m4: New file.
36818         * modules/nproc (Files): Add m4/nproc.m4.
36819         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
36820         (Makefile.am): Instead, augment lib_SOURCES.
36821
36822 2009-10-18  Bruno Haible  <bruno@clisp.org>
36823
36824         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
36825         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
36826         sys/param.h.
36827
36828 2009-10-16  Eric Blake  <ebb9@byu.net>
36829
36830         utimensat: new module
36831         * modules/utimensat: New file.
36832         * lib/utimensat.c (utimensat): Likewise.
36833         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36834         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
36835         so we can work around Linux bugs.
36836         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36837         * modules/sys_stat (Makefile.am): Substitute them.
36838         * lib/sys_stat.in.h (utimensat): Declare it.
36839         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36840         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36841         * modules/utimensat-tests: New test.
36842         * tests/test-utimensat.c: Likewise.
36843
36844         utimens: let lutimens work on non-symlinks
36845         * lib/utimens.c (lutimens): Fall back to utimens rather than
36846         failing with ENOSYS, when file is not a symlink.
36847         (utimens): Reduce redirection.
36848         * tests/test-lutimens.h (test_lutimens): Update test to cover
36849         non-symlinks.
36850         * tests/test-utimens.h (test_utimens): Update test to cover
36851         symlinks.
36852         * tests/test-utimens.c (main): Update caller.
36853
36854         utimens: cache whether utimensat syscall works
36855         * lib/utimens.c (utimensat_works_really): New cache variable.
36856         (fdutimens, lutimens): Use it to avoid failing syscall.
36857
36858         test-stat-time, test-utimens: improve portability
36859         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
36860         ext4 on alpha, and for cygwin.
36861         * tests/test-utimens-common.h: New file.
36862         (nap): Factor delays into single function.
36863         * tests/test-lutimens.h (test_lutimens): Use new header.
36864         * tests/test-futimens.h (test_futimens): Likewise.
36865         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
36866         timestamps to occur from same machine, as was done previously for
36867         test_utimens.
36868         * modules/utimens-tests (Files): Ship new file.
36869         * modules/futimens-tests (Files): Likewise.
36870         Reported in part by Jim Meyering.
36871
36872         sys_stat: sort replacement declarations
36873         * lib/sys_stat.in.h: Sort declarations.
36874         * lib/futimens.c (futimens): Fix typo.
36875
36876 2009-10-15  Jim Meyering  <meyering@redhat.com>
36877
36878         don't let environment settings perturb build
36879         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
36880         could cause a configure-time and/or build-time malfunction.
36881         Typically, a configure-time function-in-library test is performed
36882         via code like this:
36883
36884           LIB_VAR=
36885           AC_SUBST([LIB_VAR])
36886           prefix_saved_LIBS=$LIBS
36887             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
36888                        [test "$ac_cv_search_FUNC" = "none required" ||
36889                         LIB_VAR=$ac_cv_search_FUNC])
36890           LIBS=$prefix_saved_LIBS
36891
36892         However, in each of the files affected by this change, the LIB_VAR=
36893         initialization was omitted.  Thus, when set in the environment, its
36894         value would propagate into generated Makefiles when FUNC is not found
36895         in LIB_NAME.
36896         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
36897         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
36898         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
36899
36900 2009-10-14  Eric Blake  <ebb9@byu.net>
36901
36902         fchdir: avoid infinite recursion in mingw
36903         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
36904         recursing.
36905
36906         test-stat-time: port to mingw
36907         * tests/test-stat-time.c (force_unlink): Return a value.
36908         (test_ctime) [W32]: Fix compilation error.
36909         (nap): Don't call usleep with too large an argument.  Use
36910         force_unlink.
36911         * doc/pastposix-functions/usleep.texi (usleep): Document the
36912         portability issue.
36913
36914 2009-10-13  Jim Meyering  <meyering@redhat.com>
36915
36916         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
36917         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
36918         * modules/pipe-filter-ii: Likewise.
36919         * modules/sys_socket-tests: Likewise.
36920         * modules/tsearch-tests: Likewise.
36921         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
36922         (check): Depend on it.
36923
36924 2009-10-12  Eric Blake  <ebb9@byu.net>
36925
36926         utimens-tests: port to NFS file systems
36927         * tests/test-utimens.h (test_utimens): Refactor utimecmp
36928         comparisons to avoid spurious failures from timestamp drift
36929         between NFS machines.
36930
36931 2009-10-12  Eric Blake  <ebb9@byu.net>
36932
36933         stat-time-tests: minor cleanups
36934         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
36935         * tests/test-stat-time.c (nap): Separate assignment from call.
36936         Suggested by Paolo Bonzini and Bruno Haible.
36937
36938         sys_stat: guarantee struct timespec
36939         * lib/sys_stat.in.h (includes): Always include <time.h>
36940         * modules/sys_stat (Depends-on): Add time.
36941         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
36942         mode_t permission values.
36943         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
36944         get at subsecond timestamps.
36945
36946 2009-10-10  Eric Blake  <ebb9@byu.net>
36947
36948         futimens: new module
36949         * modules/futimens: New file.
36950         * lib/futimens.c (futimens): Likewise.
36951         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
36952         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
36953         we can work around Linux bugs.
36954         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36955         * modules/sys_stat (Makefile.am): Substitute them.
36956         * lib/sys_stat.in.h (futimens): Declare it.
36957         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36958         * doc/posix-functions/futimens.texi (futimens): Likewise.
36959         * modules/futimens-tests: New test.
36960         * tests/test-futimens.c: Likewise.
36961
36962         utimens: introduce fdutimens
36963         * lib/utimens.h (fdutimens): New prototype.
36964         * lib/utimens.c (gl_futimens): Move guts...
36965         (fdutimens): ...to new interface.
36966         * tests/test-utimens.c (do_fdutimens): Use it.
36967
36968         utimens: add UTIME_NOW and UTIME_OMIT support
36969         * lib/utimens.c (validate_timespec, update_timespec): New helper
36970         functions.
36971         (gl_futimens, lutimens): Use them.
36972         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
36973         stdbool, sys_stat.
36974         (Link): Mention resulting library dependency.
36975         * modules/utimecmp (Link): Likewise.
36976         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
36977         (Makefile.am): Pick up library dependency.
36978         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
36979         definition.
36980         * tests/test-sys_stat.c: Test the definitions.
36981         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
36982         * NEWS: Document library dependency.
36983
36984         utimecmp: support symlink timestamps
36985         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
36986         hashing when possible.  Use pathconf when available.
36987         (SYSCALL_RESOLUTION): Recognize tighter resolution.
36988         * modules/utimecmp (Depends-on): Add lstat.
36989
36990         utimens: add lutimens interface
36991         * lib/utimens.c (lutimens): New function.
36992         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
36993         * lib/utimens.h (lutimens): Declare new interface.
36994         * tests/test-utimens.c (main): Enhance test.
36995         * tests/test-lutimens.h (test_lutimens): New file.
36996         * modules/utimens-tests (Files): Distribute it.
36997         (Depends-on): Add symlink.
36998         (configure.ac): Check for usleep.
36999
37000         utimens: validate futimens usage
37001         * lib/utimens.c (gl_futimens): Require valid fd up front, using
37002         fewer syscalls on failure later on.  Avoid compiler warning on
37003         mingw.
37004         * modules/utimens (Depends-on): Add dup2.
37005
37006         utimens: add test
37007         * modules/utimens-tests: New test.
37008         * tests/test-utimens.h: New file.
37009         * tests/test-futimens.h: Likewise.
37010         * tests/test-utimens.c: Likewise.
37011
37012         doc: mention timestamp portability issues
37013         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
37014         instead.
37015         * doc/posix-functions/utime.texi (utime): Likewise.
37016         * doc/posix-functions/utimes.texi (utimes): Likewise.
37017         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
37018         instead.
37019         * doc/posix-functions/futimens.texi (futimens): Mention utimens
37020         module.
37021         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37022         Mention weakness with symlink timestamps.
37023         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
37024         to utimensat/futimens instead.
37025         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
37026
37027         test-dup2: enhance test
37028         * tests/test-dup2.c (main): Also check AT_FDCWD.
37029
37030         test-stat-time: avoid more spurious failures
37031         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
37032         xfs; and avoid race if the two timestamps cross quantization edge.
37033
37034         relocatable: prefer 'file system' over 'filesystem'
37035         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
37036         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
37037         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
37038         * doc/relocatable.texi (Enabling Relocatability): Likewise.
37039         * lib/relocatable.c (compute_curr_prefix): Likewise.
37040
37041 2009-10-10  Jim Meyering  <meyering@redhat.com>
37042
37043         stat-time-tests: check for the usleep function
37044         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
37045
37046 2009-10-10  Bruno Haible  <bruno@clisp.org>
37047
37048         * modules/xnanosleep: Put the Link section after the Include section.
37049
37050 2009-10-09  Eric Blake  <ebb9@byu.net>
37051
37052         dup2: work around FreeBSD 6.1 bug
37053         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
37054         * doc/posix-functions/dup2.texi (dup2): Document it.
37055         Reported by Nelson H. F. Beebe and Jim Meyering.
37056
37057         test-stat-time: port to buggy NFS clients
37058         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
37059         (test_ctime): Also skip test if mtime and ctime are skewed.
37060
37061         maint: prefer 'file system' over 'filesystem'
37062         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
37063         * doc/posix-functions/lstat.texi (lstat): Likewise.
37064         * lib/file-has-acl.c (file_has_acl): Likewise.
37065         * lib/fwriteerror.c [TEST]: Likewise.
37066         * tests/test-areadlink.h (test_areadlink): Likewise.
37067         * tests/test-areadlinkat-with-size.c (main): Likewise.
37068         * tests/test-areadlinkat.c (main): Likewise.
37069         * tests/test-canonicalize-lgpl.c (main): Likewise.
37070         * tests/test-canonicalize.c (main): Likewise.
37071         * tests/test-fstatat.c (main): Likewise.
37072         * tests/test-linkat.c (main): Likewise.
37073         * tests/test-lstat.h (test_lstat_func): Likewise.
37074         * tests/test-mkdir.h (test_mkdir): Likewise.
37075         * tests/test-readlink.h (test_readlink): Likewise.
37076         * tests/test-remove.c (main): Likewise.
37077         * tests/test-rename.h (test_rename): Likewise.
37078         * tests/test-renameat.c (main): Likewise.
37079         * tests/test-rmdir.h (test_rmdir_func): Likewise.
37080         * tests/test-symlink.h (test_symlink): Likewise.
37081         * tests/test-symlinkat.c (main): Likewise.
37082         * tests/test-unlink.h (test_unlink_func): Likewise.
37083         * tests/test-unlinkat.c (main): Likewise.
37084
37085         maint: make realtime library usage explicit
37086         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
37087         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
37088         * modules/settime (Link): Likewise.
37089         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
37090
37091         test-stat-time: speed up execution
37092         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
37093         warning on mingw.
37094         (nap): New helper function.
37095         (prepare_test): Use it to reduce sleep time.
37096         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
37097         execution.
37098         * modules/stat-time-tests (configure.ac): Check for usleep.
37099
37100 2009-10-09  Jim Meyering  <meyering@redhat.com>
37101
37102         selinux-h: always use getfilecon wrappers
37103         * lib/getfilecon.c: New file.
37104         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
37105         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
37106         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
37107         (fgetfilecon): Provide a stub.
37108         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
37109         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
37110         file unconditionally.
37111         When <selinux/selinux.h> is found, arrange to use wrappers.
37112         * modules/selinux-h (Files): Add getfilecon.c.
37113         (Makefile.am): Substitute include-next-related bits
37114         into the now-always-generated selinux/selinux.h file.
37115         * doc/glibc-functions/lgetfilecon.texi: New file.
37116         * doc/glibc-functions/fgetfilecon.texi: New file.
37117         * doc/glibc-functions/getfilecon.texi: New file.
37118         * doc/glibc-functions/getfilecon-desc.texi: New file.
37119         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
37120         which to pull in the new files.
37121         * MODULES.html.sh (Misc): Add selinux-h.
37122
37123 2009-10-08  Jim Meyering  <meyering@redhat.com>
37124
37125         unistd: fix comment typo
37126         * lib/unistd.in.h (euidaccess): Fix a comment typo.
37127
37128 2009-10-08  Eric Blake  <ebb9@byu.net>
37129
37130         areadlink: use SIZE_MAX consistently
37131         * modules/areadlink (Depends-on): Add stdint.
37132         * modules/areadlink-with-size (Depends-on): Likewise.
37133         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
37134         gives NULL; drop sys/types, since unistd gives size_t; and add
37135         stdint for SIZE_MAX.
37136         (SIZE_MAX): Rely on headers.
37137         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
37138         and add stdint.
37139         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
37140         (SIZE_MAX): Likewise.
37141         (INITIAL_BUF_SIZE): Turn into enum.
37142         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
37143
37144 2009-10-08  Jim Meyering  <meyering@redhat.com>
37145
37146         areadlinkat: avoid compilation failure
37147         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
37148         Fix typo in comment.
37149
37150 2009-10-07  Eric Blake  <ebb9@byu.net>
37151
37152         areadlinkat-with-size: new module
37153         * modules/areadlinkat-with-size: New module.
37154         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
37155         * lib/areadlink.h (areadlinkat): Declare it.
37156         * MODULES.html.sh (File system functions): Mention it.
37157         * modules/areadlinkat-with-size-tests: New test.
37158         * tests/test-areadlinkat-with-size.c: New file.
37159
37160         xreadlinkat: new module
37161         * modules/xreadlinkat: New module.
37162         * lib/xreadlinkat.c (xreadlinkat): New file.
37163         * lib/xreadlink.h (xreadlinkat): Declare it.
37164         * MODULES.html.sh (File system functions): Mention it.
37165
37166         areadlinkat: new module
37167         * lib/at-func.c (FUNC_FAIL): New define.
37168         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
37169         * modules/areadlinkat: New module.
37170         * lib/linkat.c (areadlinkat): Move...
37171         * lib/areadlinkat.c (areadlinkat): ...to new file.
37172         * lib/areadlink.h (areadlinkat): Declare it.
37173         * modules/linkat (Depends-on): Add areadlinkat.
37174         * MODULES.html.sh (File system functions): Mention it.
37175         * modules/areadlinkat-tests: New test.
37176         * tests/test-areadlinkat.c: New file.
37177
37178         areadlink, areadlink-with-size: add tests
37179         * modules/areadlink-tests: New test.
37180         * modules/areadlink-with-size-tests: Likewise.
37181         * tests/test-areadlink.h: New file.
37182         * tests/test-areadlink.c: Likewise.
37183         * tests/test-areadlink-with-size.c: Likewise.
37184
37185         maint: minor cleanups
37186         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
37187         _UNUSED_PARAMETER_ instead.
37188         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
37189         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
37190         * modules/linkat-tests (Files): Distribute test-link.h.
37191
37192         openat, utimens: whitespace cleanup
37193         * lib/openat.c: Prefer space throughout, rather than mix of 8
37194         spaces vs. tabs.
37195         * lib/at-func.c: Likewise.
37196         * lib/utimens.c: Likewise.
37197
37198         openat: avoid using wrong fd
37199         * lib/openat.c (openat_permissive): Reject user's fd if saving the
37200         working directory chooses same fd.
37201         * lib/at-func.c (AT_FUNC_NAME): Likewise.
37202
37203         mkdir, mkdirat: fix cygwin 1.5.x bug
37204         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
37205         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
37206         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
37207         bug.
37208         (gl_PREREQ_MKDIR): Delete unused macro.
37209         * modules/mkdir (Files): Track file rename.
37210         (configure.ac): Update macro name.
37211         * modules/openat (Depends-on): Add mkdir.
37212         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
37213
37214         mkdir, mkdirat: add tests
37215         * modules/mkdir-tests: New test.
37216         * tests/test-mkdir.h: New file.
37217         * tests/test-mkdir.c: Likewise.
37218         * tests/test-mkdirat.c: Likewise.
37219         * modules/openat-tests (Files): Add new files.
37220         (Makefile.am): Run new test.
37221
37222 2009-10-06  Eric Blake  <ebb9@byu.net>
37223
37224         doc: tweak *at function documentation
37225         * doc/posix-functions/faccessat.texi (faccessat): Mention
37226         known issue with replacement.
37227         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
37228         * doc/posix-functions/linkat.texi (linkat): Likewise.
37229         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
37230         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
37231         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
37232         * doc/posix-functions/renameat.texi (renameat): Likewise.
37233         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
37234
37235         openat: fix GNU/Hurd bug in unlinkat
37236         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
37237         broken.
37238         * doc/posix-functions/unlink.texi (unlink): Document this.
37239         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
37240
37241         fdopendir: fix GNU/Hurd bug
37242         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
37243         allowing non-directory fds.
37244         * lib/fdopendir.c (rpl_fdopendir): Work around it.
37245         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
37246         * modules/dirent (Makefile.am): Substitute it.
37247         * lib/dirent.in.h (fdopendir): Declare replacement.
37248         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
37249         * tests/test-fdopendir.c (main): Test something other than
37250         /dev/null, since on Hurd that behaves like a directory.
37251
37252         test-symlink: port to GNU/Hurd
37253         * tests/test-symlink.h (test_symlink): Relax expected errno.
37254
37255         doc: tweak more cygwin information
37256         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
37257         now compatible with glibc.
37258         * doc/posix-functions/getopt.texi (getopt): Likewise.
37259
37260         getopt-gnu: add another test
37261         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
37262         guarantee behavior relied on by m4.
37263         * tests/test-getopt.c (main): Use it.
37264         * modules/getopt-posix-tests (Depends-on): Add setenv.
37265         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
37266
37267         getopt: fix compilation on darwin
37268         * lib/getopt.in.h (includes): Leave breadcrumbs during system
37269         include.
37270         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
37271         Reported by Ludovic Courtès.
37272
37273 2009-10-06  Bruno Haible  <bruno@clisp.org>
37274
37275         * modules/size_max (Description): Discourage its use.
37276         Reported by Simon Josefsson.
37277
37278 2009-10-06  Jim Meyering  <meyering@redhat.com>
37279
37280         linkat: avoid compilation failure
37281         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
37282
37283 2009-10-05  Eric Blake  <ebb9@byu.net>
37284
37285         linkat: support Linux 2.6.17
37286         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
37287         linkat on Linux, but allow cache variable override.
37288         * lib/linkat.c (rpl_linkat): Define override.
37289         * modules/linkat (Depends-on): Add symlinkat.
37290         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
37291         * modules/unistd (Makefile.am): Substitute it.
37292         * lib/unistd.in.h (linkat): Declare replacement.
37293         Reported by Pádraig Brady.
37294
37295         quotearg: port test to systems with C.UTF-8 locale
37296         * tests/test-quotearg.c (struct result_strings): Add another
37297         member, differentiating between C.ASCII and C.UTF-8 handling.
37298         (compare_strings): Add parameter.
37299         (main): Adjust all callers.
37300
37301         getopt: avoid clash with FreeBSD _getopt_internal
37302         * lib/getopt.in.h (_getopt_internal): Override the name.
37303         * lib/getopt_int.h (includes): Pick up any overrides.
37304         Reported by Reuben Thomas.
37305
37306         hash: allow C89 compilation
37307         * lib/hash.c (check_tuning): Move declaration before statement.
37308         Reported by Reuben Thomas.
37309
37310 2009-10-05  Karl Berry  <karl@gnu.org>
37311
37312         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
37313
37314 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
37315             Bruno Haible  <bruno@clisp.org>
37316
37317         * lib/uname.c (uname): Use a table-driven algorithm to compute
37318         Windows NT versions.
37319
37320 2009-10-04  Bruno Haible  <bruno@clisp.org>
37321
37322         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
37323         program_invocation_short_name.
37324         * modules/progname (configure.ac): Test for presence of
37325         program_invocation_short_name.
37326         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
37327
37328 2009-10-04  Bruno Haible  <bruno@clisp.org>
37329
37330         * lib/progname.c (set_program_name): Fix comment.
37331         Reported by Jim Meyering.
37332
37333 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
37334             Bruno Haible  <bruno@clisp.org>
37335
37336         * lib/uname.c: Include <string.h>.
37337         (uname): Do only one call to GetVersionEx in the common case.
37338
37339 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
37340             Bruno Haible  <bruno@clisp.org>
37341
37342         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
37343         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
37344         (uname): Add support for Windows CE and various non-x86 CPU types.
37345
37346 2009-10-03  Bruno Haible  <bruno@clisp.org>
37347
37348         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
37349         invocation to tests/configure.ac.
37350         Reported by Ian Beckwith <ianb@erislabs.net>.
37351
37352 2009-10-02  Eric Blake  <ebb9@byu.net>
37353
37354         fchdir: avoid compiler warning
37355         * lib/fchdir.c (canonicalize_file_name)
37356         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
37357
37358         test-open: support mingw errno values
37359         * tests/test-open.h (test_open): Relax test.
37360         * tests/test-fopen.h (test_fopen): Likewise.
37361         * tests/test-openat-safer.c (main): Likewise.
37362
37363         open: fix opening directory on mingw
37364         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
37365
37366         test-open: on GNU/Hurd, /dev/null is a directory
37367         * tests/test-fopen.h (main): Rename...
37368         (test_fopen): ...to this.  Use a guaranteed non-directory when
37369         confirming open behavior on trailing slash.
37370         * tests/test-openat-safer.c (main): Likewise.
37371         * tests/test-open.h (main): Likewise....
37372         (test_open): ...to this.
37373         * tests/test-fopen.c (main): Adjust caller.
37374         * tests/test-fopen-safer.c (main): Likewise.
37375         * tests/test-open.c (main): Likewise.
37376         * tests/test-fcntl-safer.c (main): Likewise.
37377         Reported by Samuel Thibault.
37378
37379         rename, fchdir: don't ignore chdir failure
37380         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
37381         * lib/rename.c (rpl_rename) [W32]: Likewise.
37382         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
37383         an empty destination directory if source cannot be renamed,
37384         although there is still possibility for failure.
37385         * doc/posix-functions/rename.texi (rename): Document the race.
37386         Reported by Jim Meyering.
37387
37388         maint: cleanup whitespace in recent commits
37389         * lib/rename.c (rpl_rename): Remove tabs.
37390         * tests/test-link.h (test_link): Likewise.
37391         * lib/fchdir.c (get_name): Likewise.
37392         Reported by Jim Meyering.
37393
37394 2009-10-02  Ben Pfaff  <blp@gnu.org>
37395
37396         relocatable-prog-wrapper: Add missing dependency on
37397         double-slash-root.
37398         * modules/relocatable-prog-wrapper: Add dependency.
37399         Reported by Ian Beckwith <ianb@erislabs.net>.
37400
37401 2009-10-02  Eric Blake  <ebb9@byu.net>
37402
37403         renameat: fix Solaris bugs
37404         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
37405         needed fixing.
37406         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
37407         * modules/stdio (Makefile.am): Substitute it.
37408         * lib/stdio.in.h (renameat): Declare replacement.
37409         * lib/renameat.c (rpl_renameat): Implement fix.
37410
37411         renameat: new module
37412         * modules/renameat: New file.
37413         * lib/renameat.c (renameat): Likewise.
37414         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
37415         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
37416         * modules/stdio (Makefile.am): Substitute them.
37417         * lib/stdio.in.h (renameat): Declare it.
37418         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37419         * doc/posix-functions/renameat.texi (renameat): Likewise.
37420         * modules/renameat-tests: New test.
37421         * tests/test-renameat.c: Likewise.
37422
37423         rename: fix mingw bugs
37424         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
37425         directory overwrite bugs.
37426
37427         rename: fix another cygwin 1.5 bug
37428         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
37429         checks.
37430         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
37431         unnecessary cygwin workarounds.  Also work around bug with moving
37432         full directory onto an empty one.
37433         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
37434
37435         rename-dest-slash: merge into rename module
37436         * modules/rename-dest-slash (Status): Mark obsolete.
37437         (Depends-on): Add rename.
37438         (Files): Let rename do it all.
37439         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
37440         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
37441         * m4/rename-dest-slash.m4: ...so this file can be deleted.
37442         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
37443         * lib/rename.c (rpl_rename): Update comments.
37444
37445         rename: fix cygwin 1.5.x bugs
37446         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
37447         * lib/rename.c (rpl_rename): Work around them.
37448         * modules/rename (Depends-on): Add same-inode.
37449
37450         rename: fix Solaris 10 bug
37451         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
37452         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
37453         was the only bug.
37454
37455         rename: fix Solaris 9 bug
37456         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
37457         on non-directory.  Avoid calling exit.
37458         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
37459         strdup.
37460         * modules/rename-tests (Depends-on): Drop lstat.
37461         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
37462         (gl_PREREQ_RENAME): Delete unused macro.
37463
37464         rename-dest-slash: fix NetBSD bug
37465         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
37466         links.
37467         * modules/rename-dest-slash (Depends-on): Add same-inode.
37468
37469         rename-tests: new test, exposes several platform bugs
37470         * modules/rename-tests: New file.
37471         * tests/test-rename.h: Likewise.
37472         * tests/test-rename.c: Likewise.
37473         * doc/posix-functions/rename.texi (rename): Improve documentation,
37474         including bugs that will eventually be fixed in gnulib.
37475
37476 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
37477
37478         * lib/uname.c: Include <stdlib.h>
37479         (uname): Assume version info is available.
37480
37481 2009-10-02  Jim Meyering  <meyering@redhat.com>
37482
37483         gnu-web-doc-update: correct --help output
37484         * build-aux/gnu-web-doc-update: Make --help output relevant.
37485
37486         gnu-web-doc-update: add standard options
37487         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
37488
37489         gnu-web-doc-update: New module.
37490         Use this script to automatically update the on-line web documentation
37491         for your GNU project at http://www.gnu.org/software/$pkg/manual/
37492         * modules/gnu-web-doc-update: New file, from coreutils.
37493         * build-aux/gnu-web-doc-update: New script.
37494
37495 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
37496
37497         link: LoadLibrary is not needed.
37498         * lib/link.c: Use GetModuleHandle.
37499
37500 2009-10-01  Eric Blake  <ebb9@byu.net>
37501
37502         getopt: bump serial number
37503         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
37504         change.
37505
37506         tests: tighten link, rmdir, and remove tests
37507         * tests/test-link.h (includes): No need to use <config.h> here.
37508         Clean up if directory hard link was created, otherwise test for
37509         trailing '.'.
37510         * tests/test-linkat.c (main): Simplify.
37511         * tests/test-remove.c (main): Enhance test for trailing '.'.
37512         * tests/test-rmdir.h (test_rmdir_func): Likewise.
37513
37514 2009-10-01  Jim Meyering  <meyering@redhat.com>
37515
37516         maint.mk: requiring "make major" was annoying, for a "minor" release.
37517         What is intended is "stable", to contrast with alpha and beta,
37518         so require "make stable", not "make major".
37519         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
37520         (get_tool_versions): Likewise.
37521         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
37522
37523 2009-09-30  Ben Pfaff  <blp@gnu.org>
37524
37525         Fix broken build of replacement for Windows tmpfile().
37526         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
37527         flags argument added along with the 'mkostemp' module.
37528
37529 2009-09-28  Bruno Haible  <bruno@clisp.org>
37530
37531         Avoid identifier clash with POSIX function 'remove' defined as a macro.
37532         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
37533         to 'remove_elt'.
37534         (gl_list_remove): Update.
37535         * lib/gl_list.c (gl_list_remove): Update.
37536         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
37537         to 'remove_elt'.
37538         (gl_oset_remove): Update.
37539         * lib/gl_list.c (gl_oset_remove): Update.
37540         Reported by Eric Blake.
37541
37542 2009-09-28  Eric Blake  <ebb9@byu.net>
37543
37544         doc: mention yet more cygwin 1.7 status
37545         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
37546         cygwin.
37547         * doc/glibc-functions/execvpe.texi (execvpe): New file.
37548         * doc/gnulib.texi (Glibc unistd.h): Mention it.
37549
37550         argp: fix test failure
37551         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
37552         that are not upper-case.  Pass correct range to tolower.
37553
37554 2009-09-27  Jim Meyering  <meyering@redhat.com>
37555
37556         test-yesno: work around sparc-dash here-document infelicity
37557         Without this change, the literal \177 byte in a here document
37558         would make dash 0.5.5.1-3 access uninitialized memory.
37559         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
37560         Instead, use a marker, "@", and filter through tr to create the desired
37561         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
37562
37563 2009-09-27  Bruno Haible  <bruno@clisp.org>
37564
37565         Disable untested support for new flavours of ACLs on AIX.
37566         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
37567         progress.
37568         * lib/set-mode-acl.c (qset_acl): Likewise.
37569
37570 2008-12-07  Bruno Haible  <bruno@clisp.org>
37571
37572         Add support for new flavours of ACLs on AIX. (Untested.)
37573         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
37574         (file_has_acl): Add support for newer AIX.
37575         * lib/set-mode-acl.c (qset_acl): Likewise.
37576         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
37577         Rainer Tammer <tammer@tammer.net>.
37578
37579 2009-09-26  Eric Blake  <ebb9@byu.net>
37580
37581         argp: fix compilation of getopt
37582         * lib/getopt.in.h (includes): Use different guard than glibc.
37583         Reported by Sergey Poznyakoff.
37584
37585         doc: mention more cygwin 1.7 status
37586         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
37587         bug.
37588         * doc/posix-functions/execl.texi (execl): Likewise.
37589         * doc/posix-functions/execle.texi (execle): Likewise.
37590         * doc/posix-functions/execlp.texi (execlp): Likewise.
37591         * doc/posix-functions/execv.texi (execv): Likewise.
37592         * doc/posix-functions/execve.texi (execve): Likewise.
37593         * doc/posix-functions/execvp.texi (execvp): Likewise.
37594         * doc/glibc-functions/canonicalize_file_name.texi
37595         (canonicalize_file_name): Cygwin 1.7 now provides this.
37596         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
37597         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
37598         on AT_SYMLINK_NOFOLLOW.
37599
37600 2009-09-24  Eric Blake  <ebb9@byu.net>
37601
37602         test-linkat: make test more robust
37603         * tests/test-linkat.c (main): Avoid collision with EEXIST.
37604
37605         getopt: fix inclusion guards for cygwin
37606         * modules/getopt-posix (Depends-on): Add include-next.
37607         (Makefile.am): Substitute more items in replacement header.
37608         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
37609         <getopt.h>.
37610         * lib/getopt.in.h (includes): Use split inclusion guard, and
37611         prefer <getopt.h> over include <unistd.h> when one is present.
37612         (option): Also override name of 'struct option'.
37613
37614         same-inode: revert prior change; it is not yet ready
37615         * NEWS: Undo mention of this change.
37616         * lib/same-inode.h (same-inode.h): Undo tri-state change.
37617         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
37618         * lib/cycle-check.c (cycle_check): Likewise.
37619         * lib/same.c (same_name): Likewise.
37620         * lib/at-func2.c (at_func2): Likewise.
37621
37622 2009-09-23  Eric Blake  <ebb9@byu.net>
37623
37624         linkat: new module
37625         * modules/linkat: New file.
37626         * lib/at-func2.c (at_func2): Likewise.
37627         * lib/linkat.c (linkat): Likewise.
37628         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
37629         * lib/openat-priv.h (at_func2): Add declaration.
37630         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
37631         * modules/unistd (Makefile.am): Substitute them.
37632         * lib/unistd.in.h (linkat): Declare it.
37633         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37634         * doc/posix-functions/linkat.texi (linkat): Likewise.
37635         * doc/posix-functions/link.texi (link): Tweak wording.
37636         * tests/test-link.c (main): Move guts...
37637         * tests/test-link.h (test_link): ...into new file.
37638         * modules/linkat-tests: New test.
37639         * tests/test-linkat.c: Likewise.
37640         * modules/link-tests (Files): Ship new file.
37641         (Depends-on): Add stdbool.
37642
37643         dirname: add library-safe mdir_name
37644         * lib/dirname.h (mdir_name): New prototype.
37645         * lib/dirname.c (dir_name): Move guts...
37646         (mdir_name): ...to new function that avoids xalloc_die.
37647
37648         fchdir: another mingw fix
37649         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
37650         * lib/fchdir.c (get_name): New helper method; skips canonicalize
37651         on mingw (where it has not yet been ported), and make it optional
37652         elsewhere.
37653         (_gl_register_fd): Use it.
37654
37655         same-inode: make SAME_INODE tri-state, to port to mingw
37656         * NEWS: Mention this change.
37657         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
37658         st_ino always being 0.
37659         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
37660         * lib/cycle-check.c (cycle_check): Likewise.
37661         * lib/same.c (same_name): Likewise.
37662
37663         lstat: avoid mingw compilation error
37664         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
37665         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
37666         lstat ourselves.
37667         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
37668         was adequate.
37669         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
37670         the checks for lstat.
37671         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
37672
37673         link: fix test failure on Solaris 9
37674         * lib/link.c (rpl_link): Don't assume link will catch bogus
37675         trailing slash on source.
37676
37677         test-symlinkat: enhance test
37678         * tests/test-readlink.c (main): Move guts...
37679         * tests/test-readlink.h (test_readlink): ...into new file.
37680         * tests/test-symlink.c (main): Move guts...
37681         * tests/test-symlink.h (test_symlink): ...into new file.
37682         * tests/test-symlinkat.c (main): Use new files for further
37683         coverage.
37684         (do_symlink, do_readlink): New helper functions.
37685         * modules/symlink-tests (Files): Ship new file.
37686         (Depends-on): Add stdbool.
37687         * modules/readlink-tests (Files): Ship new file.
37688         (Depends-on): Add stdbool.
37689         * modules/symlinkat-tests (Files): Use new files.
37690
37691 2009-09-23  Eric Blake  <ebb9@byu.net>
37692
37693         readlink: document portability issue with symlink length
37694         * doc/posix-functions/lstat.texi (lstat): Mention that some file
37695         systems have bogus st_size on symlinks, and mention the
37696         areadlink-with-size module.
37697         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
37698         * doc/posix-functions/readlink.texi (readlink): Mention the
37699         areadlink module, and ERANGE failure.
37700         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
37701         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
37702
37703         readlink: fix Solaris 9 bug with trailing slash
37704         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
37705         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
37706         * doc/posix-functions/readlink.texi (readlink): Document this.
37707         * modules/readlink-tests: New test.
37708         * tests/test-readlink.c: Likewise.
37709
37710         readlink: fix cygwin 1.5.x bug with return type
37711         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
37712         * lib/unistd.in.h (readlink): Use ssize_t.
37713         * lib/readlink.c (readlink): Likewise.
37714         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37715         * modules/unistd (Makefile.am): Substitute it.
37716         * lib/unistd.in.h (readlink): Declare replacement.
37717         * doc/posix-functions/readlink.texi (readlink): Document this.
37718
37719         symlink: use throughout gnulib
37720         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
37721         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
37722         symlink is not used.
37723         * modules/symlinkat (Depends-on): Add symlink.
37724         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
37725         * modules/canonicalize-tests (Depends-on): Likewise.
37726         * modules/lstat-tests (Depends-on): Likewise.
37727         * modules/openat-tests (Depends-on): Likewise.
37728         * modules/remove-tests (Depends-on): Likewise.
37729         * modules/rmdir-tests (Depends-on): Likewise.
37730         * modules/unlink-tests (Depends-on): Likewise.
37731         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
37732         * tests/test-canonicalize.c (symlink): Likewise.
37733         * tests/test-fstatat.c (symlink): Likewise.
37734         * tests/test-lstat.c (symlink): Likewise.
37735         * tests/test-remove.c (symlink): Likewise.
37736         * tests/test-rmdir.c (symlink): Likewise.
37737         * tests/test-unlink.c (symlink): Likewise.
37738         * tests/test-unlinkat.c (symlink): Likewise.
37739
37740         symlink: new module, for Solaris 9 bug
37741         * modules/symlink: New file.
37742         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
37743         * lib/symlink.c: Likewise.
37744         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
37745         * modules/unistd (Makefile.am): Substitute them.
37746         * lib/unistd.in.h (symlink): Declare replacement.
37747         * MODULES.html.sh (File system functions): Mention it.
37748         * doc/posix-functions/symlink.texi (symlink): Likewise.
37749         * modules/symlink-tests: New test.
37750         * tests/test-symlink.c: Likewise.
37751
37752 2009-09-23  Bruno Haible  <bruno@clisp.org>
37753
37754         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
37755         when needed.
37756         Test case: gnulib-tool --import --with-tests atexit inttypes.
37757         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
37758
37759 2009-09-23  Bruno Haible  <bruno@clisp.org>
37760
37761         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
37762         subcommand, not in a subshell.
37763
37764 2009-09-22  Eric Blake  <ebb9@byu.net>
37765
37766         unistd: sort replacement declarations
37767         * lib/unistd.in.h: Sort declarations.
37768
37769         open, openat: minor optimization
37770         * lib/open.c (open): If open succeeded, len is non-zero.
37771         * lib/openat.c (rpl_openat): Likewise.
37772
37773         link-follow: ensure correct result
37774         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
37775         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
37776         distinguish between possible failures.
37777
37778 2009-09-21  Eric Blake  <ebb9@byu.net>
37779
37780         fts: avoid compiler warning
37781         * lib/fts.c (dirent_inode_sort_may_be_useful)
37782         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
37783
37784 2009-09-19  Bruno Haible  <bruno@clisp.org>
37785
37786         * lib/progreloc.c (canonicalize_file_name): New declaration.
37787
37788 2009-09-19  Eric Blake  <ebb9@byu.net>
37789
37790         link: fix quoting
37791         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
37792
37793         openat: fix openat bugs on Solaris 9
37794         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
37795         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
37796         * modules/openat (Depends-on): Add open.
37797         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
37798         * modules/fcntl-h (Makefile.am): Substitute it.
37799         * lib/fcntl.in.h (openat): Declare replacement.
37800         * doc/posix-functions/openat.texi (openat): Document this.
37801
37802         openat: move fstatat and unlinkat into correct files
37803         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
37804         compiled.
37805         * lib/openat.c (fstatat, unlinkat): Move...
37806         * lib/fstatat.c (fstatat): ...into correct files.
37807         * lib/unlinkat.c (unlinkat): Likewise.
37808
37809         openat: fix unlinkat bugs on Solaris 9
37810         * lib/unlinkat.c (unlinkat): New file.
37811         * modules/openat (Depends-on): Add unlink.
37812         (Files): Distribute it.
37813         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
37814         trailing slash behavior is broken.
37815         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37816         * modules/unistd (Makefile.am): Substitute it.
37817         * lib/unistd.in.h (unlinkat): Declare replacement.
37818         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
37819
37820         openat: fix fstatat bugs on Solaris 9
37821         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
37822         stat.
37823         * doc/posix-functions/fstatat.texi (fstatat): Document this.
37824
37825         test-unlinkat: enhance test, to expose Solaris 9 bug
37826         * tests/test-unlink.c (main): Factor guts...
37827         * tests/test-unlink.h (test_rmdir_func): ...into new file.
37828         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
37829         * tests/test-rmdir.c (main): Adjust caller.
37830         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
37831         (unlinker): New helper function.
37832         (rmdirat): Enhance check.
37833         * modules/rmdir-tests (Depends-on): Add stdbool.
37834         * modules/unlink-tests (Depends-on): Likewise.
37835         (Files): Add test-unlink.h.
37836         * modules/openat-tests (Files): Likewise.
37837         (Depends-on): Add unlinkdir.
37838
37839         test-fstatat: new test, to expose Solaris 9 bugs
37840         * tests/test-stat.c (main): Factor guts...
37841         * tests/test-stat.h (test_stat_func): ...into new file.
37842         * tests/test-lstat.c (main): Factor guts...
37843         * tests/test-lstat.h (test_lstat_func): ...into new file.
37844         * tests/test-fstatat.c: New file.
37845         * modules/stat-tests (Files): Add test-stat.h.
37846         * modules/lstat-tests (Files): Add test-lstat.h.
37847         (Depends-on): Add stdbool.
37848         * modules/openat-tests (Depends-on): Add pathmax.
37849         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
37850         (Makefile.am): Run new test.
37851
37852         remove: new module, for mingw and Solaris 9 bugs
37853         * modules/remove: New file.
37854         * lib/remove.c: Likewise.
37855         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
37856         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
37857         * modules/stdio (Makefile.am): Use them.
37858         * lib/stdio.in.h (remove): Declare replacement.
37859         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37860         * doc/posix-functions/remove.texi (remove): Likewise.
37861         * modules/remove-tests: New test.
37862         * tests/test-remove.c: Likewise.
37863
37864         unlink: new module, for Solaris 9 bug
37865         * modules/unlink: New file.
37866         * lib/unlink.c: Likewise.
37867         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
37868         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
37869         * modules/unistd (Makefile.am): Use them.
37870         * lib/unistd.in.h (stat): Declare replacement.
37871         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37872         * doc/posix-functions/unlink.texi (unlink): Likewise.
37873         * modules/unlink-tests: New test.
37874         * tests/test-unlink.c: Likewise.
37875
37876         lstat: fix Solaris 9 bug
37877         * lib/lstat.c (lstat): Also check for trailing slash on
37878         non-symlink, non-directories.  Use stat module to simplify logic.
37879         * doc/posix-functions/lstat.texi (lstat): Document it.
37880         * modules/lstat-tests (Depends-on): Add errno, same-inode.
37881         (configure.ac): Check for symlink.
37882         * tests/test-lstat.c (main): Add more tests.
37883
37884         stat: add as dependency to other modules
37885         * modules/chown (Depends-on): Add stat.
37886         * modules/euidaccess (Depends-on): Likewise.
37887         * modules/fchdir (Depends-on): Likewise.
37888         * modules/isdir (Depends-on): Likewise.
37889         * modules/link (Depends-on): Likewise.
37890         * modules/lstat (Depends-on): Likewise.
37891         * modules/mkdir-p (Depends-on): Likewise.
37892         * modules/modechange (Depends-on): Likewise.
37893         * modules/open (Depends-on): Likewise.
37894         * modules/readlink (Depends-on): Likewise.
37895         * modules/same (Depends-on): Likewise.
37896
37897         stat: fix Solaris 9 bug
37898         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
37899         slash.
37900         * lib/stat.c (rpl_stat): Work around it.
37901         * doc/posix-functions/stat.texi (stat): Update documentation.
37902
37903         stat: new module, for mingw bug
37904         * modules/stat: New file.
37905         * lib/stat.c: Likewise.
37906         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
37907         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
37908         * modules/sys_stat (Makefile.am): Use them.
37909         * lib/sys_stat.in.h (stat): Declare replacement.
37910         * lib/openat.c (fstatat): Deal with lstat and stat being function
37911         macros.
37912         * modules/openat (Depends-on): Add inline.
37913         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37914         * doc/posix-functions/stat.texi (stat): Likewise.
37915         * modules/stat-tests: New test.
37916         * tests/test-stat.c: Likewise.
37917
37918 2009-09-19  Jim Meyering  <meyering@redhat.com>
37919
37920         syntax-check: detect unnecessary inclusion of canonicalize.h
37921         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
37922
37923 2009-09-19  Eric Blake  <ebb9@byu.net>
37924
37925         canonicalize-lgpl: adjust clients to use correct header
37926         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
37927         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
37928         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
37929         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
37930         * lib/progreloc.c (includes): Likewise.
37931
37932 2009-09-19  Jim Meyering  <meyering@redhat.com>
37933
37934         test-posixtm.c: correct a comment
37935         * tests/test-posixtm.c: Correct first-line comment.
37936         Spotted by Eric Blake.
37937
37938 2009-09-16  Jim Meyering  <meyering@redhat.com>
37939
37940         posixtm-tests: make T const-correct; add a test case
37941         * tests/test-posixtm.c (T): Declare const.
37942         Add a test for -(2^31+1).
37943         Remove useless can-succeed-only-in-2002 test.
37944
37945         posixtm-tests: adjust the sole failing test
37946         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
37947         expected output matches what mktime now produces.  Cross-checked via
37948         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
37949
37950         posixtm: move #ifdef'd tests into a new module
37951         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
37952         * tests/test-posixtm.c: ... this new file.
37953         * modules/posixtm-tests: New module.
37954
37955 2009-09-19  Eric Blake  <ebb9@byu.net>
37956
37957         openat: simplify use of at-func.c
37958         * lib/at-func.c (includes): Include prerequisites here, to
37959         simplify requirements on client files.
37960         * lib/openat-priv.h: Add double-inclusion guard.
37961         * lib/faccessat.c (includes): Simplify.
37962         * lib/fchmodat.c (includes): Likewise.
37963         * lib/fchownat.c (includes): Likewise.
37964         * lib/mkdirat.c (includes): Likewise.
37965         * lib/mkfifoat.c (includes): Likewise.
37966         * lib/symlinkat.c (includes): Likewise.
37967
37968         openat: allow return of fd 0
37969         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
37970         * modules/save-cwd (Depends-on): Replace fcntl-safer with
37971         unistd-safer.
37972         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
37973         <fcntl.h>; this module does not leak fds.
37974         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
37975         must be allowed to return 0, leaving openat_safer to add the
37976         safety.
37977         (openat_permissive): Avoid writing to just-opened fd 2 if
37978         restoring the current directory fails.
37979         * lib/openat-die.c (openat_restore_fail): Add comment.
37980         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
37981         (save_cwd): Guarantee safe fd, but without use of open_safer.
37982         * tests/test-openat.c: New test.
37983         * modules/openat-tests (Files, Makefile.am): Distribute and build
37984         new file.
37985
37986         relocatable-prog-wrapper: fix build
37987         * modules/relocatable-prog-wrapper (Files): Update name of
37988         canonicalize m4 file, broken on 2009-09-17.
37989         Reported by emad hajjar <aleppos@hotmail.com>.
37990
37991 2009-09-19  Bruno Haible  <bruno@clisp.org>
37992
37993         * lib/safe-alloc.h: Use the standard header with GPL copyright.
37994         * lib/safe-alloc.c: Likewise.
37995         Reported by Ian Beckwith <ianb@erislabs.net>.
37996
37997 2009-09-18  Bruno Haible  <bruno@clisp.org>
37998
37999         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
38000         Reported by <erobles@sensacd.com.mx>.
38001
38002 2009-09-17  Eric Blake  <ebb9@byu.net>
38003
38004         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
38005         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
38006         slashes when checking if last component is missing.
38007         * tests/test-canonicalize.c (main): Test this.
38008
38009         canonicalize, canonicalize-lgpl: honor // if distinct from /
38010         * modules/canonicalize (Files): Add double-slash-root.m4.
38011         * modules/canonicalize-lgpl (Files): Likewise.
38012         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
38013         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
38014         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
38015         fallback definition.
38016         (canonicalize_filename_mode): Use it to protect //.
38017         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
38018         (__realpath): Likewise.
38019         * tests/test-canonicalize.c (main): Test this.
38020         * tests/test-canonicalize-lgpl.c (main): Likewise.
38021         * modules/canonicalize-tests (Depends-on): Add same-inode.
38022         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
38023
38024         canonicalize-lgpl: fix glibc bug with trailing slash
38025         * m4/canonicalize-lgpl.m4: Move contents...
38026         * m4/canonicalize.m4: ...here.
38027         (gl_CANONICALIZE_LGPL): Factor realpath check...
38028         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
38029         glibc 2.3.5 bug, fixed 2005-04-27.
38030         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
38031         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
38032         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
38033         * modules/canonicalize-lgpl (Files): Manage file rename.
38034         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
38035         * modules/stdlib (Makefile.am): Substitute witness.
38036         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
38037         is needed.
38038         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
38039         replacement is required.
38040         * lib/canonicalize.c (canonicalize_file_name): Likewise.
38041         * doc/glibc-functions/canonicalize_file_name.texi
38042         (canonicalize_file_name): Document this.
38043         * doc/posix-functions/realpath.texi (realpath): Likewise.
38044
38045         canonicalize-lgpl: reject non-directory with trailing slash
38046         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
38047         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
38048         catches failures in glibc 2.3.5.
38049         * tests/test-canonicalize.c (main): Likewise.
38050
38051         canonicalize-lgpl: use native realpath if it works
38052         * lib/canonicalize-lgpl.c (realpath): Guard with
38053         FUNC_REALPATH_WORKS.
38054         * lib/stdlib.in.h (realpath): Make declaration optional based on
38055         HAVE_REALPATH.
38056         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
38057         native realpath works.
38058         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
38059         * modules/stdlib (Makefile.am): Substitute witness.
38060
38061         canonicalize, canonicalize-lgpl: use <stdlib.h>
38062         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
38063         (Include): Mention <stdlib.h>.
38064         (configure.ac): Mention functions we provide.
38065         * modules/canonicalize (configure.ac): Likewise.
38066         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
38067         realpath if canonicalize_file_name is missing.
38068         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
38069         * modules/stdlib (Makefile.am): Substitute witnesses.
38070         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
38071         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
38072         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
38073         * NEWS: Document this.
38074         * doc/glibc-functions/canonicalize_file_name.texi
38075         (canonicalize_file_name): Likewise.
38076         * doc/posix-functions/realpath.texi (realpath): Likewise.
38077         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
38078
38079         test-canonicalize: consolidate into single C program
38080         * tests/test-canonicalize.sh: Delete; move setup into...
38081         * tests/test-canonicalize.c (main): ...the program, making it
38082         easier to run in debugger.  Add some tests.
38083         * modules/canonicalize-tests (Files): Remove unused file.
38084         (Depends-on): Add progname.
38085         (configure.ac, Makefile.am): Simplify.
38086
38087         test-canonicalize-lgpl: consolidate into single C program
38088         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
38089         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
38090         easier to run in debugger.  Add some tests.
38091         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
38092         (configure.ac, Makefile.am): Simplify.
38093
38094         canonicalize: avoid resolvepath
38095         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
38096         unnecessary checks.
38097         * lib/canonicalize.c (includes): Simplify.
38098         (canonicalize_file_name): Drop resolvepath implementation.
38099         * modules/canonicalize (Depends-on): Drop filenamecat.
38100
38101         canonicalize: don't lose errno
38102         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
38103         over calls to free.
38104
38105         canonicalize: simplify errno handling
38106         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
38107         assignment.
38108
38109         canonicalize, canonicalize-lgpl: update module dependencies
38110         * modules/canonicalize (Depends-on): Add extensions, lstat,
38111         pathmax, stdlib.
38112         (Files): Drop pathmax.h.
38113         (configure.ac): Adjust macro name.
38114         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
38115         lstat, stdlib, sys_stat.
38116         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
38117         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
38118         extensions.
38119         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
38120         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
38121         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
38122         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
38123         declaration, if available.
38124         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
38125         we can rely on the readlink module.
38126         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
38127         (includes): Use <unistd.h> unconditionally.
38128
38129 2009-09-17  Eric Blake  <ebb9@byu.net>
38130
38131         maint: make Include sections of modules consistent
38132         * modules/alloca: Use only header name; no need to list #include.
38133         * modules/alloca-opt: Likewise.
38134         * modules/arpa_inet: Likewise.
38135         * modules/canon-host: Likewise.
38136         * modules/configmake: Likewise.
38137         * modules/dirent: Likewise.
38138         * modules/eealloc: Likewise.
38139         * modules/environ: Likewise.
38140         * modules/fchdir: Likewise.
38141         * modules/fcntl: Likewise.
38142         * modules/fcntl-h: Likewise.
38143         * modules/gethrxtime: Likewise.
38144         * modules/gettime: Likewise.
38145         * modules/ignore-value: Likewise.
38146         * modules/inet_ntop: Likewise.
38147         * modules/inet_pton: Likewise.
38148         * modules/inttypes: Likewise.
38149         * modules/isnand-nolibm: Likewise.
38150         * modules/isnanf-nolibm: Likewise.
38151         * modules/mbchar: Likewise.
38152         * modules/mbfile: Likewise.
38153         * modules/mbiter: Likewise.
38154         * modules/mbuiter: Likewise.
38155         * modules/netdb: Likewise.
38156         * modules/netinet_in: Likewise.
38157         * modules/nproc: Likewise.
38158         * modules/pagealign_alloc: Likewise.
38159         * modules/poll: Likewise.
38160         * modules/printf-frexp: Likewise.
38161         * modules/pthread: Likewise.
38162         * modules/putenv: Likewise.
38163         * modules/random_r: Likewise.
38164         * modules/relocatable-prog: Likewise.
38165         * modules/search: Likewise.
38166         * modules/select: Likewise.
38167         * modules/selinux-h: Likewise.
38168         * modules/settime: Likewise.
38169         * modules/signal: Likewise.
38170         * modules/size_max: Likewise.
38171         * modules/socklen: Likewise.
38172         * modules/ssize_t: Likewise.
38173         * modules/stdarg: Likewise.
38174         * modules/stdbool: Likewise.
38175         * modules/stddef: Likewise.
38176         * modules/stdint: Likewise.
38177         * modules/stdio: Likewise.
38178         * modules/stdlib: Likewise.
38179         * modules/string: Likewise.
38180         * modules/strings: Likewise.
38181         * modules/sys_file: Likewise.
38182         * modules/sys_ioctl: Likewise.
38183         * modules/sys_select: Likewise.
38184         * modules/sys_socket: Likewise.
38185         * modules/sys_stat: Likewise.
38186         * modules/sys_time: Likewise.
38187         * modules/sys_times: Likewise.
38188         * modules/sys_utsname: Likewise.
38189         * modules/sys_wait: Likewise.
38190         * modules/sysexits: Likewise.
38191         * modules/time: Likewise.
38192         * modules/times: Likewise.
38193         * modules/tmpfile: Likewise.
38194         * modules/trim: Likewise.
38195         * modules/unistd: Likewise.
38196         * modules/wchar: Likewise.
38197         * modules/wctype: Likewise.
38198
38199 2009-09-17  Bruno Haible  <bruno@clisp.org>
38200
38201         Make getdate.y compile on QNX and NetBSD 5 / i386.
38202         * m4/getdate.m4 (gl_GETDATE): Conditionally define
38203         TIME_T_FITS_IN_LONG_INT.
38204         * lib/getdate.y (long_time_t): New type.
38205         (relative_time): Change type of 'seconds' field to long_time_t.
38206         (get_date): Update types of local variables. Check against overflow
38207         during conversion from long_time_t to time_t.
38208         Reported by Matt Kraai <kraai@ftbfs.org>
38209         and Hasso Tepper <hasso@netbsd.org>.
38210
38211 2009-09-17  Bruno Haible  <bruno@clisp.org>
38212
38213         * modules/COPYING: Update copyright years.
38214         * modules/README: Likeiwse.
38215         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
38216         Reported by Ian Beckwith <ianb@erislabs.net>.
38217
38218 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
38219
38220         * users.txt: Update references for gnuit package.
38221
38222 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
38223
38224         * m4/getdelim.m4: Fix typo in copyright line.
38225
38226 2009-09-17  Bruno Haible  <bruno@clisp.org>
38227
38228         * lib/atoll.c: Use the standard header with GPL copyright.
38229         * lib/argz.in.h: Likewise.
38230         * lib/glob.c: Likewise.
38231         * lib/glob-libc.h: Likewise.
38232         * lib/random_r.c: Likewise.
38233         * lib/siglist.h: Likewise.
38234         * lib/strsignal.c: Likewise.
38235         Reported by Ian Beckwith <ianb@erislabs.net>.
38236
38237 2009-09-17  Eric Blake  <ebb9@byu.net>
38238
38239         rmdir: ensure correct dependency order
38240         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
38241
38242 2009-09-17  Bruno Haible  <bruno@clisp.org>
38243
38244         Disable assertion that fails on NetBSD 5 / i386.
38245         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
38246         Reported by Sam Steingold <sds@gnu.org>
38247         and Hasso Tepper <hasso@netbsd.org>.
38248
38249 2009-09-16  Eric Blake  <ebb9@byu.net>
38250
38251         unlinkdir: port to mingw
38252         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
38253         on which no one can unlink a directory.
38254
38255         stdlib: sort witness names
38256         * modules/stdlib (Makefile.am): Sort replacements.
38257         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
38258         * lib/stdlib.in.h: Likewise.
38259
38260         parse-duration-tests: avoid link failure
38261         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
38262         LIBINTL.
38263         Reported by Tom G. Christensen.
38264
38265         openat-tests: ensure unlinkat behaves like rmdir
38266         * tests/test-rmdir.c (main): Factor guts...
38267         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
38268         * modules/rmdir-tests (Files): Ship new file.
38269         * modules/openat-tests: New test.
38270         * tests/test-unlinkat.c: Likewise.
38271
38272         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
38273         * modules/rmdir-errno (Status, Notice): Now obsolete.
38274
38275         rmdir: work around cygwin 1.5.x and mingw bugs
38276         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
38277         * lib/rmdir.c (rmdir): Work around it.
38278         * modules/rmdir (Status, Notice): No longer obsolete.
38279         (Files): Add dos.m4.
38280         (Depends-on): Add unistd.
38281         (configure.ac): Set witnesses.
38282         (License): Relax to LGPLv2+.
38283         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
38284         * modules/unistd (Makefile.am): Substitute witnesses.
38285         * lib/unistd.in.h (rmdir): Declare replacement.
38286         * doc/posix-functions/rmdir.texi (rmdir): Document this.
38287         * modules/rmdir-tests: New tests.
38288         * tests/test-rmdir.c: Likewise.
38289
38290 2009-09-15  Eric Blake  <ebb9@byu.net>
38291
38292         fchdir: improve use of replacement functions
38293         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
38294         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
38295         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
38296         REPLACE_CLOSEDIR.
38297         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
38298         * modules/sys_stat (Makefile.am): Substitute correct witness.
38299         * modules/dirent (Makefile.am): Likewise.
38300         * modules/unistd (Makefile.am): Likewise.
38301         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
38302         * lib/unistd.in.h (dup): Likewise.
38303         * lib/sys_stat.in.h (fstat): Likewise.
38304
38305         maint: ignore gnulib-tool temp files
38306         * .gitignore: Ignore files created during gnulib-tool --test.
38307
38308 2009-09-13  Jim Meyering  <meyering@redhat.com>
38309
38310         posixtm: don't reject a time that specify "60" as the number of seconds
38311         * lib/posixtm.c (posixtime): The code to reject invalid dates
38312         would also reject a time specified with the .60 suffix.
38313         But POSIX allows that, in order to accommodate leap seconds.
38314         So don't reject it.
38315         (main): Adjust tests accordingly.
38316         * modules/posixtm (Depends-on): Add stpcpy.
38317
38318 2009-09-11  Jim Meyering  <meyering@redhat.com>
38319
38320         announce-gen: include [$release_type] in emitted Subject:
38321         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
38322         e.g., [stable] in the emitted Subject: line.
38323
38324 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38325
38326         Remove obsolete macros from several modules.
38327         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
38328         obsolete Autoconf macros with their modern counterparts.
38329         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
38330         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
38331         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
38332         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
38333         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
38334         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
38335         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
38336         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
38337         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
38338         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
38339         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
38340         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
38341         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
38342         * m4/sockets.m4 (gl_SOCKETS): Likewise.
38343         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
38344         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
38345         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
38346         * m4/time_r.m4 (gl_TIME_R): Likewise.
38347         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
38348         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
38349         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
38350
38351         Fix copyright header in build-aux scripts.
38352         * build-aux/git-version-gen: Fix copyright header to match GPLv3
38353         recommendation.
38354         * build-aux/ncftpput-ftp: Likewise.
38355         * build-aux/update-copyright: Likewise.
38356
38357 2009-09-09  Eric Blake  <ebb9@byu.net>
38358
38359         test-link: allow Linux choice of errno
38360         * tests/test-link.c (main): Relax test for alternate error.
38361
38362         strndup: fix improper m4 caching
38363         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
38364         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
38365         (gl_PREREQ_STRNDUP): Delete.
38366         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
38367         * modules/string (Makefile.am): Substitute it.
38368         * lib/string.in.h (strndup): Modernize prototype.
38369
38370         getcwd: port to mingw
38371         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
38372         different from the POSIX assumptions made throughout the getcwd
38373         module; fortunately, the mingw getcwd does not need replacement.
38374         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
38375         * modules/getcwd-tests: New test.
38376         * tests/test-getcwd.c: Likewise.
38377
38378         link: fix platform bugs
38379         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
38380         * lib/link.c (link): Work around them.  Fix related mingw bug.
38381         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
38382         * modules/unistd (Makefile.am): Substitute it.
38383         * lib/unistd.in.h (link): Declare replacement.
38384         * doc/posix-functions/link.texi (link): Document this.
38385         * modules/link (Depends-on): Add strdup-posix, sys_stat.
38386
38387         test-link: consolidate into single C program, test more cases
38388         * tests/test-link.sh: Delete.
38389         * tests/test-link.c: Test more error conditions.  Exposes bugs on
38390         at least Cygwin and Solaris.
38391         * modules/link-tests (Files): Remove unused file.
38392         (Depends-on): Add errno, sys_stat.
38393         (Makefile.am): Simplify.
38394
38395 2009-09-08  Bruno Haible  <bruno@clisp.org>
38396
38397         Work around towlower, towupper bug on mingw.
38398         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
38399         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
38400         * doc/posix-functions/towlower.texi: Mention the mingw bug.
38401         * doc/posix-functions/towupper.texi: Likewise.
38402         Reported by Eric Blake.
38403
38404 2009-09-08  Jim Meyering  <meyering@redhat.com>
38405
38406         build: don't try to run autoheader if we don't use it
38407         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
38408         is not used in configure.ac.
38409
38410 2009-09-08  Eric Blake  <ebb9@byu.net>
38411
38412         euidaccess: fix compilation error
38413         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
38414
38415         rawmemchr: relax license
38416         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
38417         okay.
38418         Reported by Jim Meyering.
38419
38420         mkfifoat: new module
38421         * modules/mkfifoat: New file.
38422         * lib/mkfifoat.c: Likewise.
38423         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
38424         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
38425         * modules/sys_stat (Makefile.am): Use them.
38426         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
38427         * MODULES.html.sh (File system functions): Mention module.
38428         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
38429         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
38430         * modules/mkfifoat-tests: New test.
38431         * tests/test-mkfifoat.c: Likewise.
38432
38433         strchrnul: relax license
38434         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
38435         okay.
38436         Reported by Jim Meyering.
38437
38438 2009-09-08  Eric Blake  <ebb9@byu.net>
38439
38440         fstatat: fix compilation on Solaris
38441         * lib/fstatat.c (includes): Add fcntl.h.
38442         Reported by Pádraig Brady.
38443
38444 2009-09-07  Eric Blake  <ebb9@byu.net>
38445
38446         rename: modernize replacement
38447         * modules/rename (Depends-on): Add stdio.
38448         (configure.ac): Declare witness.
38449         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
38450         stdio take care of replacement.
38451         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
38452         * modules/stdio (Makefile.am): Substitute them.
38453         * lib/stdio.in.h (rename): Declare replacement.
38454         * lib/rename.c (includes): Allow cross-compilation to non-windows
38455         machines.
38456         * doc/posix-functions/rename.texi (rename): Improve
38457         documentation.
38458
38459         stdio: sort witness names
38460         * modules/stdio (Makefile.am): Sort replacements.
38461         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38462         * lib/stdio.in.h: Likewise.
38463
38464         getcwd: minor cleanups
38465         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
38466         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
38467
38468         openat: provide more convenience names
38469         * modules/faccessat (configure.ac): Add C witness.
38470         * lib/unistd.in.h (readlinkat): Fix typo.
38471         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
38472         convenience wrappers.
38473         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
38474         wrappers in syntax checks.
38475
38476 2009-09-06  Eric Blake  <ebb9@byu.net>
38477
38478         doc: fix comments in recent patches
38479         * lib/faccessat.c: Mention correct function.
38480         * lib/fchmodat.c: Likewise.
38481         * lib/fchownat.c: Likewise.
38482         * lib/symlinkat.c: Likewise.
38483         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
38484         constants.
38485
38486         faccessat, symlinkat: continue cleanup of previous patch
38487         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
38488         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
38489         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
38490         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
38491         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
38492         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
38493         set.
38494
38495 2009-09-06  Bruno Haible  <bruno@clisp.org>
38496
38497         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
38498         (fstatat): Declare if GNULIB_FSTATAT is set.
38499         (mkdirat): Declare if GNULIB_MKDIRAT is set.
38500         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
38501         (unlinkat): Declare if GNULIB_UNLINKAT is set.
38502         * modules/fcntl-h (Files): Remove m4/openat.m4.
38503         * modules/sys_stat (Files): Remove m4/openat.m4.
38504         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
38505         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
38506         * modules/unistd (Files): Remove m4/openat.m4.
38507         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
38508         GNULIB_OPENAT.
38509         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
38510         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
38511         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
38512         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
38513         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
38514         gl_OPENAT_DEFAULTS.
38515         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
38516         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
38517         Don't require gl_OPENAT_DEFAULTS.
38518         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
38519         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
38520         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
38521         (gl_OPENAT_DEFAULTS): Remove macro.
38522
38523 2009-09-06  Bruno Haible  <bruno@clisp.org>
38524
38525         * modules/openat (configure.ac): Remove unneeded witness.
38526
38527 2009-09-06  Bruno Haible  <bruno@clisp.org>
38528
38529         Set errno to ENOSYS when a function is entirely unsupported.
38530         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
38531         EOPNOTSUPP.
38532         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
38533         * modules/chown (Depends-on): Remove errno.
38534
38535 2009-09-06  Bruno Haible  <bruno@clisp.org>
38536
38537         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
38538
38539 2009-09-06  Bruno Haible  <bruno@clisp.org>
38540
38541         * lib/sys_stat.in.h: Fix preprocessor command indentation.
38542
38543 2009-09-06  Ben Pfaff  <blp@gnu.org>
38544             Bruno Haible  <bruno@clisp.org>
38545
38546         Work around a glibc bug in strtok_r.
38547         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
38548         Undefine if UNDEFINE_STRTOK_R is set.
38549         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
38550         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38551         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
38552         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
38553         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
38554         UNDEFINE_STRTOK_R.
38555         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
38556
38557 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
38558
38559         exclude: minor fix
38560         * lib/exclude.c: Include wctype.h
38561
38562 2009-09-06  Akim Demaille  <demaille@gostai.com>
38563
38564         bootstrap: improve error message
38565         * build-aux/bootstrap (find_tool): Upon failure, report the list
38566         of candidates.
38567         Honor the initial value of the envvar.
38568
38569 2009-09-05  Eric Blake  <ebb9@byu.net>
38570
38571         symlinkat: new module
38572         * modules/symlinkat: New file.
38573         * lib/symlinkat.c: Likewise.
38574         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
38575         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
38576         * modules/unistd (Makefile.am): Use them.
38577         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
38578         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
38579         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
38580         * MODULES.html.sh (File system functions): Mention module.
38581         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
38582         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
38583         * modules/symlinkat-tests: New test.
38584         * tests/test-symlinkat.c: Likewise.
38585
38586         test-openat-safer: add more checks
38587         * tests/test-openat-safer.c (main): Check more code paths.
38588
38589 2009-09-05  Jim Meyering  <meyering@redhat.com>
38590
38591         syntax-check: detect unnecessary inclusion of openat.h
38592         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
38593
38594 2009-09-05  Bruno Haible  <bruno@clisp.org>
38595
38596         Support towlower, towupper.
38597         * doc/posix-functions/towlower.texi: Mention module wctype.
38598         * doc/posix-functions/towupper.texi: Likewise.
38599         * lib/wctype.in.h (towlower, towupper): New functions.
38600         * tests/test-wctype.c: Include stdio.h, stdlib.h.
38601         (ASSERT): New macro.
38602         (e): New variable.
38603         (main): Test also towlower, towupper. Test WEOF argument.
38604         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
38605
38606 2009-09-05  Bruno Haible  <bruno@clisp.org>
38607
38608         Fix conversion behaviour when the input is invalid.
38609         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
38610         mark occurring in first pass of indirect conversion.
38611         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
38612         input.
38613         Found by clang's static analyzer.
38614
38615 2009-09-05  Bruno Haible  <bruno@clisp.org>
38616
38617         * tests/test-striconveh.c (main): Test indirect conversion on platforms
38618         where direct conversion is possible.
38619
38620 2009-09-04  Eric Blake  <ebb9@byu.net>
38621
38622         openat: fail with ENOENT on empty name
38623         * lib/openat-proc.c (openat_proc_name): Special-case the empty
38624         buffer.
38625
38626         link-follow: fix logic bug in prior patch
38627         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
38628         reversed sense of yes and no in prior patch.  Avoid confusing
38629         compilation failure with desired semantics.
38630
38631         link-follow: accomodate mingw and cross-compilation
38632         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
38633         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
38634         cross-compilation results to -1, to make linkat easier to
38635         implement when cross-compiling.  Trivially support mingw.
38636         * modules/link-follow (configure.ac): Call new name.
38637         * NEWS: Mention this.
38638
38639 2009-09-03  Eric Blake  <ebb9@byu.net>
38640
38641         faccessat: compile replacement
38642         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
38643         needed.
38644
38645         fts: fix compilation error
38646         * lib/fts.c (includes): Re-add "openat.h", for
38647         openat_needs_fchdir.
38648
38649         faccessat: new module
38650         * modules/faccessat: New file.
38651         * lib/faccessat.c: Likewise.
38652         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
38653         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38654         * modules/unistd (Makefile.am): Use it.
38655         * lib/unistd.in.h (faccessat): Declare it.
38656         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
38657         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
38658         * MODULES.html.sh (File system functions): Mention it.
38659         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
38660         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
38661
38662         euidaccess: prefer POSIX over non-standard implementation
38663         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
38664         * lib/euidaccess.c (euidaccess): Use it if available.
38665
38666         openat: make template easier to use
38667         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
38668         AT_FUNC_F2 to be undefined.
38669         (VALIDATE_FLAG): New macro; use it to reject bad flags.
38670         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
38671         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
38672         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
38673         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
38674         Likewise.
38675         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
38676         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
38677         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
38678         Likewise.
38679
38680         openat: declare in POSIX headers
38681         * NEWS: Mention this.
38682         * modules/openat (configure.ac): Declare witnesses.
38683         (Depends-on): Add fcntl-h, sys_stat, unistd.
38684         (Include): Mention correct headers.
38685         * modules/fcntl-h (Depends-on): Add link-warning.
38686         (Files): Add openat.m4.
38687         (Makefile.am): Substitute witnesses.
38688         * modules/sys_stat (Files, Makefile.am): Likewise.
38689         * modules/unistd (Files, Makefile.am): Likewise.
38690         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
38691         (gl_OPENAT_DEFAULTS): New macro.
38692         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
38693         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
38694         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
38695         (SYS_STAT_H): Remove unused variable.
38696         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
38697         * lib/fcntl--.h (includes): Remove unneeded header.
38698         * lib/openat-safer.c (includes): Likewise.
38699         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
38700         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
38701         appropriate headers.
38702         (__OPENAT_PREFIX): Delete.
38703         * lib/fcntl.in.h (openat): Provide declaration.
38704         (AT_FDCWD): Fix Solaris bug.
38705         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
38706         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
38707         * lib/fchmodat.c (includes):  Adjust to find declaration.
38708         * lib/fchownat.c (includes): Likewise.
38709         * lib/mkdirat.c (includes): Likewise.
38710         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
38711         still visible.
38712
38713 2009-09-02  Eric Blake  <ebb9@byu.net>
38714
38715         errno: use consistently
38716         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
38717         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
38718         * lib/canonicalize.c (ELOOP): Likewise.
38719         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
38720         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
38721         * lib/lchown.c (EOPNOTSUPP): Likewise.
38722         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
38723         * lib/savewd.c (ESTALE): Likewise.
38724         * lib/settime.c (ENOSYS): Likewise.
38725         * lib/utimens.c (ENOSYS): Likewise.
38726         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
38727         * lib/chdir-safer.c (ELOOP): Likewise.
38728         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
38729         * modules/c-stack (Depends-on): Add errno.
38730         * modules/canonicalize (Depends-on): Likewise.
38731         * modules/chdir-safer (Depends-on): Likewise.
38732         * modules/fdopendir (Depends-on): Likewise.
38733         * modules/inet_ntop (Depends-on): Likewise.
38734         * modules/inet_pton (Depends-on): Likewise.
38735         * modules/lchown (Depends-on): Likewise.
38736         * modules/openat (Depends-on): Likewise.
38737         * modules/savewd (Depends-on): Likewise.
38738         * modules/settime (Depends-on): Likewise.
38739         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
38740
38741         fts: avoid leaking fds
38742         * modules/fts (Depends-on): Add cloexec.
38743         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
38744         flag.
38745
38746         fts: make directory fds more robust
38747         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
38748         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
38749
38750         backupfile, chdir-long, fts, savedir: make safer
38751         * lib/backupfile.c (includes): Use "dirent--.h", since
38752         numbered_backup can write to stderr during readdir.
38753         * lib/savedir.c (includes): Likewise.
38754         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
38755         emulation can write to stderr on failure.
38756         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
38757         * lib/getcwd.c: Document why opendir_safer is unused.
38758         * lib/glob.c: Likewise.
38759         * lib/scandir.c: Likewise.
38760         * lib/openat-proc.c: Likewise, for open_safer.
38761         * modules/backupfile (Depends-on): Add dirent-safer.
38762         * modules/savedir (Depends-on): Likewise.
38763         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
38764         * modules/chdir-long (Depends-on): Add openat-safer.
38765
38766         openat-safer: new module
38767         * modules/openat-safer: New file.
38768         * lib/openat-safer.c: Likewise.
38769         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
38770         * lib/fcntl-safer.h (openat_safer): Declare.
38771         * lib/fcntl--.h (openat): Override.
38772         * MODULES.html.sh (File descriptor based I/O): Mention it.
38773         * lib/openat.h: Add double-inclusion guards.
38774         * lib/openat.c (includes): Only include "fcntl-safer.h", not
38775         "fcntl--.h", so we can implement openat.
38776         * modules/openat-safer-tests: New test.
38777         * tests/test-openat-safer.c: New file.
38778
38779         dirent-safer: new module
38780         * modules/dirent-safer: New file.
38781         * lib/dirent--.h: Likewise.
38782         * lib/dirent-safer.h: Likewise.
38783         * lib/opendir-safer.c: Likewise.
38784         * m4/dirent-safer.m4: Likewise.
38785         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
38786         * modules/dirent-safer-tests: New test.
38787         * tests/test-dirent-safer.c: New file.
38788         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
38789
38790         fdopendir: optimize on mingw
38791         * lib/unistd.in.h (_gl_directory_name): New prototype.
38792         * lib/fchdir.c (_gl_directory_name): Implement it.
38793         (fchdir): Use it to simplify implementation.
38794         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
38795         fchdir, when available, to avoid calling [f]chdir().
38796
38797         fdopendir: split into its own module
38798         * lib/openat.c (fdopendir): Move...
38799         * lib/fdopendir.c: ...into new file.
38800         * modules/fdopendir: New module.
38801         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
38802         * modules/openat (Depends-on): Add fdopendir.
38803         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
38804         fdopendir here.
38805         * modules/savedir (Depends-on): Only need fdopendir, not full
38806         openat.
38807         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
38808         * lib/openat.h (fdopendir): Drop prototype.
38809         * lib/dirent.in.h (fdopendir): Provide prototype.
38810         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
38811         * modules/dirent (Makefile.am): Substitute them.
38812         * MODULES.html.sh (File system functions): Mention it.
38813         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
38814         * modules/fdopendir-tests: New file.
38815         * tests/test-fdopendir.c: Likewise.
38816
38817         fchdir: use more consistent macro convention
38818         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
38819         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
38820         REPLACE_FCHDIR, rather than relying on config.h macros.
38821         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
38822         inside a single make-time REPLACE_FCHDIR block, rather than using
38823         the config.h FCHDIR_REPLACEMENT.
38824         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
38825         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
38826         Manage fstat replacement.
38827         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
38828         REPLACE_FCHDIR.
38829         * modules/sys_stat (Files): Add m4/unistd_h.m4.
38830         (Makefile.am): Substitute REPLACE_FCHDIR.
38831         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
38832         FCHDIR_REPLACEMENT.
38833         * lib/dup-safer.c (dup_safer): Likewise.
38834         * lib/dup2.c (rpl_dup2): Likewise.
38835         * lib/dup3.c (rpl_dup3): Likewise.
38836         * lib/open.c (rpl_open): Likewise.
38837
38838         fchdir: simplify error handling, and support dup3
38839         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
38840         stdbool, malloc-posix, realloc-posix.
38841         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
38842         (ensure_dirs_slot): Return false on allocation failure.
38843         (rpl_dup2): Delete.
38844         (_gl_register_dup): New function.
38845         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
38846         (_gl_register_fd): Close fd on allocation failure.
38847         * lib/fcntl.in.h (_gl_register_fd): Update signature.
38848         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
38849         prototype.
38850         (rpl_dup2_fchdir): Delete prototype.
38851         * lib/open.c (open): Update caller.
38852         * lib/dup2.c (dup2): Track fchdir metadata.
38853         * lib/dup3.c (dup3): Likewise.
38854         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
38855         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
38856
38857 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38858
38859         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
38860         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
38861         don't pass arguments to AC_OUTPUT.
38862
38863 2009-09-02  Bruno Haible  <bruno@clisp.org>
38864
38865         * modules/mkdtemp (License): Relicense under LGPLv2+.
38866         Reported by Paolo Bonzini.
38867
38868 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38869
38870         Replace uses of obsolete autoconf macros in Jim's modules.
38871         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
38872         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
38873         can evoke a warning from autoconf when run with -Wobsolete
38874         enabled.  They were declared obsolete for good reasons (see
38875         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
38876         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
38877         should not continue using the deprecated macros.
38878         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
38879         obsolete Autoconf macros with modern counterparts.
38880         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
38881         * m4/dos.m4 (gl_AC_DOS): Likewise.
38882         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
38883         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
38884         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
38885         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
38886         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
38887         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
38888         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
38889         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
38890         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
38891         Likewise.
38892         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
38893         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
38894         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
38895         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
38896         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
38897         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
38898
38899 2009-09-01  Eric Blake  <ebb9@byu.net>
38900
38901         fchdir: fix off-by-one bug in previous patch
38902         * lib/fchdir.c (rpl_fstat): Use correct bounds.
38903         (_gl_unregister_fd): Delete useless if.
38904
38905 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
38906
38907         maint.mk: sort the list of syntax-check rules
38908         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
38909         easier to get a sense of progress when the rules are run sequentially
38910         and take a long time.
38911
38912 2009-09-01  Simon Josefsson  <simon@josefsson.org>
38913
38914         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
38915         * modules/netinet_in: Likewise.
38916         * modules/sys_file: Likewise.
38917         * modules/sys_ioctl: Likewise.
38918         * modules/sys_select: Likewise.
38919         * modules/sys_socket: Likewise.
38920         * modules/sys_stat: Likewise.
38921         * modules/sys_time: Likewise.
38922         * modules/sys_times: Likewise.
38923         * modules/sys_utsname: Likewise.
38924         * modules/sys_wait: Likewise.
38925
38926 2009-09-01  Jim Meyering  <meyering@redhat.com>
38927
38928         fts: help ensure that return values are not ignored
38929         * lib/fts_.h (__GNUC_PREREQ): Define.
38930         (__attribute_warn_unused_result__): Define.
38931         (fts_children, fts_close, fts_open, fts_read): Declare with
38932         __attribute_warn_unused_result__.
38933
38934         fts: fts_close now fails also when closing a dir file descriptor fails
38935         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
38936         and propagate to caller, along with errno.
38937
38938         announce-gen: correct formatting in --help output
38939         * build-aux/announce-gen (usage): Move the one-line description in
38940         --help output "up", to where it belongs, just after Usage:.
38941
38942 2009-08-31  Eric Blake  <ebb9@byu.net>
38943
38944         fchdir: port to mingw
38945         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
38946         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
38947         opened, then use a substitute.
38948         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
38949         replacement.
38950         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
38951         (_gl_register_fd): No need to check stat if open already filters
38952         all directories.
38953         (fchdir): Fix error condition to match POSIX.
38954         * modules/fchdir (Depends-on): Add sys_stat.
38955         * doc/posix-functions/open.texi (open): Document the limitation.
38956         * modules/fchdir-tests: New file.
38957         * tests/test-fchdir.c: Likewise.
38958
38959         canonicalize: allow cross-testing from cygwin to mingw
38960         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
38961         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
38962         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
38963         Likewise.
38964         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
38965         target does not support symlinks.
38966         * tests/test-canonicalize-lgpl.sh: Likewise.
38967
38968         chown: avoid compilation warning on mingw
38969         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
38970         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
38971         mingw.
38972         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
38973         * modules/chown (Depends-on): Add errno.
38974
38975 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
38976
38977         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
38978         command.
38979
38980 2009-08-31  Jim Meyering  <meyering@redhat.com>
38981
38982         canonicalize: remove useless initialization
38983         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
38984         initialization of local, "end".
38985
38986 2009-08-30  Bruno Haible  <bruno@clisp.org>
38987
38988         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
38989         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
38990         ENOSYS.
38991
38992 2009-08-30  Bruno Haible  <bruno@clisp.org>
38993
38994         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
38995         /usr/xpg4/bin/tr when it exists.
38996         * tests/test-pipe-filter-gi1.sh: Likewise.
38997
38998 2009-08-30  Bruno Haible  <bruno@clisp.org>
38999
39000         Work around deficient /usr/bin/id program on Solaris.
39001         * tests/test-file-has-acl.sh (ID): New variable.
39002         * tests/test-set-mode-acl.sh (ID): Likewise.
39003         * tests/test-copy-acl.sh (ID): Likewise.
39004         * tests/test-copy-file.sh (ID): Likewise.
39005
39006 2009-08-30  Bruno Haible  <bruno@clisp.org>
39007
39008         New module 'xstriconveh'.
39009         * lib/xstriconveh.h: New file.
39010         * lib/xstriconveh.c: New file.
39011         * modules/xstriconveh: New file.
39012
39013 2009-08-30  Bruno Haible  <bruno@clisp.org>
39014
39015         Make it easier to use mem_cd_iconveh.
39016         * lib/striconveh.h (iconveh_t): New type.
39017         (iconveh_open, iconveh_close): New declarations.
39018         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
39019         with a single 'const iconveh_t *' argument.
39020         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
39021         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
39022         with a single 'const iconveh_t *' argument.
39023         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
39024         * tests/test-striconveh.c (main): Update.
39025         * NEWS: Mention the change.
39026
39027 2009-08-30  Bruno Haible  <bruno@clisp.org>
39028
39029         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
39030         problem.
39031
39032 2009-08-30  Bruno Haible  <bruno@clisp.org>
39033
39034         Work around iconv_open problem on Solaris.
39035         * lib/iconv_open-solaris.gperf: New file.
39036         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
39037         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
39038         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
39039         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
39040         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
39041         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
39042
39043 2009-08-29  Jim Meyering  <meyering@redhat.com>
39044
39045         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
39046         * top/maint.mk (cvs-check): Remove target; it was just an alias
39047         to the better-named vc-diff-check.
39048         (maintainer-distcheck): Remove rule.  It was used only from
39049         the (alpha/beta/major) target, and all of its commands but one
39050         were coreutils-specific.
39051         (vc-dist): Remove rule.
39052         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
39053         Run vc-diff-check, not vc-dist.
39054         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
39055
39056 2009-08-27  Bruno Haible  <bruno@clisp.org>
39057
39058         * tests/test-bitrotate.c (main): Remove test that uses a shift count
39059         of 0.
39060
39061 2009-08-27  Bruno Haible  <bruno@clisp.org>
39062
39063         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
39064         compilers.
39065         * doc/func.texi: Document the SunPRO C bug.
39066
39067 2009-08-27  Bruno Haible  <bruno@clisp.org>
39068
39069         Fix link error on Solaris.
39070         * tests/test-parse-duration.c (xstrdup): Remove function.
39071
39072 2009-08-26  Pádraig Brady  <P@draigbrady.com>
39073
39074         ignore-value: handle pointer types, too
39075         * lib/ignore-value.h (__attribute__): Remove definition.
39076         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
39077         of a more concise and more-often effective "(void) i" statement.
39078         (ignore_ptr): New function to suppress warnings from functions that
39079         return pointers, and to make it explicit that one function doesn't
39080         handle all cases.
39081
39082 2009-08-25  Bruno Haible  <bruno@clisp.org>
39083
39084         dup2: work around a Linux bug.
39085         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
39086         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
39087         * doc/posix-functions/dup2.texi: Mention the Linux bug.
39088         Reported by Simon Josefsson.
39089
39090 2009-08-25  Jim Meyering  <meyering@redhat.com>
39091
39092         libguestfs uses gnulib
39093         * users.txt: Add libguestfs.
39094
39095 2009-08-24  Eric Blake  <ebb9@byu.net>
39096
39097         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
39098         * lib/pipe2.c (includes): Add binary-io.h.
39099         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
39100
39101 2009-08-24  Bruno Haible  <bruno@clisp.org>
39102
39103         Tolerate declared but missing accept4 syscall.
39104         * lib/accept4.c (accept4): Invoke original accept4 function first, if
39105         available.
39106         * lib/sys_socket.in.h (accept4): If the function is already present,
39107         override it.
39108         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
39109         * modules/accept4 (Makefile.am): Compile accept4.c always.
39110         Reported by Paolo Bonzini and Eric Blake.
39111
39112 2009-08-23  Bruno Haible  <bruno@clisp.org>
39113
39114         New module 'accept4'.
39115         * lib/sys_socket.in.h (accept4): New declaration.
39116         * lib/accept4.c: New file.
39117         * m4/accept4.m4: New file.
39118         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
39119         GNULIB_ACCEPT4, HAVE_ACCEPT4.
39120         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
39121         HAVE_ACCEPT4.
39122         * modules/accept4: New file.
39123         * doc/glibc-functions/accept4.texi: Mention the new module.
39124
39125 2009-08-24  Jim Meyering  <meyering@redhat.com>
39126
39127         progname: also set global program_invocation_name, when possible
39128         Before this change, a libtool-enabled program that calls glibc's
39129         error function would report the program name as
39130         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
39131         * modules/progname (configure.ac): Check for a declaration of
39132         program_invocation_name.
39133         * lib/progname.c:  Include <errno.h>.
39134         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
39135         Set program_invocation_name.
39136
39137 2009-08-23  Bruno Haible  <bruno@clisp.org>
39138
39139         * lib/dup3.c: Include <string.h>.
39140
39141 2009-08-23  Bruno Haible  <bruno@clisp.org>
39142
39143         * lib/dup3.c (dup3): Test only once whether the system actually exists.
39144         * lib/pipe2.c (pipe2): Likewise.
39145         Suggested by Eric Blake.
39146
39147 2009-08-23  Bruno Haible  <bruno@clisp.org>
39148
39149         Tolerate declared but missing dup3 syscall.
39150         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
39151         * lib/unistd.in.h (dup3): If the function is already present,
39152         override it.
39153         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
39154         * modules/dup3 (Makefile.am): Compile dup3.c always.
39155         Reported by Paolo Bonzini.
39156
39157 2009-08-23  Bruno Haible  <bruno@clisp.org>
39158
39159         Tolerate declared but missing pipe2 syscall.
39160         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
39161         available.
39162         * lib/unistd.in.h (pipe2): If the function is already present,
39163         override it.
39164         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
39165         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
39166         Reported by Paolo Bonzini.
39167
39168 2009-08-23  Bruno Haible  <bruno@clisp.org>
39169
39170         * lib/pipe2.c (pipe2): Move #ifs inside function.
39171
39172 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
39173
39174         quotearg: document limitations of quote_these_too
39175         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
39176         those limitations are created.
39177         * lib/quotearg.h (set_char_quoting): Document that digits and
39178         letters that are special after backslash are not permitted.
39179         (quotearg_char): Cross-reference set_char_quoting documentation.
39180
39181 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
39182
39183         quotearg: implement custom_quoting_style
39184         * lib/quotearg.c: (struct quoting_options): Add left_quote and
39185         right_quote fields.
39186         (set_custom_quoting): New public function.
39187         (quotearg_buffer_restyled): Add left_quote and right_quote
39188         arguments, handle them very much like locale quoting, and update
39189         all uses.
39190         (quotearg_n_custom): New public function.
39191         (quotearg_n_custom_mem): New public function.
39192         (quotearg_custom): New public function.
39193         (quotearg_custom_mem): New public function.
39194         * lib/quotearg.h: Prototype and document new public functions.
39195         (enum quoting_style): For escape_quoting_style and
39196         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
39197         ignored even though they're otherwise like c_quoting_style.
39198         Add custom_quoting_style member and document with comparison to
39199         clocale_quoting_style.
39200         * tests/test-quotearg.c (custom_quotes): New array.
39201         (custom_results): New array.
39202         (main): Extend to test custom quoting.
39203
39204 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
39205
39206         quotearg: fix right quote escaping when it's in quote_these_too
39207         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
39208         quote, be sure to prepend only one backslash.
39209         * tests/test-quotearg.c (use_quote_double_quotes): New function.
39210         (main): Test it.
39211
39212 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
39213
39214         quotearg-tests: test escaping of embedded locale quotes
39215         * tests/test-quotearg.c (struct result_strings): Add member for
39216         new input.
39217         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
39218         (inputs): Add new input.
39219         (results_g): Add expected results.
39220         (flag_results): Likewise.
39221         (locale_results): Likewise.
39222         (compare_strings): Check those.
39223
39224 2009-08-23  Bruno Haible  <bruno@clisp.org>
39225
39226         Tests for module 'dup3'.
39227         * modules/dup3-tests: New file.
39228         * tests/test-dup3.c: New file.
39229
39230         New module 'dup3'.
39231         * lib/unistd.in.h (dup3): New declaration.
39232         * lib/dup3.c: New file.
39233         * m4/dup3.m4: New file.
39234         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
39235         HAVE_DUP3.
39236         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
39237         * modules/dup3: New file.
39238         * doc/glibc-functions/dup3.texi: Mention the new module.
39239
39240 2009-08-23  Bruno Haible  <bruno@clisp.org>
39241
39242         Tweak the dup2 test.
39243         * tests/test-dup2.c (main): Create the test file empty. Verify that an
39244         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
39245         the test file is still empty. Fix argument order of lseek.
39246
39247 2009-08-23  Bruno Haible  <bruno@clisp.org>
39248
39249         Avoid test link errors when the modules getopt-gnu, gettext are used.
39250         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
39251         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39252
39253 2009-08-23  Bruno Haible  <bruno@clisp.org>
39254
39255         Fix getdtablesize() on mingw.
39256         * lib/getdtablesize.c (getdtablesize): Implement differently.
39257         * lib/unistd.in.h (getdtablesize): Improve comment.
39258
39259 2009-08-23  Bruno Haible  <bruno@clisp.org>
39260
39261         New module 'mkostemp'.
39262         Based on Ulrich Drepper's 2007-08-10 change in glibc.
39263         * lib/stdlib.in.h (mksotemp): New declaration.
39264         * lib/mkostemp.c: New file, from glibc with modifications.
39265         * lib/tempname.h (GT_FILE): Remove outdated comment.
39266         (gen_tempname): Add flags argument.
39267         * lib/tempname.c (__GT_BIGFILE): Remove macro.
39268         (__GT_FILE): Map to 1.
39269         (small_open, large_open): Remove macros.
39270         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
39271         * lib/mkstemp.c (mkstemp): Update.
39272         * lib/mkdtemp.c (mkdtemp): Likewise.
39273         * m4/mkostemp.m4: New file.
39274         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
39275         HAVE_MKOSTEMP.
39276         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
39277         HAVE_MKOSTEMP.
39278         * modules/mkostemp: New file, based on modules/mkstemp.
39279         * doc/glibc-functions/mkostemp.texi: Mention the new module.
39280         * NEWS: Mention the change.
39281
39282 2009-08-23  Bruno Haible  <bruno@clisp.org>
39283
39284         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
39285         Reported by Eric Blake.
39286
39287 2009-08-23  Bruno Haible  <bruno@clisp.org>
39288
39289         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
39290         Reported by Eric Blake.
39291
39292 2009-08-23  Bruno Haible  <bruno@clisp.org>
39293
39294         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
39295         * modules/pipe2 (Depends-on): Likewise.
39296
39297 2009-08-23  Eric Blake  <ebb9@byu.net>
39298
39299         fcntl-h: add O_TTY_INIT support
39300         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
39301         * tests/test-fcntl-h.c (o): Test it.
39302         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
39303
39304         fcntl-h: rename from fcntl, in preparation for fcntl(2)
39305         * modules/fcntl: Move <fcntl.h> header replacement...
39306         * modules/fcntl-h: ...to new name, so as not to collide with
39307         like-named function.
39308         * tests/test-fcntl.c: Rename...
39309         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
39310         * modules/fcntl-tests: Rename...
39311         * modules/fcntl-h-tests: ...to this.  Update test file name.
39312         * modules/chdir-long (Depends-on): Update clients.
39313         * modules/chdir-safer (Depends-on): Likewise.
39314         * modules/fcntl-safer (Depends-on): Likewise.
39315         * modules/fts (Depends-on): Likewise.
39316         * modules/mkancesdirs (Depends-on): Likewise.
39317         * modules/mkdir-p (Depends-on): Likewise.
39318         * modules/open (Depends-on): Likewise.
39319         * modules/savewd (Depends-on): Likewise.
39320         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
39321         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
39322
39323 2009-08-22  Bruno Haible  <bruno@clisp.org>
39324
39325         * modules/binary-io (License): Relicense under LGPL.
39326         * modules/pipe2 (License): Likewise.
39327
39328 2009-08-22  Bruno Haible  <bruno@clisp.org>
39329
39330         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
39331         return value.
39332         * lib/pipe-filter-gi.c (filter_init): Likewise.
39333         Reported by Eric Blake.
39334
39335 2009-08-22  Bruno Haible  <bruno@clisp.org>
39336
39337         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
39338         * modules/pipe (Depends-on): Add pipe2.
39339
39340 2009-08-22  Bruno Haible  <bruno@clisp.org>
39341
39342         Tests for module 'pipe2'.
39343         * modules/pipe2-tests: New file.
39344         * tests/test-pipe2.c: New file.
39345
39346         New module 'pipe2'.
39347         * lib/unistd.in.h (pipe2): New declaration.
39348         * lib/pipe2.c: New file.
39349         * m4/pipe2.m4: New file.
39350         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
39351         HAVE_PIPE2.
39352         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
39353         * modules/pipe2: New file.
39354         * doc/glibc-functions/pipe2.texi: Mention the new module.
39355
39356 2009-08-22  Bruno Haible  <bruno@clisp.org>
39357
39358         Reference some new glibc functions.
39359         * doc/glibc-functions/accept4.texi: New file.
39360         * doc/glibc-functions/dup3.texi: New file.
39361         * doc/glibc-functions/mkostemp.texi: New file.
39362         * doc/glibc-functions/pipe2.texi: New file.
39363         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
39364         (Glibc sys/socket.h): Refer to accept4.
39365         (Glibc unistd.h): Refer to dup3, pipe2.
39366         Reported by Eric Blake.
39367
39368 2009-08-22  Jim Meyering  <meyering@redhat.com>
39369             Bruno Haible  <bruno@clisp.org>
39370
39371         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
39372         This makes it so packages using automake-1.11's silent-rules option
39373         can print e.g., a single "GEN    configmake.h" line, rather than
39374         the 30+ statements that perform the job.  If you want to see the
39375         actual commands, you can still run "make V=1".
39376         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
39377         so that make output is abbreviated when those variables are defined
39378         appropriately.
39379         * modules/argz: Likewise.
39380         * modules/arpa_inet: Likewise.
39381         * modules/byteswap: Likewise.
39382         * modules/configmake: Likewise.
39383         * modules/dirent: Likewise.
39384         * modules/errno: Likewise.
39385         * modules/fcntl: Likewise.
39386         * modules/float: Likewise.
39387         * modules/fnmatch: Likewise.
39388         * modules/getopt-posix: Likewise.
39389         * modules/glob: Likewise.
39390         * modules/iconv_open: Likewise.
39391         * modules/inttypes: Likewise.
39392         * modules/localcharset: Likewise.
39393         * modules/locale: Likewise.
39394         * modules/math: Likewise.
39395         * modules/netdb: Likewise.
39396         * modules/netinet_in: Likewise.
39397         * modules/poll: Likewise.
39398         * modules/posix_spawnp-tests: Likewise.
39399         * modules/sched: Likewise.
39400         * modules/search: Likewise.
39401         * modules/selinux-h: Likewise.
39402         * modules/signal: Likewise.
39403         * modules/spawn: Likewise.
39404         * modules/stdarg: Likewise.
39405         * modules/stdbool: Likewise.
39406         * modules/stddef: Likewise.
39407         * modules/stdint: Likewise.
39408         * modules/stdio: Likewise.
39409         * modules/stdlib: Likewise.
39410         * modules/string: Likewise.
39411         * modules/strings: Likewise.
39412         * modules/sys_file: Likewise.
39413         * modules/sys_ioctl: Likewise.
39414         * modules/sys_select: Likewise.
39415         * modules/sys_socket: Likewise.
39416         * modules/sys_stat: Likewise.
39417         * modules/sys_time: Likewise.
39418         * modules/sys_times: Likewise.
39419         * modules/sys_utsname: Likewise.
39420         * modules/sys_wait: Likewise.
39421         * modules/sysexits: Likewise.
39422         * modules/time: Likewise.
39423         * modules/unistd: Likewise.
39424         * modules/wchar: Likewise.
39425         * modules/wctype: Likewise.
39426
39427 2009-08-22  Jim Meyering  <meyering@redhat.com>
39428
39429         announce-gen: detect write failure
39430         * build-aux/announce-gen: Add Coda at end.
39431         Remove equivalent-but-more-verbose block at top.
39432
39433 2009-08-19  Akim Demaille  <demaille@gostai.com>
39434
39435         bootstrap: --help to stdout.
39436         * bootstrap (usage): Don't send --help to stderr.
39437         Use a here doc instead of a long string.
39438
39439 2009-08-21  Eric Blake  <ebb9@byu.net>
39440
39441         test-popen-safer: split from test-popen
39442         * tests/test-popen.c (main): Move...
39443         * tests/test-popen.h: ...into new file.
39444         * tests/test-popen-safer2.c: New file.
39445         * modules/popen-tests (Files): Add test-popen.h.
39446         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
39447         Suggested by Bruno Haible.
39448
39449         test-fcntl-safer: split from test-open
39450         * tests/test-open.c (main): Move...
39451         * tests/test-open.h: ...into new file.
39452         * tests/test-fcntl-safer.c: New file.
39453         * modules/open-tests (Files): Add test-open.h.
39454         * modules/fcntl-safer-tests: New file.
39455         Suggested by Bruno Haible.
39456
39457         test-fopen-safer: split from test-fopen
39458         * tests/test-fopen.c (main): Move...
39459         * tests/test-fopen.h: ...into new file.
39460         * tests/test-fopen-safer.c: New file.
39461         * modules/fopen-tests (Files): Add test-fopen.h.
39462         * modules/fopen-safer-tests: New file.
39463         Suggested by Bruno Haible.
39464
39465 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
39466
39467         popen-safer: test O_CLOEXEC at run-time.
39468         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
39469
39470 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
39471
39472         fcntl: move more flags to the header
39473         * lib/cloexec.c: Do not define FD_CLOEXEC here.
39474         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
39475         * lib/fcntl.in.h: Do both things here.
39476
39477 2009-08-21  Jim Meyering  <meyering@redhat.com>
39478
39479         consistently remove $@-t before redirecting to it
39480         * modules/argz: Remove $@-t and $@ before redirecting to the former.
39481         * modules/alloca-opt: Likewise.
39482         * modules/byteswap: Likewise.
39483         * modules/fnmatch: Likewise.
39484         * modules/getopt-posix: Likewise.
39485         * modules/glob: Likewise.
39486         * modules/poll: Likewise.
39487         * modules/posix_spawnp-tests: Likewise.
39488         * modules/sys_socket: Likewise.
39489         * modules/sysexits: Likewise.
39490
39491 2009-08-21  Eric Blake  <ebb9@byu.net>
39492
39493         popen: simplify access to original popen
39494         * lib/popen.c (rpl_popen): No need to worry about popen being a
39495         macro.
39496         Reported by Bruno Haible.
39497
39498 2009-08-20  Eric Blake  <ebb9@byu.net>
39499
39500         build: avoid some compiler warnings
39501         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
39502         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
39503         type.
39504         (new_exclude_segment, excluded_file_pattern_p)
39505         (excluded_file_name_p): Reduce scope.
39506         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
39507         old-style declaration.
39508
39509 2009-08-20  Simon Josefsson  <simon@josefsson.org>
39510
39511         * tests/test-exclude1.sh: Handle Windows EOL.
39512         * tests/test-exclude2.sh: Likewise.
39513         * tests/test-exclude3.sh: Likewise.
39514         * tests/test-exclude4.sh: Likewise.
39515         * tests/test-exclude5.sh: Likewise.
39516         * tests/test-exclude6.sh: Likewise.
39517         * tests/test-exclude7.sh: Likewise.
39518
39519 2009-08-19  Akim Demaille  <demaille@gostai.com>
39520
39521         bootstrap: find sha1sum when named gsha1sum.
39522         * bootstrap (find_tool): New.
39523         ($SHA1SUM): New.
39524         Use it.
39525
39526 2009-08-20  Jim Meyering  <meyering@redhat.com>
39527
39528         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
39529         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
39530         expression that converts "." in a file name to "\." in the resulting
39531         regexp.  Start with a dummy statement, so that prior shell variable
39532         definitions are expanded portably.  Reported by Simon Josefsson.
39533
39534 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
39535
39536         Fix polling for writeability of a screen buffer.
39537         * lib/poll.c: Distinguish input and screen buffers for the
39538         Win32 implementation.
39539         * lib/select.c: Likewise.
39540
39541 2009-08-19  Eric Blake  <ebb9@byu.net>
39542
39543         popen-safer: prevent popen from clobbering std descriptors
39544         * modules/popen-safer: New file.
39545         * lib/popen-safer.c: Likewise.
39546         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
39547         * lib/stdio--.h (popen): Provide override.
39548         * lib/stdio-safer.h (popen_safer): Provide declaration.
39549         * tests/test-popen.c (includes): Partially test this.
39550         * modules/popen-safer-tests: New file, for more tests.
39551         * tests/test-popen-safer.c: Likewise.
39552         * MODULES.html.sh (file stream based Input/Output): Mention it.
39553
39554         tests: test some of the *-safer modules
39555         * modules/fopen-safer (Depends-on): Add fopen.
39556         * modules/fcntl-safer (Depends-on): Add fcntl.
39557         * modules/stdlib-safer (Depends-on): Add stdlib.
39558         (configure.ac): Set indicator.
39559         * modules/unistd-safer (configure.ac): Likewise.
39560         * modules/tmpfile-safer (configure.ac): Likewise.
39561         (Depends-on): Add tmpfile.
39562         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
39563         active.
39564         * tests/test-fopen.c (includes): Test safer versions when they are
39565         in use.
39566         * tests/test-open.c (includes): Likewise.
39567
39568         popen: fix cygwin 1.5 bug when stdin closed
39569         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
39570         * modules/popen: New file.
39571         * modules/popen-tests: Likewise.
39572         * tests/test-popen.c: Likewise.
39573         * m4/popen.m4: Likewise.
39574         * lib/popen.c: Likewise.
39575         * lib/stdio.in.h (popen): New declaration.
39576         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
39577         * modules/stdio (Makefile.am): Likewise.
39578         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
39579
39580 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
39581
39582         maint.mk: give full control over update-copyright exclusions
39583         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
39584         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
39585         (update-copyright): Don't force inclusion of top-level
39586         ChangeLog.  Don't force exclusion of all COPYING files, but make
39587         them the default exclusion instead.
39588
39589 2009-08-16  Bruno Haible  <bruno@clisp.org>
39590
39591         Fix test failures on Solaris 10.
39592         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
39593         tests when Solaris iconv() is used.
39594         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
39595         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
39596         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
39597         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
39598         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
39599
39600 2009-08-16  Bruno Haible  <bruno@clisp.org>
39601
39602         Fix test failures on Solaris 10.
39603         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
39604         'tr' program and pass it as first argument.
39605         * tests/test-pipe-filter-gi1.sh: Likewise.
39606         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
39607         program as first argument.
39608         * tests/test-pipe-filter-gi1.c (main): Likewise.
39609
39610 2009-08-16  Eric Blake  <ebb9@byu.net>
39611
39612         fpurge: fix previous commits
39613         * modules/fpurge (Makefile.am): Make replacement conditional,
39614         partially reverting 2007-04-29 change; missed in previous
39615         attempt.
39616         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
39617         is missing.
39618
39619 2009-08-16  Bruno Haible  <bruno@clisp.org>
39620
39621         Clarify fpurge's effect on the file position.
39622         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
39623         * tests/test-fpurge.c (main): Make a second pass for checking the file
39624         position.
39625
39626 2009-08-16  Bruno Haible  <bruno@clisp.org>
39627
39628         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
39629         declaration of fpurge is missing.
39630         * tests/test-fpurge.c (main): Check that the file has not more contents
39631         than expected. Close the file before removing it.
39632
39633 2009-08-15  Eric Blake  <ebb9@byu.net>
39634
39635         fpurge: don't wrap working cygwin implementation
39636         * lib/fpurge.c (fpurge): Fix comment typo.
39637         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
39638         1.7 to avoid replacement.
39639         * tests/test-fpurge.c (main): Enhance test.
39640
39641 2009-08-15  Eric Blake  <ebb9@byu.net>
39642         and Jim Meyering  <meyering@redhat.com>
39643
39644         test-update-copyright: skip if perl is insufficient
39645         * tests/test-update-copyright.sh: Failure to run maintainer tool
39646         should not cause testsuite failure on cygwin 1.5.
39647
39648 2009-08-14  Eric Blake  <ebb9@byu.net>
39649
39650         doc: mention more functions added in cygwin 1.7.0
39651         * doc/posix-headers/limits.texi (limits.h): Update for recent
39652         cygwin additions.
39653         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
39654         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
39655         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
39656         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
39657         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
39658
39659 2009-08-14  Eric Blake  <ebb9@byu.net>
39660
39661         maint.mk: simplify update-copyright rule
39662         * top/maint.mk (update-copyright-local): Delete, and document how
39663         to do it in cfg.mk instead.
39664         (update-copyright-exclude-regexp): Delete, and document how to do
39665         it in .x-update-copyright instead.
39666         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
39667         exclude ChangeLog.
39668
39669 2009-08-14  Bruno Haible  <bruno@clisp.org>
39670
39671         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
39672
39673 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
39674
39675         maint.mk: support update-copyright-env
39676         * top/maint.mk (update-copyright-env): Define place-holder.
39677         (update-copyright): Expand $(update-copyright-env) before
39678         invoking update-copyright.
39679
39680 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
39681
39682         update-copyright: implement forced reformatting
39683         * build-aux/update-copyright: Implement and document
39684         UPDATE_COPYRIGHT_FORCE.
39685         * tests/test-update-copyright.sh: Test it.
39686
39687 2009-08-14  Eric Blake  <ebb9@byu.net>
39688         and Bruno Haible  <bruno@clisp.org>
39689
39690         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
39691         * tests/test-locale.c: Revert previous patch related to NULL.
39692         * tests/test-stdio.c: Likewise.
39693         * tests/test-stdlib.c: Likewise.
39694         * tests/test-string.c: Likewise.
39695         * tests/test-unistd.c: Likewise.
39696         * modules/time-tests (Depends-on): Add verify.
39697         * modules/wchar-tests (Depends-on): Likewise.
39698         * tests/test-time.c: Test for NULL compliance.
39699         * tests/test-wchar.c: Likewise.
39700         * modules/locale (Depends-on): Add stddef.
39701         * modules/stdio (Depends-on): Likewise.
39702         * modules/stdlib (Depends-on): Likewise.
39703         * modules/string (Depends-on): Likewise.
39704         * modules/time (Depends-on): Likewise.
39705         * modules/unistd (Depends-on): Likewise.
39706         * modules/wchar (Depends-on): Likewise.
39707         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
39708         * lib/stdlib.in.h (includes): Likewise.
39709         * lib/string.in.h (includes): Likewise.
39710         * lib/time.in.h (includes): Likewise.
39711         * lib/unistd.in.h (includes): Likewise.
39712         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
39713         replaced.
39714         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39715         * m4/stddef_h.m4: New file.
39716         * modules/stddef: Likewise.
39717         * lib/stddef.in.h: Likewise.
39718         * modules/stddef-tests: Likewise.
39719         * tests/test-stddef.c: Likewise.
39720         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
39721         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
39722         * doc/posix-headers/locale.texi (locale.h): Likewise.
39723         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
39724         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
39725         * doc/posix-headers/string.texi (string.h): Likewise.
39726         * doc/posix-headers/time.texi (time.h): Likewise.
39727         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
39728         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
39729
39730 2009-08-14  Eric Blake  <ebb9@byu.net>
39731
39732         doc: improve git diff of texinfo files
39733         * .gitattributes: Add rule for *.texi files, with hint on how to
39734         use it.
39735         Copied from m4, and based on a report by Bruno Haible.
39736
39737 2009-08-14  Bruno Haible  <bruno@clisp.org>
39738
39739         Disable multithread support by default on Cygwin 1.5.x for real.
39740         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
39741
39742 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
39743
39744         update-copyright: much ado about intervals
39745         * build-aux/update-copyright: Implement and document
39746         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
39747         of copyright year intervals.
39748         Also, document UPDATE_COPYRIGHT_YEAR.
39749         * tests/test-update-copyright.sh: Test it.
39750
39751         update-copyright: convert 2-digit to 4-digit years
39752         * build-aux/update-copyright: Implement and document.
39753         * tests/test-update-copyright.sh: Update.
39754
39755 2009-08-14  Jim Meyering  <meyering@redhat.com>
39756
39757         test-exclude: avoid coreutils "make check" failure
39758         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
39759         just as in test-argmatch.c.
39760
39761 2009-08-13  Eric Blake  <ebb9@byu.net>
39762
39763         test-dup2: fix bad assumption
39764         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
39765         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
39766
39767         test-version-etc: fix CRLF portability issue
39768         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
39769         recognize \r.
39770         * tests/test-argp-version-etc-1.sh: Likewise.
39771
39772         getopt: update client modules
39773         * modules/argp (Depends-on): Use getopt-gnu.
39774         * modules/git-merge-changelog (Depends-on): Likewise.
39775         * modules/long-options (Depends-on): Likewise.
39776         * modules/xstrtol (Depends-on): Likewise.
39777
39778 2009-08-13  Simon Josefsson  <simon@josefsson.org>
39779
39780         * tests/test-version-etc.sh: Don't fail on different
39781         project/version.  Don't fail on CRLF differences.  Rewrite to use
39782         multiple -e instead of multiple sed forks, suggested by Eric Blake
39783         <ebb9@byu.net>.
39784         * tests/test-argp-version-etc-1.sh: Likewise.
39785
39786 2009-08-13  Simon Josefsson  <simon@josefsson.org>
39787
39788         * tests/test-version-etc.sh: Don't fail on different
39789         project/version.
39790
39791 2009-08-12  Bruno Haible  <bruno@clisp.org>
39792
39793         Tests for modules 'getopt-posix', 'getopt-gnu'.
39794         * modules/getopt-posix-tests: New file.
39795         * tests/test-getopt.c: New file.
39796         * tests/test-getopt.h: New file.
39797         * tests/test-getopt_long.h: New file.
39798
39799         New modules 'getopt-posix', 'getopt-gnu'.
39800         * modules/getopt-gnu: New file, renamed from modules/getopt.
39801         * modules/getopt-posix: New file.
39802         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
39803         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
39804         (gl_GETOPT): Remove macro.
39805         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
39806         Disable the test against BSD systems that declare optreset. Test
39807         against mingw bug. Test against lack of support of optional arguments
39808         on many platforms.
39809         * doc/glibc-headers/getopt.texi: Update module name and list of
39810         relevant platforms.
39811         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
39812         'getopt-gnu' and more portability problems.
39813         * NEWS: Mention the changes.
39814
39815 2009-08-12  Bruno Haible  <bruno@clisp.org>
39816
39817         Ensure that optarg etc. get declared by <unistd.h>.
39818         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
39819         AC_USE_SYSTEM_EXTENSIONS.
39820         * modules/getopt (Depends-on): Add 'extensions'.
39821
39822 2009-08-12  Bruno Haible  <bruno@clisp.org>
39823
39824         Avoid test link errors.
39825         * modules/pipe-filter-ii-tests (Makefile.am): Define
39826         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
39827         * modules/pipe-filter-gi-tests (Makefile.am): Define
39828         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
39829         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39830
39831 2009-08-12  Bruno Haible  <bruno@clisp.org>
39832
39833         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
39834         gl_GETOPT_SUBSTITUTE before.
39835         (gl_GETOPT): Use it.
39836         * m4/argp.m4 (gl_ARGP): Update.
39837         Reported by Sergey Poznyakoff.
39838
39839         * m4/getopt.m4: Reorder macros.
39840         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
39841         (gl_GETOPT_SUBSTITUTE): Remove macro.
39842
39843 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39844
39845         Minor improvement in gitlog-to-changelog
39846
39847         * build-aux/gitlog-to-changelog: New option `--format' makes
39848         output format string configurable.
39849
39850 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39851
39852         Optimize exclude: use hash tables for non-wildcard patterns.
39853
39854         * lib/exclude.c: Include hash.h and mbuiter.h
39855         (struct exclude_pattern, exclude_segment): New data types.
39856         (struct exclude): Rewrite.
39857         (fnmatch_pattern_has_wildcards): New function.
39858         (new_exclude_segment, free_exclude_segment): New functions.
39859         (excluded_file_pattern_p, excluded_file_name_p): New functions.
39860         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
39861         * lib/exclude.h (is_fnmatch_pattern): New prototype.
39862         * modules/exclude: Depend on hash and mbuiter.
39863
39864         * modules/exclude-tests: New file.
39865         * tests/test-exclude.c: New file.
39866         * tests/test-exclude1.sh: New file.
39867         * tests/test-exclude2.sh: New file.
39868         * tests/test-exclude3.sh: New file.
39869         * tests/test-exclude4.sh: New file.
39870         * tests/test-exclude5.sh: New file.
39871         * tests/test-exclude6.sh: New file.
39872         * tests/test-exclude7.sh: New file.
39873
39874 2009-08-12  Bruno Haible  <bruno@clisp.org>
39875
39876         Ensure that getopt() gets declared by <unistd.h>.
39877         * lib/unistd.in.h: Conditionally include getopt.h.
39878         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
39879         Set GNULIB_UNISTD_H_GETOPT.
39880         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39881         GNULIB_UNISTD_H_GETOPT.
39882         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
39883
39884 2009-08-12  Bruno Haible  <bruno@clisp.org>
39885
39886         Clarify logic.
39887         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
39888         gl_replace_getopt instead of GETOPT_H.
39889
39890 2009-08-12  Bruno Haible  <bruno@clisp.org>
39891
39892         * m4/getopt.m4: Add comments.
39893
39894 2009-08-12  Bruno Haible  <bruno@clisp.org>
39895
39896         Disable multithread support by default on Cygwin 1.5.x.
39897         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
39898         set gl_use_threads=no if not specified otherwise.
39899
39900 2009-08-11  Bruno Haible  <bruno@clisp.org>
39901
39902         Avoid compilation error on NetBSD 5.0.
39903         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
39904         * tests/test-stdio.c: Likewise.
39905         * tests/test-stdlib.c: Likewise.
39906         * tests/test-string.c: Likewise.
39907         * tests/test-unistd.c: Likewise.
39908         Reported by Greg Troxel <gdt@ir.bbn.com>
39909         at <https://savannah.gnu.org/support/?106973>.
39910
39911 2009-08-11  Bruno Haible  <bruno@clisp.org>
39912
39913         * modules/dup2-tests (Depends-on): Remove close.
39914
39915         Undo 2009-07-19 commit.
39916         * modules/acl-tests (Depends-on): Remove close.
39917         * modules/binary-io-tests (Depends-on): Likewise.
39918         * modules/closein-tests (Depends-on): Likewise.
39919         * modules/flock-tests (Depends-on): Likewise.
39920         * modules/fsync-tests (Depends-on): Likewise.
39921         * modules/lseek-tests (Depends-on): Likewise.
39922         * modules/pipe-tests (Depends-on): Likewise.
39923         * modules/posix_spawn-tests (Depends-on): Likewise.
39924         * modules/posix_spawnp-tests (Depends-on): Likewise.
39925         * modules/stat-time-tests (Depends-on): Likewise.
39926         * modules/yesno-tests (Depends-on): Likewise.
39927
39928 2009-08-10  Bruno Haible  <bruno@clisp.org>
39929
39930         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
39931
39932 2009-08-10  Bruno Haible  <bruno@clisp.org>
39933
39934         Fix a gcc warning.
39935         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
39936
39937 2009-08-10  Bruno Haible  <bruno@clisp.org>
39938
39939         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
39940         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
39941         not only the first time.
39942         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
39943         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
39944         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
39945         is 1, not only the the first time.
39946
39947 2009-08-10  Bruno Haible  <bruno@clisp.org>
39948
39949         Make it possible to use module 'gethostname' without module 'close'.
39950         * lib/unistd.in.h (close): Evoke a link error only if
39951         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
39952         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39953         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39954         * modules/unistd (Makefile.am): Substitute
39955         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39956         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
39957         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
39958         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
39959         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39960         * modules/sys_ioctl (Makefile.am): Substitute
39961         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39962         * modules/socket (configure.ac): On native Windows, set
39963         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
39964         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39965         Reported by Sam Steingold <sds@gnu.org>.
39966
39967 2009-08-10  Bruno Haible  <bruno@clisp.org>
39968
39969         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
39970         * modules/ioctl (configure.ac): Likewise.
39971
39972 2009-08-10  Bruno Haible  <bruno@clisp.org>
39973
39974         Avoid collision between gnulib wrapper and libintl wrapper.
39975         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
39976         already defined in intl/printf.c.
39977         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
39978         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
39979
39980 2009-08-09  Bruno Haible  <bruno@clisp.org>
39981
39982         Make <sys/select.h> really self-contained, also on Solaris 10.
39983         * lib/sys_select.in.h: Include <string.h>.
39984         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
39985         Solaris 10 problem.
39986         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
39987         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
39988         Reported by Jim Meyering.
39989
39990 2009-08-09  Bruno Haible  <bruno@clisp.org>
39991
39992         Avoid warnings from 'aclocal' that are due to a use of macro name
39993         AM_XGETTEXT_OPTION that is not defined in automake.
39994         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
39995         automake.
39996         * modules/error (configure.ac): Likewise.
39997         * modules/propername (configure.ac): Likewise.
39998         * modules/vasprintf (configure.ac): Likewise.
39999         * modules/verror (configure.ac): Likewise.
40000         * modules/xprintf (configure.ac): Likewise.
40001         * modules/xvasprintf (configure.ac): Likewise.
40002
40003 2009-08-08  Bruno Haible  <bruno@clisp.org>
40004
40005         Avoid compilation error in C++ mode.
40006         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
40007         Reported by Sam Steingold <sds@gnu.org>.
40008
40009 2009-08-08  Bruno Haible  <bruno@clisp.org>
40010
40011         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
40012         for the various Unix platforms.
40013         * doc/posix-headers/limits.texi: Update platforms list regarding
40014         HOST_NAME_MAX.
40015         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40016
40017 2009-08-07  Jim Meyering  <meyering@redhat.com>
40018
40019         selinux-at: fix typo in a comment
40020         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
40021         Spotted by Paolo Bonzini.
40022
40023         selinux-at: remove redundant m4 code, add documentation
40024         * modules/selinux-at (configure.ac): Remove redundant code.
40025         LIB_SELINUX is already set via the dependent module, selinux-h.
40026         (Include): Add quotes around selinux-at.h.
40027         * lib/selinux-at.h: Add documentation.
40028         Reported by Bruno Haible in
40029         http://marc.info/?l=gnulib-bug&m=124958988300749
40030
40031 2009-08-07  Bruno Haible  <bruno@clisp.org>
40032
40033         Avoid link error on MacOS X 10.3 and 10.4.
40034         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
40035         on non-ELF systems.
40036         * lib/argp-pv.c (argp_program_version): Likewise.
40037         Reported by Simon Josefsson.
40038
40039 2009-08-07  Simon Josefsson  <simon@josefsson.org>
40040
40041         * tests/test-version-etc.sh: Use $EXEEXT.
40042
40043 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
40044
40045         update-copyright: update documentation to point to maint.mk
40046         * build-aux/update-copyright: Here.
40047
40048 2009-08-06  Jim Meyering  <meyering@redhat.com>
40049
40050         maint.mk: support update-copyright-local
40051         * top/maint.mk (update-copyright-local): Define place-holder.
40052         (update-copyright): Depend on $(update-copyright-local).
40053
40054 2009-08-06  Jim Meyering  <meyering@redhat.com>
40055
40056         selinux-at: new module
40057         Initially written for coreutils, this module will soon be
40058         used by findutils, too.
40059         * MODULES.html.sh [Misc]: Add selinux-at.
40060         * lib/selinux-at.h: New file, from coreutils.
40061         * lib/selinux-at.c: Likewise.
40062         * modules/selinux-at: Likewise.
40063         (License): Change from LGPL to GPL, since it depends
40064         on the GPL'd openat module.
40065
40066         doc: update README
40067         * README: Remove references to cogito.
40068         Remove cvs-repo-updating instructions from 2007.
40069         Don't imply that CVS is better if you have limited disk space.
40070
40071 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
40072
40073         update-copyright: support C-style comments
40074         * build-aux/update-copyright: Implement and document.
40075         * tests/test-update-copyright.sh: Test.
40076
40077 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
40078
40079         update-copyright: support omitted "(C)"
40080         * build-aux/update-copyright: Implement and document.  Also,
40081         allow variable whitespace before "(C)".
40082         * tests/test-update-copyright.sh: Test.
40083
40084 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
40085
40086         update-copyright: don't trip on non-FSF copyright statements
40087         * build-aux/update-copyright: Fix so that the first correctly
40088         formatted FSF copyright statement is recognized no matter what
40089         appears before it.  Update documentation.
40090         * tests/test-update-copyright.sh: Test that.
40091
40092 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
40093
40094         update-copyright: clean up code a little
40095         * build-aux/update-copyright: Append "_re" to the name of any
40096         variable holding a regular expression.
40097         Replace "old" and "new" with "stmt" in variable names.
40098         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
40099         handled correctly.
40100         Format code more consistently.
40101
40102 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
40103
40104         update-copyright-tests: improve portability
40105         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
40106         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
40107
40108 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
40109
40110         update-copyright: support @copyright{} and &copy;
40111         * build-aux/update-copyright: Implement and document.
40112         * tests/test-update-copyright.sh: Test.
40113
40114 2009-08-04  Jim Meyering  <meyering@redhat.com>
40115
40116         update-copyright-tests: correctly test EOL=\r\n handling
40117         * tests/test-update-copyright.sh: Put \r at the end of some lines
40118         for the dos-eol tests.  Based on a patch by Joel E. Denny.
40119
40120         maint.mk: make update-copyright exclusion list more configurable
40121         * top/maint.mk (update-copyright): Default to excluding COPYING,
40122         but allow an override, in case someone does want to update that file.
40123
40124         maint.mk: don't update copyright date in COPYING
40125         * top/maint.mk (update-copyright): Exclude COPYING.
40126
40127         maint.mk: add a copyright-updating rule
40128         * top/maint.mk (update-copyright): New rule.
40129         Derived from coreutils/Makefile.am.
40130
40131         update-copyright: rename some variables
40132         * build-aux/update-copyright: Rename a few variables for clarity.
40133         Tweak syntax.  List Joel E. Denny as coauthor.
40134
40135 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
40136
40137         update-copyright: fix bug for 2-digit last year and add tests
40138         * build-aux/update-copyright: Fix bug.
40139         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
40140         specified.
40141         * modules/update-copyright-tests: New
40142         * tests/test-update-copyright.sh: New.
40143
40144 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
40145
40146         update-copyright: handle leading tabs in line prefix
40147         * build-aux/update-copyright: Count leading tabs as 8 spaces
40148         when computing margin.  This helps with the formatting of
40149         ChangeLogs, for example.
40150         Fix documentation a little.
40151
40152 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
40153
40154         update-copyright: support EOL=\r\n
40155         * build-aux/update-copyright: Implement that.
40156
40157 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
40158
40159         update-copyright: automatically format copyright statements
40160         * build-aux/update-copyright: Implement that.
40161         Also, be a little more predictable and safer by always failing
40162         when the full copyright format is not perfectly recognized as an
40163         unbroken whole.  Discussed at
40164         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
40165         Rewrite documentation.
40166
40167 2009-08-03  Bruno Haible  <bruno@clisp.org>
40168
40169         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
40170
40171 2009-08-02  Bruno Haible  <bruno@clisp.org>
40172
40173         Tests for module 'uname'.
40174         * modules/uname-tests: New file.
40175         * tests/test-uname.c: New file.
40176
40177         New module 'uname'.
40178         * lib/uname.c: New file.
40179         * m4/uname.m4: New file.
40180         * modules/uname: New file.
40181         * doc/posix-functions/uname.texi: Mention the new module.
40182
40183 2009-08-02  Bruno Haible  <bruno@clisp.org>
40184
40185         Tests for module 'sys_utsname'.
40186         * modules/sys_utsname-tests: New file.
40187         * tests/test-sys_utsname.c: New file.
40188
40189         New module 'sys_utsname'.
40190         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
40191         * m4/sys_utsname_h.m4: New file.
40192         * modules/sys_utsname: New file.
40193         * doc/posix-headers/sys_utsname.texi: Mention the new module.
40194
40195 2009-08-02  Bruno Haible  <bruno@clisp.org>
40196
40197         Implicitly initialize the sockets library.
40198         * lib/gethostname.c: Include sockets.h.
40199         (rpl_gethostname): Invoke gl_sockets_startup.
40200         * lib/socket.c: Include sockets.h.
40201         (rpl_socket): Invoke gl_sockets_startup.
40202         * modules/gethostname (Depends-on): Add sockets.
40203         * modules/socket (Depends-on): Likewise.
40204         * tests/test-poll.c: Don't include sockets.h.
40205         (main): Don't invoke gl_sockets_startup.
40206         * tests/test-select.c: Don't include sockets.h.
40207         (main): Don't invoke gl_sockets_startup.
40208
40209 2009-08-02  Bruno Haible  <bruno@clisp.org>
40210
40211         Allow multiple calls to gl_sockets_startup.
40212         * lib/sockets.c (initialized_sockets_version): New variable.
40213         (gl_sockets_startup): Do nothing if already called for this or a higher
40214         version.
40215         (gl_sockets_cleanup): Reset initialized_sockets_version.
40216
40217 2009-08-03  Simon Josefsson  <simon@josefsson.org>
40218
40219         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
40220         different project/version.
40221
40222 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
40223             Bruno Haible  <bruno@clisp.org>
40224
40225         Tests for module 'pipe-filter-gi'.
40226         * modules/pipe-filter-gi-tests: New file.
40227         * tests/test-pipe-filter-gi1.sh: New file.
40228         * tests/test-pipe-filter-gi1.c: New file.
40229         * tests/test-pipe-filter-gi2.sh: New file.
40230         * tests/test-pipe-filter-gi2-main.c: New file.
40231         * tests/test-pipe-filter-gi2-child.c: New file.
40232
40233         New module 'pipe-filter-gi'.
40234         * lib/pipe-filter-gi.c: New file.
40235         * modules/pipe-filter-gi: New file.
40236
40237 2009-08-02  Bruno Haible  <bruno@clisp.org>
40238             Paolo Bonzini  <bonzini@gnu.org>
40239
40240         Tests for module 'pipe-filter-ii'.
40241         * modules/pipe-filter-ii-tests: New file.
40242         * tests/test-pipe-filter-ii1.sh: New file.
40243         * tests/test-pipe-filter-ii1.c: New file.
40244         * tests/test-pipe-filter-ii2.sh: New file.
40245         * tests/test-pipe-filter-ii2-main.c: New file.
40246         * tests/test-pipe-filter-ii2-child.c: New file.
40247
40248         New module 'pipe-filter-ii'.
40249         * lib/pipe-filter.h: New file.
40250         * lib/pipe-filter-ii.c: New file.
40251         * lib/pipe-filter-aux.h: New file.
40252         * modules/pipe-filter-ii: New file.
40253
40254 2009-08-02  Simon Josefsson  <simon@josefsson.org>
40255
40256         * lib/gc-libgcrypt.c: Change copyright to FSF.
40257         * lib/gc-gnulib.c: Likewise.
40258
40259 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
40260
40261         * lib/gethostname.c: Include limits.h.
40262
40263 2009-08-02  Simon Josefsson  <simon@josefsson.org>
40264             Bruno Haible  <bruno@clisp.org>
40265
40266         Ensure HOST_NAME_MAX as part of the gethostname module.
40267         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
40268         define also HOST_NAME_MAX.
40269         * tests/test-gethostname.c: Include <limits.h>.
40270         (main): Check also HOST_NAME_MAX.
40271         * doc/posix-headers/limits.texi: Document the mingw problem.
40272
40273 2009-08-02  Bruno Haible  <bruno@clisp.org>
40274
40275         * lib/gethostname.c (gethostname): Fix handling of large len argument.
40276         Add comments.
40277
40278 2009-03-31  Simon Josefsson  <simon@josefsson.org>
40279
40280         * lib/gethostname.c: Add Windows wrapper.
40281         * m4/gethostname.m4: Look for gethostname in -lws2_32.
40282         * modules/gethostname: Depend on sys_socket & errno, for also
40283         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
40284         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
40285
40286 2009-07-31  Jim Meyering  <meyering@redhat.com>
40287
40288         getloadavg: fix symbol name in comment
40289         * lib/getloadavg.c: Correct a typo I introduced when adding
40290         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
40291         Matt Kraai spotted the problem.
40292
40293 2009-07-29  Matt Kraai  <mkraai@beckman.com>
40294
40295         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
40296         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
40297         code also if ! defined N_NAME_POINTER.
40298         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
40299         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
40300         but the n_name member is a 12-byte array.
40301
40302 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
40303
40304         update-copyright: generalize comment handling
40305         * build-aux/update-copyright: Handle copyright statements
40306         within more comment styles.
40307         Document usage.
40308         Report any file with an external copyright holder or parse failure.
40309
40310 2009-07-29  Jim Meyering  <meyering@redhat.com>
40311
40312         mktime: correct setting of REPLACE_MKTIME
40313         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
40314
40315         update-copyright: new module
40316         * modules/update-copyright: New file.
40317         * build-aux/update-copyright: New file.
40318         * MODULES.html.sh (maint+release support): Add update-copyright.
40319
40320 2009-07-27  Bruno Haible  <bruno@clisp.org>
40321
40322         Fix compilation error when <ctime> is used and mktime is replaced.
40323         * lib/time.in.h (mktime): New declaration.
40324         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
40325         REPLACE_MKTIME instead of defining mktime in config.h.
40326         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
40327         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
40328         Reported by Ross McFarland <rwmcfa1@neces.com>.
40329
40330 2009-07-27  Bruno Haible  <bruno@clisp.org>
40331
40332         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
40333         Reported by Matt Kraai <mkraai@beckman.com>.
40334
40335 2009-07-25  Jim Meyering  <meyering@redhat.com>
40336
40337         maint.mk: avoid warnings about missing files
40338         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
40339         diagnostic when .prev-version does not exist.
40340         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
40341         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
40342         nonexistent cfg.mk.
40343         Suggestions from Simon Josefsson.
40344
40345 2009-07-25  Bruno Haible  <bruno@clisp.org>
40346
40347         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
40348         defined as macros. Needed on QNX 6.4.1.
40349         Reported by Matt Kraai <mkraai@beckman.com>.
40350
40351 2009-07-23  Jim Meyering  <meyering@redhat.com>
40352
40353         maint.mk: invoke "make dist" with a working value of XZ_OPT
40354         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
40355
40356 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
40357
40358         Make fseeko.c compile on QNX.
40359         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
40360
40361 2009-07-22  Peter Simons  <simons@cryp.to>
40362
40363         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
40364         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
40365         * lib/md4.h: Likewise.
40366         * lib/md5.h: Likewise.
40367         * lib/sha1.h: Likewise.
40368         * lib/sha256.h: Likewise.
40369         * lib/sha512.h: Likewise.
40370
40371         tests-sha1: don't assign literal string to 'char *' variable
40372         * tests/test-sha1.c (main): Declare locals with "const" to match
40373         attributes of the right hand side.
40374
40375 2009-07-21  Eric Blake  <ebb9@byu.net>
40376
40377         dup2: fix more mingw problems
40378         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
40379         fd to itself.
40380         * doc/posix-functions/dup2.texi (dup2): Document the bug.
40381         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
40382         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
40383         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
40384         care of mingw bugs.
40385
40386 2009-07-21  Jim Meyering  <meyering@redhat.com>
40387
40388         vc-list-files: avoid failure when /bin/sh is dash
40389         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
40390         On some Debian based systems, /bin/sh is a symlink to dash, and running
40391         this command would omit the "/" following each 'tests' prefix:
40392           dash -x build-aux/vc-list-files -C . tests
40393         That is because bash and dash work differently:
40394           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
40395           bash ok
40396           dash odd
40397
40398 2009-07-21  Eric Blake  <ebb9@byu.net>
40399
40400         dup2-tests: test previous patch
40401         * modules/dup2-tests: New file.
40402         * tests/test-dup2.c: Likewise.
40403         * tests/test-open.c (main): Avoid unspecified behavior.
40404         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
40405         test.
40406
40407         dup2: work around mingw and cygwin 1.5 bug
40408         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
40409         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40410         * modules/unistd (Makefile.am): Substitute it.
40411         * lib/unistd.in.h (dup2): Declare the replacement.
40412         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
40413         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
40414         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
40415         * modules/execute (Depends-on): Add dup2.
40416         * modules/fseterr (Depends-on): Likewise.
40417         * modules/pipe (Depends-on): Likewise.
40418         * modules/posix_spawn-internal (Depends-on): Likewise.
40419
40420 2009-07-21  Bruno Haible  <bruno@clisp.org>
40421
40422         * modules/.gitattributes: New file.
40423
40424 2009-07-20  Bruno Haible  <bruno@clisp.org>
40425
40426         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
40427         (main): Use it.
40428
40429 2009-07-20  Eric Blake  <ebb9@byu.net>
40430
40431         test-pipe: make a bit more robust.
40432         * tests/test-pipe.c (myerr): Allow error messages regardless of
40433         what we do to stderr.
40434         (test_pipe): Rearrange to avoid deadlock.
40435         (child_main): Try a larger read, to ensure we avoided deadlock.
40436         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
40437         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
40438         if misused.
40439
40440 2009-07-19  Jim Meyering  <meyering@redhat.com>
40441
40442         fts: avoid false-positive cycle-detection
40443         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
40444         for each new command line argument.
40445
40446 2009-07-19  Bruno Haible  <bruno@clisp.org>
40447
40448         Fix build error on mingw with the modules sys_select and unistd.
40449         * modules/acl-tests (Depends-on): Add close.
40450         * modules/binary-io-tests (Depends-on): Likewise.
40451         * modules/closein-tests (Depends-on): Likewise.
40452         * modules/flock-tests (Depends-on): Likewise.
40453         * modules/fsync-tests (Depends-on): Likewise.
40454         * modules/lseek-tests (Depends-on): Likewise.
40455         * modules/pipe-tests (Depends-on): Likewise.
40456         * modules/posix_spawn-tests (Depends-on): Likewise.
40457         * modules/posix_spawnp-tests (Depends-on): Likewise.
40458         * modules/stat-time-tests (Depends-on): Likewise.
40459         * modules/yesno-tests (Depends-on): Likewise.
40460
40461 2009-07-19  Bruno Haible  <bruno@clisp.org>
40462
40463         Unify conditionals.
40464         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
40465         macros, not at the compiler macros.
40466         * lib/pipe.c: Likewise.
40467         * lib/execute.c: Likewise.
40468         * lib/spawni.c: Likewise.
40469
40470 2009-07-19  Bruno Haible  <bruno@clisp.org>
40471
40472         Fix handling of closed stdin/stdout/stderr on mingw.
40473         * lib/w32spawn.h: Include unistd.h.
40474         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
40475         file descriptor with O_NOINHERIT flag.
40476         (fd_safer_noinherit): New function, based on fd-safer.c.
40477         (dup_safer_noinherit): New function, based on dup-safer.c.
40478         (undup_safer_noinherit): New function.
40479         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
40480         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
40481         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
40482         instead of fd_safer.
40483         * tests/test-pipe.c: Include <windows.h>.
40484         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
40485         result.
40486
40487         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
40488         from main.
40489         (test_pipe): Pass an extra argument for disambiguation.
40490         (main): Invoke parent_main or child_main.
40491
40492         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
40493         consistently.
40494
40495 2009-07-18  Eric Blake  <ebb9@byu.net>
40496
40497         test-pipe: fix mingw build
40498         * tests/test-pipe.c (main): Avoid fcntl on mingw.
40499
40500 2009-07-18  Bruno Haible  <bruno@clisp.org>
40501
40502         * modules/pipe-tests (Makefile.am): Fix typo.
40503
40504 2009-07-18  Eric Blake  <ebb9@byu.net>
40505
40506         error: fix mingw build
40507         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
40508         Reported by Bruno Haible.
40509
40510         error: avoid undefined use of stdout
40511         * lib/error.c (error, error_at_line): Check that fd 1 is open
40512         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
40513         is handling faults and the close_stdout module wants to report the
40514         detection of closed stdout as an error.
40515
40516 2009-07-17  Eric Blake  <ebb9@byu.net>
40517
40518         pipe: be robust in face of closed fds
40519         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
40520         should cause child to misbehave.
40521         * modules/pipe-tests: New module.
40522         * tests/test-pipe.c: New file.
40523         * tests/test-pipe.sh: New file.
40524         Reported by Akim Demaille.
40525
40526 2009-07-14  Bruno Haible  <bruno@clisp.org>
40527
40528         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
40529         Reported by anonymous kc.
40530
40531 2009-07-07  Jim Meyering  <meyering@redhat.com>
40532
40533         maint.mk: don't look for translatable strings in *.m4 or *.mk
40534         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
40535         when searching for translatable strings.
40536
40537 2009-07-05  Jim Meyering  <meyering@redhat.com>
40538
40539         remove superfluous parentheses in STREQ definition
40540         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
40541         * lib/getugroups.c (STREQ): Likewise.
40542         * lib/fnmatch.c (STREQ): Likewise.
40543         Spotted by Bruno Haible.
40544
40545 2009-07-04  Jim Meyering  <meyering@redhat.com>
40546
40547         argv-iter: new module
40548         * MODULES.html.sh: Add argv-iter.
40549         * lib/argv-iter.c, lib/argv-iter.h: New files.
40550         * modules/argv-iter: New file.
40551         * modules/argv-iter-tests: New file.
40552         * tests/test-argv-iter.c: Test it.
40553
40554 2009-07-04  Bruno Haible  <bruno@clisp.org>
40555
40556         Fix assertion.
40557         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
40558         contains more exact copies of a given entry than file2, leave the extra
40559         copies unpaired rather than aborting.
40560         Reported by Eric Blake.
40561
40562 2009-07-02  Bruno Haible  <bruno@clisp.org>
40563
40564         Speedup git-merge-changelog for git cherry-pick.
40565         * lib/git-merge-changelog.c (struct entries_mapping): New type.
40566         (entries_mapping_get): New function, extracted from compute_mapping.
40567         (entries_mapping_reverse_get): New function.
40568         (compute_mapping): Add a 'full' argument. Return the result in a
40569         'struct entries_mapping'.
40570         (main): Update. Access the mappings through entries_mapping_get.
40571         Reported by Eric Blake.
40572
40573 2009-07-02  Bruno Haible  <bruno@clisp.org>
40574
40575         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
40576         best_i.
40577
40578 2009-07-02  Bruno Haible  <bruno@clisp.org>
40579
40580         Speed up approximate search for matching ChangeLog entries.
40581         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
40582         argument. Call fstrcmp_bounded instead of fstrcmp.
40583         (compute_mapping, try_split_merged_entry, main): Update callers.
40584
40585 2009-07-02  Bruno Haible  <bruno@clisp.org>
40586
40587         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
40588
40589 2009-06-30  Bruno Haible  <bruno@clisp.org>
40590
40591         Reduce the number of uc_is_cased calls.
40592         * lib/unicase.h (casing_suffix_context_t): Add
40593         'first_char_except_ignorable' field.
40594         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
40595         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
40596         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
40597         Update initializer.
40598         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
40599         case-ignorable characters.
40600         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
40601         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
40602         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
40603         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
40604         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
40605
40606 2009-06-30  Bruno Haible  <bruno@clisp.org>
40607
40608         Tests for module 'unicase/ignorable'.
40609         * modules/unicase/ignorable-tests: New file.
40610         * tests/unicase/test-ignorable.c: New file, generated by
40611         gen-uni-tables.
40612
40613         Tests for module 'unicase/cased'.
40614         * modules/unicase/cased-tests: New file.
40615         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
40616         * tests/unicase/test-predicate-part1.h: New file, derived from
40617         tests/unictype/test-predicate-part1.h.
40618         * tests/unicase/test-predicate-part2.h: New file, same as
40619         tests/unictype/test-predicate-part2.h.
40620
40621         Fix evaluation of "Before C" condition of FINAL_SIGMA.
40622         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
40623         (output_casing_properties): New function.
40624         (main): Call it.
40625         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
40626         * lib/unicase/cased.c: Include unictype/bitmap.h.
40627         (uc_is_cased): Define through a bitmap lookup.
40628         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
40629         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
40630         (uc_is_case_ignorable): Define through a bitmap lookup.
40631         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
40632         lib/unictype/bitmap.h.
40633         (Depends-on): Add inline. Clean up.
40634         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
40635         lib/unictype/bitmap.h.
40636         (Depends-on): Add inline. Clean up.
40637         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
40638         recognition.
40639         * tests/unicase/test-u16-tolower.c (main): Likewise.
40640         * tests/unicase/test-u32-tolower.c (main): Likewise.
40641
40642 2009-06-30  Bruno Haible  <bruno@clisp.org>
40643
40644         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
40645         * lib/unicase/u16-casemap.c: Likewise.
40646         * lib/unicase/u32-casemap.c: Likewise.
40647
40648 2009-06-29  Bruno Haible  <bruno@clisp.org>
40649
40650         Define u32_casefold as a wrapper around u32_ct_casefold.
40651         * lib/unicase/u32-casefold.c: Update.
40652         * modules/unicase/u32-casefold (Depends-on): Add
40653         unicase/u32-ct-casefold, unicase/empty-prefix-context,
40654         unicase/empty-suffix-context. Clean up.
40655
40656         Define u16_casefold as a wrapper around u16_ct_casefold.
40657         * lib/unicase/u16-casefold.c: Update.
40658         * modules/unicase/u16-casefold (Depends-on): Add
40659         unicase/u16-ct-casefold, unicase/empty-prefix-context,
40660         unicase/empty-suffix-context. Clean up.
40661
40662         Define u8_casefold as a wrapper around u8_ct_casefold.
40663         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
40664         * lib/unicase/u8-casefold.c: Update.
40665         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
40666         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40667
40668         Define u32_totitle as a wrapper around u32_ct_totitle.
40669         * lib/unicase/u32-totitle.c: Update.
40670         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
40671         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40672
40673         Define u16_totitle as a wrapper around u16_ct_totitle.
40674         * lib/unicase/u16-totitle.c: Update.
40675         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
40676         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40677
40678         Define u8_totitle as a wrapper around u8_ct_totitle.
40679         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
40680         functions.
40681         (FUNC): Delegate to U_CT_TOTITLE.
40682         * lib/unicase/u8-totitle.c: Update.
40683         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
40684         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40685
40686         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
40687         invocation.
40688         * modules/unicase/u32-tolower (Depends-on): Add
40689         unicase/empty-prefix-context, unicase/empty-suffix-context.
40690
40691         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
40692         invocation.
40693         * modules/unicase/u16-tolower (Depends-on): Add
40694         unicase/empty-prefix-context, unicase/empty-suffix-context.
40695
40696         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
40697         * modules/unicase/u8-tolower (Depends-on): Add
40698         unicase/empty-prefix-context, unicase/empty-suffix-context.
40699
40700         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
40701         invocation.
40702         * modules/unicase/u32-toupper (Depends-on): Add
40703         unicase/empty-prefix-context, unicase/empty-suffix-context.
40704
40705         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
40706         invocation.
40707         * modules/unicase/u16-toupper (Depends-on): Add
40708         unicase/empty-prefix-context, unicase/empty-suffix-context.
40709
40710         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
40711         * modules/unicase/u8-toupper (Depends-on): Add
40712         unicase/empty-prefix-context, unicase/empty-suffix-context.
40713
40714         New module 'unicase/u32-ct-casefold'.
40715         * lib/unicase/u32-ct-casefold.c: New file.
40716         * modules/unicase/u32-ct-casefold: New file.
40717
40718         New module 'unicase/u16-ct-casefold'.
40719         * lib/unicase/u16-ct-casefold.c: New file.
40720         * modules/unicase/u16-ct-casefold: New file.
40721
40722         New module 'unicase/u8-ct-casefold'.
40723         * lib/unicase/u8-ct-casefold.c: New file.
40724         * lib/unicase/u-ct-casefold.h: New file, derived from
40725         lib/unicase/u-casefold.h.
40726         * modules/unicase/u8-ct-casefold: New file.
40727
40728         New module 'unicase/u32-ct-totitle'.
40729         * lib/unicase/u32-ct-totitle.c: New file.
40730         * modules/unicase/u32-ct-totitle: New file.
40731
40732         New module 'unicase/u16-ct-totitle'.
40733         * lib/unicase/u16-ct-totitle.c: New file.
40734         * modules/unicase/u16-ct-totitle: New file.
40735
40736         New module 'unicase/u8-ct-totitle'.
40737         * lib/unicase/u8-ct-totitle.c: New file.
40738         * lib/unicase/u-ct-totitle.h: New file, derived from
40739         lib/unicase/u-totitle.h.
40740         * modules/unicase/u8-ct-totitle: New file.
40741
40742         New module 'unicase/u32-ct-tolower'.
40743         * lib/unicase/u32-ct-tolower.c: New file.
40744         * modules/unicase/u32-ct-tolower: New file.
40745
40746         New module 'unicase/u16-ct-tolower'.
40747         * lib/unicase/u16-ct-tolower.c: New file.
40748         * modules/unicase/u16-ct-tolower: New file.
40749
40750         New module 'unicase/u8-ct-tolower'.
40751         * lib/unicase/u8-ct-tolower.c: New file.
40752         * modules/unicase/u8-ct-tolower: New file.
40753
40754         New module 'unicase/u32-ct-toupper'.
40755         * lib/unicase/u32-ct-toupper.c: New file.
40756         * modules/unicase/u32-ct-toupper: New file.
40757
40758         New module 'unicase/u16-ct-toupper'.
40759         * lib/unicase/u16-ct-toupper.c: New file.
40760         * modules/unicase/u16-ct-toupper: New file.
40761
40762         New module 'unicase/u8-ct-toupper'.
40763         * lib/unicase/u8-ct-toupper.c: New file.
40764         * modules/unicase/u8-ct-toupper: New file.
40765
40766         Add context arguments to u*_casemap functions.
40767         * lib/unicase/unicasemap.h: Include unicase.h.
40768         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
40769         suffix_context arguments.
40770         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
40771         functions.
40772         (FUNC): Add prefix_context and suffix_context arguments. Use
40773         uc_is_cased and uc_is_case_ignorable.
40774         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
40775         * lib/unicase/u16-casemap.c: Likewise.
40776         * lib/unicase/u32-casemap.c: Likewise.
40777         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
40778         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
40779         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
40780         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
40781         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
40782         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
40783
40784         New module 'unicase/u32-suffix-context'.
40785         * lib/unicase/u32-suffix-context.c: New file.
40786         * modules/unicase/u32-suffix-context: New file.
40787
40788         New module 'unicase/u16-suffix-context'.
40789         * lib/unicase/u16-suffix-context.c: New file.
40790         * modules/unicase/u16-suffix-context: New file.
40791
40792         New module 'unicase/u8-suffix-context'.
40793         * lib/unicase/u8-suffix-context.c: New file.
40794         * lib/unicase/u-suffix-context.h: New file.
40795         * modules/unicase/u8-suffix-context: New file.
40796
40797         New module 'unicase/empty-suffix-context'.
40798         * lib/unicase/empty-suffix-context.c: New file.
40799         * modules/unicase/empty-suffix-context: New file.
40800
40801         New module 'unicase/u32-prefix-context'.
40802         * lib/unicase/u32-prefix-context.c: New file.
40803         * modules/unicase/u32-prefix-context: New file.
40804
40805         New module 'unicase/u16-prefix-context'.
40806         * lib/unicase/u16-prefix-context.c: New file.
40807         * modules/unicase/u16-prefix-context: New file.
40808
40809         New module 'unicase/u8-prefix-context'.
40810         * lib/unicase/u8-prefix-context.c: New file.
40811         * lib/unicase/u-prefix-context.h: New file.
40812         * lib/unicase/context.h: New file.
40813         * modules/unicase/u8-prefix-context: New file.
40814
40815         New module 'unicase/empty-prefix-context'.
40816         * lib/unicase/empty-prefix-context.c: New file.
40817         * modules/unicase/empty-prefix-context: New file.
40818
40819         New module 'unicase/ignorable'.
40820         * lib/unicase/ignorable.c: New file.
40821         * modules/unicase/ignorable: New file.
40822
40823         New module 'unicase/cased'.
40824         * lib/unicase/caseprop.h: New file.
40825         * lib/unicase/cased.c: New file.
40826         * modules/unicase/cased: New file.
40827
40828         New functions for case mapping of substrings.
40829         * lib/unicase.h (casing_prefix_context_t): New type.
40830         (unicase_empty_prefix_context): New variable.
40831         (u8_casing_prefix_context, u16_casing_prefix_context,
40832         u32_casing_prefix_context, u8_casing_prefixes_context,
40833         u16_casing_prefixes_context, u32_casing_prefixes_context): New
40834         declarations.
40835         (casing_suffix_context_t): New type.
40836         (unicase_empty_suffix_context): New variable.
40837         (u8_casing_suffix_context, u16_casing_suffix_context,
40838         u32_casing_suffix_context, u8_casing_suffixes_context,
40839         u16_casing_suffixes_context, u32_casing_suffixes_context,
40840         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
40841         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
40842         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
40843         declarations.
40844
40845 2009-06-28  Jim Meyering  <meyering@redhat.com>
40846
40847         boostrap: indent only with spaces
40848         * build-aux/bootstrap: Indent only with spaces, never TABs.
40849
40850         bootstrap: split long lines
40851         * build-aux/bootstrap: Keep line length < 80.
40852
40853         bootstrap: sync from coreutils
40854         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
40855         just as autoreconf does.  Verify a list of prerequisite
40856         package-name,version-number pairs if defined in bootstrap.conf.
40857         Refer to README-prereq, if prerequisites are not satisfied.
40858
40859 2009-06-27  Eric Blake  <ebb9@byu.net>
40860
40861         tests: add test for bogus NULL definition
40862         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
40863         * tests/test-stdlib.c: Likewise.
40864         * tests/test-string.c: Likewise.
40865         * tests/test-locale.c: Likewise.
40866         * tests/test-unistd.c: Likewise.
40867         * modules/stdio-tests (Depends-on): Add verify.
40868         * modules/stdlib-tests (Depends-on): Likewise.
40869         * modules/string-tests (Depends-on): Likewise.
40870         * modules/locale-tests (Depends-on): Likewise.
40871         * modules/unistd-tests (Depends-on): Likewise.
40872
40873 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
40874
40875         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
40876         self-explaining comment.
40877         * m4/selinux-selinux-h: Update serial.
40878         (gl_LIBSELINUX): New macro, adding a warning for missing development
40879         packages to code extracted from...
40880         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
40881         Add warning for missing development packages here, too.
40882
40883 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
40884
40885         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
40886
40887 2009-06-25  Eric Blake  <ebb9@byu.net>
40888
40889         version-etc: fix regression
40890         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
40891         gcc.
40892         (version_etc): Use it, to catch bugs with trailing NULL.
40893         * lib/version-etc.c (version_etc_arn): Delete unused argument.
40894         (version_etc_va): Fix logic bug.
40895         * modules/version-etc-tests: Add test.
40896         * tests/test-version-etc.c: New file.
40897         * tests/test-version-etc.sh: Likewise.
40898
40899 2009-06-25  Sam Steingold  <sds@gnu.org>
40900
40901         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
40902         mbtowc declaration.
40903
40904 2009-06-25  Eric Blake  <ebb9@byu.net>
40905
40906         fpurge: migrate into <stdio.h>
40907         * lib/fpurge.h: Delete...
40908         * lib/stdio.in.h (fpurge): ...and declare here, instead.
40909         * lib/fpurge.c (fpurge): Change declaring header.
40910         * modules/fpurge (Files): Drop deleted file.
40911         (Depends-on): Add stdio.
40912         (configure.ac): Set witness.
40913         * modules/stdio (Makefile.am): Support fpurge macros.
40914         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40915         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
40916         * lib/fflush.c: Update client.
40917         * tests/test-fpurge.c: Likewise.
40918         * NEWS: Mention the change.
40919
40920 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
40921
40922         * lib/argp-version-etc.c (program_authors): Add const
40923         qualifier.
40924         * lib/version-etc.c: Fix typos in the comments.
40925         * modules/argp-version-etc: Depends on version-etc.
40926
40927 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
40928
40929         argp-version-etc: new module.
40930
40931         * lib/argp-version-etc.c: New file.
40932         * lib/argp-version-etc.h: New file.
40933         * modules/argp-version-etc: New file.
40934         * modules/argp-version-etc-tests: New file.
40935         * tests/test-argp-version-etc.c: New test.
40936         * tests/test-argp-version-etc-1.sh: New test.
40937
40938 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
40939
40940         Provide additional interfaces and documentation for version-etc
40941         module.
40942
40943         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
40944         interfaces.
40945         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
40946         prototypes.
40947
40948 2009-06-24  Bruno Haible  <bruno@clisp.org>
40949
40950         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
40951         HAVE_LIB${NAME} macro.
40952         Reported by Sam Steingold <sds@gnu.org>.
40953
40954 2009-06-23  Simon Josefsson  <simon@josefsson.org>
40955
40956         * modules/hash-tests (test_hash_LDADD): Link to libintl when
40957         needed.
40958
40959 2009-06-21  Bruno Haible  <bruno@clisp.org>
40960
40961         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
40962         work.
40963         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
40964         together with LIB${NAME}, LTLIB${NAME}.
40965         Reported by Sam Steingold <sds@gnu.org>.
40966
40967 2009-06-20  Jim Meyering  <meyering@redhat.com>
40968
40969         tests: make sc_require_test_exit_idiom more generic
40970         * top/maint.mk (Exit_witness_file): New overridable variable.
40971         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
40972         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
40973
40974 2009-06-19  Jim Meyering  <meyering@redhat.com>
40975
40976         hash: reverse order of src/dst parameters in an internal interface
40977         * lib/hash.c (transfer_entries): Reverse order of parameters to
40978         put DST before SRC.  Adjust callers.
40979
40980         tests: test-hash: avoid wholesale duplication
40981         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
40982         Instead, use a loop and add a single conditional.
40983
40984         tests: test-hash: allow seed selection via a command line argument
40985         * tests/test-hash.c (get_seed): New function.
40986         (main): Use it.
40987
40988 2009-06-19  Eric Blake  <ebb9@byu.net>
40989
40990         hash: avoid memory leak on allocation failure
40991         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
40992         failure.  Factor repeated algorithm...
40993         (transfer_entries): ...into new helper routine.
40994         (hash_delete): React to hash_rehash return value.
40995
40996         hash: reduce memory pressure in hash_rehash no-op case
40997         * lib/hash.c (next_prime): Avoid overflow.
40998         (hash_initialize): Factor bucket size computation...
40999         (compute_bucket_size): ...into new helper function.
41000         (hash_rehash): Use new function and open coding to reduce memory
41001         pressure, and avoid a memory leak in USE_OBSTACK code.
41002         Reported by Jim Meyering.
41003
41004 2009-06-18  Eric Blake  <ebb9@byu.net>
41005
41006         hash: make rotation more obvious
41007         * modules/hash (Depends-on): Add bitrotate and stdint.
41008         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
41009         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
41010         (SIZE_MAX): Rely on headers for definition.
41011         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
41012         (raw_hasher): Use rotr_sz.
41013         Suggested by Jim Meyering.
41014
41015         hash: fix memory leak in last patch
41016         * lib/hash.c (hash_rehash): Avoid memory leak.
41017
41018         hash: avoid no-op rehashing
41019         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
41020
41021         hash: provide default callback functions
41022         * lib/hash.c (raw_hasher, raw_comparator): New functions.
41023         (hash_initialize): Use them as defaults.
41024         * tests/test-hash.c (main): Test this.
41025
41026         hash: minor optimization
41027         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
41028         when possible.
41029         (hash_initialize): Document this promise.
41030         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
41031         * tests/test-hash.c (hash_compare_strings): Test this.
41032
41033 2009-06-18  Bruno Haible  <bruno@clisp.org>
41034
41035         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
41036         going to be replaced anyway.
41037
41038 2009-06-18  Bruno Haible  <bruno@clisp.org>
41039
41040         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
41041         in one place.
41042         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
41043         be replaced anyway.
41044
41045 2009-06-18  Eric Blake  <ebb9@byu.net>
41046
41047         hash: check for resize before insertion
41048         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
41049         threshold before insertion, so that a pathological hash_rehash
41050         that fills every bucket can still trigger another rehash.
41051
41052 2009-06-18  Jim Meyering  <meyering@redhat.com>
41053
41054         hash-tests: add a loop around the small tests
41055         * tests/test-hash.c (main): Repeat small tests with selected
41056         small initial table sizes.
41057
41058 2009-06-17  Eric Blake  <ebb9@byu.net>
41059
41060         hash: minor cleanups
41061         * lib/hash.h (hash_entry): Make opaque, by moving...
41062         * lib/hash.c (hash_entry): ...here.
41063         (hash_insert): Clarify restrictions on what can be inserted.
41064         (hash_get_next): Clarify when it is safe to remove an element
41065         during traversal.
41066         (check_tuning): Skip verification when tuning is known safe.
41067         (hash_initialize): Clarify restrictions on tuning.
41068
41069 2009-06-17  Jim Meyering  <jim@meyering.net>
41070         and Eric Blake  <ebb9@byu.net>
41071
41072         hash-tests: new module
41073         * modules/hash-tests: New file.
41074         * tests/test-hash.c: New file.
41075
41076 2009-06-17  Eric Blake  <ebb9@byu.net>
41077
41078         strstr-simple: document new module
41079         * MODULES.html.sh: Document new module.
41080
41081         strstr, strcasestr: replace on platforms with broken memchr
41082         * modules/strstr: Split into...
41083         * modules/strstr-simple: ...new module that does not care about
41084         performance, but does care about glibc bug.
41085         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
41086         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
41087         if platform memchr is broken, per Debian bug 521737.
41088         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
41089         memchr.
41090         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
41091         * doc/posix-functions/strstr.texi (strstr): Document the fix.
41092         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
41093         * modules/mountlist (Depends-on): Add strstr-simple.
41094         * modules/gen-uni-tables (Depends-on): Likewise.
41095         * modules/argz (Depends-on): Add strstr.
41096
41097 2009-06-17  Bruno Haible  <bruno@clisp.org>
41098
41099         * modules/posix_spawn-internal (Depends-on): Add errno.
41100
41101 2009-06-17  Bruno Haible  <bruno@clisp.org>
41102
41103         Define missing ESTALE on Interix 3.5.
41104         * lib/errno.in.h (ESTALE): Assign a value if missing.
41105         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
41106         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
41107         missing.
41108         * doc/posix-headers/errno.texi: Mention the Interix bug.
41109         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
41110
41111 2009-06-15  Eric Blake  <ebb9@byu.net>
41112
41113         memchr, memchr2: add valgrind exception
41114         * lib/memchr.valgrind: New file.
41115         * lib/memchr2.valgrind: New file.
41116         * modules/memchr (Files): Distribute valgrind file.
41117         * modules/memchr2 (Files): Likewise.
41118
41119         docs: memchr is no longer obsolete
41120         * MODULES.html.sh: Move memchr from obsolete to string.h section.
41121         * lib/string.in.h (memchr): Simplify logic.
41122
41123 2009-06-14  Jim Meyering  <meyering@redhat.com>
41124
41125         link-follow: fix the "checking..." message to not mention trailing slash
41126         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
41127         never considered trailing slashes.
41128
41129 2009-06-14  Bruno Haible  <bruno@clisp.org>
41130
41131         * m4/memchr.m4: Mention also the bug on IA-64.
41132         * doc/posix-functions/memchr.texi: Likewise.
41133
41134 2009-06-12  Eric Blake  <ebb9@byu.net>
41135
41136         memchr: detect broken x86_64 and alpha implementations
41137         * modules/memchr-tests (Depends-on): Move mmap detection...
41138         * modules/memchr (Depends-on): ...here.
41139         (configure.ac): Set indicator.
41140         * lib/string.in.h (memchr): Declare replacement.
41141         * modules/string (Makefile.am): Trigger replacement.
41142         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
41143         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
41144         bugs.
41145         * doc/posix-functions/memchr.texi (memchr): Document the bug.
41146         * modules/getpagesize (License): Relax license.
41147
41148 2009-06-11  Bruno Haible  <bruno@clisp.org>
41149
41150         * lib/idpriv.h: Add more references.
41151
41152 2009-06-08  Bruno Haible  <bruno@clisp.org>
41153
41154         Tests for module 'idpriv-droptemp'.
41155         * modules/idpriv-droptemp-tests: New file.
41156         * tests/test-idpriv-droptemp.sh: New file.
41157         * tests/test-idpriv-droptemp.su.sh: New file.
41158         * tests/test-idpriv-droptemp.c: New file.
41159
41160         New module 'idpriv-droptemp'.
41161         * lib/idpriv-droptemp.c: New file.
41162         * modules/idpriv-droptemp: New file.
41163
41164 2009-06-08  Bruno Haible  <bruno@clisp.org>
41165
41166         Tests for module 'idpriv-drop'.
41167         * modules/idpriv-drop-tests: New file.
41168         * tests/test-idpriv-drop.sh: New file.
41169         * tests/test-idpriv-drop.su.sh: New file.
41170         * tests/test-idpriv-drop.c: New file.
41171
41172         New module 'idpriv-drop'.
41173         * lib/idpriv.h: New file.
41174         * lib-idpriv-drop.c: New file.
41175         * m4/idpriv.m4: New file.
41176         * modules/idpriv-drop: New file.
41177
41178 2009-06-08  Bruno Haible  <bruno@clisp.org>
41179
41180         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
41181         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41182         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41183         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41184         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41185         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41186         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41187
41188 2009-06-08  Eric Blake  <ebb9@byu.net>
41189
41190         test-strstr: use memory fence, when possible
41191         * tests/test-strstr.c (main): Use memory fence, in order to be
41192         more likely to trigger Debian bug 521737.
41193         * modules/strstr-tests (Files): Pull in additional files.
41194
41195         memchr: no longer obsolete, for wider field testing
41196         * modules/memchr (Status, Notice): Delete, this module is no
41197         longer obsolete.
41198         * modules/vasnprintf (Depends-on): Add memchr.
41199
41200 2009-06-07  Jim Meyering  <meyering@redhat.com>
41201
41202         hash: declare some functions with the warn_unused_result attribute
41203         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
41204
41205 2009-06-07  Bruno Haible  <bruno@clisp.org>
41206
41207         * tests/test-alignof.c: Don't test int64_t if it does not exist.
41208         Reported by Eric Blake.
41209
41210 2009-06-06  Eric Blake  <ebb9@byu.net>
41211
41212         test-alignof: fix typo with long double
41213         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
41214         compiler error.
41215
41216 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
41217
41218         Escape non-texinfo { and }s.
41219         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
41220         markup error.
41221
41222 2009-06-04  Jim Meyering  <meyering@redhat.com>
41223
41224         gitlog-to-changelog: don't infloop on an empty commit log
41225         * build-aux/gitlog-to-changelog: Warn about an empty log message.
41226         Reported by Boris Petersen <transacid@centerim.org>.
41227
41228 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
41229
41230         version-etc: extend for packagers
41231         Add three new configure options, intended for packagers:
41232           --with-packager="packager name"
41233           --with-packager-version="packager-specific version"
41234           --with-packager-bug-reports="packager bug reporting"
41235         An example with coreutils:
41236           $ ./configure \
41237             --with-packager=Gentoo \
41238             --with-packager-bug-report=http://bugs.gentoo.org/ \
41239             --with-packager-version="patchset 1.6"
41240           $ ./src/ls --version | head -n2
41241           ls (GNU coreutils) 7.1-dirty
41242           Packaged by Gentoo (patchset 1.6)
41243         Note that the bug reporting info via --help doesn't show up because
41244         coreutils uses its own custom emit_bug_reporting_address() implementation
41245         in src/system.h.  If it didn't, it'd look like:
41246           $ ./src/ls --help | tail -n4
41247           Report bugs to <bug-coreutils@gnu.org>.
41248           Report Gentoo bugs to <http://bugs.gentoo.org/>.
41249           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
41250           General help using GNU software: <http://www.gnu.org/gethelp/>.
41251         * lib/version-etc.c: Print new information, if provided.
41252         * m4/version-etc.m4: New file.
41253         * modules/version-etc (Files): Add m4/version-etc.m4.
41254         (configure.ac): Add gl_VERSION_ETC.
41255
41256 2009-05-31  Bruno Haible  <bruno@clisp.org>
41257
41258         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
41259         and 'int64_t'.
41260         * modules/alignof-tests (Dependencies): Add stdint.
41261         Reported by Eric Blake.
41262
41263 2009-05-31  Bruno Haible  <bruno@clisp.org>
41264
41265         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
41266         restriction due to compiler bugs.
41267         Reported by Eric Blake.
41268
41269 2009-05-31  Simon Josefsson  <simon@josefsson.org>
41270             Bruno Haible  <bruno@clisp.org>
41271
41272         Fix test-alignof failure.
41273         * lib/alignof.h (alignof_slot): New macro.
41274         (alignof_type): New macro, with the same semantics as the previous
41275         'alignof'.
41276         (alignof): Alias to alignof_slot.
41277         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
41278         check that the results are usable as constant expressions.
41279
41280 2009-05-31  Bruno Haible  <bruno@clisp.org>
41281
41282         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
41283         * tests/test-memchr.c (main): Check that memchr does not read past the
41284         first occurrence of the byte.
41285         * tests/test-strstr.c (main): Update comment.
41286         Suggested by Eric Blake.
41287
41288 2009-05-30  Bruno Haible  <bruno@clisp.org>
41289
41290         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
41291         detail how to use dumpbin.
41292         Reported by David Byron <dbyron@dbyron.com>.
41293
41294 2009-06-02  Simon Josefsson  <simon@josefsson.org>
41295
41296         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
41297
41298 2009-06-02  Simon Josefsson  <simon@josefsson.org>
41299
41300         * m4/manywarnings.m4: Add GCC 4.4 warnings.
41301
41302 2009-05-28  Bruno Haible  <bruno@clisp.org>
41303
41304         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
41305         build-aux/ files.
41306
41307 2009-05-28  Simon Josefsson  <simon@josefsson.org>
41308
41309         * gnulib-tool (func_import): Transform license on build-aux/ files too.
41310
41311 2009-05-27  Simon Josefsson  <simon@josefsson.org>
41312
41313         * gnulib-tool (sed_transform_main_lib_file)
41314         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
41315         regexps.
41316
41317 2009-05-26  Simon Josefsson  <simon@josefsson.org>
41318
41319         * tests/test-strstr.c: Add another self-test.
41320         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
41321         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
41322
41323 2009-05-23  Bruno Haible  <bruno@clisp.org>
41324
41325         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
41326         change.
41327
41328 2009-05-21  Bruno Haible  <bruno@clisp.org>
41329
41330         Simplify use of mode_t varargs.
41331         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
41332         uses 'mode_t' or 'int'.
41333         * lib/openat.c (openat): Likewise.
41334         * lib/open-safer.c (open_safer): Likewise.
41335         * m4/mode_t.m4: New file.
41336         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
41337         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
41338         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
41339         * modules/open (Files): Add m4/mode_t.m4.
41340         * modules/openat (Files): Likewise.
41341         * modules/fcntl-safer (Files): Likewise.
41342         Suggested by Eric Blake.
41343
41344 2009-05-21  Pádraig Brady  <P@draigbrady.com>
41345
41346         * doc/glibc-functions/fallocate.texi: New file.
41347         * doc/gnulib.texi: Include it.
41348
41349 2009-05-21  Eric Blake  <ebb9@byu.net>
41350             Bruno Haible  <bruno@clisp.org>
41351
41352         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
41353         invocations.
41354         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41355
41356 2009-05-21  Eric Blake  <ebb9@byu.net>
41357             Bruno Haible  <bruno@clisp.org>
41358
41359         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
41360         include_next. Fix of 2008-11-20 commit.
41361         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
41362         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
41363         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
41364         NEXT_MATH_H.
41365         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
41366         instead of NEXT_MATH_H.
41367
41368 2009-05-21  Bruno Haible  <bruno@clisp.org>
41369
41370         Avoid redefinition warnings for SIZE_MAX.
41371         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
41372         Reported by Simon Josefsson.
41373
41374 2009-05-21  Bruno Haible  <bruno@clisp.org>
41375
41376         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
41377         AC_CACHE_VAL.
41378
41379 2009-05-20  Bruno Haible  <bruno@clisp.org>
41380
41381         Make zeroptr.h work on mingw.
41382         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
41383         mprotect.
41384         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
41385         * modules/memchr2-tests (configure.ac): Likewise.
41386         * modules/memcmp-tests (configure.ac): Likewise.
41387         * modules/memmem-tests (configure.ac): Likewise.
41388         * modules/memrchr-tests (configure.ac): Likewise.
41389         Reported by Simon Josefsson.
41390
41391 2009-05-20  Simon Josefsson  <simon@josefsson.org>
41392
41393         * tests/test-glob.c: Include string.h for strcmp prototype.
41394
41395 2009-05-20  Simon Josefsson  <simon@josefsson.org>
41396
41397         * modules/getdelim (Depends-on): Add explicit stdint, although it
41398         was implicitly already pulled in via realloc-posix.
41399         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
41400
41401 2009-05-20  Simon Josefsson  <simon@josefsson.org>
41402
41403         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
41404         G. Christensen" <tgc@jupiterrise.com>.
41405         * m4/sys_socket_h.m4: Check for sa_family_t.
41406         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
41407         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
41408         * tests/test-sys_socket.c: Check that sa_family_t works.
41409
41410 2009-05-18  Eric Blake  <ebb9@byu.net>
41411
41412         maint.mk: allow gnulib_dir in VPATH build
41413         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
41414
41415 2009-05-15  Jim Meyering  <meyering@redhat.com>
41416
41417         maint.mk: Give gnulib_dir a default definition.
41418         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
41419         Thus, most packages no longer need to specify this variable in cfg.mk
41420
41421 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
41422
41423         rename.m4: fix typos that would make non-mingw cross-configure fail
41424         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
41425
41426 2009-05-13  Eric Blake  <ebb9@byu.net>
41427
41428         mmap-anon: avoid out-of-order autoconf expansion
41429         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
41430         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
41431         * modules/memchr-tests (Depends-on): Add extensions.
41432         * modules/memchr2-tests (Depends-on): Add extensions.
41433         * modules/memcmp-tests (Depends-on): Add extensions.
41434         * modules/memmem-tests (Depends-on): Add extensions.
41435         * modules/memrchr-tests (Depends-on): Add extensions.
41436
41437 2009-05-13  Bruno Haible  <bruno@clisp.org>
41438
41439         Make some tests ISO C 99 compliant.
41440         * tests/zerosize-ptr.h: New file.
41441         * tests/test-memchr.c: Include zerosize-ptr.h.
41442         (main): Use a zero-size object pointer instead of NULL.
41443         * tests/test-memchr2.c: Include zerosize-ptr.h.
41444         (main): Use a zero-size object pointer instead of NULL.
41445         * tests/test-memcmp.c: Include zerosize-ptr.h.
41446         (main): Use a zero-size object pointer instead of NULL.
41447         * tests/test-memmem.c: Include zerosize-ptr.h.
41448         (main): Use a zero-size object pointer instead of NULL.
41449         * tests/test-memrchr.c: Include zerosize-ptr.h.
41450         (main): Use a zero-size object pointer instead of NULL.
41451         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
41452         m4/mmap-anon.m4.
41453         (Depends-on): Add getpagesize.
41454         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41455         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
41456         m4/mmap-anon.m4.
41457         (Depends-on): Add getpagesize.
41458         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41459         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
41460         m4/mmap-anon.m4.
41461         (Depends-on): Add getpagesize.
41462         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41463         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
41464         m4/mmap-anon.m4.
41465         (Depends-on): Add getpagesize.
41466         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41467         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
41468         m4/mmap-anon.m4.
41469         (Depends-on): Add getpagesize.
41470         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41471
41472 2009-05-12  Bruno Haible  <bruno@clisp.org>
41473
41474         Tests for module 'alignof'.
41475         * modules/alignof-tests: New file.
41476         * tests/test-alignof.c: New file.
41477
41478 2009-05-12  Bruno Haible  <bruno@clisp.org>
41479
41480         Fix alignof macro.
41481         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
41482         vendor compilers that are always correct.
41483
41484 2009-05-12  Bruno Haible  <bruno@clisp.org>
41485
41486         Make the MAP_ANONYMOUS detection work on HP-UX 11.
41487         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
41488         not whether its fully works.
41489
41490 2009-05-12  Bruno Haible  <bruno@clisp.org>
41491
41492         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
41493
41494 2009-05-12  Jim Meyering  <meyering@redhat.com>
41495
41496         * top/maint.mk: Adjust backslash alignment.
41497
41498 2009-05-11  Simon Josefsson  <simon@josefsson.org>
41499
41500         * top/maint.mk: Make $(srcdir)/build-aux configurable.
41501
41502 2009-05-11  Eric Blake  <ebb9@byu.net>
41503
41504         argp: avoid undefined behavior
41505         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
41506         macros.
41507
41508 2009-05-08  Simon Josefsson  <simon@josefsson.org>
41509
41510         * tests/test-vc-list-files-git.sh: Do git config of user.email and
41511         user.name to prevent git commit from complaining.
41512
41513 2009-05-10  Bruno Haible  <bruno@clisp.org>
41514
41515         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
41516         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
41517         it rewrites every file name only once.
41518         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
41519
41520 2009-05-08  Bruno Haible  <bruno@clisp.org>
41521
41522         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
41523         instead of 'max'.
41524
41525 2009-05-08  Simon Josefsson  <simon@josefsson.org>
41526
41527         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
41528         sockaddr_storage test.
41529
41530 2009-05-07  Simon Josefsson  <simon@josefsson.org>
41531
41532         * modules/sys_socket (Makefile.am): Substitute
41533         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
41534         * m4/sys_socket_h.m4: Check for sockaddr_storage.
41535         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
41536         * tests/test-sys_socket.c: Check sockaddr_storage.
41537
41538 2009-05-08  Bruno Haible  <bruno@clisp.org>
41539
41540         New module 'alignof'.
41541         * lib/alignof.h: New file.
41542         * modules/alignof: New file.
41543
41544 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41545             Bruno Haible  <bruno@clisp.org>
41546
41547         Fix test-file-has-acl on FreeBSD.
41548         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
41549         mask is implicitly added.
41550         * tests/test-file-has-acl.c: Include <signal.h>.
41551         (main): Terminate the test after 5 seconds.
41552         * modules/acl-tests (configure.ac): Check for alarm function.
41553
41554 2009-05-04  Bruno Haible  <bruno@clisp.org>
41555
41556         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
41557         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
41558         * modules/errno (configure.ac): Drop AC_REQUIRE.
41559         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
41560         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
41561
41562 2009-05-04  Simon Josefsson  <simon@josefsson.org>
41563
41564         * modules/glob-tests: New module.
41565         * tests/test-glob.c: Add.
41566
41567 2009-05-04  Simon Josefsson  <simon@josefsson.org>
41568
41569         * modules/fnmatch-tests: New module.
41570         * tests/test-fnmatch.c: Add.
41571
41572 2009-05-04  Eric Blake  <ebb9@byu.net>
41573
41574         maint: make the new no-submodule-changes rule VPATH-safe
41575         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
41576
41577 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41578             Bruno Haible  <bruno@clisp.org>
41579
41580         acl: Fix infinite loop on FreeBSD.
41581         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
41582         of return value from acl_get_entry.
41583         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
41584         Likewise.
41585
41586 2009-05-03  Bruno Haible  <bruno@clisp.org>
41587
41588         * lib/acl-internal.h (acl_entries): Clarify return value.
41589         * lib/acl_entries.c (acl_entries): Likewise.
41590
41591 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41592
41593         Bug fix in acl module.
41594         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
41595
41596 2009-05-03  Bruno Haible  <bruno@clisp.org>
41597
41598         Create gperf-generated file in the source dir, not in the build dir.
41599         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
41600         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
41601         * modules/unicase/locale-language (unicase/locale-languages.h):
41602         Likewise.
41603         * modules/unicase/special-casing (unicase/special-casing-table.h):
41604         Likewise.
41605         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
41606         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
41607         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
41608         Reported by Ralf Wildenhues.
41609
41610 2009-05-03  Bruno Haible  <bruno@clisp.org>
41611
41612         * modules/fnmatch (Description, configure.ac): Taken from
41613         fnmatch-posix.
41614         * modules/fnmatch-posix: Turn into a symbolic reference to the
41615         'fnmatch' module, and deprecate.
41616         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
41617
41618 2009-05-03  Bruno Haible  <bruno@clisp.org>
41619
41620         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
41621         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
41622         Reported by Ralf Wildenhues.
41623
41624 2009-05-04  Simon Josefsson  <simon@josefsson.org>
41625
41626         * m4/fnmatch.m4: Fix fnmatch re-define.
41627
41628 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41629
41630         priv-set: new module and tests; adapt write-any-file
41631         * lib/priv-set.c: New file.
41632         * lib/priv-set.h: New file.
41633         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
41634         * lib/write-any-file.c: Simplify by using priv-set module.
41635         * m4/priv-set.m4: New file.
41636         * modules/priv-set: New file.
41637         * modules/unlinkdir: Add dependency on priv-set module.
41638         * modules/write-any-file: Likewise.
41639
41640         Tests for module 'priv-set'.
41641         * modules/priv-set-tests: New file.
41642         * tests/test-priv-set.c: New file.
41643
41644 2009-05-03  Jim Meyering  <meyering@redhat.com>
41645             Bruno Haible  <bruno@clisp.org>
41646
41647         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
41648         use the converted UTF-8 variant of the name instead.
41649
41650 2009-05-03  Jim Meyering  <meyering@redhat.com>
41651
41652         tests: tighten some getdate tests
41653         * tests/test-getdate.c (main): Tighten tests: require equality,
41654         not just greater than.  Set TZ envvar to UTC0.
41655
41656 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
41657
41658         getdate: correctly interpret "next monday" when run on a Monday
41659         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
41660         that e.g., "next tues" (when run on a tuesday) results in a date
41661         that is one week in the future, and not today's date.
41662         I.e., add a week when the wday is the same as the current one.
41663         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
41664         and earlier by Martin Bernreuther and Jan Minář.
41665         * tests/test-getdate.c (main): Check that "next DAY" is always in
41666         the future and that "last DAY" is always in the past.
41667
41668 2009-05-02  Jim Meyering  <meyering@redhat.com>
41669
41670         build: ensure that a release build fails when a submodule is unclean
41671         * top/maint.mk (no-submodule-changes): New rule.
41672         (alpha beta major): Depend on it.
41673
41674 2009-05-02  Bruno Haible  <bruno@clisp.org>
41675
41676         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
41677         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
41678         shell variable gl_fnmatch_required to detect which variant is
41679         requested.
41680         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
41681         gl_FUNC_FNMATCH_POSIX.
41682         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
41683         exclude fnmatch-posix.
41684
41685 2009-05-02  Bruno Haible  <bruno@clisp.org>
41686
41687         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
41688         * modules/mbsrtowcs (License): Change to LGPLv2+.
41689         * modules/strnlen1 (License): Likewise.
41690         Reported by Simon Josefsson.
41691
41692 2009-05-02  Bruno Haible  <bruno@clisp.org>
41693
41694         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
41695         "cross".
41696         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
41697         gnulib-tool was called with option --source-base=lib.
41698
41699 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41700
41701         Use automake *-local hooks without commands, for extensibility.
41702         * modules/localcharset (Makefile.am): Rename install-exec-local
41703         rule to install-exec-localcharset, and make it a prerequisite of
41704         install-exec-local.  Likewise, rename the uninstall-local rule to
41705         uninstall-localcharset, and make it a prerequisite of the former.
41706
41707 2009-05-01  Bruno Haible  <bruno@clisp.org>
41708
41709         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
41710         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
41711         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
41712         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
41713         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
41714         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
41715         m4/locale-zh.m4, m4/codeset.m4.
41716
41717         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
41718         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
41719         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
41720         m4/locale-zh.m4.
41721
41722         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
41723         REPLACE_WCRTOMB if mbstate_t must be replaced.
41724         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
41725         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
41726
41727 2009-05-01  Bruno Haible  <bruno@clisp.org>
41728
41729         Avoid compiler warnings when redefining macros defined by <libintl.h>.
41730         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
41731         dngettext, dcngettext, textdomain, bindtextdomain,
41732         bind_textdomain_codeset): Undefine before redefining.
41733
41734 2009-04-30  Bruno Haible  <bruno@clisp.org>
41735
41736         Fix bug introduced on 2009-04-25.
41737         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
41738         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
41739         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
41740         is defined.
41741         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
41742         is defined.
41743         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
41744         is defined.
41745         Reported by Elbert_Pol <elbert.pol@gmail.com>.
41746
41747 2009-04-28  Bruno Haible  <bruno@clisp.org>
41748
41749         Comment tweaks.
41750         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
41751         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
41752         * lib/unicase.h (u*_casexfrm): Likewise.
41753         Reported by Paolo Bonzini.
41754
41755 2009-04-28  Bruno Haible  <bruno@clisp.org>
41756
41757         Fix a compilation error.
41758         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
41759         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41760         Reported by Jim Meyering.
41761
41762 2009-04-27  Bruno Haible  <bruno@clisp.org>
41763
41764         New module 'libunistring'.
41765         * modules/libunistring: New file.
41766         * m4/libunistring.m4: New file.
41767         * MODULES.html.sh (Unicode string functions): Add it.
41768
41769 2009-04-27  Eric Blake  <ebb9@byu.net>
41770
41771         maint.mk: allow package-specific header to provide <config.h>
41772         * top/maint.mk (sc_require_config_h): New variable.
41773         (sc_require_config_h, sc_require_config_h_first): Use it.
41774
41775 2009-04-27  Simon Josefsson  <simon@josefsson.org>
41776
41777         * top/maint.mk (sc_avoid_if_before_free): Except
41778         useless-if-before-free script.
41779
41780 2009-04-27  Eric Blake  <ebb9@byu.net>
41781
41782         maintainer-makefile: depend on all required helper scripts
41783         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
41784         useless-if-before-free.
41785         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
41786         version, rather than assuming gnulib checkout is available.
41787         Reported by Simen Josefsson.
41788
41789 2009-04-26  Bruno Haible  <bruno@clisp.org>
41790
41791         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
41792         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
41793         "../" or "..".
41794
41795 2009-04-26  Bruno Haible  <bruno@clisp.org>
41796
41797         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
41798         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
41799         AC_LIB_HAVE_LINKFLAGS.
41800
41801 2009-04-26  Bruno Haible  <bruno@clisp.org>
41802
41803         Simplify calling convention of u*_conv_from_encoding.
41804         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
41805         u32_conv_from_encoding): Expect a resultbuf argument and return the
41806         result directly as a pointer.
41807         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
41808         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
41809         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
41810         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
41811         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
41812         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
41813         Update.
41814         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
41815         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
41816         * lib/vasnprintf.c (VASNPRINTF): Update.
41817         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
41818         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
41819         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
41820         * NEWS: Mention the change.
41821
41822 2009-04-26  Bruno Haible  <bruno@clisp.org>
41823
41824         Simplify calling convention of u*_conv_to_encoding.
41825         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
41826         u32_conv_to_encoding): Expect a resultbuf argument and return the
41827         result directly as a pointer.
41828         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
41829         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
41830         freeing scaled_offsets if mem_iconveha failed.
41831         * lib/unicase/u-casexfrm.h (FUNC): Update.
41832         * lib/uninorm/u-normxfrm.h (FUNC): Update.
41833         * lib/vasnprintf.c (VASNPRINTF): Update.
41834         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
41835         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
41836         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
41837         * NEWS: Mention the change.
41838
41839 2009-04-26  Bruno Haible  <bruno@clisp.org>
41840
41841         Avoid test failures on AIX and OSF/1.
41842         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
41843         malloc(0).
41844         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
41845         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
41846         Likewise.
41847         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
41848         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
41849         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
41850         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
41851         * doc/posix-functions/malloc.texi: Document the portability problem
41852         related to malloc(0).
41853
41854 2009-04-26  Bruno Haible  <bruno@clisp.org>
41855
41856         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
41857         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
41858         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
41859
41860 2009-04-25  Bruno Haible  <bruno@clisp.org>
41861
41862         Avoid link error when creating a namespace clean library.
41863         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
41864         as macro with arguments if already defined as an alias.
41865         * lib/signbitf.c (gl_signbitf): Don't undefine.
41866         * lib/signbitd.c (gl_signbitd): Don't undefine.
41867         * lib/signbitl.c (gl_signbitl): Don't undefine.
41868
41869 2009-04-25  Jim Meyering  <meyering@redhat.com>
41870
41871         vc-list-files: fix another quoting bug
41872         * build-aux/vc-list-files: Avoid sed backslash expansion
41873         of pathological directory names.
41874
41875 2009-04-25  Eric Blake  <ebb9@byu.net>
41876
41877         vc-list-files: fix shell quoting error
41878         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
41879         timestamp.
41880
41881 2009-04-25  Jim Meyering  <meyering@redhat.com>
41882
41883         vc-list-files: restore lost functionality with subdir argument
41884         * build-aux/vc-list-files: When given a non-"." sub-directory
41885         argument, substitute the $dir/ prefix back onto each resulting name.
41886         Otherwise, coreutils' root_tests check would fail.
41887
41888 2009-04-24  Eric Blake  <ebb9@byu.net>
41889
41890         vc-list-files: ignore git symlinks
41891         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
41892         than ls-files, to ignore git symlinks.
41893
41894         maint.mk: import improvements from m4
41895         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
41896         (move_if_change): Delete unused macro.
41897         (news-date-check, vc-diff-check): Support VPATH builds.
41898         (announcement): Likewise.  Split --bootstrap-tools list...
41899         (boostrap-tools): ...into separate list, which can be overridden
41900         in cfg.mk.
41901         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
41902         requiring dependency on useless-if-before-free module.
41903         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
41904         Support VPATH builds.
41905
41906 2009-04-24  Jim Meyering  <meyering@redhat.com>
41907
41908         maint.mk: remove coreutils-specific rules and variables
41909         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
41910         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
41911         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
41912
41913         maint.mk: remove obsolete rule
41914         * top/maint.mk (rel-check): Remove rule.
41915         (WGET, WGETFLAGS): Remove now-unused variables.
41916
41917 2009-04-24  Simon Josefsson  <simon@josefsson.org>
41918
41919         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
41920         consistency.
41921
41922         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
41923         '$(PATH_SEPARATOR)' instead of ':'.
41924
41925 2009-04-24  Simon Josefsson  <simon@josefsson.org>
41926
41927         * lib/getopt1.c (main): Use 'const' for static array.
41928
41929 2009-04-24  Simon Josefsson  <simon@josefsson.org>
41930
41931         * top/maint.mk: Sync with coreutils.
41932         * NEWS: Explain incompatibilities.
41933
41934 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41935             Bruno Haible  <bruno@clisp.org>
41936
41937         Fix cross-compilation results.
41938         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
41939         statement, as third argument of AC_TRY_RUN.
41940         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
41941         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
41942         Likewise.
41943         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
41944         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
41945         Likewise.
41946         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
41947         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
41948         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
41949
41950 2009-04-20  Bruno Haible  <bruno@clisp.org>
41951
41952         Avoid test failure on mingw.
41953         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
41954
41955 2009-04-20  Bruno Haible  <bruno@clisp.org>
41956
41957         Avoid compilation error on mingw.
41958         * modules/localename-tests (Depends-on): Add locale.
41959
41960 2009-04-19  Bruno Haible  <bruno@clisp.org>
41961
41962         Support for building a shared library on Windows platforms.
41963         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
41964         (main): Test the presence of UNINORM_NFC here.
41965         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
41966         (main): Test the presence of UNINORM_NFD here.
41967         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
41968         (main): Test the presence of UNINORM_NFKC here.
41969         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
41970         (main): Test the presence of UNINORM_NFKD here.
41971
41972 2009-04-19  Bruno Haible  <bruno@clisp.org>
41973
41974         Avoid a compiler warning.
41975         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
41976         Change type of variable 'sequence'.
41977
41978 2009-04-19  Bruno Haible  <bruno@clisp.org>
41979
41980         * modules/configmake (Makefile.am): When the contents of configmake.h
41981         does not change, arrange to preserve its modification time.
41982
41983 2009-04-17  Simon Josefsson  <simon@josefsson.org>
41984
41985         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
41986         gettext domain.
41987
41988 2009-04-16  Jim Meyering  <meyering@redhat.com>
41989
41990         useless-if-before-free: improve conversion code
41991         * build-aux/useless-if-before-free: Adjust code-in-comment to match
41992         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
41993
41994 2009-04-14  Bruno Haible  <bruno@clisp.org>
41995
41996         * modules/fcntl (Depends-on): Add extensions.
41997         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
41998
41999 2009-04-12  Ben Pfaff  <blp@gnu.org>
42000
42001         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
42002         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
42003
42004 2009-03-20  Ben Pfaff  <blp@gnu.org>
42005
42006         Make rename replace existing destinations on Windows.
42007         * m4/rename.m4: Add test for Mingw.
42008         * lib/rename.c: Add rename replacement that uses MoveFileEx with
42009         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
42010         * doc/posix-functions/rename.texi: Document.
42011
42012 2009-04-10  Bruno Haible  <bruno@clisp.org>
42013
42014         New include file "iconveh.h".
42015         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
42016         * lib/striconveh.h: Include it.
42017         (enum iconv_ilseq_handler): Remove definition.
42018         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
42019         striconveh.h.
42020         * lib/striconveha.c: Include striconveh.h.
42021         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
42022         * modules/striconveh (Files): Add lib/iconveh.h.
42023         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
42024         lib/striconveh.h.
42025
42026 2009-04-10  Bruno Haible  <bruno@clisp.org>
42027
42028         * lib/uniconv.h: Update comment.
42029
42030 2009-04-10  Bruno Haible  <bruno@clisp.org>
42031
42032         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
42033         always.
42034         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
42035         * lib/unistr/u16-mbtouc-aux.c: Likewise.
42036         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
42037         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
42038         "unistring-notinline.h", so that the function gets defined always.
42039         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
42040         * lib/unistr/u8-uctomb.c: Likewise.
42041         * lib/unistr/u16-mbtouc.c: Likewise.
42042         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
42043         * lib/unistr/u16-uctomb.c: Likewise.
42044         * lib/unistr/u32-mbtouc.c: Likewise.
42045         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
42046         * lib/unistr/u32-uctomb.c: Likewise.
42047
42048 2009-04-10  Bruno Haible  <bruno@clisp.org>
42049
42050         Mark 'utime' obsolete.
42051         * modules/utime (Status, Notice): New sections.
42052         Suggested by Jim Meyering.
42053
42054         Fix cross-compile guess for utime test.
42055         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
42056         autoconf.
42057         * doc/posix-functions/utime.texi: Give more precisions.
42058         Reported by Jan <ipif@ymail.com>.
42059
42060 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
42061
42062         filevercmp: correct today's change
42063         * lib/filevercmp.c: Also handle coreutils' test inputs.
42064         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
42065
42066         Fix regression in 'filevercmp' module. Thanks Sven Joachim
42067         for reporting it.
42068         * lib/filevercmp.c: Special handle for "", "." and "..".
42069         * tests/test-filevercmp.c: Enlarge the set suite.
42070
42071 2009-04-07  Jim Meyering  <meyering@redhat.com>
42072
42073         useless-if-before-free: show how to remove braced useless free, too
42074         * build-aux/useless-if-before-free: still only in a comment, though.
42075
42076 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
42077
42078         maint.mk: import changes to syntax-check macros from coreutils
42079         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
42080         Use them in the relevant macros.
42081
42082 2009-04-06  Bruno Haible  <bruno@clisp.org>
42083
42084         Fix unportable use of bit-fields.
42085         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
42086         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
42087         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
42088
42089 2009-04-06  Bruno Haible  <bruno@clisp.org>
42090
42091         Avoid test failures on AIX and OSF/1.
42092         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
42093         that malloc(0) = NULL.
42094         * tests/unicase/test-u8-tolower.c (check): Likewise.
42095         * tests/unicase/test-u8-totitle.c (check): Likewise.
42096         * tests/unicase/test-u8-toupper.c (check): Likewise.
42097         * tests/unicase/test-u16-casefold.c (check): Likewise.
42098         * tests/unicase/test-u16-tolower.c (check): Likewise.
42099         * tests/unicase/test-u16-totitle.c (check): Likewise.
42100         * tests/unicase/test-u16-toupper.c (check): Likewise.
42101         * tests/unicase/test-u32-casefold.c (check): Likewise.
42102         * tests/unicase/test-u32-tolower.c (check): Likewise.
42103         * tests/unicase/test-u32-totitle.c (check): Likewise.
42104         * tests/unicase/test-u32-toupper.c (check): Likewise.
42105         * tests/uninorm/test-u8-nfc.c (check): Likewise.
42106         * tests/uninorm/test-u8-nfd.c (check): Likewise.
42107         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
42108         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
42109         * tests/uninorm/test-u16-nfc.c (check): Likewise.
42110         * tests/uninorm/test-u16-nfd.c (check): Likewise.
42111         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
42112         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
42113         * tests/uninorm/test-u32-nfc.c (check): Likewise.
42114         * tests/uninorm/test-u32-nfd.c (check): Likewise.
42115         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
42116         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
42117
42118 2009-04-05  Bruno Haible  <bruno@clisp.org>
42119
42120         Work around an autoconf limitation.
42121         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
42122         comment line if it would be longer than 3 KB.
42123
42124 2009-04-05  Bruno Haible  <bruno@clisp.org>
42125
42126         Avoid test failure with libiconv-1.13.
42127         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
42128         of the expected test results.
42129
42130 2009-04-05  Bruno Haible  <bruno@clisp.org>
42131
42132         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
42133         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
42134         that it should be installed.
42135
42136 2009-04-05  Bruno Haible  <bruno@clisp.org>
42137
42138         * gnulib-tool: New option --copy-file.
42139         (func_usage): Document it.
42140         (func_dest_tmpfilename): Moved out of func_import.
42141         (func_add_file, func_update_file): New functions, extracted from
42142         func_import.
42143         (func_import): Update.
42144
42145 2009-04-05  Karl Berry  <karl@gnu.org>
42146
42147         * README: prominently mention gnulib-tool.
42148         Rearrange sections so getting the code is near the top.
42149
42150 2009-04-05  Bruno Haible  <bruno@clisp.org>
42151
42152         * lib/unicase.h: Mention u*_cmp2.
42153         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
42154         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
42155         * lib/unicase/ulc-casecmp.c: Likewise.
42156         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
42157         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
42158         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
42159         unistr/u8-cmp.
42160         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
42161         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
42162         unistr/u16-cmp.
42163         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
42164         unistr/u32-cmp.
42165
42166         * lib/uninorm.h: Mention u*_cmp2.
42167         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
42168         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
42169         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
42170         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
42171         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
42172         unistr/u8-cmp.
42173         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
42174         unistr/u16-cmp.
42175         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
42176         unistr/u32-cmp.
42177
42178         New module 'unistr/u32-cmp2'.
42179         * lib/unistr/u32-cmp2.c: New file.
42180         * modules/unistr/u32-cmp2: New file.
42181
42182         New module 'unistr/u16-cmp2'.
42183         * lib/unistr/u16-cmp2.c: New file.
42184         * modules/unistr/u16-cmp2: New file.
42185
42186         New module 'unistr/u8-cmp2'.
42187         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
42188         * lib/unistr/u8-cmp2.c: New file.
42189         * lib/unistr/u-cmp2.h: New file.
42190         * modules/unistr/u8-cmp2: New file.
42191
42192 2009-04-05  Bruno Haible  <bruno@clisp.org>
42193
42194         * lib/unictype.h (uc_property_is_valid): New macro.
42195         * tests/unictype/test-pr_byname.c (main): Use it.
42196
42197         * lib/unistr.h: Doc fixes.
42198         * lib/uniconv.h: Doc fixes.
42199         * lib/unictype.h: Doc fixes.
42200
42201 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
42202
42203         Port coreutils 7.2 to Solaris 8.
42204
42205         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
42206         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
42207         for Solaris 8.  This is a bit of a hack, as it means it's the
42208         caller's responsibility to add -lnsl if needed, but most likely it
42209         won't be needed since only getaddrinfo uses this and getaddrinfo
42210         isn't needed on Solaris 8.
42211
42212         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
42213         problem to Solaris 8 encountered with coreutils 7.2, which
42214         resulted in a message "fnmatch.c:292: warning: passing argument 4
42215         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
42216         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
42217
42218 2009-04-03  Simon Josefsson  <simon@josefsson.org>
42219
42220         * m4/ld-version-script.m4: Add FIXME comment.
42221
42222 2009-04-02  Simon Josefsson  <simon@josefsson.org>
42223
42224         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
42225         SOVERSION variable.
42226
42227 2009-04-02  Bruno Haible  <bruno@clisp.org>
42228
42229         * Makefile (info, html, dvi, pdf): Combine the rules.
42230         Suggested by Jim Meyering.
42231
42232 2009-04-01  Bruno Haible  <bruno@clisp.org>
42233
42234         * Makefile (info, html, dvi, pdf): New targets.
42235         Reported by Reuben Thomas <rrt@sc3d.org>.
42236
42237 2009-04-01  Bruno Haible  <bruno@clisp.org>
42238
42239         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
42240         can be put into PATH.
42241         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
42242
42243 2009-04-01  Bruno Haible  <bruno@clisp.org>
42244
42245         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
42246
42247 2009-04-01  Bruno Haible  <bruno@clisp.org>
42248
42249         Rename module 'visibility'.
42250         * modules/lib-symbol-visibility: Renamed from modules/visibility.
42251         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
42252         * doc/gnulib.texi: Update.
42253         * MODULES.html.sh (Misc): Update.
42254         * NEWS: Mention the change.
42255
42256 2009-04-01  Simon Josefsson  <simon@josefsson.org>
42257
42258         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
42259         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
42260         Eric Blake <ebb9@byu.net> for review.
42261         * MODULES.html.sh: Add lib-msvc-compat.
42262         * doc/gnulib.texi: Link to new section.
42263         * m4/ld-output-def.m4: New file.
42264         * doc/ld-output-def.texi: New file.
42265
42266 2009-04-01  Simon Josefsson  <simon@josefsson.org>
42267
42268         Rename ld-version-script to lib-symbol-versions.  Suggested by
42269         Bruno Haible <bruno@clisp.org>.
42270         * modules/ld-version-script: Renamed to lib-symbol-versions.
42271         * doc/ld-version-script.texi: Fix module name.
42272         * MODULES.html.sh: Add lib-symbol-versions.
42273
42274 2009-03-31  Simon Josefsson  <simon@josefsson.org>
42275
42276         * modules/u64-tests: New file.
42277         * tests/test-u64.c: New file.
42278
42279 2009-03-04  Simon Josefsson  <simon@josefsson.org>
42280
42281         * MODULES.html.sh: Mention u64.
42282         * modules/u64: New module.
42283         * modules/crypto/sha512: Depend on u64 module instead of providing
42284         u64.h.
42285
42286 2009-03-27  Eric Blake  <ebb9@byu.net>
42287
42288         test-strerror: make debugging EAI_SYSTEM easier
42289         * modules/getaddrinfo-tests (Depends-on): Add strerror.
42290         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
42291         failure was EAI_SYSTEM.
42292
42293 2009-03-25  Bruno Haible  <bruno@clisp.org>
42294
42295         Fix a problem with --enable-relocatable on Solaris 7.
42296         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
42297         since 2008-02-24.
42298
42299 2009-03-25  Eric Blake  <ebb9@byu.net>
42300
42301         test-sockets: avoid gcc warning
42302         * tests/test-sockets.c (main): Silence compiler warning.
42303
42304 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
42305
42306         New modules nproc, pthread, contributed by Glen Lenker.
42307
42308         * MODULES.html.sh: Add pthread, nproc.
42309         * lib/nproc.c: New file.
42310         * lib/nproc.h: New file.
42311         * lib/pthread.in.h: New file.
42312         * m4/pthread.m4: New file.
42313         * modules/nproc: New file.
42314         * modules/pthread: New file.
42315
42316 2009-03-24  Simon Josefsson  <simon@josefsson.org>
42317
42318         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
42319         New variable.
42320
42321 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
42322
42323         filevercmp: handle simple~ and numbered.~3~ backup suffixes
42324         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
42325         * tests/test-filevercmp.c: Add tests for backup suffixes.
42326
42327 2009-03-24  Simon Josefsson  <simon@josefsson.org>
42328
42329         * modules/stdlib (Depends-on): Add stdint, needed when defining
42330         struct random_data on, for example, HP-UX 10.20.  Reported by
42331         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42332
42333 2009-03-24  Simon Josefsson  <simon@josefsson.org>
42334
42335         * lib/readline.c (readline): Call fflush on stdout after printing
42336         prompt.
42337
42338 2009-03-20  Bruno Haible  <bruno@clisp.org>
42339
42340         Remove dependency from 'close' module to -lws2_32 on native Windows.
42341         * lib/close-hook.h: New file.
42342         * lib/close-hook.c: New file.
42343         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
42344         w32sock.h.
42345         (_gl_close_fd_maybe_socket): Remove function.
42346         (rpl_close): Invoke execute_all_close_hooks instead of
42347         _gl_close_fd_maybe_socket.
42348         * lib/sockets.c: Include close-hook.h, w32sock.h.
42349         (close_fd_maybe_socket): New function, essentially from lib/close.c.
42350         (close_sockets_hook): New variable.
42351         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
42352         (gl_sockets_cleanup): Unregister it.
42353         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
42354         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
42355         * modules/close-hook: New file.
42356         * modules/close (Files): Remove lib/w32sock.h.
42357         (Depends-on): Add close-hook.
42358         (Link): Remove section.
42359         * modules/sockets (Files): Add lib/w32sock.h.
42360         (Depends-on): Add close-hook.
42361         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
42362         invocation.
42363         * NEWS: Mention that LIB_CLOSE is gone.
42364
42365 2009-03-23  Eric Blake  <ebb9@byu.net>
42366
42367         signal-tests: test previous patch
42368         * tests/test-signal.c: New file.
42369         * modules/signal-tests: Likewise.
42370
42371         signal.h: always support 'volatile sig_atomic_t'
42372         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
42373         (gl_SIGNAL_H_DEFAULTS): Add a default.
42374         * modules/signal (Makefile.am): Substitute if needed.
42375         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
42376         users can blindly add volatile.
42377         * doc/posix-headers/signal.texi (signal.h): Document it.
42378         Reported by Matthew Woehlke.
42379
42380 2009-03-23  Jim Meyering  <meyering@redhat.com>
42381
42382         pathmax: PATH_MAX: use pathconf only when available
42383         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
42384         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
42385         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
42386         This avoids a link failure in a PSP cross-compilation environment
42387         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
42388
42389         * lib/vasnprintf.c (divide): Fix typo in comment.
42390
42391 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42392
42393         * gnulib-tool (func_filter_filelist): Fix comment.
42394
42395 2009-03-20  Bruno Haible  <bruno@clisp.org>
42396
42397         Make sockets.h self-contained.
42398         * lib/sockets.c: Include sockets.h first.
42399         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
42400
42401 2009-03-19  Eric Blake  <ebb9@byu.net>
42402
42403         doc: mention more functions added in cygwin 1.7.0
42404         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
42405         addition.
42406         * doc/posix-functions/log2f.texi: Likewise.
42407
42408 2009-03-19  Jim Meyering  <meyering@redhat.com>
42409
42410         fsusage: avoid syntax error due to statement-before-declaration
42411         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
42412         after all declarations.  Reported by Matthew Woehlke in
42413         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
42414
42415 2009-03-18  Eric Blake  <ebb9@byu.net>
42416
42417         build-aux/compile: sync from automake
42418         * build-aux/compile: New file, from automake.
42419         * config/srclist.txt: Mention build-aux/compile.
42420
42421 2009-03-17  Bruno Haible  <bruno@clisp.org>
42422
42423         * lib/git-merge-changelog.c: Fix typo in comment.
42424         Reported by Reuben Thomas <rrt@sc3d.org>.
42425
42426 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
42427
42428         * m4/regex.m4: update and improve help for
42429         --without-included-regex.
42430
42431 2009-03-17  Simon Josefsson  <simon@josefsson.org>
42432
42433         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
42434         failure on missing include files.
42435
42436 2009-03-17  Eric Blake  <ebb9@byu.net>
42437
42438         doc: mention more functions added in cygwin 1.7.0
42439         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
42440         addition.
42441         * doc/posix-functions/fwscanf.texi: Likewise.
42442         * doc/posix-functions/swprintf.texi: Likewise.
42443         * doc/posix-functions/swscanf.texi: Likewise.
42444         * doc/posix-functions/vfwprintf.texi: Likewise.
42445         * doc/posix-functions/vfwscanf.texi: Likewise.
42446         * doc/posix-functions/vswprintf.texi: Likewise.
42447         * doc/posix-functions/vswscanf.texi: Likewise.
42448         * doc/posix-functions/vwprintf.texi: Likewise.
42449         * doc/posix-functions/vwscanf.texi: Likewise.
42450         * doc/posix-functions/wcscasecmp.texi: Likewise.
42451         * doc/posix-functions/wcsdup.texi: Likewise.
42452         * doc/posix-functions/wcsftime.texi: Likewise.
42453         * doc/posix-functions/wcsncasecmp.texi: Likewise.
42454         * doc/posix-functions/wprintf.texi: Likewise.
42455         * doc/posix-functions/wscanf.texi: Likewise.
42456         * doc/glibc-functions/gethostbyname2.texi: Likewise.
42457
42458 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42459
42460         maint.mk: really add $(AM_MAKEFLAGS)
42461         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
42462         was inadvertently omitted in the last commit.
42463         Spotted by Bruno Haible.
42464
42465         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
42466         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
42467         $(AM_MAKEFLAGS)' rather than plain `make'.
42468
42469         gnulib-tool: execute $MAKE not make
42470         * gnulib-tool: Default $MAKE to 'make'.
42471         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
42472         than make.  Initialize $MAKE in the do-autobuild script.
42473
42474         gnulib-tool: use $MAKE not make in generated files
42475         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
42476         make, in generated files.  Initialize $MAKE in the do-autobuild
42477         script.
42478
42479         * top/GNUmakefile (_have-git-version-gen): Fix typo.
42480
42481         GNUmakefile: disable parallelism only for multiple, recursive targets
42482         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
42483         additions in the Makefile.
42484         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
42485         by Automake.
42486         (.NOTPARALLEL): Only disable parallel builds if multiple targets
42487         are listed on the command line and at least one of them is
42488         listed in $(ALL_RECURSIVE_TARGETS).
42489
42490 2009-03-14  Bruno Haible  <bruno@clisp.org>
42491
42492         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
42493         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
42494         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
42495         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
42496         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
42497         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
42498         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
42499         unistr/u8-uctomb.
42500         * modules/unistr/u8-strchr (Depends-on): Likewise.
42501         * modules/unistr/u8-strrchr (Depends-on): Likewise.
42502         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
42503         unistr/u16-uctomb.
42504         * modules/unistr/u16-strchr (Depends-on): Likewise.
42505         * modules/unistr/u16-strrchr (Depends-on): Likewise.
42506
42507 2009-03-12  Bruno Haible  <bruno@clisp.org>
42508
42509         Work around select() bug on Interix 3.5.
42510         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
42511         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
42512         * m4/select.m4: New file.
42513         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
42514         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
42515         * modules/select (Files): Add m4/select.m4.
42516         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
42517         * modules/nanosleep (Depends-on): Add select.
42518         * modules/poll (Depends-on): Likewise.
42519         * doc/posix-functions/select.texi: Mention the Interix bug.
42520         Reported by Markus Duft <mduft@gentoo.org>.
42521
42522         * lib/select.c: Renamed from lib/winsock-select.c.
42523         * modules/select (Files): Add lib/select.c, remove
42524         lib/winsock-select.c.
42525         (configure.ac): Update.
42526
42527 2009-03-12  Jim Meyering  <meyering@redhat.com>
42528
42529         avoid gcc warnings about unused macro definitions
42530         * lib/readtokens.c (STREQ): Remove unused definition.
42531         * lib/xmalloc.c (SIZE_MAX): Likewise.
42532         * lib/openat-die.c (N_): Likewise.
42533         * lib/mountlist.c (SIZE_MAX): Remove definition.
42534         Instead, include <stdint.h>.
42535         * lib/readutmp.c: Likewise.
42536         * modules/readutmp (Depends-on): Add stdint.
42537         * modules/mountlist (Depends-on): Add stdint.
42538         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
42539
42540 2009-03-10  Bruno Haible  <bruno@clisp.org>
42541
42542         Tests for module 'mbmemcasecoll'.
42543         * modules/mbmemcasecoll-tests: New file.
42544         * tests/test-mbmemcasecoll1.sh: New file.
42545         * tests/test-mbmemcasecoll2.sh: New file.
42546         * tests/test-mbmemcasecoll3.sh: New file.
42547         * tests/test-mbmemcasecoll.c: New file.
42548
42549         New module 'mbmemcasecoll'.
42550         * lib/mbmemcasecoll.h: New file.
42551         * lib/mbmemcasecoll.c: New file.
42552         * modules/mbmemcasecoll: New file.
42553
42554         * tests/test-mbmemcasecmp.h: New file, extracted from
42555         tests/test-mbmemcasecmp.c.
42556         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
42557         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
42558         (main): Update.
42559         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
42560
42561 2009-03-09  Bruno Haible  <bruno@clisp.org>
42562
42563         Tests for module 'mbmemcasecmp'.
42564         * modules/mbmemcasecmp-tests: New file.
42565         * tests/test-mbmemcasecmp1.sh: New file.
42566         * tests/test-mbmemcasecmp2.sh: New file.
42567         * tests/test-mbmemcasecmp3.sh: New file.
42568         * tests/test-mbmemcasecmp.c: New file.
42569
42570         New module 'mbmemcasecmp'.
42571         * lib/mbmemcasecmp.h: New file.
42572         * lib/mbmemcasecmp.c: New file.
42573         * modules/mbmemcasecmp: New file.
42574
42575 2009-03-09  Bruno Haible  <bruno@clisp.org>
42576
42577         Tests for module 'unicase/ulc-casecoll'.
42578         * modules/unicase/ulc-casecoll-tests: New file.
42579         * tests/unicase/test-ulc-casecoll1.sh: New file.
42580         * tests/unicase/test-ulc-casecoll2.sh: New file.
42581         * tests/unicase/test-ulc-casecoll.c: New file.
42582
42583         New module 'unicase/ulc-casecoll'.
42584         * lib/unicase.h (ulc_casecoll): New declaration.
42585         * lib/unicase/ulc-casecoll.c: New file.
42586         * modules/unicase/ulc-casecoll: New file.
42587
42588         New module 'unicase/ulc-casexfrm'.
42589         * lib/unicase.h (ulc_casexfrm): New declaration.
42590         * lib/unicase/ulc-casexfrm.c: New file.
42591         * modules/unicase/ulc-casexfrm: New file.
42592
42593 2009-03-09  Bruno Haible  <bruno@clisp.org>
42594
42595         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
42596         invocations.
42597
42598         * m4/mbscasecmp.m4: Remove file.
42599         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
42600         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
42601
42602         * m4/mbscasestr.m4: Remove file.
42603         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
42604         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
42605
42606         * m4/mbschr.m4: Remove file.
42607         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
42608         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
42609
42610         * m4/mbscspn.m4: Remove file.
42611         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
42612         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
42613
42614         * m4/mbslen.m4: Remove file.
42615         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
42616         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
42617
42618         * m4/mbsncasecmp.m4: Remove file.
42619         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
42620         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
42621
42622         * m4/mbsnlen.m4: Remove file.
42623         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
42624         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
42625
42626         * m4/mbspbrk.m4: Remove file.
42627         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
42628         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
42629
42630         * m4/mbspcasecmp.m4: Remove file.
42631         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
42632         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
42633
42634         * m4/mbsrchr.m4: Remove file.
42635         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
42636         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
42637
42638         * m4/mbssep.m4: Remove file.
42639         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
42640         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
42641
42642         * m4/mbsspn.m4: Remove file.
42643         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
42644         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
42645
42646         * m4/mbsstr.m4: Remove file.
42647         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
42648         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
42649
42650         * m4/mbstok_r.m4: Remove file.
42651         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
42652         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
42653
42654         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
42655
42656         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
42657         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
42658
42659         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
42660
42661 2009-03-08  Bruno Haible  <bruno@clisp.org>
42662
42663         Tests for module 'unicase/ulc-casecmp'.
42664         * modules/unicase/ulc-casecmp-tests: New file.
42665         * tests/unicase/test-ulc-casecmp1.sh: New file.
42666         * tests/unicase/test-ulc-casecmp2.sh: New file.
42667         * tests/unicase/test-ulc-casecmp.c: New file.
42668
42669         New module 'unicase/ulc-casecmp'.
42670         * lib/unicase.h (ulc_casecmp): New declaration.
42671         * lib/unicase/ulc-casecmp.c: New file.
42672         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
42673         'const SRC_UNIT *'.
42674         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
42675         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
42676         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
42677         * modules/unicase/ulc-casecmp: New file.
42678
42679         Tests for module 'unicase/u32-is-cased'.
42680         * modules/unicase/u32-is-cased-tests: New file.
42681         * tests/unicase/test-u32-is-cased.c: New file.
42682
42683         Tests for module 'unicase/u16-is-cased'.
42684         * modules/unicase/u16-is-cased-tests: New file.
42685         * tests/unicase/test-u16-is-cased.c: New file.
42686
42687         Tests for module 'unicase/u8-is-cased'.
42688         * modules/unicase/u8-is-cased-tests: New file.
42689         * tests/unicase/test-u8-is-cased.c: New file.
42690         * tests/unicase/test-is-cased.h: New file.
42691
42692         New module 'unicase/u32-is-cased'.
42693         * lib/unicase/u32-is-cased.c: New file.
42694         * modules/unicase/u32-is-cased: New file.
42695
42696         New module 'unicase/u16-is-cased'.
42697         * lib/unicase/u16-is-cased.c: New file.
42698         * modules/unicase/u16-is-cased: New file.
42699
42700         New module 'unicase/u8-is-cased'.
42701         * lib/unicase/u8-is-cased.c: New file.
42702         * lib/unicase/u-is-cased.h: New file.
42703         * modules/unicase/u8-is-cased: New file.
42704
42705         Tests for module 'unicase/u32-is-casefolded'.
42706         * modules/unicase/u32-is-casefolded-tests: New file.
42707         * tests/unicase/test-u32-is-casefolded.c: New file.
42708
42709         Tests for module 'unicase/u16-is-casefolded'.
42710         * modules/unicase/u16-is-casefolded-tests: New file.
42711         * tests/unicase/test-u16-is-casefolded.c: New file.
42712
42713         Tests for module 'unicase/u8-is-casefolded'.
42714         * modules/unicase/u8-is-casefolded-tests: New file.
42715         * tests/unicase/test-u8-is-casefolded.c: New file.
42716         * tests/unicase/test-is-casefolded.h: New file.
42717
42718         New module 'unicase/u32-is-casefolded'.
42719         * lib/unicase/u32-is-casefolded.c: New file.
42720         * modules/unicase/u32-is-casefolded: New file.
42721
42722         New module 'unicase/u16-is-casefolded'.
42723         * lib/unicase/u16-is-casefolded.c: New file.
42724         * modules/unicase/u16-is-casefolded: New file.
42725
42726         New module 'unicase/u8-is-casefolded'.
42727         * lib/unicase/u8-is-casefolded.c: New file.
42728         * modules/unicase/u8-is-casefolded: New file.
42729
42730         Tests for module 'unicase/u32-is-titlecase'.
42731         * modules/unicase/u32-is-titlecase-tests: New file.
42732         * tests/unicase/test-u32-is-titlecase.c: New file.
42733
42734         Tests for module 'unicase/u16-is-titlecase'.
42735         * modules/unicase/u16-is-titlecase-tests: New file.
42736         * tests/unicase/test-u16-is-titlecase.c: New file.
42737
42738         Tests for module 'unicase/u8-is-titlecase'.
42739         * modules/unicase/u8-is-titlecase-tests: New file.
42740         * tests/unicase/test-u8-is-titlecase.c: New file.
42741         * tests/unicase/test-is-titlecase.h: New file.
42742
42743         New module 'unicase/u32-is-titlecase'.
42744         * lib/unicase/u32-is-titlecase.c: New file.
42745         * modules/unicase/u32-is-titlecase: New file.
42746
42747         New module 'unicase/u16-is-titlecase'.
42748         * lib/unicase/u16-is-titlecase.c: New file.
42749         * modules/unicase/u16-is-titlecase: New file.
42750
42751         New module 'unicase/u8-is-titlecase'.
42752         * lib/unicase/u8-is-titlecase.c: New file.
42753         * modules/unicase/u8-is-titlecase: New file.
42754
42755         Tests for module 'unicase/u32-is-lowercase'.
42756         * modules/unicase/u32-is-lowercase-tests: New file.
42757         * tests/unicase/test-u32-is-lowercase.c: New file.
42758
42759         Tests for module 'unicase/u16-is-lowercase'.
42760         * modules/unicase/u16-is-lowercase-tests: New file.
42761         * tests/unicase/test-u16-is-lowercase.c: New file.
42762
42763         Tests for module 'unicase/u8-is-lowercase'.
42764         * modules/unicase/u8-is-lowercase-tests: New file.
42765         * tests/unicase/test-u8-is-lowercase.c: New file.
42766         * tests/unicase/test-is-lowercase.h: New file.
42767
42768         New module 'unicase/u32-is-lowercase'.
42769         * lib/unicase/u32-is-lowercase.c: New file.
42770         * modules/unicase/u32-is-lowercase: New file.
42771
42772         New module 'unicase/u16-is-lowercase'.
42773         * lib/unicase/u16-is-lowercase.c: New file.
42774         * modules/unicase/u16-is-lowercase: New file.
42775
42776         New module 'unicase/u8-is-lowercase'.
42777         * lib/unicase/u8-is-lowercase.c: New file.
42778         * modules/unicase/u8-is-lowercase: New file.
42779
42780         Tests for module 'unicase/u32-is-uppercase'.
42781         * modules/unicase/u32-is-uppercase-tests: New file.
42782         * tests/unicase/test-u32-is-uppercase.c: New file.
42783
42784         Tests for module 'unicase/u16-is-uppercase'.
42785         * modules/unicase/u16-is-uppercase-tests: New file.
42786         * tests/unicase/test-u16-is-uppercase.c: New file.
42787
42788         Tests for module 'unicase/u8-is-uppercase'.
42789         * modules/unicase/u8-is-uppercase-tests: New file.
42790         * tests/unicase/test-u8-is-uppercase.c: New file.
42791         * tests/unicase/test-is-uppercase.h: New file.
42792
42793         New module 'unicase/u32-is-uppercase'.
42794         * lib/unicase/u32-is-uppercase.c: New file.
42795         * modules/unicase/u32-is-uppercase: New file.
42796
42797         New module 'unicase/u16-is-uppercase'.
42798         * lib/unicase/u16-is-uppercase.c: New file.
42799         * modules/unicase/u16-is-uppercase: New file.
42800
42801         New module 'unicase/u8-is-uppercase'.
42802         * lib/unicase/u8-is-uppercase.c: New file.
42803         * modules/unicase/u8-is-uppercase: New file.
42804
42805         New module 'unicase/u32-is-invariant'.
42806         * lib/unicase/u32-is-invariant.c: New file.
42807         * modules/unicase/u32-is-invariant: New file.
42808
42809         New module 'unicase/u16-is-invariant'.
42810         * lib/unicase/u16-is-invariant.c: New file.
42811         * modules/unicase/u16-is-invariant: New file.
42812
42813         New module 'unicase/u8-is-invariant'.
42814         * lib/unicase/u8-is-invariant.c: New file.
42815         * lib/unicase/invariant.h: New file.
42816         * lib/unicase/u-is-invariant.h: New file.
42817         * modules/unicase/u8-is-invariant: New file.
42818
42819         Tests for module 'unicase/u32-casecoll'.
42820         * modules/unicase/u32-casecoll-tests: New file.
42821         * tests/unicase/test-u32-casecoll.c: New file.
42822
42823         Tests for module 'unicase/u16-casecoll'.
42824         * modules/unicase/u16-casecoll-tests: New file.
42825         * tests/unicase/test-u16-casecoll.c: New file.
42826
42827         Tests for module 'unicase/u8-casecoll'.
42828         * modules/unicase/u8-casecoll-tests: New file.
42829         * tests/unicase/test-u8-casecoll.c: New file.
42830
42831         New module 'unicase/u32-casecoll'.
42832         * lib/unicase/u32-casecoll.c: New file.
42833         * modules/unicase/u32-casecoll: New file.
42834
42835         New module 'unicase/u16-casecoll'.
42836         * lib/unicase/u16-casecoll.c: New file.
42837         * modules/unicase/u16-casecoll: New file.
42838
42839         New module 'unicase/u8-casecoll'.
42840         * lib/unicase/u8-casecoll.c: New file.
42841         * lib/unicase/u-casecoll.h: New file.
42842         * modules/unicase/u8-casecoll: New file.
42843
42844         New module 'unicase/u32-casexfrm'.
42845         * lib/unicase/u32-casexfrm.c: New file.
42846         * modules/unicase/u32-casexfrm: New file.
42847
42848         New module 'unicase/u16-casexfrm'.
42849         * lib/unicase/u16-casexfrm.c: New file.
42850         * modules/unicase/u16-casexfrm: New file.
42851
42852         New module 'unicase/u8-casexfrm'.
42853         * lib/unicase/u8-casexfrm.c: New file.
42854         * lib/unicase/u-casexfrm.h: New file.
42855         * modules/unicase/u8-casexfrm: New file.
42856
42857         Tests for module 'unicase/u32-casecmp'.
42858         * modules/unicase/u32-casecmp-tests: New file.
42859         * tests/unicase/test-u32-casecmp.c: New file.
42860
42861         Tests for module 'unicase/u16-casecmp'.
42862         * modules/unicase/u16-casecmp-tests: New file.
42863         * tests/unicase/test-u16-casecmp.c: New file.
42864
42865         Tests for module 'unicase/u8-casecmp'.
42866         * modules/unicase/u8-casecmp-tests: New file.
42867         * tests/unicase/test-u8-casecmp.c: New file.
42868         * tests/unicase/test-casecmp.h: New file.
42869
42870         New module 'unicase/u32-casecmp'.
42871         * lib/unicase/u32-casecmp.c: New file.
42872         * modules/unicase/u32-casecmp: New file.
42873
42874         New module 'unicase/u16-casecmp'.
42875         * lib/unicase/u16-casecmp.c: New file.
42876         * modules/unicase/u16-casecmp: New file.
42877
42878         New module 'unicase/u8-casecmp'.
42879         * lib/unicase/u8-casecmp.c: New file.
42880         * lib/unicase/u-casecmp.h: New file.
42881         * modules/unicase/u8-casecmp: New file.
42882
42883         Tests for module 'unicase/u32-casefold'.
42884         * modules/unicase/u32-casefold-tests: New file.
42885         * tests/unicase/test-u32-casefold.c: New file.
42886
42887         Tests for module 'unicase/u16-casefold'.
42888         * modules/unicase/u16-casefold-tests: New file.
42889         * tests/unicase/test-u16-casefold.c: New file.
42890
42891         Tests for module 'unicase/u8-casefold'.
42892         * modules/unicase/u8-casefold-tests: New file.
42893         * tests/unicase/test-u8-casefold.c: New file.
42894
42895         New module 'unicase/u32-casefold'.
42896         * lib/unicase/u32-casefold.c: New file.
42897         * modules/unicase/u32-casefold: New file.
42898
42899         New module 'unicase/u16-casefold'.
42900         * lib/unicase/u16-casefold.c: New file.
42901         * modules/unicase/u16-casefold: New file.
42902
42903         New module 'unicase/u8-casefold'.
42904         * lib/unicase/u8-casefold.c: New file.
42905         * lib/unicase/u-casefold.h: New file.
42906         * modules/unicase/u8-casefold: New file.
42907
42908         New module 'unicase/tocasefold'.
42909         * lib/unicase/casefold.h: New file.
42910         * lib/unicase/tocasefold.c: New file.
42911         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
42912         * modules/unicase/tocasefold: New file.
42913
42914         Tests for module 'unicase/u32-totitle'.
42915         * modules/unicase/u32-totitle-tests: New file.
42916         * tests/unicase/test-u32-totitle.c: New file.
42917
42918         Tests for module 'unicase/u16-totitle'.
42919         * modules/unicase/u16-totitle-tests: New file.
42920         * tests/unicase/test-u16-totitle.c: New file.
42921
42922         Tests for module 'unicase/u8-totitle'.
42923         * modules/unicase/u8-totitle-tests: New file.
42924         * tests/unicase/test-u8-totitle.c: New file.
42925
42926         New module 'unicase/u32-totitle'.
42927         * lib/unicase/u32-totitle.c: New file.
42928         * modules/unicase/u32-totitle: New file.
42929
42930         New module 'unicase/u16-totitle'.
42931         * lib/unicase/u16-totitle.c: New file.
42932         * modules/unicase/u16-totitle: New file.
42933
42934         New module 'unicase/u8-totitle'.
42935         * lib/unicase/u8-totitle.c: New file.
42936         * lib/unicase/u-totitle.h: New file.
42937         * modules/unicase/u8-totitle: New file.
42938
42939         Tests for module 'unicase/u32-tolower'.
42940         * modules/unicase/u32-tolower-tests: New file.
42941         * tests/unicase/test-u32-tolower.c: New file.
42942
42943         Tests for module 'unicase/u16-tolower'.
42944         * modules/unicase/u16-tolower-tests: New file.
42945         * tests/unicase/test-u16-tolower.c: New file.
42946
42947         Tests for module 'unicase/u8-tolower'.
42948         * modules/unicase/u8-tolower-tests: New file.
42949         * tests/unicase/test-u8-tolower.c: New file.
42950
42951         New module 'unicase/u32-tolower'.
42952         * lib/unicase/u32-tolower.c: New file.
42953         * modules/unicase/u32-tolower: New file.
42954
42955         New module 'unicase/u16-tolower'.
42956         * lib/unicase/u16-tolower.c: New file.
42957         * modules/unicase/u16-tolower: New file.
42958
42959         New module 'unicase/u8-tolower'.
42960         * lib/unicase/u8-tolower.c: New file.
42961         * modules/unicase/u8-tolower: New file.
42962
42963         Tests for module 'unicase/u32-toupper'.
42964         * modules/unicase/u32-toupper-tests: New file.
42965         * tests/unicase/test-u32-toupper.c: New file.
42966
42967         Tests for module 'unicase/u16-toupper'.
42968         * modules/unicase/u16-toupper-tests: New file.
42969         * tests/unicase/test-u16-toupper.c: New file.
42970
42971         Tests for module 'unicase/u8-toupper'.
42972         * modules/unicase/u8-toupper-tests: New file.
42973         * tests/unicase/test-u8-toupper.c: New file.
42974
42975         New module 'unicase/u32-toupper'.
42976         * lib/unicase/u32-toupper.c: New file.
42977         * modules/unicase/u32-toupper: New file.
42978
42979         New module 'unicase/u16-toupper'.
42980         * lib/unicase/u16-toupper.c: New file.
42981         * modules/unicase/u16-toupper: New file.
42982
42983         New module 'unicase/u8-toupper'.
42984         * lib/unicase/u8-toupper.c: New file.
42985         * modules/unicase/u8-toupper: New file.
42986
42987         New module 'unicase/u32-casemap'.
42988         * lib/unicase/u32-casemap.c: New file.
42989         * modules/unicase/u32-casemap: New file.
42990
42991         New module 'unicase/u16-casemap'.
42992         * lib/unicase/u16-casemap.c: New file.
42993         * modules/unicase/u16-casemap: New file.
42994
42995         New module 'unicase/u8-casemap'.
42996         * lib/unicase/unicasemap.h: New file.
42997         * lib/unicase/u8-casemap.c: New file.
42998         * lib/unicase/u-casemap.h: New file.
42999         * modules/unicase/u8-casemap: New file.
43000
43001         New module 'unicase/special-casing'.
43002         * lib/unicase/special-casing.h: New file.
43003         * lib/unicase/special-casing.c: New file.
43004         * lib/unicase/special-casing-table.gperf: New file, generated by
43005         gen-uni-tables.c.
43006         * modules/unicase/special-casing: New file.
43007
43008         Tests for module 'unicase/locale-language'.
43009         * modules/unicase/locale-language-tests: New file.
43010         * tests/unicase/test-locale-language.sh: New file.
43011         * tests/unicase/test-locale-language.c: New file.
43012
43013         New module 'unicase/locale-language'.
43014         * lib/unicase/locale-language.c: New file.
43015         * lib/unicase/locale-languages.gperf: New file.
43016         * modules/unicase/locale-language: New file.
43017
43018         Generate more tables for case conversion and case folding.
43019         * lib/gen-uni-tables.c (SCC_*): New enum items.
43020         (struct special_casing_rule): New type.
43021         (casing_rules, num_casing_rules, allocated_casing_rules): New
43022         variables.
43023         (add_casing_rule, fill_casing_rules): New functions.
43024         (struct casefold_rule): New type.
43025         (casefolding_rules, num_casefolding_rules,
43026         allocated_casefolding_rules): New variables.
43027         (fill_casefolding_rules): New function.
43028         (unicode_casefold): New variable.
43029         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
43030         sort_casing_rules, output_casing_rules): New functions.
43031         (main): Accept to more arguments: SpecialCasing.txt and
43032         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
43033         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
43034         Output mapping for casefolding.
43035
43036         * lib/unicase.h: Include stdbool.h, uninorm.h.
43037         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
43038         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
43039         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
43040         arguments.
43041         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
43042         resultp arguments.
43043         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
43044         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
43045         resultp arguments.
43046         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
43047         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
43048         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
43049         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
43050         declarations.
43051         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
43052
43053 2009-03-08  Bruno Haible  <bruno@clisp.org>
43054
43055         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
43056         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
43057         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
43058         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
43059
43060 2009-03-07  Bruno Haible  <bruno@clisp.org>
43061
43062         Adjust u*_normcmp, u*_normcoll API.
43063         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
43064         u16_normcoll, u32_normcoll): Change failure conventions.
43065         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
43066         errno and return -1.
43067         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
43068
43069 2009-03-07  Bruno Haible  <bruno@clisp.org>
43070
43071         Tests for module 'uninorm/u32-normcoll'.
43072         * modules/uninorm/u32-normcoll-tests: New file.
43073         * tests/uninorm/test-u32-normcoll.c: New file.
43074
43075         Tests for module 'uninorm/u16-normcoll'.
43076         * modules/uninorm/u16-normcoll-tests: New file.
43077         * tests/uninorm/test-u16-normcoll.c: New file.
43078
43079         Tests for module 'uninorm/u8-normcoll'.
43080         * modules/uninorm/u8-normcoll-tests: New file.
43081         * tests/uninorm/test-u8-normcoll.c: New file.
43082
43083 2009-03-07  Bruno Haible  <bruno@clisp.org>
43084
43085         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
43086         tests/uninorm/test-u32-normcmp.c.
43087         * tests/uninorm/test-u32-normcmp.c: Include it.
43088         (test_nonascii): New function, extracted from main. Add some more
43089         tests.
43090         (main): Invoke test_ascii and test_nonascii.
43091         * modules/uninorm/u32-normcmp-tests (Files): Add
43092         tests/uninorm/test-u32-normcmp.h.
43093         (Depends-on): Remove uninorm/u32-normcmp.
43094
43095         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
43096         tests/uninorm/test-u16-normcmp.c.
43097         * tests/uninorm/test-u16-normcmp.c: Include it.
43098         (test_nonascii): New function, extracted from main. Add some more
43099         tests.
43100         (main): Invoke test_ascii and test_nonascii.
43101         * modules/uninorm/u16-normcmp-tests (Files): Add
43102         tests/uninorm/test-u16-normcmp.h.
43103         (Depends-on): Remove uninorm/u16-normcmp.
43104
43105         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
43106         tests/uninorm/test-u8-normcmp.c.
43107         * tests/uninorm/test-u8-normcmp.c: Include it.
43108         (test_nonascii): New function, extracted from main. Add some more
43109         tests.
43110         (main): Invoke test_ascii and test_nonascii.
43111         * modules/uninorm/u8-normcmp-tests (Files): Add
43112         tests/uninorm/test-u8-normcmp.h.
43113         (Depends-on): Remove uninorm/u8-normcmp.
43114
43115 2009-03-07  Bruno Haible  <bruno@clisp.org>
43116
43117         New module 'uninorm/u32-normcoll'.
43118         * lib/uninorm/u32-normcoll.c: New file.
43119         * modules/uninorm/u32-normcoll: New file.
43120
43121         New module 'uninorm/u16-normcoll'.
43122         * lib/uninorm/u16-normcoll.c: New file.
43123         * modules/uninorm/u16-normcoll: New file.
43124
43125         New module 'uninorm/u8-normcoll'.
43126         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
43127         declarations.
43128         * lib/uninorm/u8-normcoll.c: New file.
43129         * lib/uninorm/u-normcoll.h: New file.
43130         * modules/uninorm/u8-normcoll: New file.
43131
43132         New module 'uninorm/u32-normxfrm'.
43133         * lib/uninorm/u32-normxfrm.c: New file.
43134         * modules/uninorm/u32-normxfrm: New file.
43135
43136         New module 'uninorm/u16-normxfrm'.
43137         * lib/uninorm/u16-normxfrm.c: New file.
43138         * modules/uninorm/u16-normxfrm: New file.
43139
43140         New module 'uninorm/u8-normxfrm'.
43141         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
43142         declarations.
43143         * lib/uninorm/u8-normxfrm.c: New file.
43144         * lib/uninorm/u-normxfrm.h: New file.
43145         * modules/uninorm/u8-normxfrm: New file.
43146
43147 2009-03-07  Bruno Haible  <bruno@clisp.org>
43148
43149         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
43150         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
43151         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
43152
43153 2009-03-07  Bruno Haible  <bruno@clisp.org>
43154
43155         New module 'memxfrm'.
43156         * lib/memxfrm.h: New file.
43157         * lib/memxfrm.c: New file.
43158         * modules/memxfrm: New file.
43159
43160 2009-03-07  Bruno Haible  <bruno@clisp.org>
43161
43162         New module 'memcmp2'.
43163         * lib/memcmp2.h: New file.
43164         * lib/memcmp2.c: New file.
43165         * modules/memcmp2: New file.
43166
43167 2009-03-07  Bruno Haible  <bruno@clisp.org>
43168
43169         Tests for module 'uninorm/decomposing-form'.
43170         * modules/uninorm/decomposing-form-tests: New file.
43171         * tests/uninorm/test-decomposing-form.c: New file.
43172
43173         New module 'uninorm/decomposing-form'.
43174         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
43175         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
43176         Add 'decomposing_variant' field.
43177         * lib/uninorm/decomposing-form.c: New file.
43178         * lib/uninorm/nfc.c (uninorm_nfc): Update.
43179         * lib/uninorm/nfd.c (uninorm_nfd): Update.
43180         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
43181         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
43182         * modules/uninorm/decomposing-form: New file.
43183         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
43184         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
43185
43186 2009-03-07  Bruno Haible  <bruno@clisp.org>
43187
43188         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
43189         strings.
43190
43191 2009-03-06  Bruno Haible  <bruno@clisp.org>
43192
43193         Tests for module 'uninorm/u32-normcmp'.
43194         * tests/uninorm/test-u32-normcmp.c: New file.
43195         * modules/uninorm/u32-normcmp-tests: New file.
43196
43197         Tests for module 'uninorm/u16-normcmp'.
43198         * tests/uninorm/test-u16-normcmp.c: New file.
43199         * modules/uninorm/u16-normcmp-tests: New file.
43200
43201         Tests for module 'uninorm/u8-normcmp'.
43202         * tests/uninorm/test-u8-normcmp.c: New file.
43203         * modules/uninorm/u8-normcmp-tests: New file.
43204
43205         New module 'uninorm/u32-normcmp'.
43206         * lib/uninorm/u32-normcmp.c: New file.
43207         * modules/uninorm/u32-normcmp: New file.
43208
43209         New module 'uninorm/u16-normcmp'.
43210         * lib/uninorm/u16-normcmp.c: New file.
43211         * modules/uninorm/u16-normcmp: New file.
43212
43213         New module 'uninorm/u8-normcmp'.
43214         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
43215         declarations.
43216         * lib/uninorm/u8-normcmp.c: New file.
43217         * lib/uninorm/u-normcmp.h: New file.
43218         * modules/uninorm/u8-normcmp: New file.
43219
43220 2009-03-06  Bruno Haible  <bruno@clisp.org>
43221
43222         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
43223         Reported by Eric Blake.
43224
43225 2009-03-06  Eric Blake  <ebb9@byu.net>
43226             Bruno Haible  <bruno@clisp.org>
43227
43228         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
43229         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
43230         condition.
43231         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
43232         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
43233         condition.
43234         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
43235
43236 2009-03-06  Eric Blake  <ebb9@byu.net>
43237
43238         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
43239         to avoid compiler warnings.
43240         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
43241
43242 2009-03-05  Bruno Haible  <bruno@clisp.org>
43243
43244         * tests/test-ftell.c (main): Disable test beyond end of file on
43245         FreeMiNT.
43246         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
43247
43248 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
43249
43250         * lib/filevercmp.c: Move hidden files up in ordering.
43251         * tests/test-filevercmp.c: Add tests for hidden files.
43252
43253 2009-03-04  Bruno Haible  <bruno@clisp.org>
43254
43255         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
43256         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
43257         AM_CFLAGS.
43258         Reported by Simon Josefsson.
43259
43260 2009-03-03  Bruno Haible  <bruno@clisp.org>
43261
43262         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
43263         Reported by Simon Josefsson.
43264
43265         * doc/ld-version-script.texi: Update node reference.
43266
43267 2009-03-03  Bruno Haible  <bruno@clisp.org>
43268
43269         * modules/visibility (License): Change to 'unlimited'.
43270         Suggested by Simon Josefsson.
43271
43272 2009-03-03  Jim Meyering  <meyering@redhat.com>
43273
43274         unlinkdir: cannot_unlink_dir may modify process state
43275         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
43276         it's neither thread-safe nor appropriate for use in a library.
43277
43278 2009-03-03  Eric Blake  <ebb9@byu.net>
43279
43280         test-closein: silence test under Darwin
43281         * tests/test-closein.sh: Ignore stderr from cat, since we don't
43282         care if it dies from EPIPE or EBADF.
43283
43284 2009-03-03  Bruno Haible  <bruno@clisp.org>
43285
43286         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
43287         earlier.
43288         * doc/visibility.texi: Fix @node and @section.
43289
43290 2009-03-03  Simon Josefsson  <simon@josefsson.org>
43291
43292         * doc/gnulib.texi: Link to sections for ld version script and
43293         visibility.
43294         * doc/visibility.texi: Add @node and @section.
43295         * modules/ld-version-script: New module.
43296         * m4/ld-version-script.m4: New file.
43297         * doc/ld-version-script.texi: New file.
43298
43299 2009-03-02  David Lutterkort  <lutter@redhat.com>
43300
43301         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
43302         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43303
43304 2009-03-02  Bruno Haible  <bruno@clisp.org>
43305
43306         * doc/visibility.texi: Mention libtool's -export-symbols option.
43307
43308 2009-03-02  Jim Meyering  <meyering@redhat.com>
43309
43310         announce-gen: new option: --no-print-checksums
43311         * build-aux/announce-gen (usage): Describe it.
43312         (print_checksums): Print a newline here, not in the [*] footnote.
43313         (main): Honor it.
43314
43315 2009-03-01  Bruno Haible  <bruno@clisp.org>
43316
43317         Use socklen_t in the native Windows replacements prototypes.
43318         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
43319         instead of 'int'.
43320         * lib/getsockopt.c (rpl_getsockopt): Likewise.
43321         * lib/setsockopt.c (rpl_setsockopt): Likewise.
43322         * modules/getsockopt (Depends-on): Add socklen.
43323         * modules/setsockopt (Depends-on): Add socklen.
43324
43325 2009-03-01  Bruno Haible  <bruno@clisp.org>
43326
43327         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
43328         least 4.2.
43329
43330 2009-03-01  Eric Blake  <ebb9@byu.net>
43331             Bruno Haible  <bruno@clisp.org>
43332
43333         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
43334         error messages.
43335         * lib/wait-process.c (wait_subprocess): Omit error message about
43336         deadly signal sent to the child of termsigp != NULL.
43337
43338 2009-03-01  Eric Blake  <ebb9@byu.net>
43339
43340         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
43341
43342 2009-03-01  Bruno Haible  <bruno@clisp.org>
43343
43344         Avoid a gcc warning.
43345         * tests/test-sched.c (b): Make global.
43346         Reported by Eric Blake.
43347
43348 2009-01-19  Martin Lambers  <marlam@marlam.de>
43349
43350         Provide POSIX semantics for socket timeout options on W32.
43351         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
43352         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
43353         * modules/setsockopt: Depend on sys_time module for struct timeval.
43354         * modules/getsockopt: Depend on sys_time module for struct timeval.
43355
43356 2009-03-01  Simon Josefsson  <simon@josefsson.org>
43357
43358         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
43359         __USE_GNU, for consistency with netdb.in.h.
43360         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43361
43362 2009-03-01  Bruno Haible  <bruno@clisp.org>
43363
43364         More support for FreeMiNT.
43365         * lib/fseeko.c (rpl_fseeko): Complete last commit.
43366         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43367
43368 2009-03-01  Bruno Haible  <bruno@clisp.org>
43369
43370         More support for FreeMiNT.
43371         * lib/fpurge.c (fpurge): Correct last commit.
43372         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43373
43374 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43375
43376         Fix unportable awk script in vc-list-files.
43377         * build-aux/vc-list-files: In the replacement awk script, use
43378         substr with a second argument of 1, not zero.
43379         Report by Simon Josefsson.
43380
43381 2009-02-28  Bruno Haible  <bruno@clisp.org>
43382
43383         More support for FreeMiNT.
43384         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
43385         to FreeMiNT today.
43386         * lib/fwriting.c (fwriting): Likewise.
43387         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
43388
43389 2009-02-28  Bruno Haible  <bruno@clisp.org>
43390
43391         * tests/test-freadseek.c (main): Disable test beyond end of file on
43392         FreeMiNT.
43393         * tests/test-ftello.c (main): Likewise.
43394         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
43395
43396 2009-02-28  Bruno Haible  <bruno@clisp.org>
43397
43398         Add tentative support for FreeMiNT.
43399         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
43400         * lib/fpurge.c (fpurge): Likewise.
43401         * lib/freadable.c (freadable): Likewise.
43402         * lib/freading.c (freading): Likewise.
43403         * lib/freadptr.c (freadptr): Likewise.
43404         * lib/freadseek.c (freadptrinc): Likewise.
43405         * lib/fseeko.c (rpl_fseeko): Likewise.
43406         * lib/fseterr.c (fseterr): Likewise.
43407         * lib/fwritable.c (fwritable): Likewise.
43408         * lib/fwriting.c (fwriting): Likewise.
43409         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
43410         Hourihane.
43411         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43412
43413 2009-02-28  Bruno Haible  <bruno@clisp.org>
43414
43415         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
43416         SIGCHLD.
43417         Reported by Jim Meyering.
43418
43419 2009-02-28  Bruno Haible  <bruno@clisp.org>
43420
43421         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
43422         Mention the results of these tests on various platforms.
43423         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
43424         order.
43425         * doc/posix-functions/printf.texi: Likewise.
43426         * doc/posix-functions/snprintf.texi: Likewise.
43427         * doc/posix-functions/sprintf.texi: Likewise.
43428         * doc/posix-functions/vfprintf.texi: Likewise.
43429         * doc/posix-functions/vprintf.texi: Likewise.
43430         * doc/posix-functions/vsnprintf.texi: Likewise.
43431         * doc/posix-functions/vsprintf.texi: Likewise.
43432         * doc/glibc-functions/obstack_printf.texi: Likewise.
43433         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
43434
43435 2009-02-28  Bruno Haible  <bruno@clisp.org>
43436
43437         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
43438         Reported by Loïc Minier <lool@dooz.org>.
43439
43440 2009-02-27  Bruno Haible  <bruno@clisp.org>
43441
43442         * gnulib-tool (func_import): Make the sed expression used to create the
43443         sed script for updating the .gitignore file POSIX compliant.
43444         Reported by Eric Blake.
43445
43446 2009-02-27  Bruno Haible  <bruno@clisp.org>
43447
43448         * gnulib-tool (sed): Don't alias as "sed --posix".
43449         Reported by Eric Blake.
43450
43451 2009-02-27  Bruno Haible  <bruno@clisp.org>
43452
43453         Avoid test link errors.
43454         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
43455         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
43456         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
43457         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
43458         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43459
43460 2009-02-27  Bruno Haible  <bruno@clisp.org>
43461
43462         Avoid spurious "(cached)" in configure output.
43463         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
43464         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
43465         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
43466         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
43467         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
43468         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
43469         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
43470         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
43471         Reported by Eric Blake.
43472
43473 2009-02-27  Eric Blake  <ebb9@byu.net>
43474
43475         printf: fix regression in previous patch
43476         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
43477
43478 2009-02-27  Bruno Haible  <bruno@clisp.org>
43479
43480         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
43481         value.
43482         * lib/stdint.in.h: Likewise.
43483         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
43484
43485 2009-02-27  Eric Blake  <ebb9@byu.net>
43486
43487         doc: mention more functions added in cygwin 1.7.0
43488         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
43489         addition.
43490         * doc/posix-functions/open_wmemstream.texi: Likewise.
43491         * doc/posix-functions/wcsnlen.texi: Likewise.
43492         * doc/posix-functions/wcsnrtombs.texi: Likewise.
43493         * doc/posix-functions/wcstod.texi: Likewise.
43494         * doc/posix-functions/wcstof.texi: Likewise.
43495         * doc/posix-functions/wcstoimax.texi: Likewise.
43496         * doc/posix-functions/wcstok.texi: Likewise.
43497         * doc/posix-functions/wcstoumax.texi: Likewise.
43498
43499         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
43500         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
43501         * doc/posix-functions/fprintf.texi: Update.
43502         * doc/posix-functions/printf.texi: Update.
43503         * doc/posix-functions/snprintf.texi: Update.
43504         * doc/posix-functions/sprintf.texi: Update.
43505         * doc/posix-functions/vfprintf.texi: Update.
43506         * doc/posix-functions/vprintf.texi: Update.
43507         * doc/posix-functions/vsnprintf.texi: Update.
43508         * doc/posix-functions/vsprintf.texi: Update.
43509         * doc/glibc-functions/obstack_printf.texi: Update.
43510         * doc/glibc-functions/obstack_vprintf.texi: Update.
43511
43512 2009-02-26  Eric Blake  <ebb9@byu.net>
43513
43514         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
43515         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
43516         compilation bug by using runtime conversion.
43517         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
43518         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
43519         * modules/ceill-tests (Files): Use nan.h.
43520         * modules/floorl-tests (Files): Likewise.
43521         * modules/frexpl-tests (Files): Likewise.
43522         * modules/isnanl-tests (Files): Likewise.
43523         * modules/ldexpl-tests (Files): Likewise.
43524         * modules/roundl-tests (Files): Likewise.
43525         * modules/truncl-tests (Files): Likewise.
43526         * tests/test-ceill.c (main): Use a working NaN.
43527         * tests/test-floorl.c (main): Likewise.
43528         * tests/test-frexpl.c (main): Likewise.
43529         * tests/test-isnan.c (test_long_double): Likewise.
43530         * tests/test-isnanl.h (main): Likewise.
43531         * tests/test-ldexpl.h (main): Likewise.
43532         * tests/test-roundl.h (main): Likewise.
43533         * tests/test-truncl.h (main): Likewise.
43534         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
43535
43536 2009-02-26  Eric Blake  <ebb9@byu.net>
43537             Bruno Haible  <bruno@clisp.org>
43538
43539         Work around a *printf bug with %ls on Solaris.
43540         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
43541         precision is specified, sprintf stops converting the wide string
43542         argument when the number of bytes that have been produced by this
43543         conversion equals or exceeds the precision.
43544         * doc/posix-functions/fprintf.texi: Update.
43545         * doc/posix-functions/printf.texi: Update.
43546         * doc/posix-functions/snprintf.texi: Update.
43547         * doc/posix-functions/sprintf.texi: Update.
43548         * doc/posix-functions/vfprintf.texi: Update.
43549         * doc/posix-functions/vprintf.texi: Update.
43550         * doc/posix-functions/vsnprintf.texi: Update.
43551         * doc/posix-functions/vsprintf.texi: Update.
43552         * doc/glibc-functions/obstack_printf.texi: Update.
43553         * doc/glibc-functions/obstack_vprintf.texi: Update.
43554
43555 2009-02-26  Eric Blake  <ebb9@byu.net>
43556
43557         stdlib: favor compiler check of random.h
43558         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
43559         to avoid an ObjC random.h installed by Swarm.
43560
43561 2009-02-26  Bruno Haible  <bruno@clisp.org>
43562
43563         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
43564         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
43565         Reported by Gary V. Vaughan <gary@gnu.org>.
43566
43567 2009-02-26  Bruno Haible  <bruno@clisp.org>
43568
43569         Fix *printf behaviour regarding the %ls directive.
43570         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
43571         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
43572         NEED_PRINTF_DIRECTIVE_LS.
43573         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
43574         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
43575         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43576         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
43577         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
43578         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
43579         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
43580         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43581         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43582         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43583         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43584         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
43585         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43586         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43587         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43588         * doc/posix-functions/fprintf.texi: Update.
43589         * doc/posix-functions/printf.texi: Update.
43590         * doc/posix-functions/snprintf.texi: Update.
43591         * doc/posix-functions/sprintf.texi: Update.
43592         * doc/posix-functions/vfprintf.texi: Update.
43593         * doc/posix-functions/vprintf.texi: Update.
43594         * doc/posix-functions/vsnprintf.texi: Update.
43595         * doc/posix-functions/vsprintf.texi: Update.
43596         * doc/glibc-functions/obstack_printf.texi: Update.
43597         * doc/glibc-functions/obstack_vprintf.texi: Update.
43598         Reported by Eric Blake.
43599
43600 2009-02-25  Bruno Haible  <bruno@clisp.org>
43601
43602         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
43603         with known value.
43604         Reported by Gary V. Vaughan <gary@gnu.org>.
43605
43606 2009-02-25  Bruno Haible  <bruno@clisp.org>
43607
43608         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
43609         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
43610         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
43611         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
43612         Reported by Gary V. Vaughan <gary@gnu.org>.
43613
43614 2009-02-25  Bruno Haible  <bruno@clisp.org>
43615
43616         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
43617         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
43618         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
43619         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
43620         Reported by Gary V. Vaughan <gary@gnu.org>.
43621
43622 2009-02-25  Eric Blake  <ebb9@byu.net>
43623
43624         tests: skip fseek/ftell tests if ungetc is broken
43625         * m4/ungetc.m4: New file.
43626         * modules/fseek-tests: Split test, so ungetc dependency is
43627         separate from rest of test.
43628         * modules/fseeko-tests: Likewise.
43629         * modules/ftell-tests: Likewise.
43630         * modules/ftello-tests: Likewise.
43631         * tests/test-fseek.c (main): Isolate ungetc dependency.
43632         * tests/test-fseeko.c (main): Likewise.
43633         * tests/test-ftell.c (main): Likewise.
43634         * tests/test-ftello.c (main): Likewise.
43635         * tests/test-fseek2.sh: New file.
43636         * tests/test-fseeko2.sh: Likewise.
43637         * tests/test-ftell2.sh: Likewise.
43638         * tests/test-ftello2.sh: Likewise.
43639
43640 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
43641
43642         test-getaddrinfo: fix usage of skip return code 77
43643         * tests/test-gettaddrinfo.c: Return skip code 77 only
43644         for first occurance of skip (4x77 is not 77)
43645
43646 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
43647
43648         strtod: avoid C99 decl-after-statement
43649         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
43650
43651 2009-02-24  Eric Blake  <ebb9@byu.net>
43652
43653         strtod: detect HP-UX 11.31 bug
43654         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
43655         Reported by Gary V. Vaughan.
43656
43657 2009-02-23  Bruno Haible  <bruno@clisp.org>
43658
43659         Fix invalid read past end of memory block.
43660         * lib/vasnprintf.c (DCHAR_SET): Define.
43661         (local_wcslen): Define only when needed.
43662         (local_strnlen, local_wcsnlen): New functions.
43663         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
43664         directives that involve a conversion ourselves.
43665         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
43666         wcsnlen, mbrtowc, wcrtomb.
43667         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
43668         * tests/test-vasprintf-posix.c (test_function): Likewise.
43669         * tests/test-snprintf-posix.h (test_function): Likewise.
43670         * tests/test-sprintf-posix.h (test_function): Likewise.
43671         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43672
43673 2009-02-22  Bruno Haible  <bruno@clisp.org>
43674
43675         Implement new clarified decomposition of Hangul syllables.
43676         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
43677         of type LTV, return only a pairwise decomposition.
43678         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
43679         Likewise.
43680         * tests/uninorm/test-decomposition.c (main): Updated expected result.
43681         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
43682         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
43683
43684 2009-02-22  Bruno Haible  <bruno@clisp.org>
43685
43686         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
43687         zero-length results and shrink excess allocated memory.
43688         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
43689         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
43690         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
43691         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
43692         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
43693         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
43694         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
43695         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
43696         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
43697         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
43698         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
43699         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
43700
43701 2009-02-21  Bruno Haible  <bruno@clisp.org>
43702
43703         * doc/gnulib.texi: Include safe-alloc.texi earlier.
43704         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
43705         spaces after a period. Put a space between a macro name and its
43706         argument list. Trivial rewordings.
43707         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
43708         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
43709         (main): Return 0 explicitly.
43710
43711 2009-02-21  Bruno Haible  <bruno@clisp.org>
43712
43713         Tests for module 'uninorm/filter'.
43714         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
43715         * modules/uninorm/filter-tests: New file.
43716
43717         New module 'uninorm/filter'.
43718         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
43719         uninorm_filter_flush, uninorm_filter_free): New declarations.
43720         * lib/uninorm/uninorm-filter.c: New file.
43721         * modules/uninorm/filter: New file.
43722
43723 2009-02-21  Bruno Haible  <bruno@clisp.org>
43724
43725         Tests for module 'uninorm/nfkc'.
43726         * tests/uninorm/test-nfkc.c: New file.
43727         * tests/uninorm/test-u8-nfkc.c: New file.
43728         * tests/uninorm/test-u16-nfkc.c: New file.
43729         * tests/uninorm/test-u32-nfkc.c: New file.
43730         * tests/uninorm/test-u32-nfkc-big.sh: New file.
43731         * tests/uninorm/test-u32-nfkc-big.c: New file.
43732         * modules/uninorm/nfkc-tests: New file.
43733
43734         New module 'uninorm/nfkc'.
43735         * lib/uninorm/nfkc.c: New file.
43736         * modules/uninorm/nfkc: New file.
43737
43738         Tests for module 'uninorm/nfkd'.
43739         * tests/uninorm/test-nfkd.c: New file.
43740         * tests/uninorm/test-u8-nfkd.c: New file.
43741         * tests/uninorm/test-u16-nfkd.c: New file.
43742         * tests/uninorm/test-u32-nfkd.c: New file.
43743         * tests/uninorm/test-u32-nfkd-big.sh: New file.
43744         * tests/uninorm/test-u32-nfkd-big.c: New file.
43745         * modules/uninorm/nfkd-tests: New file.
43746
43747         New module 'uninorm/nfkd'.
43748         * lib/uninorm/nfkd.c: New file.
43749         * modules/uninorm/nfkd: New file.
43750
43751         Tests for module 'uninorm/nfc'.
43752         * tests/uninorm/test-nfc.c: New file.
43753         * tests/uninorm/test-u8-nfc.c: New file.
43754         * tests/uninorm/test-u16-nfc.c: New file.
43755         * tests/uninorm/test-u32-nfc.c: New file.
43756         * tests/uninorm/test-u32-nfc-big.sh: New file.
43757         * tests/uninorm/test-u32-nfc-big.c: New file.
43758         * modules/uninorm/nfc-tests: New file.
43759
43760         New module 'uninorm/nfc'.
43761         * lib/uninorm/nfc.c: New file.
43762         * modules/uninorm/nfc: New file.
43763
43764         Tests for module 'uninorm/nfd'.
43765         * tests/uninorm/test-nfd.c: New file.
43766         * tests/uninorm/test-u8-nfd.c: New file.
43767         * tests/uninorm/test-u16-nfd.c: New file.
43768         * tests/uninorm/test-u32-nfd.c: New file.
43769         * tests/uninorm/test-u32-nfd-big.sh: New file.
43770         * tests/uninorm/test-u32-nfd-big.c: New file.
43771         * tests/uninorm/test-u32-normalize-big.h: New file.
43772         * tests/uninorm/test-u32-normalize-big.c: New file.
43773         * tests/uninorm/NormalizationTest.txt: New file, created from
43774         Unicode 5.1.0 NormalizationTest.txt.
43775         * modules/uninorm/nfd-tests: New file.
43776
43777         New module 'uninorm/nfd'.
43778         * lib/uninorm/nfd.c: New file.
43779         * modules/uninorm/nfd: New file.
43780
43781         New module 'uninorm/u32-normalize'.
43782         * lib/uninorm/u32-normalize.c: New file.
43783         * modules/uninorm/u32-normalize: New file.
43784
43785         New module 'uninorm/u16-normalize'.
43786         * lib/uninorm/u16-normalize.c: New file.
43787         * modules/uninorm/u16-normalize: New file.
43788
43789         New module 'uninorm/u8-normalize'.
43790         * lib/uninorm/u8-normalize.c: New file.
43791         * lib/uninorm/normalize-internal.h: New file.
43792         * lib/uninorm/u-normalize-internal.h: New file.
43793         * modules/uninorm/u8-normalize: New file.
43794
43795         New module 'uninorm/decompose-internal'.
43796         * lib/uninorm/decompose-internal.c: New file.
43797         * modules/uninorm/decompose-internal: New file.
43798
43799         Tests for module 'uninorm/composition'.
43800         * tests/uninorm/test-composition.c: New file.
43801         * modules/uninorm/composition-tests: New file.
43802
43803         New module 'uninorm/composition'.
43804         * lib/uninorm/composition.c: New file.
43805         * lib/uninorm/composition-table.gperf: New file, generated by
43806         gen-uni-tables.
43807         * modules/uninorm/composition: New file.
43808
43809         Tests for module 'uninorm/compat-decomposition'.
43810         * tests/uninorm/test-compat-decomposition.c: New file.
43811         * modules/uninorm/compat-decomposition-tests: New file.
43812
43813         New module 'uninorm/compat-decomposition'.
43814         * lib/uninorm/decompose-internal.h: New file.
43815         * lib/uninorm/compat-decomposition.c: New file.
43816         * modules/uninorm/compat-decomposition: New file.
43817
43818         Tests for module 'uninorm/canonical-decomposition'.
43819         * tests/uninorm/test-canonical-decomposition.c: New file.
43820         * modules/uninorm/canonical-decomposition-tests: New file.
43821
43822         New module 'uninorm/canonical-decomposition'.
43823         * lib/uninorm/canonical-decomposition.c: New file.
43824         * modules/uninorm/canonical-decomposition: New file.
43825
43826         Tests for module 'uninorm/decomposition'.
43827         * tests/uninorm/test-decomposition.c: New file.
43828         * modules/uninorm/decomposition-tests: New file.
43829
43830         New module 'uninorm/decomposition'.
43831         * lib/uninorm/decomposition.c: New file.
43832         * modules/uninorm/decomposition: New file.
43833
43834         New module 'uninorm/decomposition-table'.
43835         * lib/uninorm/decomposition-table.h: New file.
43836         * lib/uninorm/decomposition-table.c: New file.
43837         * lib/uninorm/decomposition-table1.h: New file, generated by
43838         gen-uni-tables.
43839         * lib/uninorm/decomposition-table2.h: New file, generated by
43840         gen-uni-tables.
43841         * modules/uninorm/decomposition-table: New file.
43842
43843         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
43844         (UC_DECOMP_*): New enumeration items.
43845         (get_decomposition): New function.
43846         (struct decomp_table): New type.
43847         (output_decomposition, output_decomposition_tables): New functions.
43848         (unicode_composition_exclusions): New variable.
43849         (fill_composition_exclusions, debug_output_composition_tables): New
43850         functions.
43851         (main): Accept one more argument. Invoke fill_composition_exclusions.
43852         Output decomposition and composition tables.
43853
43854         New module 'uninorm/base'.
43855         * lib/uninorm.h: New file.
43856         * lib/unictype.h: Update comment.
43857         * modules/uninorm/base: New file.
43858
43859 2009-02-21  David Lutterkort  <lutter@redhat.com>
43860
43861         Tests for module 'safe-alloc'.
43862         * tests/test-safe-alloc.c: New file.
43863         * modules/safe-alloc-tests: New file.
43864
43865         New module 'safe-alloc'.
43866         * lib/safe-alloc.h: New file.
43867         * lib/safe-alloc.c: New file.
43868         * m4/safe-alloc.m4: New file.
43869         * modules/safe-alloc: New file.
43870         * doc/safe-alloc.texi: New file.
43871         * doc/gnulib.texi: Include it.
43872         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
43873         safe-alloc.
43874
43875 2009-02-18  Bruno Haible  <bruno@clisp.org>
43876
43877         Fix link error on non-glibc systems.
43878         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
43879         variable.
43880         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43881
43882 2009-02-18  Jim Meyering  <meyering@redhat.com>
43883
43884         fts: avoid used-uninitialized error due to recent change
43885         * lib/fts.c (fts_read): Guard uses of the new member,
43886         parent->fts_n_dirs_remaining, since it's not relevant for
43887         the parent of a directory specified on the command-line.
43888
43889 2009-02-17  James Youngman  <jay@gnu.org>
43890             Bruno Haible  <bruno@clisp.org>
43891
43892         * m4/include_next.m4: Reformulate comment.
43893
43894 2009-02-16  Jim Meyering  <meyering@redhat.com>
43895
43896         fts: add #if guards so that the fts_lgpl module still builds
43897         * lib/fts.c: Guard just-added hash-table-using parts with
43898         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
43899         Reported by Simon Josefsson.
43900
43901 2009-02-15  Bruno Haible  <bruno@clisp.org>
43902
43903         * modules/array-mergesort-tests: New file.
43904         * tests/test-array-mergesort.c: New file.
43905
43906         New module 'array-mergesort'.
43907         * modules/array-mergesort: New file.
43908         * lib/array-mergesort.h: New file.
43909
43910 2009-02-15  Bruno Haible  <bruno@clisp.org>
43911
43912         Fix 2009-02-07 commit.
43913         * lib/gen-uni-tables.c (output_predicate, output_category,
43914         output_combclass, output_bidi_category, output_decimal_digit,
43915         output_digit, output_numeric, output_mirror, output_scripts,
43916         output_ident_category, output_simple_mapping): Fix format directives.
43917         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
43918
43919 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
43920
43921         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
43922         fixes are available from IBM.
43923
43924 2009-02-13  Jim Meyering  <meyering@redhat.com>
43925
43926         fts: arrange not to stat non-directories in more cases
43927         This makes GNU find (when it doesn't need to stat each file)
43928         *much* more efficient at traversing reiserfs file systems.
43929         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
43930         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
43931         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
43932         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
43933         (leaf_optimization_applies): New function.
43934         (LCO_hash, LCO_compare): New helper functions.
43935         (link_count_optimize_ok): New function.
43936         (fts_stat): Initialize new member (if dir).
43937         (fts_read): Decrement parent's fts_n_dirs_remaining count if
43938         we've just stat'ed a directory.  Skip the stat call when possible.
43939         ---
43940         Note this AFS-related exchange:
43941         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
43942         and note find's pioctl call in find/fstype.c.
43943         But that is necessary only if you want to enable the
43944         optimization for AFS, and for now, I don't.
43945
43946         fts: move a function definition "up" (no semantic change)
43947         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
43948         "up" to precede upcoming use of a related function.
43949
43950 2009-02-11  Jim Meyering  <meyering@redhat.com>
43951
43952         fts: correct internal computation of nlinks (optimization-related)
43953         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
43954         whether the current entry is a directory, so don't test it.
43955
43956 2009-02-10  Bruno Haible  <bruno@clisp.org>
43957
43958         Tests for module 'uniwbrk/ulc-wordbreaks'.
43959         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
43960         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
43961         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
43962
43963         Tests for module 'uniwbrk/u32-wordbreaks'.
43964         * modules/uniwbrk/u32-wordbreaks-tests: New file.
43965         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
43966
43967         Tests for module 'uniwbrk/u16-wordbreaks'.
43968         * modules/uniwbrk/u16-wordbreaks-tests: New file.
43969         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
43970
43971         Tests for module 'uniwbrk/u8-wordbreaks'.
43972         * modules/uniwbrk/u8-wordbreaks-tests: New file.
43973         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
43974
43975 2009-02-10  Bruno Haible  <bruno@clisp.org>
43976
43977         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
43978         property.
43979         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
43980         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
43981         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
43982
43983 2009-02-10  Simon Josefsson  <simon@josefsson.org>
43984
43985         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
43986         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
43987
43988 2009-02-10  Bruno Haible  <bruno@clisp.org>
43989
43990         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
43991         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
43992         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
43993         * lib/unilbrk/u8-possible-linebreaks.c: Update.
43994         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
43995         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
43996
43997 2009-02-09  Simon Josefsson  <simon@josefsson.org>
43998
43999         * lib/sockets.h (gl_fd_to_handle): New function.
44000
44001         * tests/test-sockets.c: Call gl_fd_to_handle.
44002
44003 2009-02-09  Bruno Haible  <bruno@clisp.org>
44004
44005         * doc/havelib.texi: Document the conventions on bi-arch systems.
44006
44007 2009-02-08  Bruno Haible  <bruno@clisp.org>
44008
44009         Document the AC_LIB_LINKFLAGS macro.
44010         * doc/havelib.texi: New file, mostly written on 2005-05-24.
44011         * doc/gnulib.texi: Include it.
44012
44013 2009-02-08  Bruno Haible  <bruno@clisp.org>
44014
44015         Fix wrong order of sections, compared to TOC.
44016         * doc/gnulib.texi: Include relocatable-maint.texi after the
44017         "Regular expressions" node, not before.
44018
44019 2009-02-08  Bruno Haible  <bruno@clisp.org>
44020
44021         Tests for module 'unicase/totitle'.
44022         * modules/unicase/totitle-tests: New file.
44023
44024         Tests for module 'unicase/tolower'.
44025         * modules/unicase/tolower-tests: New file.
44026
44027         Tests for module 'unicase/toupper'.
44028         * modules/unicase/toupper-tests: New file.
44029         * tests/unicase/test-mapping-part1.h: New file.
44030         * tests/unicase/test-mapping-part2.h: New file.
44031
44032         New module 'unicase/totitle'.
44033         * modules/unicase/totitle: New file.
44034         * lib/unicase/totitle.c: New file.
44035
44036         New module 'unicase/tolower'.
44037         * modules/unicase/tolower: New file.
44038         * lib/unicase/tolower.c: New file.
44039
44040         New module 'unicase/toupper'.
44041         * modules/unicase/toupper: New file.
44042         * lib/unicase/toupper.c: New file.
44043         * lib/unicase/simple-mapping.h: New file.
44044
44045         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
44046         (mapping_table): New structure.
44047         (output_simple_mapping): New function.
44048         (main): Invoke output_simple_mapping_test and output_simple_mapping.
44049         * modules/gen-uni-tables (Description): Update.
44050         * lib/unicase/toupper.h: New file, automatically generated by
44051         gen-uni-tables.
44052         * lib/unicase/tolower.h: New file, automatically generated by
44053         gen-uni-tables.
44054         * lib/unicase/totitle.h: New file, automatically generated by
44055         gen-uni-tables.
44056         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
44057         gen-uni-tables.
44058         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
44059         gen-uni-tables.
44060         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
44061         gen-uni-tables.
44062
44063         New module 'unicase/base'.
44064         * modules/unicase/base: New file.
44065         * lib/unicase.h: New file.
44066
44067 2009-02-08  Bruno Haible  <bruno@clisp.org>
44068
44069         New module 'uniwbrk/ulc-wordbreaks'.
44070         * modules/uniwbrk/ulc-wordbreaks: New file.
44071         * lib/uniwbrk/ulc-wordbreaks.c: New file.
44072
44073         New module 'uniwbrk/u32-wordbreaks'.
44074         * modules/uniwbrk/u32-wordbreaks: New file.
44075         * lib/uniwbrk/u32-wordbreaks.c: New file.
44076
44077         New module 'uniwbrk/u16-wordbreaks'.
44078         * modules/uniwbrk/u16-wordbreaks: New file.
44079         * lib/uniwbrk/u16-wordbreaks.c: New file.
44080
44081         New module 'uniwbrk/u8-wordbreaks'.
44082         * modules/uniwbrk/u8-wordbreaks: New file.
44083         * lib/uniwbrk/u8-wordbreaks.c: New file.
44084         * lib/uniwbrk/u-wordbreaks.h: New file.
44085
44086         New module 'uniwbrk/table'.
44087         * modules/uniwbrk/table: New file.
44088         * lib/uniwbrk/wbrktable.h: New file.
44089         * lib/uniwbrk/wbrktable.c: New file.
44090
44091         New module 'uniwbrk/wordbreak-property'.
44092         * modules/uniwbrk/wordbreak-property: New file.
44093         * lib/uniwbrk/wordbreak-property.c: New file.
44094
44095         * lib/gen-uni-tables.c (WBP_*): New enum items.
44096         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
44097         (unicode_org_wbp): New variable.
44098         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
44099         New functions.
44100         (wbp_table): New structure.
44101         (output_wbp, output_wbrk_tables): New functions.
44102         (main): Accept additional argument. Invoke fill_org_wbp,
44103         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
44104         output_wbrk_tables.
44105         * modules/gen-uni-tables (Description): Update.
44106         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
44107         gen-uni-tables.
44108
44109         New module 'uniwbrk/base'.
44110         * modules/uniwbrk/base: New file.
44111         * lib/uniwbrk.h: New file.
44112
44113 2009-02-08  Bruno Haible  <bruno@clisp.org>
44114
44115         Update to Unicode 5.1.0.
44116         * lib/gen-uni-tables.c (is_property_alphabetic): Include
44117         U+2185..U+2188.
44118         (is_property_default_ignorable_code_point): Don't include characters
44119         of category Cc or Cs and not-a-characters.
44120         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
44121         U+0D79, U+109E, U+109F, U+A60C.
44122         * lib/unictype/bidi_of.h: Regenerated.
44123         * lib/unictype/blocks.h: Regenerated.
44124         * lib/unictype/categ_C.h: Regenerated.
44125         * lib/unictype/categ_Cf.h: Regenerated.
44126         * lib/unictype/categ_Cn.h: Regenerated.
44127         * lib/unictype/categ_L.h: Regenerated.
44128         * lib/unictype/categ_Ll.h: Regenerated.
44129         * lib/unictype/categ_Lm.h: Regenerated.
44130         * lib/unictype/categ_Lo.h: Regenerated.
44131         * lib/unictype/categ_Lu.h: Regenerated.
44132         * lib/unictype/categ_M.h: Regenerated.
44133         * lib/unictype/categ_Mc.h: Regenerated.
44134         * lib/unictype/categ_Me.h: Regenerated.
44135         * lib/unictype/categ_Mn.h: Regenerated.
44136         * lib/unictype/categ_N.h: Regenerated.
44137         * lib/unictype/categ_Nd.h: Regenerated.
44138         * lib/unictype/categ_Nl.h: Regenerated.
44139         * lib/unictype/categ_No.h: Regenerated.
44140         * lib/unictype/categ_P.h: Regenerated.
44141         * lib/unictype/categ_Pd.h: Regenerated.
44142         * lib/unictype/categ_Pe.h: Regenerated.
44143         * lib/unictype/categ_Pf.h: Regenerated.
44144         * lib/unictype/categ_Pi.h: Regenerated.
44145         * lib/unictype/categ_Po.h: Regenerated.
44146         * lib/unictype/categ_Ps.h: Regenerated.
44147         * lib/unictype/categ_S.h: Regenerated.
44148         * lib/unictype/categ_Sk.h: Regenerated.
44149         * lib/unictype/categ_Sm.h: Regenerated.
44150         * lib/unictype/categ_So.h: Regenerated.
44151         * lib/unictype/categ_of.h: Regenerated.
44152         * lib/unictype/combining.h: Regenerated.
44153         * lib/unictype/ctype_alnum.h: Regenerated.
44154         * lib/unictype/ctype_alpha.h: Regenerated.
44155         * lib/unictype/ctype_graph.h: Regenerated.
44156         * lib/unictype/ctype_lower.h: Regenerated.
44157         * lib/unictype/ctype_print.h: Regenerated.
44158         * lib/unictype/ctype_punct.h: Regenerated.
44159         * lib/unictype/ctype_upper.h: Regenerated.
44160         * lib/unictype/decdigit.h: Regenerated.
44161         * lib/unictype/digit.h: Regenerated.
44162         * lib/unictype/mirror.h: Regenerated.
44163         * lib/unictype/numeric.h: Regenerated.
44164         * lib/unictype/pr_alphabetic.h: Regenerated.
44165         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
44166         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
44167         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
44168         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
44169         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
44170         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
44171         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
44172         * lib/unictype/pr_combining.h: Regenerated.
44173         * lib/unictype/pr_dash.h: Regenerated.
44174         * lib/unictype/pr_decimal_digit.h: Regenerated.
44175         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
44176         * lib/unictype/pr_deprecated.h: Regenerated.
44177         * lib/unictype/pr_diacritic.h: Regenerated.
44178         * lib/unictype/pr_extender.h: Regenerated.
44179         * lib/unictype/pr_format_control.h: Regenerated.
44180         * lib/unictype/pr_grapheme_base.h: Regenerated.
44181         * lib/unictype/pr_grapheme_extend.h: Regenerated.
44182         * lib/unictype/pr_grapheme_link.h: Regenerated.
44183         * lib/unictype/pr_id_continue.h: Regenerated.
44184         * lib/unictype/pr_id_start.h: Regenerated.
44185         * lib/unictype/pr_ideographic.h: Regenerated.
44186         * lib/unictype/pr_ignorable_control.h: Regenerated.
44187         * lib/unictype/pr_lowercase.h: Regenerated.
44188         * lib/unictype/pr_math.h: Regenerated.
44189         * lib/unictype/pr_numeric.h: Regenerated.
44190         * lib/unictype/pr_other_alphabetic.h: Regenerated.
44191         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
44192         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
44193         * lib/unictype/pr_other_id_continue.h: Regenerated.
44194         * lib/unictype/pr_other_lowercase.h: Regenerated.
44195         * lib/unictype/pr_other_math.h: Regenerated.
44196         * lib/unictype/pr_punctuation.h: Regenerated.
44197         * lib/unictype/pr_sentence_terminal.h: Regenerated.
44198         * lib/unictype/pr_soft_dotted.h: Regenerated.
44199         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
44200         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
44201         * lib/unictype/pr_unified_ideograph.h: Regenerated.
44202         * lib/unictype/pr_uppercase.h: Regenerated.
44203         * lib/unictype/pr_xid_continue.h: Regenerated.
44204         * lib/unictype/pr_xid_start.h: Regenerated.
44205         * lib/unictype/pr_zero_width.h: Regenerated.
44206         * lib/unictype/scripts.h: Regenerated.
44207         * lib/unictype/scripts_byname.gperf: Regenerated.
44208         * lib/unictype/sy_java_ident.h: Regenerated.
44209         * lib/unilbrk/lbrkprop1.h: Regenerated.
44210         * lib/unilbrk/lbrkprop2.h: Regenerated.
44211         * tests/unictype/test-categ_C.c: Regenerated.
44212         * tests/unictype/test-categ_Cf.c: Regenerated.
44213         * tests/unictype/test-categ_Cn.c: Regenerated.
44214         * tests/unictype/test-categ_L.c: Regenerated.
44215         * tests/unictype/test-categ_Ll.c: Regenerated.
44216         * tests/unictype/test-categ_Lm.c: Regenerated.
44217         * tests/unictype/test-categ_Lo.c: Regenerated.
44218         * tests/unictype/test-categ_Lu.c: Regenerated.
44219         * tests/unictype/test-categ_M.c: Regenerated.
44220         * tests/unictype/test-categ_Mc.c: Regenerated.
44221         * tests/unictype/test-categ_Me.c: Regenerated.
44222         * tests/unictype/test-categ_Mn.c: Regenerated.
44223         * tests/unictype/test-categ_N.c: Regenerated.
44224         * tests/unictype/test-categ_Nd.c: Regenerated.
44225         * tests/unictype/test-categ_Nl.c: Regenerated.
44226         * tests/unictype/test-categ_No.c: Regenerated.
44227         * tests/unictype/test-categ_P.c: Regenerated.
44228         * tests/unictype/test-categ_Pd.c: Regenerated.
44229         * tests/unictype/test-categ_Pe.c: Regenerated.
44230         * tests/unictype/test-categ_Pf.c: Regenerated.
44231         * tests/unictype/test-categ_Pi.c: Regenerated.
44232         * tests/unictype/test-categ_Po.c: Regenerated.
44233         * tests/unictype/test-categ_Ps.c: Regenerated.
44234         * tests/unictype/test-categ_S.c: Regenerated.
44235         * tests/unictype/test-categ_Sk.c: Regenerated.
44236         * tests/unictype/test-categ_Sm.c: Regenerated.
44237         * tests/unictype/test-categ_So.c: Regenerated.
44238         * tests/unictype/test-ctype_alnum.c: Regenerated.
44239         * tests/unictype/test-ctype_alpha.c: Regenerated.
44240         * tests/unictype/test-ctype_graph.c: Regenerated.
44241         * tests/unictype/test-ctype_lower.c: Regenerated.
44242         * tests/unictype/test-ctype_print.c: Regenerated.
44243         * tests/unictype/test-ctype_punct.c: Regenerated.
44244         * tests/unictype/test-ctype_upper.c: Regenerated.
44245         * tests/unictype/test-decdigit.h: Regenerated.
44246         * tests/unictype/test-digit.h: Regenerated.
44247         * tests/unictype/test-numeric.h: Regenerated.
44248         * tests/unictype/test-pr_alphabetic.c: Regenerated.
44249         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
44250         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
44251         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
44252         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
44253         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
44254         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
44255         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
44256         * tests/unictype/test-pr_combining.c: Regenerated.
44257         * tests/unictype/test-pr_dash.c: Regenerated.
44258         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
44259         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
44260         * tests/unictype/test-pr_deprecated.c: Regenerated.
44261         * tests/unictype/test-pr_diacritic.c: Regenerated.
44262         * tests/unictype/test-pr_extender.c: Regenerated.
44263         * tests/unictype/test-pr_format_control.c: Regenerated.
44264         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
44265         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
44266         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
44267         * tests/unictype/test-pr_id_continue.c: Regenerated.
44268         * tests/unictype/test-pr_id_start.c: Regenerated.
44269         * tests/unictype/test-pr_ideographic.c: Regenerated.
44270         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
44271         * tests/unictype/test-pr_lowercase.c: Regenerated.
44272         * tests/unictype/test-pr_math.c: Regenerated.
44273         * tests/unictype/test-pr_numeric.c: Regenerated.
44274         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
44275         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
44276         Regenerated.
44277         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
44278         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
44279         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
44280         * tests/unictype/test-pr_other_math.c: Regenerated.
44281         * tests/unictype/test-pr_punctuation.c: Regenerated.
44282         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
44283         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
44284         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
44285         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
44286         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
44287         * tests/unictype/test-pr_uppercase.c: Regenerated.
44288         * tests/unictype/test-pr_xid_continue.c: Regenerated.
44289         * tests/unictype/test-pr_xid_start.c: Regenerated.
44290         * tests/unictype/test-pr_zero_width.c: Regenerated.
44291
44292         Update to Unicode 5.1.0.
44293         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
44294         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
44295         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
44296         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
44297         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
44298         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
44299         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
44300         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
44301         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
44302         (nonspacing_table_ind): Update.
44303         * tests/uniwidth/test-uc_width2.sh: Update expected result.
44304
44305         Update to Unicode 5.1.0.
44306         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
44307         code transform.
44308         * lib/uniname/uniname.c (unicode_character_name,
44309         unicode_name_character): Add the range 0x1Fxxx to the code transform.
44310         * lib/uniname/uninames.h: Regenerated.
44311         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
44312
44313 2009-02-07  Bruno Haible  <bruno@clisp.org>
44314
44315         Merge gen-ctype and gen-lbrk into a single program.
44316         * lib/gen-uni-tables.c: New file, incorporating
44317         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
44318         Add directory prefixes to the names of the generated files.
44319         * lib/unictype/gen-ctype.c: Remove file.
44320         * lib/unilbrk/gen-lbrk.c: Remove file.
44321         * modules/gen-uni-tables: New file.
44322         * modules/unictype/gen-ctype: Remove file.
44323         * modules/unilbrk/gen-lbrk: Remove file.
44324
44325 2009-02-07  Bruno Haible  <bruno@clisp.org>
44326
44327         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
44328
44329         New module 'unistr/u32-strcoll'.
44330         * modules/unistr/u32-strcoll: New file.
44331         * lib/unistr/u32-strcoll.c: New file.
44332
44333         New module 'unistr/u16-strcoll'.
44334         * modules/unistr/u16-strcoll: New file.
44335         * lib/unistr/u16-strcoll.c: New file.
44336
44337         New module 'unistr/u8-strcoll'.
44338         * modules/unistr/u8-strcoll: New file.
44339         * lib/unistr/u8-strcoll.c: New file.
44340         * lib/unistr/u-strcoll.h: New file.
44341
44342 2009-02-07  Bruno Haible  <bruno@clisp.org>
44343
44344         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
44345         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
44346         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
44347         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
44348         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
44349         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
44350
44351 2009-02-07  Bruno Haible  <bruno@clisp.org>
44352
44353         Make 64-bit clean.
44354         * lib/unictype/gen-ctype.c (output_predicate, output_category,
44355         output_combclass, output_bidi_category, output_decimal_digit,
44356         output_digit, output_numeric, output_mirror, output_scripts,
44357         output_ident_category): Use proper width specifier in format strings.
44358
44359 2009-02-07  Bruno Haible  <bruno@clisp.org>
44360
44361         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
44362         failure behaviour.
44363
44364 2009-02-07  Jim Meyering  <meyering@redhat.com>
44365
44366         regex: avoid compilation failure with upcoming gcc-4.4
44367         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
44368         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
44369         "... error: integer overflow in preprocessor expression".
44370
44371 2009-02-05  Ben Pfaff  <blp@gnu.org>
44372
44373         Fix link errors on Windows when close module is used.
44374         * modules/close: Add $(LIB_CLOSE) to Link section.
44375         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
44376         $(LIB_CLOSE) on Windows.
44377
44378 2009-02-05  Jim Meyering  <meyering@redhat.com>
44379
44380         still avoid unused-parameter warnings, but do it cleanly
44381         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
44382         (get_fs_usage): Cast to void instead.
44383         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
44384         (dev_from_mount_options, read_file_system_list): Cast to void.
44385         Prompted by Bruno Haible.
44386
44387 2009-02-04  Jim Meyering  <meyering@redhat.com>
44388
44389         fsusage.c: correct copyright year
44390         * lib/fsusage.c: Reflect year in which the change is pushed into
44391
44392         avoid misc. warnings
44393         * lib/fsusage.c (UNUSED_PARAM): Define.
44394         (get_fs_usage): Mark parameter "disk" as unused.
44395         * lib/getugroups.c (getgrent): Use "void" in prototype.
44396         * lib/mountlist.c: Mark unused parameters.
44397         (read_file_system_list): Declare a local with "const".
44398         * lib/nanosleep.c (getnow): Declare static.
44399         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
44400
44401         dirfd: set errno upon failure
44402         * lib/dirfd.c: Include <errno.h>.
44403         Set errno to ENOTSUP when returning -1.
44404         * modules/dirfd (Depends-on): Add errno.
44405         Suggested by John Kodis <kodis@comcast.net>.
44406
44407 2009-02-01  Bruno Haible  <bruno@clisp.org>
44408
44409         Don't assume sizeof (long) >= sizeof (void *).
44410         * lib/memcmp.c: Include stdint.h.
44411         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
44412         srcp2 to 'const byte *'.
44413         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
44414         types to uintptr_t.
44415         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
44416         * modules/memcmp (Depends-on): Add stdint.
44417         Reported by Ozkan Sezer <sezeroz@gmail.com>.
44418
44419 2009-01-30  Eric Blake  <ebb9@byu.net>
44420
44421         fix more require-before-expand issues
44422         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
44423         expand, AC_PROG_AWK.
44424         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
44425
44426 2009-01-28  Eric Blake  <ebb9@byu.net>
44427
44428         version-etc: use consistent URL formatting
44429         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
44430         Improve formatting.  Use fputs for string without %.
44431
44432 2009-01-28  Jim Meyering  <meyering@redhat.com>
44433
44434         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
44435         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
44436         "underquoted definition of NAME" from autoconf-2.59.
44437
44438 2009-01-28  Bruno Haible  <bruno@clisp.org>
44439
44440         * doc/gnulib.texi: Add "Obsolete modules" to index.
44441
44442 2009-01-28  Jim Meyering  <meyering@redhat.com>
44443
44444         useless-if-before-free: recognize more variants
44445         * build-aux/useless-if-before-free: Also recognize e.g.,
44446         if (NULL != p) free (p);
44447
44448 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
44449
44450         test-getaddrinfo: skip (don't fail) this test when there's no network
44451         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
44452         on the presumption that it means you lack network access.
44453
44454 2009-01-26  Jim Meyering  <meyering@redhat.com>
44455
44456         fflush: avoid warnings on modern systems
44457         * lib/fflush.c (rpl_fflush): Move declarations of locals,
44458         pos and result, into scopes where they're used.
44459
44460 2009-01-26  Eric Blake  <ebb9@byu.net>
44461
44462         Silence warning reintroduced by recent extensions patch.
44463         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
44464         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
44465         autoconf.
44466
44467         Backport improved autoconf semantics of AC_DEFUN_ONCE.
44468         * m4/00gnulib.m4: New file.
44469         * gnulib-tool (func_get_filelist): Always use it.
44470         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
44471         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
44472
44473 2009-01-25  Bruno Haible  <bruno@clisp.org>
44474
44475         Make test-quotearg work on MacOS X and AIX.
44476         * tests/test-quotearg.sh: New file.
44477         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
44478         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
44479         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
44480         include <libintl.h>.
44481         (fake_locale): Remove variable.
44482         (gettext, dgettext, dcgettext): Remove functions.
44483         (main): Instead of setting a fake locale, set a real locale. Call
44484         textdomain and bindtextdomain.
44485         * modules/quotearg-tests (Files): Add the new files.
44486         (Depends-on): Add gettext, setenv, unsetenv.
44487         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
44488         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
44489         Augment TESTS_ENVIRONMENT.
44490
44491 2009-01-25  Bruno Haible  <bruno@clisp.org>
44492
44493         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
44494         fr_FR.ISO8859-1 locale on MacOS X.
44495         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
44496         ja_JP.eucJP locale on MacOS X.
44497         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
44498         zh_CN.GB18030 locale on MacOS X.
44499
44500 2009-01-25  Bruno Haible  <bruno@clisp.org>
44501
44502         Avoid link errors on MacOS X 10.3.
44503         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
44504         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
44505
44506 2009-01-25  Bruno Haible  <bruno@clisp.org>
44507
44508         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
44509         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
44510         * modules/pipe (Files): Remove m4/posix_spawn.m4.
44511         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
44512         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
44513         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
44514         posix_spawnattr_init, posix_spawnattr_setsigmask,
44515         posix_spawnattr_setflags, posix_spawnattr_destroy.
44516
44517         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
44518         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
44519         * modules/execute (Files): Remove m4/posix_spawn.m4.
44520         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
44521         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
44522         posix_spawnattr_init, posix_spawnattr_setsigmask,
44523         posix_spawnattr_setflags, posix_spawnattr_destroy.
44524
44525 2009-01-25  Bruno Haible  <bruno@clisp.org>
44526
44527         * lib/glthread/threadlib.c: Include <stdlib.h>.
44528
44529 2009-01-25  Bruno Haible  <bruno@clisp.org>
44530
44531         * lib/glthread/threadlib.c (dummy): New declaration.
44532
44533 2009-01-25  Bruno Haible  <bruno@clisp.org>
44534
44535         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
44536         multibyte characters also for the GB18030 encoding. Don't crash when
44537         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
44538
44539 2009-01-25  Bruno Haible  <bruno@clisp.org>
44540
44541         Avoid redefining 'struct random_data' on OSF/1 5.1.
44542         * lib/stdlib.in.h: Include <random.h> if it exists.
44543         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
44544         HAVE_RANDOM_H. Include <random.h> when testing whether
44545         'struct random_data' exists.
44546         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
44547
44548 2009-01-25  Bruno Haible  <bruno@clisp.org>
44549
44550         Don't install charset.alias on MacOS X >= 10.3.
44551         * lib/localcharset.c (DARWIN7): New macro.
44552         (get_charset_aliases): Hardcode the result for Darwin7.
44553         * modules/localcharset (install-exec-local): Don't install
44554         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
44555
44556 2009-01-25  Bruno Haible  <bruno@clisp.org>
44557
44558         Don't install charset.alias on mingw and Cygwin.
44559         * modules/localcharset (install-exec-local): Don't install
44560         charset.alias on mingw and Cygwin, if the file does not yet exist.
44561         The result for these platforms is hardcoded in localcharset.c.
44562
44563 2009-01-25  Bruno Haible  <bruno@clisp.org>
44564
44565         Make it possible again to use AC_GNU_SOURCE together with gnulib.
44566         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
44567         before requiring AC_USE_SYSTEM_EXTENSIONS.
44568
44569 2009-01-25  Jim Meyering  <meyering@redhat.com>
44570
44571         c-strtod: avoid warnings
44572         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
44573         "assignment discards qualifiers from pointer target type" warnings.
44574
44575 2009-01-24  Bruno Haible  <bruno@clisp.org>
44576
44577         Add support for non-UTF-8 locales on MacOS X.
44578         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
44579         canonical encodings. For Darwin 7 and newer, don't map traditional
44580         encodings to UTF-8.
44581         Reported by Vincent Lefevre <vincent@vinc17.org>
44582         at <http://savannah.gnu.org/bugs/?25235>.
44583
44584 2009-01-24  Bruno Haible  <bruno@clisp.org>
44585
44586         * doc/gnulib.texi (Obsolete modules): New section.
44587         Reported by Mike Frysinger <vapier@gentoo.org>.
44588
44589 2009-01-24  Bruno Haible  <bruno@clisp.org>
44590
44591         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
44592         (%.dvi): New rule.
44593
44594 2009-01-24  Bruno Haible  <bruno@clisp.org>
44595
44596         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
44597         Reported by Eric Blake.
44598
44599 2009-01-24  Bruno Haible  <bruno@clisp.org>
44600
44601         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
44602         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
44603         Reported by Gary V. Vaughan <gary@gnu.org>.
44604
44605 2009-01-24  Bruno Haible  <bruno@clisp.org>
44606
44607         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
44608
44609 2009-01-23  Bruno Haible  <bruno@clisp.org>
44610
44611         Make c-strtod, c-strtold usable in libraries.
44612         * lib/c-strtod.c: Include string.h instead of xalloc.h.
44613         (C_STRTOD): Call strdup instead of xstrdup.
44614         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
44615         * modules/c-strtold (Depends-on): Likewise.
44616         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
44617         * NEWS: Mention the change.
44618         Reported by Michael Gold <mgold@ncf.ca>.
44619
44620 2009-01-23  Jim Meyering  <meyering@redhat.com>
44621
44622         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
44623         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
44624         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
44625
44626 2009-01-23  Simon Josefsson  <simon@josefsson.org>
44627
44628         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
44629         GNU CoreUtils.
44630         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
44631         * modules/version-etc (Description): Update.
44632
44633 2009-01-22  Bruno Haible  <bruno@clisp.org>
44634
44635         Cache the C locale object.
44636         * lib/c-strtod.c (c_locale_cache): New variable.
44637         (c_locale): New function.
44638         (C_STRTOD): Use it, and don't call freelocale.
44639         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
44640         Suggested by Paolo Bonzini.
44641
44642 2009-01-21  Bruno Haible  <bruno@clisp.org>
44643
44644         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
44645         conditions other than overflow.
44646
44647 2009-01-21  Bruno Haible  <bruno@clisp.org>
44648
44649         * lib/c-strtod.c: Include errno.h.
44650         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
44651         value from STRTOD_L and STRTOD.
44652
44653 2009-01-21  Bruno Haible  <bruno@clisp.org>
44654         and Jim Meyering  <meyering@redhat.com>
44655
44656         nanosleep: skip configure test (fail it) for apple universal builds
44657         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
44658         universal builds, assume that nanosleep does not work.
44659         * modules/nanosleep (Depends-on): Add multiarch.
44660
44661         mktime: skip configure test (fail it) for apple universal builds
44662         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
44663         universal builds, assume that mktime does not work.
44664         * modules/mktime (Depends-on): Add multiarch.
44665
44666 2009-01-21  Eric Blake  <ebb9@byu.net>
44667
44668         multiarch: avoid expand-before-require warning
44669         * modules/multiarch (configure.ac): Require, rather than expand,
44670         gl_MULTIARCH.
44671         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
44672         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
44673         enforce that all clients require it.  Partial reversion of
44674         2008-12-29 patch.
44675
44676         error: avoid expand-before-require warning
44677         * modules/errno (configure.ac): Require, rather than expand,
44678         gl_HEADER_ERRNO_H.
44679         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
44680         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
44681         enforce that all clients require it.
44682
44683         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
44684         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
44685         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
44686         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
44687
44688 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
44689
44690         Revert:
44691         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
44692
44693         regex: do not depend on obsolete modules.
44694         * modules/regex: Remove memcmp and memmove.
44695
44696 2009-01-20  Bruno Haible  <bruno@clisp.org>
44697
44698         Make the 'link' module link on Windows NT 4.
44699         * lib/link.c (_WIN32_WINNT): Don't define.
44700         (CreateHardLinkFuncType): New type.
44701         (CreateHardLinkFunc, initialized): New variables.
44702         (initialize): New function.
44703         (link): Invoke CreateHardLink indirectly through the function pointer.
44704
44705 2009-01-20  Bruno Haible  <bruno@clisp.org>
44706
44707         Fix compilation failure on mingw.
44708         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
44709
44710 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
44711
44712         * doc/c-strtod.texi: Mention a couple of restrictions.
44713
44714 2009-01-20  Jim Meyering  <meyering@redhat.com>
44715
44716         gettimeofday: move more declarations out of functions
44717         * lib/gettimeofday.c: Move extern declarations of tzset and
44718         gmtime out of containing functions.  Prompted by Bruno Haible.
44719
44720 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
44721
44722         regex: do not depend on obsolete modules.
44723         * modules/regex: Remove memcmp and memmove.
44724
44725 2009-01-19  Bruno Haible  <bruno@clisp.org>
44726
44727         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
44728         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
44729         gl_BIGENDIAN, not AC_C_BIGENDIAN.
44730         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
44731         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
44732
44733 2009-01-19  Bruno Haible  <bruno@clisp.org>
44734
44735         * tests/test-link.c: Include <errno.h>.
44736         (main): Exit with code 77 when a hard link cannot be created due to
44737         the file system.
44738         * tests/test-link.sh: Skip test when a hard link cannot be created due
44739         to the file system.
44740         Suggested by Eric Blake.
44741
44742 2009-01-19  Martin Lambers  <marlam@marlam.de>
44743
44744         * modules/link-tests: New file.
44745         * tests/test-link.sh: New file.
44746         * tests/test-link.c: New file.
44747
44748 2009-01-19  Eric Blake  <ebb9@byu.net>
44749
44750         doc: mention another function added in cygwin 1.7.0
44751         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
44752         Another new function in cygwin 1.7.
44753
44754 2009-01-19  Bruno Haible  <bruno@clisp.org>
44755
44756         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
44757         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
44758         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
44759         gl_BIGENDIAN, not AC_C_BIGENDIAN.
44760         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
44761         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
44762         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
44763         * m4/md4.m4 (gl_MD4): Likewise.
44764         * m4/md5.m4 (gl_MD5): Likewise.
44765         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
44766         * m4/sha1.m4 (gl_SHA1): Likewise.
44767         * m4/sha256.m4 (gl_SHA256): Likewise.
44768         * m4/sha512.m4 (gl_SHA512): Likewise.
44769
44770 2009-01-19  Bruno Haible  <bruno@clisp.org>
44771
44772         * modules/uniname/uniname-tests (Depends-on): Add progname.
44773         * tests/uniname/test-uninames.c: Include progname.h.
44774         (main): Call set_program_name.
44775
44776         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
44777         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
44778         (main): Call set_program_name.
44779
44780         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
44781         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
44782         (main): Call set_program_name.
44783
44784         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
44785         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
44786         (main): Call set_program_name.
44787
44788         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
44789         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
44790         (main): Call set_program_name.
44791
44792         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
44793         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
44794         (main): Call set_program_name.
44795
44796         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
44797         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
44798         (main): Call set_program_name.
44799
44800         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
44801         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
44802         (main): Call set_program_name.
44803
44804         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
44805         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
44806         (main): Call set_program_name.
44807
44808 2009-01-19  Eric Blake  <ebb9@byu.net>
44809
44810         test-unistd: test previous patch
44811         * tests/test-unistd.c: Test *_FILENO macros.
44812
44813         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
44814         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
44815         Guarantee a definition.
44816         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
44817         * modules/unistd-safer (Depends-on): Add dependency on unistd.
44818         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
44819         * lib/dup-safer.c (STDERR_FILENO): Likewise.
44820         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
44821         Likewise.
44822         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
44823         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
44824         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
44825         Likewise.
44826         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
44827         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
44828         (STDERR_FILENO): Likewise.
44829         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
44830         (STDERR_FILENO): Likewise.
44831         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
44832         (STDERR_FILENO): Likewise.
44833         Reported by Elbert Pol.
44834
44835 2009-01-19  Eric Blake  <ebb9@byu.net>
44836
44837         doc: mention more functions added in cygwin 1.7.0
44838         * doc/posix-functions/abort.texi (abort): Update wording related
44839         to cygwin.
44840         * doc/posix-functions/daylight.texi (daylight): Likewise.
44841         * doc/posix-functions/optarg.texi (optarg): Likewise.
44842         * doc/posix-functions/optarg.texi (opterr): Likewise.
44843         * doc/posix-functions/optarg.texi (optind): Likewise.
44844         * doc/posix-functions/optarg.texi (optopt): Likewise.
44845         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
44846         worked in 1.5.x, and was withdrawn in 1.7.
44847         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
44848         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
44849         cygwin versions.
44850         * doc/posix-functions/perror.texi (perror): Likewise.
44851         * doc/posix-functions/printf.texi (printf): Likewise.
44852         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
44853         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
44854         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
44855         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
44856         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
44857         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
44858         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
44859         Likewise.
44860         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
44861         Likewise.
44862         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
44863         this function.
44864         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
44865         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
44866         Likewise.
44867         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
44868         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
44869         * doc/posix-functions/confstr.texi (confstr): Likewise.
44870         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
44871         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
44872         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
44873         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
44874         * doc/posix-functions/fputws.texi (fputws): Likewise.
44875         * doc/posix-functions/fwide.texi (fwide): Likewise.
44876         * doc/posix-functions/getwc.texi (getwc): Likewise.
44877         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
44878         * doc/posix-functions/putwc.texi (putwc): Likewise.
44879         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
44880         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
44881         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
44882         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
44883         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
44884         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
44885         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
44886         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
44887         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
44888         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
44889         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
44890
44891 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
44892
44893         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
44894         * lib/ioctl.c: Include <sys/ioctl.h>.
44895
44896 2009-01-19  Simon Josefsson  <simon@josefsson.org>
44897
44898         * modules/getdate-tests (Depends-on): Add progname.
44899         * tests/test-getdate.c: Use progname module, to avoid link errors
44900         on non-glibc systems.
44901
44902 2009-01-18  Simon Josefsson  <simon@josefsson.org>
44903
44904         * modules/filenamecat-tests (Depends-on): Add progname.
44905         * modules/fstrcmp-tests (Depends-on): Likewise.
44906
44907         * tests/test-filenamecat.c: Use progname module, to avoid link
44908         errors on non-glibc systems.
44909         * tests/test-fstrcmp.c: Likewise.
44910
44911 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
44912
44913         gettimeofday: avoid warning: nested extern declaration of 'localtime'
44914         * lib/gettimeofday.c: Move extern declaration out of function.
44915
44916 2009-01-18  Bruno Haible  <bruno@clisp.org>
44917
44918         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
44919         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
44920         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
44921
44922 2009-01-18  Bruno Haible  <bruno@clisp.org>
44923
44924         * lib/strftime.c (MEMPCPY): Remove unused macro.
44925         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
44926
44927 2009-01-18  Martin Lambers  <marlam@marlam.de>
44928
44929         New module 'link'.
44930         * lib/unistd.in.h (link): New declaration.
44931         * lib/link.c: New file.
44932         * m4/link.m4: New file.
44933         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
44934         HAVE_LINK.
44935         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
44936         * modules/link: New file.
44937         * doc/posix-functions/link.texi: Mention the new module.
44938
44939 2009-01-18  Bruno Haible  <bruno@clisp.org>
44940
44941         * tests/test-avltree_list.c (main): Call set_program_name.
44942         * tests/test-avltree_oset.c (main): Likewise.
44943         * tests/test-obstack-printf.c: Include progname.h.
44944         (main): Call set_program_name.
44945         * tests/test-quotearg.c: Include progname.h.
44946         (main): Call set_program_name.
44947         * tests/test-xmemdup0.c: Include progname.h.
44948         (main): Call set_program_name.
44949
44950 2009-01-18  Bruno Haible  <bruno@clisp.org>
44951
44952         New module 'alphasort'.
44953         * lib/dirent.in.h (alphasort): New declaration.
44954         * lib/alphasort.c: New file, from glibc with modifications.
44955         * m4/alphasort.m4: New file.
44956         * modules/alphasort: New file.
44957         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
44958         HAVE_ALPHASORT.
44959         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
44960         HAVE_ALPHASORT.
44961         * doc/posix-functions/alphasort.texi: Mention the new module and the
44962         portability problems.
44963
44964 2009-01-18  Bruno Haible  <bruno@clisp.org>
44965
44966         New module 'scandir'.
44967         * lib/dirent.in.h (scandir): New declaration.
44968         * lib/scandir.c: New file, from glibc with modifications.
44969         * m4/scandir.m4: New file.
44970         * modules/scandir: New file.
44971         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
44972         HAVE_SCANDIR.
44973         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
44974         HAVE_SCANDIR.
44975         * doc/posix-functions/scandir.texi: Mention the new module and the
44976         portability problems.
44977
44978 2009-01-17  Bruno Haible  <bruno@clisp.org>
44979
44980         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
44981         Update documentation.
44982         (func_remove_suffix): Escape all dots in the suffix. Update
44983         documentation.
44984         (func_filter_filelist): Update documentation.
44985         Reported by Ralf Wildenhues.
44986
44987 2009-01-17  Bruno Haible  <bruno@clisp.org>
44988
44989         * modules/dprintf-posix-tests: New file.
44990         * tests/test-dprintf-posix.sh: New file.
44991         * tests/test-dprintf-posix.c: New file.
44992
44993         New modules 'dprintf', 'dprintf-posix'.
44994         * lib/stdio.in.h (dprintf): New declaration.
44995         * lib/dprintf.c: New file.
44996         * m4/dprintf.m4: New file.
44997         * m4/dprintf-posix.m4: New file.
44998         * modules/dprintf: New file.
44999         * modules/dprintf-posix: New file.
45000         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
45001         HAVE_DPRINTF, REPLACE_DPRINTF.
45002         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
45003         HAVE_DPRINTF, REPLACE_DPRINTF.
45004         * doc/posix-functions/dprintf.texi: Mention the new modules.
45005
45006 2009-01-17  Bruno Haible  <bruno@clisp.org>
45007
45008         * modules/vdprintf-posix-tests: New file.
45009         * tests/test-vdprintf-posix.sh: New file.
45010         * tests/test-vdprintf-posix.c: New file.
45011
45012         New modules 'vdprintf', 'vdprintf-posix'.
45013         * lib/stdio.in.h (vdprintf): New declaration.
45014         * lib/vdprintf.c: New file.
45015         * m4/vdprintf.m4: New file.
45016         * m4/vdprintf-posix.m4: New file.
45017         * modules/vdprintf: New file.
45018         * modules/vdprintf-posix: New file.
45019         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
45020         HAVE_VDPRINTF, REPLACE_VDPRINTF.
45021         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
45022         HAVE_VDPRINTF, REPLACE_VDPRINTF.
45023         * doc/posix-functions/vdprintf.texi: Mention the new modules.
45024
45025 2009-01-17  Bruno Haible  <bruno@clisp.org>
45026
45027         Fix replacement of fopen on mingw.
45028         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
45029         mingw.
45030
45031 2009-01-17  Bruno Haible  <bruno@clisp.org>
45032
45033         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
45034         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
45035
45036 2009-01-17  Bruno Haible  <bruno@clisp.org>
45037
45038         Avoid test-fflush2.sh failure on mingw.
45039         * tests/test-fflush2.c: Include binary-io.h.
45040         (main): Put standard input into binary mode.
45041         * modules/fflush-tests (Depends-on): Add binary-io.
45042
45043 2009-01-17  Bruno Haible  <bruno@clisp.org>
45044
45045         * lib/wchar.in.h: In another particular situation, include only the
45046         system's <wchar.h> file.
45047         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
45048         Reported by Albert Chin-A-Young <china@thewrittenword.com>
45049         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
45050
45051 2009-01-17  Bruno Haible  <bruno@clisp.org>
45052
45053         Support for stripping executables in --enable-relocatable.
45054         * build-aux/install-reloc: Expect one more argument, or an environment
45055         variable RELOC_STRIP_PROG. If set, strip the destination program and
45056         its wrapper.
45057         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
45058         RELOC_STRIP_PROG.
45059         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
45060         to set RELOCATABLE_STRIP.
45061         * NEWS: Mention the new Makefile requirement.
45062
45063 2009-01-17  Bruno Haible  <bruno@clisp.org>
45064
45065         * build-aux/install-reloc: Remove debugging information left over by
45066         C compiler on MacOS X.
45067
45068 2009-01-17  Bruno Haible  <bruno@clisp.org>
45069
45070         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
45071         * lib/progreloc.c (find_executable): Fix type of pointer passed to
45072         _NSGetExecutablePath.
45073
45074 2009-01-16  Jim Meyering  <meyering@redhat.com>
45075
45076         strerror: avoid warnings about discarding "const"
45077         * lib/strerror.c (rpl_strerror): Instead of returning a const
45078         string from each and every "case", use a variable, and add a single
45079         cast after the switch.
45080
45081 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
45082
45083         * lib/arpa_inet.in.h: Add extern "C" block for C++.
45084
45085 2009-01-16  Bruno Haible  <bruno@clisp.org>
45086
45087         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
45088         array initializer syntax that also works in C++ mode.
45089         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45090
45091 2009-01-16  Jim Meyering  <meyering@redhat.com>
45092
45093         poll: suppress a warning
45094         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
45095         to ignore "...unsigned expression < 0 is always false" warnings.
45096
45097 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
45098
45099         poll: remove declarations of unused variables
45100         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
45101         sockbuf and optlen.
45102
45103 2009-01-15  Bruno Haible  <bruno@clisp.org>
45104
45105         Make fflush-after-ungetc POSIX compliant on BSD systems.
45106         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
45107         (clear_ungetc_buffer): Implement also for other systems.
45108         (rpl_fflush): On glibc systems, invoke
45109         clear_ungetc_buffer_preserving_position. Otherwise, invoke
45110         clear_ungetc_buffer after fetching the stream's position, not before.
45111
45112 2009-01-15  Bruno Haible  <bruno@clisp.org>
45113
45114         Make fflush-after-ungetc POSIX compliant on glibc systems.
45115         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
45116         after ungetc.
45117         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
45118         (rpl_fflush): On glibc systems, simply call the system's fflush
45119         function after clearing the ungetc buffer.
45120         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
45121         Instead, lseek only to the end of file, then use the system's fseeko
45122         for the rest. On glibc systems, reset the EOF indicator bit.
45123
45124 2009-01-15  Jim Meyering  <meyering@redhat.com>
45125
45126         openmp.m4: revert quote-adding change, for portability to older autoconf
45127         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
45128         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
45129         Simon Josefsson noticed the problem when using autoconf-2.61.
45130
45131 2009-01-15  Bruno Haible  <bruno@clisp.org>
45132
45133         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
45134         * tests/test-fflush2.c (ASSERT): Always fail.
45135         (main): Add two tests for fflush() after ungetc(), taking into account
45136         the Austin Group's clarification.
45137         Suggested by Eric Blake.
45138
45139 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
45140
45141         mktime.m4: remove K&R-style function prototypes
45142         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
45143         for the Sun C++ compiler.
45144
45145 2009-01-14  Bruno Haible  <bruno@clisp.org>
45146
45147         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
45148         while including <wchar.h>.
45149         * lib/wchar.in.h: In two particular situations on HP-UX, include only
45150         the system's <wchar.h> file.
45151         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45152
45153 2009-01-14  Bruno Haible  <bruno@clisp.org>
45154
45155         * m4/csharp.m4: Don't mention gettext on the serial number line.
45156         * m4/csharpexec.m4: Likewise.
45157         * m4/eaccess.m4: Likewise.
45158         * m4/javaexec.m4: Likewise.
45159         * m4/sig_atomic_t.m4: Likewise.
45160         * m4/tmpdir.m4: Likewise.
45161         * m4/intldir.m4: Bump gettext version.
45162         * m4/lib-ld.m4: Likewise.
45163
45164 2009-01-14  Bruno Haible  <bruno@clisp.org>
45165
45166         * lib/progname.c (set_program_name): Add more comments.
45167         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
45168
45169 2009-01-14  Simon Josefsson  <simon@josefsson.org>
45170
45171         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
45172         were sys/stat.h does not define it.
45173
45174 2009-01-14  Jim Meyering  <meyering@redhat.com>
45175
45176         many *.m4 files: improve m4 quoting
45177         99% of this change was performed by running the following commands:
45178         git ls-files | grep '\.m4$' | xargs perl -pi \
45179           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
45180           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
45181           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
45182           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
45183         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
45184         The remainder were to add Copyright dates, increment serial numbers,
45185         undo some changes in comments, exclude m4/intl.m4, and add quotes
45186         around the "1" in ",1" where the unusual spacing prohibited the
45187         above regexps from doing the job.  For more details, see
45188         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
45189         * m4/acl.m4: Modified.
45190         * m4/afs.m4: Likewise.
45191         * m4/alloca.m4: Likewise.
45192         * m4/argp.m4: Likewise.
45193         * m4/argz.m4: Likewise.
45194         * m4/atexit.m4: Likewise.
45195         * m4/bison-i18n.m4: Likewise.
45196         * m4/bison.m4: Likewise.
45197         * m4/byteswap.m4: Likewise.
45198         * m4/c-stack.m4: Likewise.
45199         * m4/c-strtod.m4: Likewise.
45200         * m4/calloc.m4: Likewise.
45201         * m4/canonicalize-lgpl.m4: Likewise.
45202         * m4/chown.m4: Likewise.
45203         * m4/clock_time.m4: Likewise.
45204         * m4/codeset.m4: Likewise.
45205         * m4/copy-file.m4: Likewise.
45206         * m4/csharp.m4: Likewise.
45207         * m4/csharpcomp.m4: Likewise.
45208         * m4/csharpexec.m4: Likewise.
45209         * m4/d-ino.m4: Likewise.
45210         * m4/d-type.m4: Likewise.
45211         * m4/dirfd.m4: Likewise.
45212         * m4/double-slash-root.m4: Likewise.
45213         * m4/eaccess.m4: Likewise.
45214         * m4/eealloc.m4: Likewise.
45215         * m4/environ.m4: Likewise.
45216         * m4/errno_h.m4: Likewise.
45217         * m4/euidaccess.m4: Likewise.
45218         * m4/execute.m4: Likewise.
45219         * m4/fatal-signal.m4: Likewise.
45220         * m4/fchdir.m4: Likewise.
45221         * m4/fcntl_h.m4: Likewise.
45222         * m4/fileblocks.m4: Likewise.
45223         * m4/filenamecat.m4: Likewise.
45224         * m4/findprog.m4: Likewise.
45225         * m4/flexmember.m4: Likewise.
45226         * m4/fnmatch.m4: Likewise.
45227         * m4/fopen.m4: Likewise.
45228         * m4/fpending.m4: Likewise.
45229         * m4/fprintf-posix.m4: Likewise.
45230         * m4/free.m4: Likewise.
45231         * m4/frexp.m4: Likewise.
45232         * m4/frexpl.m4: Likewise.
45233         * m4/fsusage.m4: Likewise.
45234         * m4/ftruncate.m4: Likewise.
45235         * m4/gc-camellia.m4: Likewise.
45236         * m4/gc-random.m4: Likewise.
45237         * m4/gc.m4: Likewise.
45238         * m4/getaddrinfo.m4: Likewise.
45239         * m4/getcwd-abort-bug.m4: Likewise.
45240         * m4/getcwd-path-max.m4: Likewise.
45241         * m4/getdate.m4: Likewise.
45242         * m4/getdomainname.m4: Likewise.
45243         * m4/getgroups.m4: Likewise.
45244         * m4/gethostname.m4: Likewise.
45245         * m4/gethrxtime.m4: Likewise.
45246         * m4/getline.m4: Likewise.
45247         * m4/getloadavg.m4: Likewise.
45248         * m4/getndelim2.m4: Likewise.
45249         * m4/getpass.m4: Likewise.
45250         * m4/gettext.m4: Likewise.
45251         * m4/gettime.m4: Likewise.
45252         * m4/gettimeofday.m4: Likewise.
45253         * m4/gnulib-common.m4: Likewise.
45254         * m4/group-member.m4: Likewise.
45255         * m4/host-os.m4: Likewise.
45256         * m4/iconv.m4: Likewise.
45257         * m4/iconv_open.m4: Likewise.
45258         * m4/inet_ntop.m4: Likewise.
45259         * m4/inet_pton.m4: Likewise.
45260         * m4/inline.m4: Likewise.
45261         * m4/intldir.m4: Likewise.
45262         * m4/intlmacosx.m4: Likewise.
45263         * m4/intmax.m4: Likewise.
45264         * m4/intmax_t.m4: Likewise.
45265         * m4/inttypes.m4: Likewise.
45266         * m4/inttypes_h.m4: Likewise.
45267         * m4/inttypes-pri.m4: Likewise.
45268         * m4/isapipe.m4: Likewise.
45269         * m4/isnand.m4: Likewise.
45270         * m4/isnanf.m4: Likewise.
45271         * m4/isnanl.m4: Likewise.
45272         * m4/javacomp.m4: Likewise.
45273         * m4/javaexec.m4: Likewise.
45274         * m4/jm-winsz1.m4: Likewise.
45275         * m4/jm-winsz2.m4: Likewise.
45276         * m4/lchown.m4: Likewise.
45277         * m4/lcmessage.m4: Likewise.
45278         * m4/ldexpl.m4: Likewise.
45279         * m4/lib-ld.m4: Likewise.
45280         * m4/lib-link.m4: Likewise.
45281         * m4/libsigsegv.m4: Likewise.
45282         * m4/link-follow.m4: Likewise.
45283         * m4/localcharset.m4: Likewise.
45284         * m4/locale-fr.m4: Likewise.
45285         * m4/locale-ja.m4: Likewise.
45286         * m4/locale-tr.m4: Likewise.
45287         * m4/locale-zh.m4: Likewise.
45288         * m4/lock.m4: Likewise.
45289         * m4/longlong.m4: Likewise.
45290         * m4/ls-mntd-fs.m4: Likewise.
45291         * m4/lstat.m4: Likewise.
45292         * m4/malloc.m4: Likewise.
45293         * m4/mathl.m4: Likewise.
45294         * m4/mbrtowc.m4: Likewise.
45295         * m4/mbstate_t.m4: Likewise.
45296         * m4/mbswidth.m4: Likewise.
45297         * m4/memchr.m4: Likewise.
45298         * m4/memcmp.m4: Likewise.
45299         * m4/memcpy.m4: Likewise.
45300         * m4/memmem.m4: Likewise.
45301         * m4/memmove.m4: Likewise.
45302         * m4/mempcpy.m4: Likewise.
45303         * m4/memrchr.m4: Likewise.
45304         * m4/memset.m4: Likewise.
45305         * m4/minmax.m4: Likewise.
45306         * m4/mkdir-slash.m4: Likewise.
45307         * m4/mkdtemp.m4: Likewise.
45308         * m4/mktime.m4: Likewise.
45309         * m4/mmap-anon.m4: Likewise.
45310         * m4/mountlist.m4: Likewise.
45311         * m4/nanosleep.m4: Likewise.
45312         * m4/nls.m4: Likewise.
45313         * m4/nocrash.m4: Likewise.
45314         * m4/open.m4: Likewise.
45315         * m4/openat.m4: Likewise.
45316         * m4/openmp.m4: Likewise.
45317         * m4/pathmax.m4: Likewise.
45318         * m4/perl.m4: Likewise.
45319         * m4/physmem.m4: Likewise.
45320         * m4/pipe.m4: Likewise.
45321         * m4/po.m4: Likewise.
45322         * m4/poll.m4: Likewise.
45323         * m4/posixtm.m4: Likewise.
45324         * m4/posixver.m4: Likewise.
45325         * m4/printf-frexp.m4: Likewise.
45326         * m4/printf-frexpl.m4: Likewise.
45327         * m4/printf-posix.m4: Likewise.
45328         * m4/printf-posix-rpl.m4: Likewise.
45329         * m4/printf.m4: Likewise.
45330         * m4/progtest.m4: Likewise.
45331         * m4/putenv.m4: Likewise.
45332         * m4/readline.m4: Likewise.
45333         * m4/readlink.m4: Likewise.
45334         * m4/readutmp.m4: Likewise.
45335         * m4/realloc.m4: Likewise.
45336         * m4/regex.m4: Likewise.
45337         * m4/relocatable.m4: Likewise.
45338         * m4/relocatable-lib.m4: Likewise.
45339         * m4/rename-dest-slash.m4: Likewise.
45340         * m4/rename.m4: Likewise.
45341         * m4/rmdir-errno.m4: Likewise.
45342         * m4/rmdir.m4: Likewise.
45343         * m4/roundf.m4: Likewise.
45344         * m4/roundl.m4: Likewise.
45345         * m4/rpmatch.m4: Likewise.
45346         * m4/save-cwd.m4: Likewise.
45347         * m4/selinux-selinux-h.m4: Likewise.
45348         * m4/setenv.m4: Likewise.
45349         * m4/settime.m4: Likewise.
45350         * m4/sig2str.m4: Likewise.
45351         * m4/sig_atomic_t.m4: Likewise.
45352         * m4/signalblocking.m4: Likewise.
45353         * m4/signbit.m4: Likewise.
45354         * m4/sigpipe.m4: Likewise.
45355         * m4/sockets.m4: Likewise.
45356         * m4/sockpfaf.m4: Likewise.
45357         * m4/st_dm_mode.m4: Likewise.
45358         * m4/stat-time.m4: Likewise.
45359         * m4/stdbool.m4: Likewise.
45360         * m4/stdint.m4: Likewise.
45361         * m4/stdint_h.m4: Likewise.
45362         * m4/stpcpy.m4: Likewise.
45363         * m4/stpncpy.m4: Likewise.
45364         * m4/strcase.m4: Likewise.
45365         * m4/strchrnul.m4: Likewise.
45366         * m4/strcspn.m4: Likewise.
45367         * m4/strdup.m4: Likewise.
45368         * m4/strftime.m4: Likewise.
45369         * m4/strndup.m4: Likewise.
45370         * m4/strnlen.m4: Likewise.
45371         * m4/strpbrk.m4: Likewise.
45372         * m4/strptime.m4: Likewise.
45373         * m4/strsep.m4: Likewise.
45374         * m4/strtod.m4: Likewise.
45375         * m4/strtoimax.m4: Likewise.
45376         * m4/strtok_r.m4: Likewise.
45377         * m4/strtol.m4: Likewise.
45378         * m4/strtoll.m4: Likewise.
45379         * m4/strtoul.m4: Likewise.
45380         * m4/strtoull.m4: Likewise.
45381         * m4/strtoumax.m4: Likewise.
45382         * m4/strverscmp.m4: Likewise.
45383         * m4/threadlib.m4: Likewise.
45384         * m4/timegm.m4: Likewise.
45385         * m4/tm_gmtoff.m4: Likewise.
45386         * m4/tmpdir.m4: Likewise.
45387         * m4/tmpfile.m4: Likewise.
45388         * m4/tzset.m4: Likewise.
45389         * m4/uintmax_t.m4: Likewise.
45390         * m4/unlinkdir.m4: Likewise.
45391         * m4/unlocked-io.m4: Likewise.
45392         * m4/uptime.m4: Likewise.
45393         * m4/userspec.m4: Likewise.
45394         * m4/utimbuf.m4: Likewise.
45395         * m4/utime.m4: Likewise.
45396         * m4/utimes-null.m4: Likewise.
45397         * m4/utimes.m4: Likewise.
45398         * m4/vararrays.m4: Likewise.
45399         * m4/vasnprintf.m4: Likewise.
45400         * m4/vfprintf-posix.m4: Likewise.
45401         * m4/vprintf-posix.m4: Likewise.
45402         * m4/wait-process.m4: Likewise.
45403         * m4/wchar_t.m4: Likewise.
45404         * m4/wint_t.m4: Likewise.
45405         * m4/write-any-file.m4: Likewise.
45406         * m4/yield.m4: Likewise.
45407
45408 2009-01-13  Bruno Haible  <bruno@clisp.org>
45409
45410         Avoid test-copy-file.sh failures when ACL support insufficient.
45411         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
45412         TESTS_ENVIRONMENT.
45413         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
45414         Reported by Jim Meyering.
45415
45416 2009-01-13  Bruno Haible  <bruno@clisp.org>
45417
45418         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
45419         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
45420         * modules/unistdio/u8-printf-parse (Files): Likewise.
45421         * modules/unistdio/u32-printf-parse (Files): Likewise.
45422         * modules/unistdio/ulc-printf-parse (Files): Likewise.
45423
45424 2009-01-13  Simon Josefsson  <simon@josefsson.org>
45425
45426         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
45427         and m4/inttypes_h.m4 too.
45428
45429 2009-01-12  Eric Blake  <ebb9@byu.net>
45430
45431         tests: IRIX 6.2 cc can't compile -0.0 into .data
45432         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
45433         rather than at compile-time.
45434         * tests/test-floorl.c (minus_zero): Likewise.
45435         * tests/test-frexpl.c (minus_zero): Likewise.
45436         * tests/test-isnan.c (minus_zerol): Likewise.
45437         * tests/test-isnanl.h (minus_zero): Likewise.
45438         * tests/test-ldexpl.c (minus_zero): Likewise.
45439         * tests/test-roundl.c (minus_zero): Likewise.
45440         * tests/test-signbit.c (minus_zerol): Likewise.
45441         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45442         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45443         * tests/test-truncl.c (minus_zero): Likewise.
45444         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45445         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45446         Reported by Tom G. Christensen and Nelson H. F. Beebe.
45447
45448 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
45449
45450         regex: fix glibc bug 9697
45451         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
45452         handling.
45453
45454 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
45455
45456         regex: fix glibc bug 697
45457         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
45458         being NULL also if there are no backreferences.
45459
45460 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
45461
45462         regex: merge glibc changes
45463         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
45464         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
45465         re_string_skip_chars, re_string_reconstruct): Likewise.
45466         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
45467
45468 2009-01-07  Jim Meyering  <meyering@redhat.com>
45469
45470         poll: filter through cppi
45471         * lib/poll.c: Indent cpp directives to reflect nesting.
45472
45473 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
45474
45475         poll: don't return uninitialized
45476         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
45477
45478 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
45479
45480         avoid compile failure on AIX 6.1
45481         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
45482         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
45483
45484 2009-01-04  Jim Meyering  <meyering@redhat.com>
45485
45486         remove duplicate inclusion of <stdio.h>
45487         * tests/test-fprintf-posix.c: Likewise.
45488         * tests/test-printf-posix.c: Likewise.
45489         * tests/test-snprintf-posix.c: Likewise.
45490         * tests/test-sprintf-posix.c: Likewise.
45491         * tests/test-vasprintf-posix.c: Likewise.
45492         * tests/test-vfprintf-posix.c: Likewise.
45493         * tests/test-vprintf-posix.c: Likewise.
45494         * tests/test-vsnprintf-posix.c: Likewise.
45495         * tests/test-vsprintf-posix.c: Likewise.
45496
45497 2009-01-03  Jim Meyering  <meyering@redhat.com>
45498
45499         gnulib-tool: fix sed-based filtering
45500         * gnulib-tool (func_filter_filelist): Remove extra backslash
45501         in sed_fff_filter definition.
45502
45503 2009-01-02  Jim Meyering  <meyering@redhat.com>
45504
45505         strftime: avoid compilation failure on Solaris 2.6
45506         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
45507         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
45508         Don't #define mbrlen or mbsinit, since now they're guaranteed to
45509         be available.  Reported by Tom G. Christensen.  Details in
45510         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
45511
45512 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45513             Bruno Haible  <bruno@clisp.org>
45514
45515         Speed up gnulib-tool by doing more string processing through shell
45516         built-ins.
45517         * gnulib-tool (fast_func_append): New variable.
45518         (func_remove_prefix, func_remove_suffix): New functions.
45519         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
45520         (func_filter_filelist): New function.
45521         (func_get_dependencies): Use func_remove_suffix instead of sed.
45522         (func_get_automake_snippet): Use func_filter_filelist instead of a
45523         subshell and sed invocation.
45524
45525 2009-01-01  Bruno Haible  <bruno@clisp.org>
45526
45527         Fix a security bug.
45528         * gnulib-tool (func_import, import, update): Don't allow the characters
45529         '"', '$', '`', '\' in macro arguments that become part of commands that
45530         are evaluated.
45531
45532 2009-01-01  Bruno Haible  <bruno@clisp.org>
45533
45534         * gnulib-tool (func_reset_sigpipe): Add more comments.
45535
45536 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45537
45538         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
45539         func_emit_tests_Makefile_am, func_import): Abort loops early if we
45540         already know the answer.
45541
45542 2009-01-01  Jim Meyering  <meyering@redhat.com>
45543
45544         * lib/version-etc.c (version_etc_va): Update copyright year.
45545
45546 2008-12-30  Bruno Haible  <bruno@clisp.org>
45547
45548         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
45549         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
45550         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
45551
45552 2008-12-29  Eric Blake  <ebb9@byu.net>
45553
45554         multiarch: avoid autoconf AC_REQUIRE bug
45555         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
45556         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
45557         2.63 and older.
45558         Reported by Bruno Haible, and analyzed in
45559         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
45560
45561 2008-12-29  Bruno Haible  <bruno@clisp.org>
45562
45563         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
45564         files in subdirectories correctly.
45565         Reported by Ralf Wildenhues.
45566
45567 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45568
45569         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
45570         rather than 'join FILE -', for Solaris join.
45571
45572 2008-12-29  Bruno Haible  <bruno@clisp.org>
45573
45574         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
45575         quoting.
45576         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
45577         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
45578         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
45579         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
45580         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
45581         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
45582         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
45583         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
45584         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
45585         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
45586         * m4/nls.m4 (AM_NLS): Likewise.
45587         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
45588         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
45589         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
45590         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
45591         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
45592         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
45593         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
45594         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
45595         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
45596         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
45597         * m4/xsize.m4 (gl_XSIZE): Likewise.
45598         Suggested by Jim Meyering.
45599
45600 2008-11-17  Bruce Korb  <bkorb@gnu.org>
45601
45602         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
45603         * lib/parse-duration.c: use a switch instead of cascading if's.
45604
45605 2008-12-29  Eric Blake  <ebb9@byu.net>
45606
45607         wchar.h: supply WEOF on Irix 5.3
45608         * lib/wchar.in.h (wint_t): Also supply WEOF.
45609         * lib/wctype.in.h (wint_t): Likewise.
45610         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
45611         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
45612         Reported by Tom G. Christensen.
45613
45614 2008-12-26  Bruno Haible  <bruno@clisp.org>
45615
45616         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
45617         i486, i586, i686.
45618
45619 2008-12-26  Bruno Haible  <bruno@clisp.org>
45620
45621         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
45622
45623 2008-12-26  Bruno Haible  <bruno@clisp.org>
45624
45625         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
45626         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
45627         not __STDC_CONSTANT_MACROS.
45628         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45629
45630 2008-12-25  Bruno Haible  <bruno@clisp.org>
45631
45632         Add support for universal builds to vasnprintf.
45633         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
45634         universal builds, guess no.
45635         * modules/vasnprintf-posix (Depends-on): Add multiarch.
45636         * modules/vasprintf-posix (Depends-on): Likewise.
45637         * modules/fprintf-posix (Depends-on): Likewise.
45638         * modules/vfprintf-posix (Depends-on): Likewise.
45639         * modules/snprintf-posix (Depends-on): Likewise.
45640         * modules/vsnprintf-posix (Depends-on): Likewise.
45641         * modules/sprintf-posix (Depends-on): Likewise.
45642         * modules/vsprintf-posix (Depends-on): Likewise.
45643         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45644         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45645         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45646         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45647         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45648         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45649         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45650
45651         Add support for universal builds to <inttypes.h>.
45652         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
45653         _SCNu64_PREFIX): In Apple
45654         universal builds, define directly, using _LP64.
45655         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
45656         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
45657         * modules/inttypes (Depends-on): Add multiarch.
45658         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
45659
45660         Add support for universal builds to <stdint.h>.
45661         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
45662         universal builds, define directly, using _LP64.
45663         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
45664         Apple universal builds, don't test for the size and suffix of ptrdiff_t
45665         and size_t.
45666         * modules/stdint (Depends-on): Add multiarch.
45667         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
45668
45669         New module 'multiarch'.
45670         * modules/multiarch: New file.
45671         * m4/multiarch.m4: New file.
45672
45673 2008-12-25  Bruno Haible  <bruno@clisp.org>
45674
45675         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
45676
45677 2008-12-25  Bruno Haible  <bruno@clisp.org>
45678
45679         * modules/btowc (License): Relicense under LGPLv2+.
45680         * modules/mbsinit (License): Likewise.
45681         * modules/mbrtowc (License): Likewise.
45682         * modules/wcrtomb (License): Likewise.
45683         * modules/streq (License): Likewise.
45684         Reported by David Lutterkort <lutter@redhat.com>.
45685
45686 2008-12-23  Bruno Haible  <bruno@clisp.org>
45687
45688         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
45689
45690 2008-12-23  Bruno Haible  <bruno@clisp.org>
45691
45692         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
45693         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
45694         GETADDRINFO_LIB, not in LIBS.
45695         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
45696         * modules/canon-host (Link): Likewise.
45697         * NEWS: Mention the change.
45698         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
45699         GETADDRINFO_LIB.
45700
45701 2008-12-22  Bruno Haible  <bruno@clisp.org>
45702
45703         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
45704         * doc/posix-functions/iswalpha_l.texi: Likewise.
45705         * doc/posix-functions/iswblank_l.texi: Likewise.
45706         * doc/posix-functions/iswcntrl_l.texi: Likewise.
45707         * doc/posix-functions/iswctype_l.texi: Likewise.
45708         * doc/posix-functions/iswdigit_l.texi: Likewise.
45709         * doc/posix-functions/iswgraph_l.texi: Likewise.
45710         * doc/posix-functions/iswlower_l.texi: Likewise.
45711         * doc/posix-functions/iswprint_l.texi: Likewise.
45712         * doc/posix-functions/iswpunct_l.texi: Likewise.
45713         * doc/posix-functions/iswspace_l.texi: Likewise.
45714         * doc/posix-functions/iswupper_l.texi: Likewise.
45715         * doc/posix-functions/iswxdigit_l.texi: Likewise.
45716         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
45717         * doc/posix-functions/open_wmemstream.texi: Likewise.
45718         * doc/posix-functions/swscanf.texi: Likewise.
45719         * doc/posix-functions/towctrans_l.texi: Likewise.
45720         * doc/posix-functions/towlower.texi: Likewise.
45721         * doc/posix-functions/towlower_l.texi: Likewise.
45722         * doc/posix-functions/towupper.texi: Likewise.
45723         * doc/posix-functions/towupper_l.texi: Likewise.
45724         * doc/posix-functions/vfwprintf.texi: Likewise.
45725         * doc/posix-functions/vfwscanf.texi: Likewise.
45726         * doc/posix-functions/vswscanf.texi: Likewise.
45727         * doc/posix-functions/vwprintf.texi: Likewise.
45728         * doc/posix-functions/vwscanf.texi: Likewise.
45729         * doc/posix-functions/wcpcpy.texi: Likewise.
45730         * doc/posix-functions/wcpncpy.texi: Likewise.
45731         * doc/posix-functions/wcscasecmp.texi: Likewise.
45732         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
45733         * doc/posix-functions/wcscoll_l.texi: Likewise.
45734         * doc/posix-functions/wcsdup.texi: Likewise.
45735         * doc/posix-functions/wcsncasecmp.texi: Likewise.
45736         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
45737         * doc/posix-functions/wcsnlen.texi: Likewise.
45738         * doc/posix-functions/wcsnrtombs.texi: Likewise.
45739         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
45740         * doc/posix-functions/wctrans_l.texi: Likewise.
45741         * doc/posix-functions/wctype_l.texi: Likewise.
45742         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
45743         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
45744         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
45745         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
45746         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
45747         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
45748         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
45749         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
45750         * doc/glibc-functions/wcschrnul.texi: Likewise.
45751         * doc/glibc-functions/wcsftime_l.texi: Likewise.
45752         * doc/glibc-functions/wcstod_l.texi: Likewise.
45753         * doc/glibc-functions/wcstof_l.texi: Likewise.
45754         * doc/glibc-functions/wcstol_l.texi: Likewise.
45755         * doc/glibc-functions/wcstold_l.texi: Likewise.
45756         * doc/glibc-functions/wcstoll_l.texi: Likewise.
45757         * doc/glibc-functions/wcstoq.texi: Likewise.
45758         * doc/glibc-functions/wcstoul_l.texi: Likewise.
45759         * doc/glibc-functions/wcstoull_l.texi: Likewise.
45760         * doc/glibc-functions/wcstouq.texi: Likewise.
45761         * doc/glibc-functions/wmempcpy.texi: Likewise.
45762
45763 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
45764             Eric Blake  <ebb9@byu.net>
45765             Paolo Bonzini  <bonzini@gnu.org>
45766             Bruno Haible  <bruno@clisp.org>
45767
45768         Make c-stack work on Haiku.
45769         * lib/c-stack.c (SA_ONSTACK): Define fallback.
45770         (c_stack_action): Use SA_ONSTACK flag.
45771
45772 2008-12-22  Bruno Haible  <bruno@clisp.org>
45773
45774         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
45775
45776 2008-12-22  Bruno Haible  <bruno@clisp.org>
45777
45778         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
45779         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
45780         being overridden.
45781         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
45782         New macros.
45783         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
45784         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
45785         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
45786         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
45787
45788 2008-12-22  Bruno Haible  <bruno@clisp.org>
45789
45790         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
45791         from test code.
45792
45793 2008-12-22  Eric Blake  <ebb9@byu.net>
45794
45795         Avoid gcc warnings on cygwin.
45796         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
45797         Avoid unused variable.
45798         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
45799         Likewise.
45800
45801 2008-12-22  Bruno Haible  <bruno@clisp.org>
45802
45803         Remove HAVE_MBRTOWC conditionals.
45804         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
45805         (mbscasecmp): Assume mbrtowc function.
45806         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
45807         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
45808         * lib/mbschr.c: Include mbuiter.h unconditionally.
45809         (mbschr): Assume mbrtowc function.
45810         * lib/mbscspn.c: Include mbuiter.h unconditionally.
45811         (mbscspn): Assume mbrtowc function.
45812         * lib/mbslen.c: Include mbuiter.h unconditionally.
45813         (mbslen): Assume mbrtowc function.
45814         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
45815         (mbsncasecmp): Assume mbrtowc function.
45816         * lib/mbsnlen.c: Include mbiter.h unconditionally.
45817         (mbsnlen): Assume mbrtowc function.
45818         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
45819         (mbspbrk): Assume mbrtowc function.
45820         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
45821         (mbspcasecmp): Assume mbrtowc function.
45822         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
45823         (mbsrchr): Assume mbrtowc function.
45824         * lib/mbssep.c: Include mbuiter.h unconditionally.
45825         (mbssep): Assume mbrtowc function.
45826         * lib/mbsspn.c: Include mbuiter.h unconditionally.
45827         (mbsspn): Assume mbrtowc function.
45828         * lib/mbsstr.c: Include mbuiter.h unconditionally.
45829         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
45830         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
45831         (mbstok_r): Assume mbrtowc function.
45832         * lib/propername.c: Include mbuiter.h unconditionally.
45833         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
45834         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
45835         (trim2): Assume mbrtowc function.
45836         * lib/mbswidth.c (mbsinit): Remove fallback definition.
45837         (mbsnwidth): Assume mbrtowc function.
45838         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
45839         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
45840         fallback definitions.
45841         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
45842
45843 2008-12-22  Bruno Haible  <bruno@clisp.org>
45844
45845         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
45846
45847 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
45848
45849         * modules/regex: Request emulations for the mb*/wc* functions we need.
45850         * m4/regex.m4: Don't look for those functions here.
45851         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
45852
45853 2008-12-22  Bruno Haible  <bruno@clisp.org>
45854
45855         * modules/fnmatch (Depends-on): Remove duplicated dependency.
45856
45857 2008-12-21  Bruno Haible  <bruno@clisp.org>
45858
45859         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
45860         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
45861         (Include): Remove conditionalization.
45862         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
45863         (Include): Remove conditionalization.
45864         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
45865         (Include): Remove conditionalization.
45866         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
45867         * m4/mbfile.m4 (gl_MBFILE): Likewise.
45868         * NEWS: Mention the change.
45869         Reported by Alan Hourihane <alanh@fairlite.co.uk>
45870         via Sergey Poznyakoff <gray@gnu.org.ua>.
45871
45872 2008-12-21  Bruno Haible  <bruno@clisp.org>
45873
45874         * MODULES.html.sh (Extended multibyte and wide character utilities
45875         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
45876         wcrtomb, wcsrtombs.
45877         (Support for systems lacking POSIX:2008): Add accept, bind, close,
45878         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
45879         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
45880         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
45881
45882 2008-12-21  Bruno Haible  <bruno@clisp.org>
45883
45884         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
45885
45886 2008-12-21  Bruno Haible  <bruno@clisp.org>
45887
45888         * modules/wcsnrtombs-tests: New file.
45889         * tests/test-wcsnrtombs1.sh: New file.
45890         * tests/test-wcsnrtombs2.sh: New file.
45891         * tests/test-wcsnrtombs3.sh: New file.
45892         * tests/test-wcsnrtombs4.sh: New file.
45893         * tests/test-wcsnrtombs.c: New file.
45894
45895         New module 'wcsnrtombs'.
45896         * lib/wchar.in.h (wcsnrtombs): New declaration.
45897         * lib/wcsnrtombs.c: New file.
45898         * lib/wcsrtombs-state.c: New file.
45899         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
45900         (internal_state): Remove variable.
45901         * m4/wcsnrtombs.m4: New file.
45902         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
45903         compilation units.
45904         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
45905         HAVE_WCSNRTOMBS.
45906         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
45907         HAVE_WCSNRTOMBS.
45908         * modules/wcsnrtombs: New file.
45909         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
45910         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
45911
45912 2008-12-21  Bruno Haible  <bruno@clisp.org>
45913
45914         * modules/wcsrtombs-tests: New file.
45915         * tests/test-wcsrtombs1.sh: New file.
45916         * tests/test-wcsrtombs2.sh: New file.
45917         * tests/test-wcsrtombs3.sh: New file.
45918         * tests/test-wcsrtombs4.sh: New file.
45919         * tests/test-wcsrtombs.c: New file.
45920
45921         New module 'wcsrtombs'.
45922         * lib/wchar.in.h (wcsrtombs): New declaration.
45923         * lib/wcsrtombs.c: New file.
45924         * m4/wcsrtombs.m4: New file.
45925         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
45926         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
45927         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
45928         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
45929         * modules/wcsrtombs: New file.
45930         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
45931         bugs.
45932
45933 2008-12-21  Bruno Haible  <bruno@clisp.org>
45934
45935         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
45936         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
45937         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
45938         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
45939         if not correct.
45940         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
45941         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
45942         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
45943         m4/locale-zh.m4, m4/codeset.m4.
45944         * doc/posix-functions/wcrtomb.texi: Document the bug.
45945
45946 2008-12-21  Bruno Haible  <bruno@clisp.org>
45947
45948         Work around a btowc() bug on IRIX 6.5.
45949         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
45950         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
45951         REPLACE_WTOBC if not.
45952         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
45953         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
45954         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
45955
45956 2008-12-21  Bruno Haible  <bruno@clisp.org>
45957
45958         * modules/wcrtomb-tests: New file.
45959         * tests/test-wcrtomb.sh: New file.
45960         * tests/test-wcrtomb.c: New file.
45961
45962         New module 'wcrtomb'.
45963         * lib/wchar.in.h (wcrtomb): New declaration.
45964         * lib/wcrtomb.c: New file.
45965         * m4/wcrtomb.m4: New file.
45966         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
45967         HAVE_WCRTOMB.
45968         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
45969         HAVE_WCRTOMB.
45970         * modules/wcrtomb: New file.
45971         * doc/posix-functions/wcrtomb.texi: Mention the new module.
45972
45973 2008-12-21  Bruno Haible  <bruno@clisp.org>
45974
45975         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
45976         * modules/mbsrtowcs (Files): Likewise.
45977         * modules/wctob (Files): Likewise.
45978         * modules/c-strcase-tests (Files): Likewise.
45979         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
45980         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
45981         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
45982         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
45983         * modules/vasnprintf-posix-tests (Files): Likewise.
45984
45985 2008-12-21  William Pursell  <bill.pursell@gmail.com>
45986
45987         gitlog-to-changelog: pass all command-line arguments to git-log
45988         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
45989         it is sometimes convenient to filter the commits in various ways.
45990         gitlog-to-changelog only allows --since to specify a start date,
45991         but git-log itself supports many other filtering mechanisms.
45992         At the moment, I want to filter by branch name.  Rather than
45993         adding a --branch option to gitlog-to-changelog, it seems more
45994         flexible to simply pass all options directly to git-log and let
45995         git do the work.  Notice that this effectively makes --since a
45996         redundant option for gitlog-to-changelog, but removing it would
45997         require current usage to change since calls would then require
45998         an additional '--'.
45999
46000 2008-12-21  Bruno Haible  <bruno@clisp.org>
46001
46002         * modules/mbsnrtowcs-tests: New file.
46003         * tests/test-mbsnrtowcs1.sh: New file.
46004         * tests/test-mbsnrtowcs2.sh: New file.
46005         * tests/test-mbsnrtowcs3.sh: New file.
46006         * tests/test-mbsnrtowcs4.sh: New file.
46007         * tests/test-mbsnrtowcs.c: New file.
46008
46009         New module 'mbsnrtowcs'.
46010         * lib/wchar.in.h (mbsnrtowcs): New declaration.
46011         * lib/mbsnrtowcs.c: New file.
46012         * lib/mbsrtowcs-state.c: New file.
46013         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
46014         (internal_state): Remove variable.
46015         * m4/mbsnrtowcs.m4: New file.
46016         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
46017         compilation units.
46018         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
46019         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
46020         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
46021         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
46022         * modules/mbsnrtowcs: New file.
46023         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
46024         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
46025         portability problem.
46026
46027 2008-12-21  Bruno Haible  <bruno@clisp.org>
46028
46029         Work around mbsrtowcs bug.
46030         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
46031         (gl_FUNC_MBSRTOWCS): Invoke it.
46032         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
46033         m4/locale-zh.m4.
46034         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
46035
46036 2008-12-21  Bruno Haible  <bruno@clisp.org>
46037
46038         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
46039
46040 2008-12-21  Bruno Haible  <bruno@clisp.org>
46041
46042         Update doc for AIX.
46043         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
46044         16-bit wchar_t type.
46045         * doc/posix-functions/btowc.texi: Likewise.
46046         * doc/posix-functions/fgetwc.texi: Likewise.
46047         * doc/posix-functions/fgetws.texi: Likewise.
46048         * doc/posix-functions/fputwc.texi: Likewise.
46049         * doc/posix-functions/fputws.texi: Likewise.
46050         * doc/posix-functions/fwide.texi: Likewise.
46051         * doc/posix-functions/fwprintf.texi: Likewise.
46052         * doc/posix-functions/fwscanf.texi: Likewise.
46053         * doc/posix-functions/getwchar.texi: Likewise.
46054         * doc/posix-functions/getwc.texi: Likewise.
46055         * doc/posix-functions/iswalnum.texi: Likewise.
46056         * doc/posix-functions/iswalpha.texi: Likewise.
46057         * doc/posix-functions/iswblank.texi: Likewise.
46058         * doc/posix-functions/iswcntrl.texi: Likewise.
46059         * doc/posix-functions/iswctype.texi: Likewise.
46060         * doc/posix-functions/iswdigit.texi: Likewise.
46061         * doc/posix-functions/iswgraph.texi: Likewise.
46062         * doc/posix-functions/iswlower.texi: Likewise.
46063         * doc/posix-functions/iswprint.texi: Likewise.
46064         * doc/posix-functions/iswpunct.texi: Likewise.
46065         * doc/posix-functions/iswspace.texi: Likewise.
46066         * doc/posix-functions/iswupper.texi: Likewise.
46067         * doc/posix-functions/iswxdigit.texi: Likewise.
46068         * doc/posix-functions/mbrtowc.texi: Likewise.
46069         * doc/posix-functions/mbsrtowcs.texi: Likewise.
46070         * doc/posix-functions/mbstowcs.texi: Likewise.
46071         * doc/posix-functions/mbtowc.texi: Likewise.
46072         * doc/posix-functions/putwchar.texi: Likewise.
46073         * doc/posix-functions/putwc.texi: Likewise.
46074         * doc/posix-functions/swprintf.texi: Likewise.
46075         * doc/posix-functions/tolower.texi: Likewise.
46076         * doc/posix-functions/toupper.texi: Likewise.
46077         * doc/posix-functions/towctrans.texi: Likewise.
46078         * doc/posix-functions/ungetwc.texi: Likewise.
46079         * doc/posix-functions/vswprintf.texi: Likewise.
46080         * doc/posix-functions/wcrtomb.texi: Likewise.
46081         * doc/posix-functions/wcscat.texi: Likewise.
46082         * doc/posix-functions/wcschr.texi: Likewise.
46083         * doc/posix-functions/wcscmp.texi: Likewise.
46084         * doc/posix-functions/wcscoll.texi: Likewise.
46085         * doc/posix-functions/wcscpy.texi: Likewise.
46086         * doc/posix-functions/wcscspn.texi: Likewise.
46087         * doc/posix-functions/wcsftime.texi: Likewise.
46088         * doc/posix-functions/wcslen.texi: Likewise.
46089         * doc/posix-functions/wcsncat.texi: Likewise.
46090         * doc/posix-functions/wcsncmp.texi: Likewise.
46091         * doc/posix-functions/wcsncpy.texi: Likewise.
46092         * doc/posix-functions/wcspbrk.texi: Likewise.
46093         * doc/posix-functions/wcsrchr.texi: Likewise.
46094         * doc/posix-functions/wcsrtombs.texi: Likewise.
46095         * doc/posix-functions/wcsspn.texi: Likewise.
46096         * doc/posix-functions/wcsstr.texi: Likewise.
46097         * doc/posix-functions/wcstod.texi: Likewise.
46098         * doc/posix-functions/wcstof.texi: Likewise.
46099         * doc/posix-functions/wcstoimax.texi: Likewise.
46100         * doc/posix-functions/wcstok.texi: Likewise.
46101         * doc/posix-functions/wcstold.texi: Likewise.
46102         * doc/posix-functions/wcstoll.texi: Likewise.
46103         * doc/posix-functions/wcstol.texi: Likewise.
46104         * doc/posix-functions/wcstombs.texi: Likewise.
46105         * doc/posix-functions/wcstoull.texi: Likewise.
46106         * doc/posix-functions/wcstoul.texi: Likewise.
46107         * doc/posix-functions/wcstoumax.texi: Likewise.
46108         * doc/posix-functions/wcswidth.texi: Likewise.
46109         * doc/posix-functions/wcsxfrm.texi: Likewise.
46110         * doc/posix-functions/wctob.texi: Likewise.
46111         * doc/posix-functions/wctomb.texi: Likewise.
46112         * doc/posix-functions/wctrans.texi: Likewise.
46113         * doc/posix-functions/wctype.texi: Likewise.
46114         * doc/posix-functions/wcwidth.texi: Likewise.
46115         * doc/posix-functions/wmemchr.texi: Likewise.
46116         * doc/posix-functions/wmemcmp.texi: Likewise.
46117         * doc/posix-functions/wmemcpy.texi: Likewise.
46118         * doc/posix-functions/wmemmove.texi: Likewise.
46119         * doc/posix-functions/wmemset.texi: Likewise.
46120         * doc/posix-functions/wprintf.texi: Likewise.
46121         * doc/posix-functions/wscanf.texi: Likewise.
46122
46123 2008-12-21  Bruno Haible  <bruno@clisp.org>
46124
46125         Update doc for HP-UX 11.11.
46126         * doc/posix-functions/btowc.texi: Clarify that the function is missing
46127         in HP-UX version 11.00, not in all versions of HP-UX 11.
46128         * doc/posix-functions/fwide.texi: Likewise.
46129         * doc/posix-functions/fwprintf.texi: Likewise.
46130         * doc/posix-functions/fwscanf.texi: Likewise.
46131         * doc/posix-functions/inet_ntop.texi: Likewise.
46132         * doc/posix-functions/inet_pton.texi: Likewise.
46133         * doc/posix-functions/mbrlen.texi: Likewise.
46134         * doc/posix-functions/mbrtowc.texi: Likewise.
46135         * doc/posix-functions/mbsinit.texi: Likewise.
46136         * doc/posix-functions/mbsrtowcs.texi: Likewise.
46137         * doc/posix-functions/swprintf.texi: Likewise.
46138         * doc/posix-functions/swscanf.texi: Likewise.
46139         * doc/posix-functions/towctrans.texi: Likewise.
46140         * doc/posix-functions/vfwprintf.texi: Likewise.
46141         * doc/posix-functions/vswprintf.texi: Likewise.
46142         * doc/posix-functions/vwprintf.texi: Likewise.
46143         * doc/posix-functions/wcrtomb.texi: Likewise.
46144         * doc/posix-functions/wcsrtombs.texi: Likewise.
46145         * doc/posix-functions/wcsstr.texi: Likewise.
46146         * doc/posix-functions/wctob.texi: Likewise.
46147         * doc/posix-functions/wctrans.texi: Likewise.
46148         * doc/posix-functions/wmemchr.texi: Likewise.
46149         * doc/posix-functions/wmemcmp.texi: Likewise.
46150         * doc/posix-functions/wmemcpy.texi: Likewise.
46151         * doc/posix-functions/wmemmove.texi: Likewise.
46152         * doc/posix-functions/wmemset.texi: Likewise.
46153         * doc/posix-functions/wprintf.texi: Likewise.
46154         * doc/posix-functions/wscanf.texi: Likewise.
46155
46156 2008-12-21  Bruno Haible  <bruno@clisp.org>
46157
46158         Work around a portability problem.
46159         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
46160         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
46161
46162 2008-12-20  Bruno Haible  <bruno@clisp.org>
46163
46164         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
46165         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
46166         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
46167         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
46168         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
46169
46170         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
46171         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
46172         set.
46173         (GNULIB_defined_mbstate_t): New macro.
46174         (mbsinit): Redefine if REPLACE_MBSINIT is set.
46175         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
46176         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
46177         reuses the system's mbrtowc function but works around the bugs.
46178         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
46179         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
46180         macros.
46181         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
46182         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
46183         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
46184         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
46185         REPLACE_MBSINIT if mbsinit needs to be overridden.
46186         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
46187         REPLACE_MBSINIT, REPLACE_MBRTOWC.
46188         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
46189         REPLACE_MBSINIT, REPLACE_MBRTOWC.
46190         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
46191         m4/locale-zh.m4.
46192         (Depends): Add mbsinit.
46193         * modules/mbsinit (Depends): Add mbrtowc.
46194         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
46195
46196 2008-12-20  Bruno Haible  <bruno@clisp.org>
46197
46198         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
46199         so that there are no conversion errors on AIX.
46200         * tests/test-mbsrtowcs.c (main): LIkewise.
46201
46202 2008-12-20  Bruno Haible  <bruno@clisp.org>
46203
46204         Work around wctob bug on Solaris <= 9.
46205         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
46206         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
46207         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
46208         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
46209         * modules/wctob (Files): Add m4/locale-fr.m4.
46210         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
46211
46212 2008-12-20  Bruno Haible  <bruno@clisp.org>
46213
46214         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
46215         /dev/null.
46216         * tests/test-select-in.sh: Likewise.
46217         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46218
46219 2008-12-20  Bruno Haible  <bruno@clisp.org>
46220
46221         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
46222         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
46223         Cygwin 1.5.x.
46224
46225 2008-12-20  Bruno Haible  <bruno@clisp.org>
46226
46227         Ensure mbstate_t is defined on HP-UX 11.11.
46228         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
46229         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
46230         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
46231         AC_USE_SYSTEM_EXTENSIONS.
46232         * modules/fnmatch (Depends-on): Add extensions.
46233         * modules/mbrlen (Depends-on): Likewise.
46234         * modules/mbrtowc (Depends-on): Likewise.
46235         * modules/mbsinit (Depends-on): Likewise.
46236         * modules/mbsrtowcs (Depends-on): Likewise.
46237         * modules/mbswidth (Depends-on): Likewise.
46238         * modules/quotearg (Depends-on): Likewise.
46239         * modules/strftime (Depends-on): Likewise.
46240
46241 2008-12-20  Bruno Haible  <bruno@clisp.org>
46242
46243         Ensure wctob is declared on IRIX 6.5.
46244         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
46245         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
46246         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
46247         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
46248         of HAVE_WCTOB.
46249         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
46250         HAVE_WCTOB.
46251         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
46252
46253 2008-12-19  Bruno Haible  <bruno@clisp.org>
46254
46255         * modules/mbsrtowcs-tests: New file.
46256         * tests/test-mbsrtowcs1.sh: New file.
46257         * tests/test-mbsrtowcs2.sh: New file.
46258         * tests/test-mbsrtowcs3.sh: New file.
46259         * tests/test-mbsrtowcs4.sh: New file.
46260         * tests/test-mbsrtowcs.c: New file.
46261
46262         New module 'mbsrtowcs'.
46263         * lib/wchar.in.h (mbsrtowcs): New declaration.
46264         * lib/mbsrtowcs.c: New file.
46265         * m4/mbsrtowcs.m4: New file.
46266         * modules/mbsrtowcs: New file.
46267         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
46268         HAVE_MBSRTOWCS.
46269         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
46270         HAVE_MBSRTOWCS.
46271         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
46272
46273 2008-12-19  Bruno Haible  <bruno@clisp.org>
46274
46275         New module 'mbrlen'.
46276         * lib/wchar.in.h (mbrlen): New declaration.
46277         * lib/mbrlen.c: New file.
46278         * m4/mbrlen.m4: New file.
46279         * modules/mbrlen: New file.
46280         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
46281         HAVE_MBRLEN.
46282         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
46283         HAVE_MBRLEN.
46284         * doc/posix-functions/mbrlen.texi: Document the new module.
46285
46286 2008-12-19  Bruno Haible  <bruno@clisp.org>
46287
46288         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
46289         * modules/mbrtowc (Depends-on): Add verify.
46290         Suggested by Paul Eggert.
46291
46292 2008-12-18  Bruno Haible  <bruno@clisp.org>
46293
46294         * modules/mbsinit-tests: New file.
46295         * tests/test-mbsinit.sh: New file.
46296         * tests/test-mbsinit.c: New file.
46297
46298 2008-12-18  Bruno Haible  <bruno@clisp.org>
46299
46300         * modules/mbrtowc-tests: New file.
46301         * tests/test-mbrtowc1.sh: New file.
46302         * tests/test-mbrtowc2.sh: New file.
46303         * tests/test-mbrtowc3.sh: New file.
46304         * tests/test-mbrtowc4.sh: New file.
46305         * tests/test-mbrtowc.c: New file.
46306
46307         New module 'mbrtowc'.
46308         * lib/wchar.in.h (mbstate_t): Override when the system does not have
46309         mbsinit and mbrtowc.
46310         (mbrtowc): New declaration.
46311         * lib/mbrtowc.c: New file.
46312         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
46313         * modules/mbrtowc: New file.
46314         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
46315         HAVE_MBRTOWC.
46316         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
46317         HAVE_MBRTOWC.
46318         * doc/posix-functions/mbrtowc.texi: Document the new module.
46319
46320 2008-12-18  Bruno Haible  <bruno@clisp.org>
46321
46322         New module 'wctob'.
46323         * lib/wchar.in.h (wctob): New declaration.
46324         * lib/wctob.c: New file.
46325         * m4/wctob.m4: New file.
46326         * modules/wctob: New file.
46327         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
46328         HAVE_WCTOB.
46329         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
46330         * doc/posix-functions/wctob.texi: Document the new module.
46331
46332 2008-12-18  Bruno Haible  <bruno@clisp.org>
46333
46334         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
46335         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
46336
46337 2008-12-18  Simon Josefsson  <simon@josefsson.org>
46338
46339         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
46340         G. Christensen" <tgc@jupiterrise.com>.
46341
46342         * lib/flock.c: Need to include errno.h.  Reported by "Tom
46343         G. Christensen" <tgc@jupiterrise.com>.
46344
46345         * lib/flock.c: Need to include string.h.  Reported by "Tom
46346         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
46347         <ebb9@byu.net>.
46348
46349 2008-12-18  Bruno Haible  <bruno@clisp.org>
46350
46351         * m4/locale-ja.m4: New file, from GNU gettext.
46352
46353 2008-12-17  Bruno Haible  <bruno@clisp.org>
46354
46355         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
46356         Suggested by Eric Blake.
46357
46358 2008-12-17  Bruno Haible  <bruno@clisp.org>
46359
46360         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
46361
46362 2008-12-17  Bruno Haible  <bruno@clisp.org>
46363
46364         * lib/mbsinit.c: Include verify.h. Verify an assumption.
46365         * modules/mbsinit (Depends-on): Add verify.
46366         Suggested by Paul Eggert.
46367
46368 2008-12-17  Bruno Haible  <bruno@clisp.org>
46369
46370         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
46371         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
46372         gl_FUNC_MBRTOWC.
46373         * m4/mbiter.m4 (gl_MBITER): LIkewise.
46374         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
46375         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
46376         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
46377         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
46378         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
46379         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
46380         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
46381         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
46382         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
46383         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
46384         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
46385         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
46386         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
46387         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
46388         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
46389         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
46390         * modules/trim (configure.ac): Likewise.
46391
46392 2008-12-17  Bruno Haible  <bruno@clisp.org>
46393
46394         * modules/btowc-tests: New file.
46395         * tests/test-btowc1.sh: New file.
46396         * tests/test-btowc2.sh: New file.
46397         * tests/test-btowc.c: New file.
46398
46399         New module 'btowc'.
46400         * lib/wchar.in.h (btowc): New declaration.
46401         * lib/btowc.c: New file.
46402         * m4/btowc.m4: New file.
46403         * modules/btowc: New file.
46404         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
46405         HAVE_BTOWC.
46406         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
46407         * doc/posix-functions/btowc.texi: Document the new module.
46408
46409 2008-12-17  Bruno Haible  <bruno@clisp.org>
46410
46411         New module 'mbsinit'.
46412         * lib/wchar.in.h (mbsinit): New declaration.
46413         * lib/mbsinit.c: New file.
46414         * m4/mbsinit.m4: New file.
46415         * modules/mbsinit: New file.
46416         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
46417         HAVE_MBSINIT.
46418         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
46419         HAVE_MBSINIT.
46420         * doc/posix-functions/mbsinit.texi: Document the new module.
46421
46422 2008-12-16  Bruno Haible  <bruno@clisp.org>
46423
46424         * lib/unistd.in.h: Add comment.
46425         * tests/test-environ.c: Don't include <stdlib.h>.
46426
46427 2008-12-16  Bruno Haible  <bruno@clisp.org>
46428
46429         * lib/parse-duration.h (parse_duration): Document return value
46430         convention.
46431         * lib/parse-duration.c: Include specification header first. Add
46432         comments.
46433         (_): Remove macro.
46434         (parse_year_month_day, parse_hour_minute_second): Move side effects
46435         outside of strchr call.
46436         (parse_non_iso8601): Move side effects outside of isspace call.
46437         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
46438         call.
46439
46440 2008-12-16  Bruno Haible  <bruno@clisp.org>
46441
46442         * tests/test-parse-duration.sh: Produce no output when the test
46443         succeeds.
46444
46445 2008-12-16  Bruno Haible  <bruno@clisp.org>
46446
46447         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
46448         expressions.
46449
46450 2008-12-15  Bruno Haible  <bruno@clisp.org>
46451
46452         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
46453         * doc/glibc-functions/flistxattr.texi: Likewise.
46454         * doc/glibc-functions/fopencookie.texi: Likewise.
46455         * doc/glibc-functions/fremovexattr.texi: Likewise.
46456         * doc/glibc-functions/fsetxattr.texi: Likewise.
46457         * doc/glibc-functions/getxattr.texi: Likewise.
46458         * doc/glibc-functions/lgetxattr.texi: Likewise.
46459         * doc/glibc-functions/listxattr.texi: Likewise.
46460         * doc/glibc-functions/llistxattr.texi: Likewise.
46461         * doc/glibc-functions/lremovexattr.texi: Likewise.
46462         * doc/glibc-functions/lsetxattr.texi: Likewise.
46463         * doc/glibc-functions/removexattr.texi: Likewise.
46464         * doc/glibc-functions/setxattr.texi: Likewise.
46465         * doc/posix-functions/open_memstream.texi: Likewise.
46466
46467 2008-12-15  Eric Blake  <ebb9@byu.net>
46468
46469         Update doc for cygwin 1.7.
46470         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
46471         functions.
46472         * doc/posix-functions/fchmodat.texi: Likewise.
46473         * doc/posix-functions/fchownat.texi: Likewise.
46474         * doc/posix-functions/fdopendir.texi: Likewise.
46475         * doc/posix-functions/fmemopen.texi: Likewise.
46476         * doc/posix-functions/freeaddrinfo.texi: Likewise.
46477         * doc/posix-functions/fstatat.texi: Likewise.
46478         * doc/posix-functions/futimens.texi: Likewise.
46479         * doc/posix-functions/gai_strerror.texi: Likewise.
46480         * doc/posix-functions/getaddrinfo.texi: Likewise.
46481         * doc/posix-functions/getnameinfo.texi: Likewise.
46482         * doc/posix-functions/if_freenameindex.texi: Likewise.
46483         * doc/posix-functions/if_indextoname.texi: Likewise.
46484         * doc/posix-functions/if_nameindex.texi: Likewise.
46485         * doc/posix-functions/if_nametoindex.texi: Likewise.
46486         * doc/posix-functions/insque.texi: Likewise.
46487         * doc/posix-functions/linkat.texi: Likewise.
46488         * doc/posix-functions/llrint.texi: Likewise.
46489         * doc/posix-functions/llrintf.texi: Likewise.
46490         * doc/posix-functions/llrintl.texi: Likewise.
46491         * doc/posix-functions/lockf.texi: Likewise.
46492         * doc/posix-functions/lrintl.texi: Likewise.
46493         * doc/posix-functions/mkdirat.texi: Likewise.
46494         * doc/posix-functions/mkfifoat.texi: Likewise.
46495         * doc/posix-functions/mknodat.texi: Likewise.
46496         * doc/posix-functions/mq_close.texi: Likewise.
46497         * doc/posix-functions/mq_getattr.texi: Likewise.
46498         * doc/posix-functions/mq_notify.texi: Likewise.
46499         * doc/posix-functions/mq_open.texi: Likewise.
46500         * doc/posix-functions/mq_receive.texi: Likewise.
46501         * doc/posix-functions/mq_send.texi: Likewise.
46502         * doc/posix-functions/mq_setattr.texi: Likewise.
46503         * doc/posix-functions/mq_timedreceive.texi: Likewise.
46504         * doc/posix-functions/mq_timedsend.texi: Likewise.
46505         * doc/posix-functions/mq_unlink.texi: Likewise.
46506         * doc/posix-functions/open_memstream.texi: Likewise.
46507         * doc/posix-functions/openat.texi: Likewise.
46508         * doc/posix-functions/posix_fadvise.texi: Likewise.
46509         * doc/posix-functions/posix_fallocate.texi: Likewise.
46510         * doc/posix-functions/posix_madvise.texi: Likewise.
46511         * doc/posix-functions/posix_memalign.texi: Likewise.
46512         * doc/posix-functions/posix_openpt.texi: Likewise.
46513         * doc/posix-functions/readlinkat.texi: Likewise.
46514         * doc/posix-functions/remque.texi: Likewise.
46515         * doc/posix-functions/renameat.texi: Likewise.
46516         * doc/posix-functions/rintl.texi: Likewise.
46517         * doc/posix-functions/sem_unlink.texi: Likewise.
46518         * doc/posix-functions/shm_open.texi: Likewise.
46519         * doc/posix-functions/shm_unlink.texi: Likewise.
46520         * doc/posix-functions/signgam.texi: Likewise.
46521         * doc/posix-functions/sigset.texi: Likewise.
46522         * doc/posix-functions/stpcpy.texi: Likewise.
46523         * doc/posix-functions/stpncpy.texi: Likewise.
46524         * doc/posix-functions/strerror.texi: Likewise.
46525         * doc/posix-functions/strtod.texi: Likewise.
46526         * doc/posix-functions/symlinkat.texi: Likewise.
46527         * doc/posix-functions/unlinkat.texi: Likewise.
46528         * doc/posix-functions/utimensat.texi: Likewise.
46529         * doc/glibc-functions/bindresvport.texi: Likewise.
46530         * doc/glibc-functions/dn_expand.texi: Likewise.
46531         * doc/glibc-functions/exp10.texi: Likewise.
46532         * doc/glibc-functions/exp10f.texi: Likewise.
46533         * doc/glibc-functions/fgetxattr.texi: Likewise.
46534         * doc/glibc-functions/flistxattr.texi: Likewise.
46535         * doc/glibc-functions/fopencookie.texi: Likewise.
46536         * doc/glibc-functions/freeifaddrs.texi: Likewise.
46537         * doc/glibc-functions/fremovexattr.texi: Likewise.
46538         * doc/glibc-functions/fsetxattr.texi: Likewise.
46539         * doc/glibc-functions/getifaddrs.texi: Likewise.
46540         * doc/glibc-functions/getxattr.texi: Likewise.
46541         * doc/glibc-functions/lgetxattr.texi: Likewise.
46542         * doc/glibc-functions/listxattr.texi: Likewise.
46543         * doc/glibc-functions/llistxattr.texi: Likewise.
46544         * doc/glibc-functions/lremovexattr.texi: Likewise.
46545         * doc/glibc-functions/lsetxattr.texi: Likewise.
46546         * doc/glibc-functions/pow10.texi: Likewise.
46547         * doc/glibc-functions/pow10f.texi: Likewise.
46548         * doc/glibc-functions/rcmd_af.texi: Likewise.
46549         * doc/glibc-functions/removexattr.texi: Likewise.
46550         * doc/glibc-functions/res_init.texi: Likewise.
46551         * doc/glibc-functions/res_mkquery.texi: Likewise.
46552         * doc/glibc-functions/res_query.texi: Likewise.
46553         * doc/glibc-functions/res_querydomain.texi: Likewise.
46554         * doc/glibc-functions/res_send.texi: Likewise.
46555         * doc/glibc-functions/rresvport_af.texi: Likewise.
46556         * doc/glibc-functions/setxattr.texi: Likewise.
46557         * doc/glibc-functions/strcasestr.texi: Likewise.
46558
46559 2008-12-15  Bruno Haible  <bruno@clisp.org>
46560
46561         Fix compilation error on OSF/1 4.0.
46562         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
46563         <sys/time.h>, simply delegate to the system header.
46564         Reported by Daniel Richard G. <oss@teragram.com>.
46565
46566 2008-12-15  Bruno Haible  <bruno@clisp.org>
46567
46568         * doc/posix-functions/openat.texi: Mention the 'openat' module.
46569         * doc/posix-functions/fchmodat.texi: Likewise.
46570         * doc/posix-functions/fchownat.texi: Likewise.
46571         * doc/posix-functions/fdopendir.texi: Likewise.
46572         * doc/posix-functions/fstatat.texi: Likewise.
46573         * doc/posix-functions/mkdirat.texi: Likewise.
46574         * doc/posix-functions/unlinkat.texi: Likewise.
46575
46576 2008-12-14  Bruno Haible  <bruno@clisp.org>
46577
46578         Update doc for POSIX:2008.
46579         * doc/posix-functions/faccessat.texi: New file.
46580         * doc/posix-functions/fchmodat.texi: New file.
46581         * doc/posix-functions/fchownat.texi: New file.
46582         * doc/posix-functions/fdopendir.texi: New file.
46583         * doc/posix-functions/fstatat.texi: New file.
46584         * doc/posix-functions/futimens.texi: New file.
46585         * doc/posix-functions/linkat.texi: New file.
46586         * doc/posix-functions/mkdirat.texi: New file.
46587         * doc/posix-functions/mkfifoat.texi: New file.
46588         * doc/posix-functions/mknodat.texi: New file.
46589         * doc/posix-functions/open_wmemstream.texi: New file.
46590         * doc/posix-functions/openat.texi: New file.
46591         * doc/posix-functions/psiginfo.texi: New file.
46592         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
46593         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
46594         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
46595         * doc/posix-functions/readlinkat.texi: New file.
46596         * doc/posix-functions/renameat.texi: New file.
46597         * doc/posix-functions/strerror_l.texi: New file.
46598         * doc/posix-functions/symlinkat.texi: New file.
46599         * doc/posix-functions/unlinkat.texi: New file.
46600         * doc/posix-functions/utimensat.texi: New file.
46601         * doc/gnulib.texi (Function Substitutes): Add these subsections.
46602
46603 2008-12-14  Bruno Haible  <bruno@clisp.org>
46604
46605         Update doc for POSIX:2008.
46606         * doc/posix-functions/alphasort.texi: Renamed from
46607         doc/glibc-functions/alphasort.texi.
46608         * doc/posix-functions/dirfd.texi: Renamed from
46609         doc/glibc-functions/dirfd.texi.
46610         * doc/posix-functions/dprintf.texi: Renamed from
46611         doc/glibc-functions/dprintf.texi.
46612         * doc/posix-functions/duplocale.texi: Renamed from
46613         doc/glibc-functions/duplocale.texi.
46614         * doc/posix-functions/fexecve.texi: Renamed from
46615         doc/glibc-functions/fexecve.texi.
46616         * doc/posix-functions/fmemopen.texi: Renamed from
46617         doc/glibc-functions/fmemopen.texi.
46618         * doc/posix-functions/freelocale.texi: Renamed from
46619         doc/glibc-functions/freelocale.texi.
46620         * doc/posix-functions/getdate_err.texi: Renamed from
46621         doc/glibc-functions/getdate_err.texi.
46622         * doc/posix-functions/isalnum_l.texi: Renamed from
46623         doc/glibc-functions/isalnum_l.texi.
46624         * doc/posix-functions/isalpha_l.texi: Renamed from
46625         doc/glibc-functions/isalpha_l.texi.
46626         * doc/posix-functions/isblank_l.texi: Renamed from
46627         doc/glibc-functions/isblank_l.texi.
46628         * doc/posix-functions/iscntrl_l.texi: Renamed from
46629         doc/glibc-functions/iscntrl_l.texi.
46630         * doc/posix-functions/isdigit_l.texi: Renamed from
46631         doc/glibc-functions/isdigit_l.texi.
46632         * doc/posix-functions/isgraph_l.texi: Renamed from
46633         doc/glibc-functions/isgraph_l.texi.
46634         * doc/posix-functions/islower_l.texi: Renamed from
46635         doc/glibc-functions/islower_l.texi.
46636         * doc/posix-functions/isprint_l.texi: Renamed from
46637         doc/glibc-functions/isprint_l.texi.
46638         * doc/posix-functions/ispunct_l.texi: Renamed from
46639         doc/glibc-functions/ispunct_l.texi.
46640         * doc/posix-functions/isspace_l.texi: Renamed from
46641         doc/glibc-functions/isspace_l.texi.
46642         * doc/posix-functions/isupper_l.texi: Renamed from
46643         doc/glibc-functions/isupper_l.texi.
46644         * doc/posix-functions/iswalnum_l.texi: Renamed from
46645         doc/glibc-functions/iswalnum_l.texi.
46646         * doc/posix-functions/iswalpha_l.texi: Renamed from
46647         doc/glibc-functions/iswalpha_l.texi.
46648         * doc/posix-functions/iswblank_l.texi: Renamed from
46649         doc/glibc-functions/iswblank_l.texi.
46650         * doc/posix-functions/iswcntrl_l.texi: Renamed from
46651         doc/glibc-functions/iswcntrl_l.texi.
46652         * doc/posix-functions/iswctype_l.texi: Renamed from
46653         doc/glibc-functions/iswctype_l.texi.
46654         * doc/posix-functions/iswdigit_l.texi: Renamed from
46655         doc/glibc-functions/iswdigit_l.texi.
46656         * doc/posix-functions/iswgraph_l.texi: Renamed from
46657         doc/glibc-functions/iswgraph_l.texi.
46658         * doc/posix-functions/iswlower_l.texi: Renamed from
46659         doc/glibc-functions/iswlower_l.texi.
46660         * doc/posix-functions/iswprint_l.texi: Renamed from
46661         doc/glibc-functions/iswprint_l.texi.
46662         * doc/posix-functions/iswpunct_l.texi: Renamed from
46663         doc/glibc-functions/iswpunct_l.texi.
46664         * doc/posix-functions/iswspace_l.texi: Renamed from
46665         doc/glibc-functions/iswspace_l.texi.
46666         * doc/posix-functions/iswupper_l.texi: Renamed from
46667         doc/glibc-functions/iswupper_l.texi.
46668         * doc/posix-functions/iswxdigit_l.texi: Renamed from
46669         doc/glibc-functions/iswxdigit_l.texi.
46670         * doc/posix-functions/isxdigit_l.texi: Renamed from
46671         doc/glibc-functions/isxdigit_l.texi.
46672         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
46673         doc/glibc-functions/mbsnrtowcs.texi.
46674         * doc/posix-functions/mkdtemp.texi: Renamed from
46675         doc/glibc-functions/mkdtemp.texi.
46676         * doc/posix-functions/newlocale.texi: Renamed from
46677         doc/glibc-functions/newlocale.texi.
46678         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
46679         doc/glibc-functions/nl_langinfo_l.texi.
46680         * doc/posix-functions/open_memstream.texi: Renamed from
46681         doc/glibc-functions/open_memstream.texi.
46682         * doc/posix-functions/opterr.texi: Renamed from
46683         doc/glibc-functions/opterr.texi.
46684         * doc/posix-functions/optind.texi: Renamed from
46685         doc/glibc-functions/optind.texi.
46686         * doc/posix-functions/optopt.texi: Renamed from
46687         doc/glibc-functions/optopt.texi.
46688         * doc/posix-functions/psignal.texi: Renamed from
46689         doc/glibc-functions/psignal.texi.
46690         * doc/posix-functions/scandir.texi: Renamed from
46691         doc/glibc-functions/scandir.texi.
46692         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
46693         doc/glibc-functions/sched_get_priority_min.texi.
46694         * doc/posix-functions/signgam.texi: Renamed from
46695         doc/glibc-functions/signgam.texi.
46696         * doc/posix-functions/stpcpy.texi: Renamed from
46697         doc/glibc-functions/stpcpy.texi.
46698         * doc/posix-functions/stpncpy.texi: Renamed from
46699         doc/glibc-functions/stpncpy.texi.
46700         * doc/posix-functions/strcasecmp_l.texi: Renamed from
46701         doc/glibc-functions/strcasecmp_l.texi.
46702         * doc/posix-functions/strcoll_l.texi: Renamed from
46703         doc/glibc-functions/strcoll_l.texi.
46704         * doc/posix-functions/strfmon_l.texi: Renamed from
46705         doc/glibc-functions/strfmon_l.texi.
46706         * doc/posix-functions/strftime_l.texi: Renamed from
46707         doc/glibc-functions/strftime_l.texi.
46708         * doc/posix-functions/strncasecmp_l.texi: Renamed from
46709         doc/glibc-functions/strncasecmp_l.texi.
46710         * doc/posix-functions/strndup.texi: Renamed from
46711         doc/glibc-functions/strndup.texi.
46712         * doc/posix-functions/strnlen.texi: Renamed from
46713         doc/glibc-functions/strnlen.texi.
46714         * doc/posix-functions/strsignal.texi: Renamed from
46715         doc/glibc-functions/strsignal.texi.
46716         * doc/posix-functions/strxfrm_l.texi: Renamed from
46717         doc/glibc-functions/strxfrm_l.texi.
46718         * doc/posix-functions/timer_gettime.texi: Renamed from
46719         doc/glibc-functions/timer_gettime.texi.
46720         * doc/posix-functions/tolower_l.texi: Renamed from
46721         doc/glibc-functions/tolower_l.texi.
46722         * doc/posix-functions/toupper_l.texi: Renamed from
46723         doc/glibc-functions/toupper_l.texi.
46724         * doc/posix-functions/towctrans_l.texi: Renamed from
46725         doc/glibc-functions/towctrans_l.texi.
46726         * doc/posix-functions/towlower_l.texi: Renamed from
46727         doc/glibc-functions/towlower_l.texi.
46728         * doc/posix-functions/towupper_l.texi: Renamed from
46729         doc/glibc-functions/towupper_l.texi.
46730         * doc/posix-functions/uselocale.texi: Renamed from
46731         doc/glibc-functions/uselocale.texi.
46732         * doc/posix-functions/vdprintf.texi: Renamed from
46733         doc/glibc-functions/vdprintf.texi.
46734         * doc/posix-functions/wcpcpy.texi:
46735         Renamed from doc/glibc-functions/wcpcpy.texi.
46736         * doc/posix-functions/wcpncpy.texi: Renamed from
46737         doc/glibc-functions/wcpncpy.texi.
46738         * doc/posix-functions/wcscasecmp.texi: Renamed from
46739         doc/glibc-functions/wcscasecmp.texi.
46740         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
46741         doc/glibc-functions/wcscasecmp_l.texi.
46742         * doc/posix-functions/wcscoll_l.texi: Renamed from
46743         doc/glibc-functions/wcscoll_l.texi.
46744         * doc/posix-functions/wcsdup.texi: Renamed from
46745         doc/glibc-functions/wcsdup.texi.
46746         * doc/posix-functions/wcsncasecmp.texi: Renamed from
46747         doc/glibc-functions/wcsncasecmp.texi.
46748         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
46749         doc/glibc-functions/wcsncasecmp_l.texi.
46750         * doc/posix-functions/wcsnlen.texi: Renamed from
46751         doc/glibc-functions/wcsnlen.texi.
46752         * doc/posix-functions/wcsnrtombs.texi: Renamed from
46753         doc/glibc-functions/wcsnrtombs.texi.
46754         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
46755         doc/glibc-functions/wcsxfrm_l.texi.
46756         * doc/posix-functions/wctrans_l.texi: Renamed from
46757         doc/glibc-functions/wctrans_l.texi.
46758         * doc/posix-functions/wctype_l.texi: Renamed from
46759         doc/glibc-functions/wctype_l.texi.
46760         * doc/gnulib.texi (Function Substitutes): Add these subsections.
46761         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
46762         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
46763         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
46764         these subsections.
46765         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
46766         Remove sections.
46767
46768 2008-12-14  Bruno Haible  <bruno@clisp.org>
46769
46770         Update doc for POSIX:2008.
46771         * doc/posix-functions/*.texi: Update URL of POSIX specification.
46772
46773 2008-12-14  Bruno Haible  <bruno@clisp.org>
46774
46775         Update doc for POSIX:2008.
46776         * doc/pastposix-functions/bcmp.texi: Renamed from
46777         doc/posix-functions/bcmp.texi.
46778         * doc/pastposix-functions/bcopy.texi: Renamed from
46779         doc/posix-functions/bcopy.texi.
46780         * doc/pastposix-functions/bsd_signal.texi: Renamed from
46781         doc/posix-functions/bsd_signal.texi.
46782         * doc/pastposix-functions/bzero.texi: Renamed from
46783         doc/posix-functions/bzero.texi.
46784         * doc/pastposix-functions/ecvt.texi: Renamed from
46785         doc/posix-functions/ecvt.texi.
46786         * doc/pastposix-functions/fcvt.texi: Renamed from
46787         doc/posix-functions/fcvt.texi.
46788         * doc/pastposix-functions/ftime.texi: Renamed from
46789         doc/posix-functions/ftime.texi.
46790         * doc/pastposix-functions/gcvt.texi: Renamed from
46791         doc/posix-functions/gcvt.texi.
46792         * doc/pastposix-functions/getcontext.texi: Renamed from
46793         doc/posix-functions/getcontext.texi.
46794         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
46795         doc/posix-functions/gethostbyaddr.texi.
46796         * doc/pastposix-functions/gethostbyname.texi: Renamed from
46797         doc/posix-functions/gethostbyname.texi.
46798         * doc/pastposix-functions/getwd.texi: Renamed from
46799         doc/posix-functions/getwd.texi.
46800         * doc/pastposix-functions/h_errno.texi: Renamed from
46801         doc/posix-functions/h_errno.texi.
46802         * doc/pastposix-functions/index.texi: Renamed from
46803         doc/posix-functions/index.texi.
46804         * doc/pastposix-functions/makecontext.texi: Renamed from
46805         doc/posix-functions/makecontext.texi.
46806         * doc/pastposix-functions/mktemp.texi: Renamed from
46807         doc/posix-functions/mktemp.texi.
46808         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
46809         doc/posix-functions/pthread_attr_getstackaddr.texi.
46810         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
46811         doc/posix-functions/pthread_attr_setstackaddr.texi.
46812         * doc/pastposix-functions/rindex.texi: Renamed from
46813         doc/posix-functions/rindex.texi.
46814         * doc/pastposix-functions/scalb.texi: Renamed from
46815         doc/posix-functions/scalb.texi.
46816         * doc/pastposix-functions/setcontext.texi: Renamed from
46817         doc/posix-functions/setcontext.texi.
46818         * doc/pastposix-functions/swapcontext.texi: Renamed from
46819         doc/posix-functions/swapcontext.texi.
46820         * doc/pastposix-functions/ualarm.texi: Renamed from
46821         doc/posix-functions/ualarm.texi.
46822         * doc/pastposix-functions/usleep.texi: Renamed from
46823         doc/posix-functions/usleep.texi.
46824         * doc/pastposix-functions/vfork.texi: Renamed from
46825         doc/posix-functions/vfork.texi.
46826         * doc/pastposix-functions/wcswcs.texi: Renamed from
46827         doc/posix-functions/wcswcs.texi.
46828         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
46829         (Function Substitutes): Update.
46830
46831 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46832
46833         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
46834         m4/strerror.m4.
46835
46836 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46837             Bruno Haible  <bruno@clisp.org>
46838
46839         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
46840
46841 2008-12-13  Bruno Haible  <bruno@clisp.org>
46842
46843         * modules/strtoull (Depends-on): Remove unistd.
46844
46845 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46846
46847         * modules/strtoull (Depends-on): Add stdlib.
46848
46849 2008-12-11  Simon Josefsson  <simon@josefsson.org>
46850
46851         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
46852
46853 2008-12-10  Jim Meyering  <meyering@redhat.com>
46854
46855         gl_ASSERT: don't say assertions are disabled when they're not
46856         * m4/assert.m4 (gl_ASSERT): Do not make configure report
46857         "checking whether to enable assertions... no", when they are in
46858         fact enabled.  This is solely a bug in the output of configure.
46859         In spite of saying "no", NDEBUG was not defined in that case.
46860         Also, as noted by Eric Blake, leave assertions enabled upon
46861         --enable-assert=INVALID.
46862
46863 2008-12-10  Bruno Haible  <bruno@clisp.org>
46864
46865         Change MODULES.html to refer to POSIX:2008 where possible.
46866         * MODULES.html.sh (POSIX2008_URL): New variable.
46867         (posix_headers): Remove sys/timeb, ucontext.
46868         (posix2001_headers): New variable.
46869         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
46870         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
46871         index, makecontext, mktemp, pthread_attr_getstackaddr,
46872         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
46873         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
46874         (posix2001_functions): New variable.
46875         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
46876         otherwise.
46877
46878 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46879
46880         add missing include to parse-duration.c
46881         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
46882         * modules/parse-duration (Depends-on): Add xalloc.
46883
46884         fix sed script reading maint.mk
46885         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
46886         (syntax-check-rules): Use it.
46887
46888 2008-12-09  Bruno Haible  <bruno@clisp.org>
46889
46890         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
46891         MacOS X 10.4/PowerPC.
46892         Reported by Simon Josefsson.
46893
46894 2008-12-08  Jim Meyering  <meyering@redhat.com>
46895
46896         work around mingw's lack of some S_IF definitions
46897         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
46898         Reported by Simon Josefsson.
46899
46900 2008-12-08  Bruno Haible  <bruno@clisp.org>
46901
46902         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
46903         applied to variables. Needed on MacOS X 10.4/PowerPC.
46904         Reported by Simon Josefsson.
46905
46906 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
46907         and Eric Blake  <ebb9@byu.net>
46908
46909         assert: honor --enable-assert
46910         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
46911         order to honor --enable-assert, rather than treating it as a
46912         synonym for --disable-assert.
46913
46914 2008-12-08  Jim Meyering  <meyering@redhat.com>
46915
46916         * lib/posixtm.c: Remove now-useless declaration of mktime.
46917
46918         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
46919
46920 2008-12-07  Bruno Haible  <bruno@clisp.org>
46921
46922         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
46923         test_once): Mark functions as static.
46924         * tests/test-tls.c (test_tls): Likewise.
46925
46926 2008-12-07  Bruno Haible  <bruno@clisp.org>
46927
46928         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
46929         iconv_register_autodetect.
46930
46931 2008-12-07  Jim Meyering  <meyering@redhat.com>
46932
46933         posixtm.c: avoid a warning
46934         * lib/posixtm.c (posixtime): Don't initialize tm0.
46935         It's no longer needed to placate gcc4's -Wuninitialized,
46936         and the attempt to placate would elicit a new warning.
46937
46938         unicodeio.c: mark unused parameters
46939         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
46940         (fallback_failure_callback): Likewise.
46941
46942 2008-12-07  Bruno Haible  <bruno@clisp.org>
46943
46944         * gnulib-tool (func_create_testdir): When building the tests
46945         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
46946         Reported by Simon Josefsson.
46947
46948 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46949
46950         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
46951
46952 2008-12-06  Bruno Haible  <bruno@clisp.org>
46953
46954         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
46955         Suggested by Eric Blake.
46956
46957 2008-12-06  Bruno Haible  <bruno@clisp.org>
46958
46959         Fix a c-stack test failure on MacOS X.
46960         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
46961         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
46962         handler for SIGBUS as well.
46963         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
46964         install a signal handler for SIGBUS as well.
46965         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
46966
46967 2008-12-06  Bruno Haible  <bruno@clisp.org>
46968
46969         Advocacy documentation.
46970         * doc/gnulib-intro.texi (Benefits): New section.
46971         * doc/gnulib.texi: Update.
46972
46973 2008-12-06  Bruno Haible  <bruno@clisp.org>
46974
46975         Document the 'manywarnings' module.
46976         * doc/manywarnings.texi: New file.
46977         * doc/gnulib.texi: Include it.
46978
46979 2008-12-05  Eric Blake  <ebb9@byu.net>
46980
46981         tests: silence some gcc warnings
46982         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
46983         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
46984         type mismatches.
46985
46986 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46987             Bruno Haible  <bruno@clisp.org>
46988
46989         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
46990
46991 2008-11-29  Jim Meyering  <meyering@redhat.com>
46992
46993         unicodeio.c: mark unused parameters
46994         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
46995         (fallback_failure_callback): Likewise.
46996
46997         fts: fix a thinko
46998         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
46999         (set_stat_type): Return S_IF*-valued "type" directly.
47000         Prompted by James Youngman's spotting a related bug.
47001         Confirmed by further testing through find.
47002
47003         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
47004         * lib/fts.c (D_TYPE): Define.
47005         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
47006         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
47007         (s_ifmt_shift_bits): New function.
47008         (set_stat_type): New function.
47009         (fts_build): When not calling fts_stat, call set_stat_type
47010         to propagate dirent.d_type info to fts_read caller.
47011         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
47012         fts_statp->st_mode type information may be valid.
47013
47014 2008-11-28  Simon Josefsson  <simon@josefsson.org>
47015
47016         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
47017         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
47018         <sds@gnu.org>.
47019
47020 2008-11-20  Bruno Haible  <bruno@clisp.org>
47021
47022         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
47023         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
47024         INCLUDE_NEXT.
47025         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
47026         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
47027         * modules/math (Makefile.am): Substitute
47028         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
47029         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47030
47031 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
47032             Bruno Haible  <bruno@clisp.org>
47033
47034         * lib/stdint.in.h: Define all type macros so that their expansion is
47035         a single typedef'ed token. Fixes a compilation failure in Boost which
47036         does "using ::int8_t;".
47037
47038 2008-11-18  Simon Josefsson  <simon@josefsson.org>
47039
47040         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
47041         gl_MANYWARN_ALL_GCC.
47042         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
47043         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
47044         * modules/manywarnings: New file.
47045         * MODULES.html.sh: Mention manywarnings module.
47046
47047 2008-11-18  Bruno Haible  <bruno@clisp.org>
47048
47049         * doc/gnulib-tool.texi (Unit tests): New section.
47050
47051 2008-11-18  Simon Josefsson  <simon@josefsson.org>
47052
47053         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
47054         paths like 'lib/po/foo.po'.
47055
47056 2008-11-17  Simon Josefsson  <simon@josefsson.org>
47057
47058         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
47059         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
47060
47061 2008-11-17  Simon Josefsson  <simon@josefsson.org>
47062
47063         * m4/warnings.m4: Use CPPFLAGS to really check whether the
47064         parameter works.
47065
47066 2008-11-17  Simon Josefsson  <simon@josefsson.org>
47067
47068         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
47069
47070 2008-11-17  Bruce Korb  <bkorb@gnu.org>
47071
47072         * modules/parse-duration-tests: New file.
47073         * tests/test-parse-duration.sh: New file.
47074         * tests/test-parse-duration.c: New file.
47075
47076         New module 'parse-duration'.
47077         * lib/parse-duration.h: New file.
47078         * lib/parse-duration.c: New file.
47079         * modules/parse-duration: New file.
47080
47081 2008-11-17  Bruno Haible  <bruno@clisp.org>
47082
47083         * tests/test-select-out.sh: Comment out the first pipe test.
47084         Reported by Simon Josefsson.
47085
47086 2008-11-17  Bruno Haible  <bruno@clisp.org>
47087
47088         * modules/getaddrinfo (Depends-on): Add servent, hostent.
47089         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
47090         gl_HOSTENT.
47091
47092 2008-11-17  Bruno Haible  <bruno@clisp.org>
47093
47094         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
47095         -lnetwork and -lnet. Needed for Haiku and BeOS.
47096
47097 2008-11-16  Bruno Haible  <bruno@clisp.org>
47098
47099         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
47100
47101 2008-11-16  Bruno Haible  <bruno@clisp.org>
47102
47103         Avoid test failure on Haiku.
47104         * tests/test-fsync.c: Include <errno.h>.
47105         (main): Don't require that fsync (0) fails.
47106
47107 2008-11-15  Bruno Haible  <bruno@clisp.org>
47108
47109         New module 'hostent'.
47110         * modules/hostent: New file.
47111         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
47112
47113 2008-11-15  Bruno Haible  <bruno@clisp.org>
47114
47115         New module 'servent'.
47116         * modules/servent: New file.
47117         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
47118
47119 2008-11-15  Bruno Haible  <bruno@clisp.org>
47120
47121         Avoid generating same test program with two different rules.
47122         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
47123         test-frexp to test-frexp-nolibm.
47124         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
47125         test-frexpl to test-frexpl-nolibm.
47126
47127 2008-11-15  Bruno Haible  <bruno@clisp.org>
47128
47129         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
47130         $(FREXPL_LIBM).
47131
47132 2008-11-15  Bruno Haible  <bruno@clisp.org>
47133
47134         * lib/netdb.in.h: Activate the definitions also when the system's
47135         <netdb.h> has 'struct addrinfo'.
47136         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
47137         EAI_OVERFLOW or AI_NUMERICSERV.
47138         * doc/posix-headers/netdb.texi: Document the problem.
47139
47140 2008-11-15  Bruno Haible  <bruno@clisp.org>
47141
47142         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
47143
47144         Make the 'sched' module work on platforms where <sched.h> exists but
47145         is incomplete (such as Haiku).
47146         * lib/sched.in.h; Include the system's <sched.h> if it exists.
47147         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
47148         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
47149         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
47150         HAVE_STRUCT_SCHED_PARAM.
47151         * modules/sched (Depends-on): Add include_next.
47152         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
47153         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
47154         * doc/posix-headers/sched.texi: Document the issue.
47155
47156 2008-11-13  Jim Meyering  <meyering@redhat.com>
47157
47158         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
47159         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
47160         test would fail due to the difference in the Report bugs to ...
47161         line.  The expected address is empty, "<>", while the actual
47162         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
47163
47164 2008-11-12  Bruno Haible  <bruno@clisp.org>
47165
47166         lstat: don't compile lstat.c on systems lacking lstat
47167         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
47168         which don't have lstat; this is handled by lib/sys_stat.in.h already.
47169         Reported by Daniel P. Berrange via Jim Meyering.
47170
47171 2008-11-12  Jim Meyering  <meyering@redhat.com>
47172
47173         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
47174
47175 2008-11-12  Simon Josefsson  <simon@josefsson.org>
47176
47177         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
47178         instead.
47179
47180 2008-11-12  Bruno Haible  <bruno@clisp.org>
47181
47182         * lib/unicodeio.c: Include unistr.h.
47183         (utf8_wctomb): Remove function.
47184         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
47185
47186 2008-11-12  Simon Josefsson  <simon@josefsson.org>
47187
47188         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
47189         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
47190         <bruno@clisp.org>.
47191         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
47192
47193 2008-11-12  Simon Josefsson  <simon@josefsson.org>
47194
47195         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
47196         * doc/gnulib.texi: Add section for warnings.
47197
47198 2008-11-11  Bruno Haible  <bruno@clisp.org>
47199
47200         * lib/sockets.h: Add a comment.
47201
47202 2008-11-11  Karl Berry  <karl@gnu.org>
47203
47204         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
47205
47206 2008-11-11  Eric Blake  <ebb9@byu.net>
47207
47208         fdl.texi: avoid git symlinks
47209         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
47210
47211 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
47212
47213         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
47214
47215 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
47216
47217         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
47218         (gl_WARN_ADD): Substitute $2 if literal.
47219
47220 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
47221
47222         * m4/warning.m4: Remove.
47223
47224 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
47225
47226         * m4/warnings.m4: Almost complete rewrite. :-)
47227
47228 2008-11-10  Simon Josefsson  <simon@josefsson.org>
47229
47230         * modules/warnings: New module.
47231         * m4/warnings.m4: New file.
47232         * MODULES.html.sh: Mention warnings module.
47233         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
47234         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47235
47236 2008-11-10  Eric Blake  <ebb9@byu.net>
47237
47238         fdl.texi: make a symlink to the latest version
47239         * doc/standards.texi: Revert today's earlier change.
47240         * doc/fdl-1.2.texi: Rename from old fdl.texi...
47241         * doc/fdl.texi: ...and replace this with a symlink to the newer
47242         fdl-1.3.texi.
47243
47244 2008-11-10  Bruno Haible  <bruno@clisp.org>
47245
47246         * tests/test-select-fd.c (main): Accept the result file name as fourth
47247         argument.
47248         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
47249         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
47250
47251 2008-11-10  Bruno Haible  <bruno@clisp.org>
47252
47253         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
47254         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
47255         as autoconf-substituted macros.
47256         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
47257         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
47258         gl_NETDB_H_DEFAULTS. Set these variables.
47259         * modules/netdb (Makefile.am): Substitute these variables.
47260
47261 2008-11-10  Eric Blake  <ebb9@byu.net>
47262
47263         standards.texi: include correct file for FDL 1.3
47264         * doc/standards.texi (GNU Free Documentation License): Change
47265         include file to pull in FDL 1.3, not 1.2.
47266
47267         fdl.texi: revert accidental change to license
47268         * doc/fdl.texi: This is FDL 1.2, not 1.3.
47269
47270 2008-11-10  Bruno Haible  <bruno@clisp.org>
47271
47272         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
47273         cross-compiling guesses also when the native compile gives no result.
47274
47275 2008-11-10  Bruno Haible  <bruno@clisp.org>
47276
47277         * lib/spawni.c (__spawni): Force variable into the stack.
47278
47279 2008-11-10  Bruno Haible  <bruno@clisp.org>
47280
47281         Add support for Haiku.
47282         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
47283         glibc and BeOS, but also on Haiku.
47284         * lib/fpurge.c (fpurge): Likewise.
47285         * lib/freadable.c (freadable): Likewise.
47286         * lib/freadahead.c (freadahead): Likewise.
47287         * lib/freading.c (freading): Likewise.
47288         * lib/freadptr.c (freadptr): Likewise.
47289         * lib/freadseek.c (freadptrinc): Likewise.
47290         * lib/fseeko.c (rpl_fseeko): Likewise.
47291         * lib/fseterr.c (fseterr): Likewise.
47292         * lib/fwritable.c (fwritable): Likewise.
47293         * lib/fwriting.c (fwriting): Likewise.
47294         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
47295
47296 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
47297
47298         * lib/config.charset: Treat Haiku like BeOS.
47299
47300 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
47301
47302         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
47303         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
47304
47305 2008-11-08  Bruno Haible  <bruno@clisp.org>
47306
47307         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
47308         AC_CACHE_CHECK.
47309
47310 2008-11-08  Bruno Haible  <bruno@clisp.org>
47311
47312         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
47313
47314 2008-11-08  Bruno Haible  <bruno@clisp.org>
47315
47316         * tests/test-select-fd.c: New file.
47317         * tests/test-select-in.sh: New file.
47318         * tests/test-select-out.sh: New file.
47319         * tests/test-select-stdin.c: New file.
47320         * modules/select-tests (Files): Add the new files.
47321         (Depends-on): Add gettimeofday.
47322         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
47323         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
47324         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
47325
47326 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
47327             Bruno Haible  <bruno@clisp.org>
47328
47329         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
47330
47331 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
47332
47333         * build-aux/pmccabe2html: Added support for C++ source files.
47334
47335 2008-11-05  Ben Pfaff  <blp@gnu.org>
47336
47337         Fix lib/close.c build on Windows.
47338         * modules/close (Files): Add lib/w32sock.h.
47339
47340 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
47341
47342         Accept Bison's NEWS format.
47343         * build-aux/announce-gen (print_news_deltas): Tweak
47344         $re_prefix.
47345
47346 2008-11-04  Bruno Haible  <bruno@clisp.org>
47347
47348         * modules/random_r (Maintainer): Add glibc.
47349
47350 2008-11-04  Simon Josefsson  <simon@josefsson.org>
47351
47352         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
47353         by karl@freefriends.org (Karl Berry).
47354         * doc/alloca.texi: Likewise.
47355         * doc/c-ctype.texi: Likewise.
47356         * doc/c-strcase.texi: Likewise.
47357         * doc/c-strcaseeq.texi: Likewise.
47358         * doc/c-strcasestr.texi: Likewise.
47359         * doc/c-strstr.texi: Likewise.
47360         * doc/c-strtod.texi: Likewise.
47361         * doc/c-strtold.texi: Likewise.
47362         * doc/ctime.texi: Likewise.
47363         * doc/error.texi: Likewise.
47364         * doc/fdl.texi: Likewise.
47365         * doc/gcd.texi: Likewise.
47366         * doc/getdate.texi: Likewise.
47367         * doc/gnulib-intro.texi: Likewise.
47368         * doc/gnulib-tool.texi: Likewise.
47369         * doc/gnulib.texi: Likewise.
47370         * doc/inet_ntoa.texi: Likewise.
47371         * doc/maintain.texi: Likewise.
47372         * doc/make-stds.texi: Likewise.
47373         * doc/quote.texi: Likewise.
47374         * doc/regexprops-generic.texi: Likewise.
47375         * doc/standards.texi: Likewise.
47376         * doc/verify.texi: Likewise.
47377         * doc/visibility.texi: Likewise.
47378         * doc/gnulib.texi (GNU Free Documentation License): Include
47379         fdl-1.3.texi instead of fdl.texi.
47380
47381 2008-11-04  Simon Josefsson  <simon@josefsson.org>
47382
47383         * doc/fdl-1.3.texi: New file, from
47384         <http://www.gnu.org/licenses/fdl-1.3.texi>.
47385         * modules/fdl-1.3: Add.
47386         * MODULES.html.sh: Add fdl-1.3.
47387
47388 2008-11-03  Bruno Haible  <bruno@clisp.org>
47389
47390         Make determination of absolute name of header file work with AIX xlc.
47391         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
47392         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
47393         preprocessing.
47394         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47395         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
47396
47397 2008-11-03  Simon Josefsson  <simon@josefsson.org>
47398
47399         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
47400         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
47401         <ludo@gnu.org>.
47402
47403 2008-11-02  Bruno Haible  <bruno@clisp.org>
47404
47405         Mark 'strpbrk' obsolete.
47406         * modules/strpbrk (Status, Notice): New sections.
47407         * modules/strtok_r (Depends-on): Add strpbrk.
47408
47409 2008-11-02  Bruno Haible  <bruno@clisp.org>
47410
47411         Mark 'strdup' obsolete.
47412         * modules/strdup (Status, Notice): New sections.
47413         * modules/findprog (Depends-on): Add strdup.
47414         * modules/getaddrinfo (Depends-on): Likewise.
47415         * modules/localename (Depends-on): Likewise.
47416         * modules/relocatable-lib (Depends-on): Likewise.
47417         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
47418         * modules/relocatable-prog (Depends-on): Likewise.
47419         * modules/trim (Depends-on): Likewise.
47420         * modules/unictype/gen-ctype (Depends-on): Likewise.
47421         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
47422
47423 2008-11-02  Bruno Haible  <bruno@clisp.org>
47424
47425         Mark 'strcspn' obsolete.
47426         * modules/strcspn (Status, Notice): New sections.
47427
47428 2008-11-02  Bruno Haible  <bruno@clisp.org>
47429
47430         Mark 'rmdir' obsolete.
47431         * modules/rmdir (Status, Notice): New sections.
47432         * modules/clean-temp (Depends-on): Add rmdir.
47433         * modules/openat (Depends-on): Likewise.
47434
47435 2008-11-02  Bruno Haible  <bruno@clisp.org>
47436
47437         Mark 'raise' obsolete.
47438         * modules/raise (Status, Notice): New sections.
47439         (Include): Specify <signal.h>.
47440         * modules/stdio (Depends-on): Add raise.
47441         * modules/write (Depends-on): Likewise.
47442
47443 2008-11-02  Bruno Haible  <bruno@clisp.org>
47444
47445         Mark 'memset' obsolete.
47446         * modules/memset (Status, Notice): New sections.
47447
47448 2008-11-02  Bruno Haible  <bruno@clisp.org>
47449
47450         Mark 'memmove' obsolete.
47451         * modules/memmove (Status, Notice): New sections.
47452         * modules/argp (Depends-on): Add memmove.
47453         * modules/argz (Depends-on): Likewise.
47454         * modules/canonicalize (Depends-on): Likewise.
47455         * modules/canonicalize-lgpl (Depends-on): Likewise.
47456         * modules/fts (Depends-on): Likewise.
47457         * modules/getcwd (Depends-on): Likewise.
47458         * modules/human (Depends-on): Likewise.
47459         * modules/regex (Depends-on): Likewise.
47460         * modules/striconveh (Depends-on): Likewise.
47461         * modules/trim (Depends-on): Likewise.
47462         * modules/unistr/u8-move (Depends-on): Likewise.
47463         * modules/unistr/u16-move (Depends-on): Likewise.
47464         * modules/unistr/u32-move (Depends-on): Likewise.
47465
47466 2008-11-02  Bruno Haible  <bruno@clisp.org>
47467
47468         Mark 'memcpy' obsolete.
47469         * modules/memcpy (Status, Notice): New sections.
47470
47471 2008-11-02  Bruno Haible  <bruno@clisp.org>
47472
47473         Mark 'memcmp' obsolete.
47474         * modules/memcmp (Status, Notice): New sections.
47475         * modules/argmatch (Depends-on): Add memchr.
47476         * modules/backupfile (Depends-on): Likewise.
47477         * modules/c-strcasestr (Depends-on): Likewise.
47478         * modules/crypto/des (Depends-on): Likewise.
47479         * modules/csharpcomp (Depends-on): Likewise.
47480         * modules/fnmatch (Depends-on): Likewise.
47481         * modules/git-merge-changelog (Depends-on): Likewise.
47482         * modules/isnand (Depends-on): Likewise.
47483         * modules/isnand-nolibm (Depends-on): Likewise.
47484         * modules/isnanf (Depends-on): Likewise.
47485         * modules/isnanf-nolibm (Depends-on): Likewise.
47486         * modules/isnanl (Depends-on): Likewise.
47487         * modules/isnanl-nolibm (Depends-on): Likewise.
47488         * modules/mbchar (Depends-on): Likewise.
47489         * modules/memcoll (Depends-on): Likewise.
47490         * modules/quotearg (Depends-on): Likewise.
47491         * modules/regex (Depends-on): Likewise.
47492         * modules/relocatable-prog (Depends-on): Likewise.
47493         * modules/same (Depends-on): Likewise.
47494         * modules/signbit (Depends-on): Likewise.
47495         * modules/strcasestr-simple (Depends-on): Likewise.
47496         * modules/unictype/gen-ctype (Depends-on): Likewise.
47497         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
47498         * modules/uniname/uniname (Depends-on): Likewise.
47499         * modules/unistr/u8-cmp (Depends-on): Likewise.
47500
47501 2008-11-02  Bruno Haible  <bruno@clisp.org>
47502
47503         Mark 'memchr' obsolete.
47504         * modules/memchr (Status, Notice): New sections.
47505         * modules/argp (Depends-on): Add memchr.
47506         * modules/base64 (Depends-on): Likewise.
47507         * modules/c-strcasestr (Depends-on): Likewise.
47508         * modules/chdir-long (Depends-on): Likewise.
47509         * modules/fnmatch (Depends-on): Likewise.
47510         * modules/getsubopt (Depends-on): Likewise.
47511         * modules/git-merge-changelog (Depends-on): Likewise.
47512         * modules/glob (Depends-on): Likewise.
47513         * modules/strcasestr-simple (Depends-on): Likewise.
47514         * modules/strnlen (Depends-on): Likewise.
47515
47516 2008-11-02  Bruno Haible  <bruno@clisp.org>
47517
47518         Mark 'atexit' obsolete.
47519         * modules/atexit (Status, Notice): New sections.
47520         * modules/chdir-long (Depends-on): Add atexit.
47521         * modules/wait-process (Depends-on): Likewise.
47522
47523 2008-11-02  Bruno Haible  <bruno@clisp.org>
47524
47525         * gnulib-tool: New option --with-obsolete.
47526         (func_usage): Document it.
47527         (func_modules_transitive_closure): Drop obsolete dependencies if
47528         incobsolete is not true.
47529         (func_import): Read and save the incobsolete variable to the cache.
47530
47531 2008-11-02  Bruno Haible  <bruno@clisp.org>
47532
47533         * modules/TEMPLATE-EXTENDED: New field 'Status'.
47534         * gnulib-tool: New option --extract-status.
47535         (func_usage): Document it.
47536         (sed_extract_prog): Recognize it.
47537         (func_get_status): New function.
47538
47539 2008-10-30  Simon Josefsson  <simon@josefsson.org>
47540
47541         * modules/sockets (License): Change from LGPL to LGPLv2+.
47542
47543 2008-10-28  Simon Josefsson  <simon@josefsson.org>
47544
47545         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
47546
47547 2008-10-28  Simon Josefsson  <simon@josefsson.org>
47548
47549         * MODULES.html.sh (Support for systems lacking POSIX:2001):
47550         Mention times and sys_times.
47551         * modules/sys_times, modules/sys_times-tests: New modules.
47552         * modules/times, modules/times-tests: Likewise
47553         * m4/sys_times_h.m4: New file.
47554         * lib/sys_times.in.h: Likewise
47555         * lib/times.c: Likewise.
47556         * tests/test-sys_times.c: Likewise.
47557         * tests/test-times.c: Likewise.
47558         * doc/posix-headers/sys_times.texi: Update.
47559         * doc/posix-functions/times.texi: Update.
47560
47561 2008-10-28  Jim Meyering  <meyering@redhat.com>
47562
47563         * modules/tempname (Depends-on): Add lstat.
47564
47565         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
47566
47567 2008-10-28  Simon Josefsson  <simon@josefsson.org>
47568
47569         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
47570         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
47571         using idiom used elsewhere in gnulib.
47572
47573 2008-10-27  Jim Meyering  <meyering@redhat.com>
47574
47575         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
47576
47577 2008-10-27  Simon Josefsson  <simon@josefsson.org>
47578
47579         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
47580         TESTS_ENVIRONMENT, for shell scripts that needs to call built
47581         programs.
47582         * tests/test-argp-2.sh: Use $EXEEXT when needed.
47583
47584 2008-10-27  Simon Josefsson  <simon@josefsson.org>
47585
47586         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
47587
47588 2008-10-27  Bruno Haible  <bruno@clisp.org>
47589
47590         * tests/test-lstat.c: Include <stdio.h>.
47591
47592 2008-10-27  Simon Josefsson  <simon@josefsson.org>
47593
47594         * modules/lstat-tests: New module.
47595         * tests/test-lstat.c: New file.
47596
47597 2008-10-26  Jim Meyering  <meyering@redhat.com>
47598
47599         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
47600
47601 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47602             Bruno Haible  <bruno@clisp.org>
47603
47604         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
47605         * modules/configmake (Include): Add a note that the include must come
47606         after all system headers.
47607         * lib/javaversion.c: Include configmake.h after all other includes.
47608
47609 2008-10-26  Bruno Haible  <bruno@clisp.org>
47610
47611         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
47612         HAVE_STRUCT_RANDOM_DATA to 1.
47613         (gl_STDLIB_H): Simplify.
47614
47615 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47616
47617         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
47618         substitute HAVE_STRUCT_RANDOM_DATA.
47619         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
47620         random_data.
47621         * modules/stdlib (Makefile.am): Substitute
47622         HAVE_STRUCT_RANDOM_DATA.
47623
47624 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47625
47626         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
47627         * doc/gnulib-intro.texi (Copyright): Likewise.
47628
47629 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47630
47631         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
47632         findings.
47633
47634 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
47635             Bruno Haible  <bruno@clisp.org>
47636
47637         * lib/unistd.in.h: Include <winsock2.h>.
47638         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
47639         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
47640         Provide dummy declarations.
47641         (gethostname): Override.
47642         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
47643         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
47644         gl_PREREQ_SYS_H_WINSOCK2.
47645         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
47646         * doc/posix-functions/gethostname.texi: More details.
47647
47648 2008-10-25  Bruno Haible  <bruno@clisp.org>
47649
47650         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
47651         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
47652         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
47653
47654         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
47655         here ...
47656         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
47657         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
47658         gl_UNISTD_H_DEFAULTS.
47659
47660 2008-10-25  Eric Blake  <ebb9@byu.net>
47661
47662         signbit: avoid spurious compiler failure
47663         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
47664         declarations inside function.
47665
47666 2008-10-24  Simon Josefsson  <simon@josefsson.org>
47667             Bruno Haible  <bruno@clisp.org>
47668
47669         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
47670         * modules/random_r (Depends-on): Add stdint.
47671
47672 2008-10-24  Bruno Haible  <bruno@clisp.org>
47673
47674         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
47675         Eggert.
47676         * modules/strerror (License): Likewise.
47677
47678 2008-10-24  Jim Meyering  <meyering@redhat.com>
47679
47680         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
47681         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
47682
47683 2008-10-24  Eric Blake  <ebb9@byu.net>
47684
47685         getgroups: fix compilation when getgroups is available
47686         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
47687         but with <config.h> override of getgroups disabled.
47688
47689 2008-10-24  Simon Josefsson  <simon@josefsson.org>
47690
47691         * doc/gnulib.texi (Header files): Add note about C++ problems.
47692         Explained by Bruno Haible <bruno@clisp.org>.
47693
47694 2008-10-23  Bruno Haible  <bruno@clisp.org>
47695
47696         Define a dummy SA_NODEFER macro on Interix.
47697         * lib/signal.in.h (SA_NODEFER): Define fallback.
47698         Reported by Aleksey Cheusov <cheusov@tut.by> via
47699         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
47700
47701 2008-10-23  Bruno Haible  <bruno@clisp.org>
47702
47703         * modules/freadahead (License): Change to LGPLv2+.
47704         Suggested by Simon Josefsson.
47705
47706 2008-10-23  Jim Meyering  <meyering@redhat.com>
47707
47708         random_r: new module
47709         * modules/random_r: New file.
47710         * m4/random_r.m4: New file.
47711         * lib/random_r.c: New file, from glibc.
47712         * modules/random_r-tests: New file.
47713         * tests/test-random_r.c: New file.
47714         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
47715          Declare.
47716         (RAND_MAX): Define.
47717         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
47718         * modules/stdlib: Substitute them, too.
47719         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
47720         * doc/glibc-functions/initstate_r.texi: Mention the new module.
47721         * doc/glibc-functions/random_r.texi: Likewise.
47722         * doc/glibc-functions/setstate_r.texi: Likewise.
47723         * doc/glibc-functions/srandom_r.texi: Likewise.
47724         * config/srclist.txt: Mention it.
47725
47726 2008-10-23  David Lutterkort  <lutter@redhat.com>
47727
47728         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
47729         link requirement
47730
47731 2008-10-23  Jim Meyering  <meyering@redhat.com>
47732
47733         selinux-h: mark parameters of stub functions as intentionally unused
47734         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
47735         * lib/se-context.in.h: Likewise.
47736
47737 2008-10-22  Simon Josefsson  <simon@josefsson.org>
47738
47739         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
47740
47741 2008-10-22  Simon Josefsson  <simon@josefsson.org>
47742
47743         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
47744
47745 2008-10-22  Eric Blake  <ebb9@byu.net>
47746
47747         glthread/thread: avoid compiler warning
47748         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
47749         Add unreachable abort to silence compiler.
47750
47751 2008-10-22  Eric Blake  <ebb9@byu.net>
47752
47753         netdb: also supply struct addrinfo for cygwin 1.5.x
47754         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
47755         older cygwin.
47756         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
47757         cygwin.
47758         * doc/posix-headers/netdb.texi (netdb.h): Document this.
47759
47760 2008-10-22  Bruno Haible  <bruno@clisp.org>
47761
47762         * users.txt: Update entry about pspp.
47763
47764 2008-10-21  Bruno Haible  <bruno@clisp.org>
47765
47766         Simplification.
47767         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
47768         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
47769
47770         Simplification.
47771         * lib/ioctl.c (ioctl): Don't undefine.
47772         * lib/socket.c (socket): Don't undefine.
47773
47774         Remove unused module indicator macros.
47775         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
47776         GNULIB_$1 as a C macro.
47777
47778         * doc/posix-functions/close.texi: Undo last change.
47779         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
47780         Windows platforms.
47781
47782 2008-10-21  Bruno Haible  <bruno@clisp.org>
47783
47784         Add gethostname() declaration to <unistd.h>.
47785         * lib/unistd.in.h (gethostname): New declaration.
47786         * lib/gethostname.c: Include <unistd.h>.
47787         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
47788         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
47789         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
47790         and HAVE_GETHOSTNAME.
47791         * modules/gethostname (Depends-on): Add unistd.
47792         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47793         (Include): Specify <unistd.h>.
47794         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
47795         HAVE_GETHOSTNAME.
47796         * tests/test-gethostname.c: Include <unistd.h> first.
47797
47798 2008-10-21  Bruno Haible  <bruno@clisp.org>
47799
47800         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
47801         * modules/select-tests (Depends-on): Likewise.
47802         Reported by Simon Josefsson.
47803
47804 2008-10-21  Simon Josefsson  <simon@josefsson.org>
47805
47806         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
47807         * lib/accept.c: New file, based on winsock.c.
47808         * lib/bind.c: New file, based on winsock.c.
47809         * lib/connect.c: New file, based on winsock.c.
47810         * lib/getpeername.c: New file, based on winsock.c.
47811         * lib/getsockname.c: New file, based on winsock.c.
47812         * lib/getsockopt.c: New file, based on winsock.c.
47813         * lib/ioctl.c: New file, based on winsock.c.
47814         * lib/listen.c: New file, based on winsock.c.
47815         * lib/recv.c: New file, based on winsock.c.
47816         * lib/recvfrom.c: New file, based on winsock.c.
47817         * lib/send.c: New file, based on winsock.c.
47818         * lib/sendto.c: New file, based on winsock.c.
47819         * lib/setsockopt.c: New file, based on winsock.c.
47820         * lib/shutdown.c: New file, based on winsock.c.
47821         * lib/socket.c: New file, based on winsock.c.
47822         * lib/w32sock.h: New file, based on winsock.c.
47823         * lib/winsock.c: Remove file.
47824         * modules/accept: Likewise.
47825         * modules/bind: Likewise.
47826         * modules/connect: Likewise.
47827         * modules/getpeername: Likewise.
47828         * modules/getsockname: Likewise.
47829         * modules/getsockopt: Likewise.
47830         * modules/ioctl: Likewise.
47831         * modules/listen: Likewise.
47832         * modules/recv: Likewise.
47833         * modules/recvfrom: Likewise.
47834         * modules/send: Likewise.
47835         * modules/sendto: Likewise.
47836         * modules/setsockopt: Likewise.
47837         * modules/shutdown: Likewise.
47838         * modules/socket: Use socket.c instead of winsock.c.
47839         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
47840         * doc/posix-functions/accept.texi: Doc fix.
47841         * doc/posix-functions/bind.texi: Doc fix.
47842         * doc/posix-functions/close.texi: Doc fix.
47843         * doc/posix-functions/connect.texi: Doc fix.
47844         * doc/posix-functions/getpeername.texi: Doc fix.
47845         * doc/posix-functions/getsockname.texi: Doc fix.
47846         * doc/posix-functions/getsockopt.texi: Doc fix.
47847         * doc/posix-functions/ioctl.texi: Doc fix.
47848         * doc/posix-functions/listen.texi: Doc fix.
47849         * doc/posix-functions/recv.texi: Doc fix.
47850         * doc/posix-functions/recvfrom.texi: Doc fix.
47851         * doc/posix-functions/send.texi: Doc fix.
47852         * doc/posix-functions/sendto.texi: Doc fix.
47853         * doc/posix-functions/setsockopt.texi: Doc fix.
47854         * doc/posix-functions/shutdown.texi: Doc fix.
47855         * doc/posix-functions/socket.texi: Doc fix.
47856
47857 2008-10-20  Bruno Haible  <bruno@clisp.org>
47858
47859         Take into account the role of SIGABRT_COMPAT on Windows 2008.
47860         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
47861         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
47862         as an alias for SIGABRT.
47863         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
47864         (sigaction): Map it to SIGABRT.
47865         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
47866
47867 2008-10-20  Bruno Haible  <bruno@clisp.org>
47868
47869         * lib/fts.c: Don't include lstat.h.
47870         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
47871
47872         Move the lstat() declaration to <sys/stat.h>.
47873         * lib/lstat.h: Remove file.
47874         * lib/sys_stat.in.h: Add special invocation convention.
47875         (lstat): New declaration.
47876         * lib/lstat.c (orig_lstat): New function.
47877         (rpl_lstat): Use orig_lstat instead of lstat.
47878         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
47879         AC_C_INLINE. Set REPLACE_LSTAT.
47880         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
47881         and REPLACE_LSTAT.
47882         * modules/lstat (Files): Remove lib/lstat.h.
47883         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
47884         (Include): Specify <sys/stat.h> instead of lstat.h.
47885         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
47886         REPLACE_LSTAT.
47887         * NEWS: Mention the change.
47888
47889 2008-10-20  Bruno Haible  <bruno@clisp.org>
47890
47891         * modules/posix_spawn-tests: New file.
47892         * tests/test-posix_spawn3.c: New file.
47893
47894 2008-10-20  Bruno Haible  <bruno@clisp.org>
47895
47896         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
47897         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
47898         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
47899         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
47900         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
47901
47902 2008-10-20  Bruno Haible  <bruno@clisp.org>
47903
47904         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
47905         of posix_spawn on AIX 5.3.
47906
47907 2008-10-20  Bruno Haible  <bruno@clisp.org>
47908
47909         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
47910
47911 2008-10-20  Bruno Haible  <bruno@clisp.org>
47912
47913         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
47914         of AC_LANG_PROGRAM.
47915
47916 2008-10-20  Simon Josefsson  <simon@josefsson.org>
47917
47918         * lib/netdb.in.h: Don't define GNU specific constants until they
47919         are supported or needed.  Reported by Bruno Haible
47920         <bruno@clisp.org>.
47921
47922 2008-10-20  Simon Josefsson  <simon@josefsson.org>
47923
47924         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
47925
47926 2008-10-20  Simon Josefsson  <simon@josefsson.org>
47927
47928         * lib/getaddrinfo.h: Remove file.
47929         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
47930         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
47931         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
47932         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
47933         * modules/netdb: Substitute GNULIB_GETADDRINFO.
47934         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
47935         * tests/test-getaddrinfo.c: Likewise.
47936         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
47937         * NEWS: Mention change.
47938
47939 2008-10-19  Bruno Haible  <bruno@clisp.org>
47940
47941         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
47942
47943 2008-10-19  Bruno Haible  <bruno@clisp.org>
47944
47945         * lib/wait-process.c: Include simply <sys/wait.h>.
47946         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
47947         WIFSTOPPED): Remove fallback definitions.
47948         * modules/wait-process (Depends-on): Add sys_wait.
47949
47950         New module 'sys_wait'.
47951         * modules/sys_wait: New file.
47952         * lib/sys_wait.in.h: New file, partially copied from
47953         lib/wait-process.c.
47954         * m4/sys_wait_h.m4: New file.
47955         * doc/posix-headers/sys_wait.texi: Mention the new module.
47956
47957 2008-10-19  Bruno Haible  <bruno@clisp.org>
47958
47959         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
47960
47961 2008-10-19  Bruno Haible  <bruno@clisp.org>
47962
47963         Assume that waitpid() fills an 'int' status, not a 'union wait'.
47964         * lib/wait-process.c (WAIT_T): Remove type.
47965         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
47966         (wait_subprocess): Update.
47967
47968 2008-10-19  Bruno Haible  <bruno@clisp.org>
47969
47970         New module 'atoll'.
47971         * modules/atoll: New file.
47972         * lib/stdlib.in.h (atoll): New declaration.
47973         * lib/atoll.c: New file, from glibc with modifications.
47974         * m4/atoll.m4: New file.
47975         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
47976         HAVE_ATOLL.
47977         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
47978         * doc/posix-functions/atoll.texi: Mention the new module.
47979
47980 2008-10-19  Bruno Haible  <bruno@clisp.org>
47981
47982         Add strtoull() declaration to <stdlib.h>.
47983         * lib/stdlib.in.h (strtoull): New declaration.
47984         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
47985         Set HAVE_STRTOULL.
47986         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
47987         HAVE_STRTOULL.
47988         * modules/strtoull (Depends-on): Add stdlib.
47989         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47990         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
47991         HAVE_STRTOULL.
47992
47993 2008-10-19  Bruno Haible  <bruno@clisp.org>
47994
47995         Add strtoll() declaration to <stdlib.h>.
47996         * lib/stdlib.in.h (strtoll): New declaration.
47997         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
47998         Set HAVE_STRTOLL.
47999         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
48000         HAVE_STRTOLL.
48001         * modules/strtoll (Depends-on): Add stdlib.
48002         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48003         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
48004
48005 2008-10-19  Bruno Haible  <bruno@clisp.org>
48006
48007         * modules/bcopy (Depends-on): Add strings.
48008         (Include): Specify <strings.h>.
48009
48010 2008-10-19  Bruno Haible  <bruno@clisp.org>
48011
48012         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
48013
48014 2008-10-19  Bruno Haible  <bruno@clisp.org>
48015
48016         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
48017         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
48018         mingw.
48019
48020 2008-10-19  Bruno Haible  <bruno@clisp.org>
48021
48022         * lib/atanl.c: Don't include isnanl.h.
48023         * lib/cosl.c: Likewise.
48024         * lib/ldexpl.c: Likewise.
48025         * lib/logl.c: Likewise.
48026         * lib/sinl.c: Likewise.
48027         * lib/sqrtl.c: Likewise.
48028         * lib/tanl.c: Likewise.
48029
48030         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
48031         * lib/isnanf.h: Remove file.
48032         * lib/isnand.h: Remove file.
48033         * lib/isnanl.h: Remove file.
48034         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
48035         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
48036         macros.
48037         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
48038         HAVE_ISNANF, don't define it as a C macro.
48039         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
48040         HAVE_ISNAND, don't define it as a C macro.
48041         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
48042         HAVE_ISNANL, don't define it as a C macro.
48043         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
48044         HAVE_ISNAN[FDL].
48045         * modules/isnanf (Files): Remove lib/isnanf.h.
48046         (Depends-on): Add math.
48047         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
48048         (Include): Specify <math.h> instead of isnanf.h.
48049         * modules/isnand (Files): Remove lib/isnand.h.
48050         (Depends-on): Add math.
48051         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
48052         (Include): Specify <math.h> instead of isnand.h.
48053         * modules/isnanl (Files): Remove lib/isnanl.h.
48054         (Depends-on): Add math.
48055         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
48056         (Include): Specify <math.h> instead of isnanl.h.
48057         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
48058         HAVE_ISNAN[FDL].
48059         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
48060         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
48061         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
48062         * NEWS: Mention the change.
48063
48064 2008-10-18  Bruno Haible  <bruno@clisp.org>
48065
48066         Add getusershell(), setusershell(), endusershell() declarations to
48067         <unistd.h>.
48068         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
48069         declarations.
48070         * lib/getusershell.c: Include unistd.h.
48071         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
48072         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
48073         HAVE_GETUSERSHELL.
48074         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
48075         and HAVE_GETUSERSHELL.
48076         * modules/getusershell (Depends-on): Add unistd, extensions.
48077         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48078         (Include): Specify <unistd.h>.
48079         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
48080         HAVE_GETUSERSHELL.
48081
48082 2008-10-18  Bruno Haible  <bruno@clisp.org>
48083
48084         Add a getloadavg() declaration to <stdlib.h>.
48085         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
48086         getloadavg declaration.
48087         (getloadavg): New declaration.
48088         * lib/getloadavg.c: Include <stdlib.h> first.
48089         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
48090         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
48091         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
48092         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
48093         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
48094         * modules/getloadavg (Depends-on): Add stdlib, extensions.
48095         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48096         (Include): Specify <stdlib.h>.
48097         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
48098         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
48099
48100 2008-10-18  Bruno Haible  <bruno@clisp.org>
48101
48102         * lib/dirchownmod.c: Don't include lchmod.h.
48103
48104         Move the lchmod() declaration to <sys/stat.h>.
48105         * lib/lchmod.h: Remove file.
48106         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
48107         (lchmod): New declaration, moved here from lib/lchown.h.
48108         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
48109         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
48110         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
48111         and HAVE_LCHMOD.
48112         * modules/lchmod (Files): Remove lib/lchmod.h.
48113         (Depends-on): Add sys_stat, extensions.
48114         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
48115         (Include): Specify <sys/stat.h> instead of lchmod.h.
48116         * modules/sys_stat (Depends-on): Add link-warning.
48117         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
48118         definition of GL_LINK_WARNING.
48119         * NEWS: Mention the change.
48120
48121 2008-10-18  Bruno Haible  <bruno@clisp.org>
48122
48123         * lib/fchdir.c: Don't include dirfd.h.
48124         * lib/fts.c: Likewise.
48125         * lib/getcwd.c: Likewise.
48126         * lib/glob.c: Likewise.
48127
48128         Move the dirfd() declaration to <dirent.h>.
48129         * lib/dirfd.h: Remove file.
48130         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
48131         (dirfd): New declaration.
48132         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
48133         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
48134         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
48135         HAVE_DECL_DIRFD.
48136         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
48137         HAVE_DECL_DIRFD.
48138         * modules/dirfd (Files): Remove lib/dirfd.h.
48139         (Depends-on): Add dirent, extensions.
48140         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
48141         (Include): Specify <dirent.h> instead of dirfd.h.
48142         * modules/dirent (Depends-on): Add link-warning.
48143         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
48144         definition of GL_LINK_WARNING.
48145         * NEWS: Mention the change.
48146
48147 2008-10-18  Bruno Haible  <bruno@clisp.org>
48148
48149         Move the euidaccess() declaration to <unistd.h>.
48150         * lib/euidaccess.h: Remove file.
48151         * lib/unistd.in.h (euidaccess): New declaration.
48152         * lib/euidaccess.c: Don't include euidaccess.h.
48153         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
48154         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
48155         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
48156         and HAVE_EUIDACCESS.
48157         * modules/euidaccess (Files): Remove lib/euidaccess.h.
48158         (Depends-on): Add unistd.
48159         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48160         (Include): Specify <unistd.h> instead of euidaccess.h.
48161         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
48162         HAVE_EUIDACCESS.
48163         * NEWS: Mention the change.
48164
48165 2008-10-18  Bruno Haible  <bruno@clisp.org>
48166
48167         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
48168
48169         Move the getdomainname() declaration to <unistd.h>.
48170         * lib/getdomainname.h: Remove file.
48171         * lib/unistd.in.h (getdomainname): New declaration.
48172         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
48173         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
48174         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
48175         HAVE_GETDOMAINNAME.
48176         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48177         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
48178         * modules/getdomainname (Files): Remove lib/getdomainname.h.
48179         (Depends-on): Add unistd, extensions.
48180         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48181         (Includes): Specify <unistd.h> instead of getdomainname.h.
48182         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
48183         HAVE_GETDOMAINNAME.
48184         * NEWS: Mention the change.
48185
48186 2008-10-18  Bruno Haible  <bruno@clisp.org>
48187
48188         * modules/dirent: New file.
48189         * m4/dirent_h.m4: New file.
48190         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
48191         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
48192         * modules/fchdir (Files): Remove lib/dirent.in.h.
48193         (Depends-on): Add dirent.
48194         (Makefile.am): Move rules to modules/dirent.
48195         * doc/posix-headers/dirent.texi: Mention the new module.
48196
48197 2008-10-18  Bruno Haible  <bruno@clisp.org>
48198
48199         Avoid -Wunused-parameter warnings in public gnulib header files.
48200         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
48201         macro.
48202         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
48203
48204 2008-10-18  Bruno Haible  <bruno@clisp.org>
48205
48206         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
48207         * doc/glibc-functions/error.texi: Mention the module 'error'.
48208         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
48209         * doc/glibc-functions/getdomainname.texi: Mention the module
48210         'getdomainname'.
48211         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
48212         * doc/glibc-functions/getpagesize.texi: Mention the module
48213         'getpagesize'.
48214         * doc/glibc-functions/getusershell.texi: Mention the module
48215         'getusershell'.
48216         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
48217         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
48218         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
48219         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
48220         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
48221         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
48222         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
48223         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
48224         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
48225         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
48226         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
48227         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
48228         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
48229         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
48230
48231 2008-10-17  Bruno Haible  <bruno@clisp.org>
48232
48233         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
48234         HP-UX and IRIX, use -0.0L.
48235         * tests/test-ceill.c (minus_zero): Likewise.
48236         * tests/test-floorl.c (minus_zero): Likewise.
48237         * tests/test-frexpl.c (minus_zero): Likewise.
48238         * tests/test-isnan.c (minus_zerol): Likewise.
48239         * tests/test-isnanl.h (minus_zero): Likewise.
48240         * tests/test-ldexpl.c (minus_zero): Likewise.
48241         * tests/test-roundl.c (minus_zero): Likewise.
48242         * tests/test-signbit.c (minus_zerol): Likewise.
48243         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
48244         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
48245         * tests/test-truncl.c (minus_zero): Likewise.
48246         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
48247         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
48248         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
48249         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
48250
48251 2008-10-17  Bruno Haible  <bruno@clisp.org>
48252
48253         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
48254         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
48255         that it gets activated only for gcc >= 3.0.
48256         * lib/dirent.in.h: Likewise.
48257         * lib/errno.in.h: Likewise.
48258         * lib/fcntl.in.h: Likewise.
48259         * lib/float.in.h: Likewise.
48260         * lib/iconv.in.h: Likewise.
48261         * lib/inttypes.in.h: Likewise.
48262         * lib/locale.in.h: Likewise.
48263         * lib/math.in.h: Likewise.
48264         * lib/netdb.in.h: Likewise.
48265         * lib/netinet_in.in.h: Likewise.
48266         * lib/search.in.h: Likewise.
48267         * lib/signal.in.h: Likewise.
48268         * lib/spawn.in.h: Likewise.
48269         * lib/stdarg.in.h: Likewise.
48270         * lib/stdint.in.h: Likewise.
48271         * lib/stdio.in.h: Likewise.
48272         * lib/stdlib.in.h: Likewise.
48273         * lib/string.in.h: Likewise.
48274         * lib/strings.in.h: Likewise.
48275         * lib/sys_file.in.h: Likewise.
48276         * lib/sys_ioctl.in.h: Likewise.
48277         * lib/sys_select.in.h: Likewise.
48278         * lib/sys_socket.in.h: Likewise.
48279         * lib/sys_stat.in.h: Likewise.
48280         * lib/sys_time.in.h: Likewise.
48281         * lib/sysexits.in.h: Likewise.
48282         * lib/time.in.h: Likewise.
48283         * lib/unistd.in.h: Likewise.
48284         * lib/wchar.in.h: Likewise.
48285         * lib/wctype.in.h: Likewise.
48286         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48287
48288 2008-10-17  Jim Meyering  <meyering@redhat.com>
48289
48290         ignore-value: don't depend on inline module
48291         * modules/ignore-value (Depends-on): Remove 'inline'.
48292         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
48293         Suggestion from Bruno Haible.
48294
48295 2008-10-17  Bruno Haible  <bruno@clisp.org>
48296
48297         New implementation of condition variables for Win32.
48298         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
48299         (gl_linked_waitqueue_t): New type.
48300         (gl_cond_t): Use it.
48301         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
48302         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
48303         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
48304         (glthread_cond_init_func, glthread_cond_wait_func,
48305         glthread_cond_timedwait_func, glthread_cond_signal_func,
48306         glthread_cond_broadcast_func, glthread_cond_destroy_func):
48307         Reimplemented on the basis of gl_linked_waitqueue_t.
48308         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
48309         gl_waitqueue_t.
48310         (gl_rwlock_t): Update.
48311         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
48312
48313 2008-10-17  Simon Josefsson  <simon@josefsson.org>
48314
48315         * modules/recvfrom (Depends-on): Add dependency on getpeername.
48316         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48317
48318 2008-10-17  Jim Meyering  <meyering@redhat.com>
48319
48320         ignore-value: new module
48321         * modules/ignore-value: New file.
48322         * lib/ignore-value.h: New file.
48323         * MODULES.html.sh (Compiler warning management): New section,
48324         just for this module.  More to come.
48325
48326 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48327
48328         open-safer.c: avoid 'signed and unsigned in conditional...' warning
48329         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
48330         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
48331
48332 2008-10-16  Jim Meyering  <meyering@redhat.com>
48333
48334         openat-die.c: avoid 'no previous prototype' warning
48335         * lib/openat-die.c: Include "openat.h".
48336         Reported by Reuben Thomas <rrt@sc3d.org>.
48337
48338 2008-10-16  Simon Josefsson  <simon@josefsson.org>
48339
48340         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
48341         * lib/netdb.in.h: Fix typo.
48342         Reported by Bruno Haible  <bruno@clisp.org>
48343
48344         * lib/netdb.in.h: Include sys/socket.h for platforms without
48345         netdb.h, to get structures like hostent on MinGW.
48346         * modules/netdb (Depends-on): Add sys_socket.
48347
48348 2008-10-15  Simon Josefsson  <simon@josefsson.org>
48349
48350         * modules/netdb, modules/netdb-tests: New file.
48351         * m4/netdb_h.m4: New file.
48352         * lib/netdb.in.h: Add, currently just an empty file pending
48353         definitions.
48354         * tests/test-netdb.c: New file.
48355         * doc/posix-headers/netdb.texi: Mention that we replace it if
48356         needed.
48357         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48358         netdb.
48359
48360 2008-10-15  Simon Josefsson  <simon@josefsson.org>
48361
48362         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
48363         with code.
48364
48365 2008-10-13  Bruno Haible  <bruno@clisp.org>
48366
48367         * lib/glthread/cond.c (glthread_cond_wait_func,
48368         glthread_cond_timedwait_func): Add a comment.
48369
48370 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
48371
48372         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
48373         * tests/test-select.c: Likewise,
48374
48375 2008-10-13  Bruno Haible  <bruno@clisp.org>
48376
48377         * lib/glthread/cond.c (glthread_cond_wait_func,
48378         glthread_cond_timedwait_func): Fix variable name.
48379         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48380
48381 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
48382
48383         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
48384         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
48385         struct sockaddr.sa_len.
48386         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
48387
48388 2008-10-13  Simon Josefsson  <simon@josefsson.org>
48389
48390         * build-aux/pmccabe2html: Add css and css_url parameters.
48391
48392 2008-10-12  Bruno Haible  <bruno@clisp.org>
48393
48394         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
48395         calling aclx_get.
48396         Reported by Rainer Tammer <tammer@tammer.net>.
48397
48398 2008-10-12  Bruno Haible  <bruno@clisp.org>
48399
48400         Use msvcrt aware primitives for creation/termination of Win32 threads.
48401         * lib/glthread/thread.c: Include <process.h>.
48402         (glthread_create_func): Use _beginthreadex instead of CreateThread.
48403         (wrapper_func): Update signature.
48404         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
48405
48406 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
48407             Bruno Haible  <bruno@clisp.org>
48408
48409         Provide a Win32 implementation of the 'cond' module.
48410         * lib/glthread/cond.h [USE_WIN32]: New implementation.
48411         * lib/glthread/cond.c (glthread_cond_init_func,
48412         glthread_cond_wait_func, glthread_cond_timedwait_func,
48413         glthread_cond_signal_func, glthread_cond_broadcast_func,
48414         glthread_cond_destroy_func) [USE_WIN32]: New functions.
48415         * modules/cond (Dependencies): Add gettimeofday.
48416
48417 2008-10-11  Bruno Haible  <bruno@clisp.org>
48418
48419         Make sleep work on older versions of mingw.
48420         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
48421         only whether it exists.
48422         * doc/posix-functions/sleep.texi: Mention the problem with older
48423         versions of mingw.
48424
48425 2008-10-11  Bruno Haible  <bruno@clisp.org>
48426
48427         New module 'shutdown'.
48428         * modules/shutdown: New file.
48429         * lib/sys_socket.in.h (shutdown): New declaration.
48430         * lib/winsock.c (shutdown): New function.
48431         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
48432         GNULIB_SHUTDOWN.
48433         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
48434         * doc/posix-functions/shutdown.texi: Document the new module.
48435
48436 2008-10-11  Jim Meyering  <meyering@redhat.com>
48437
48438         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
48439
48440 2008-10-11  Bruno Haible  <bruno@clisp.org>
48441
48442         New module 'fclose'.
48443         * modules/fclose: New file.
48444         * lib/stdio.in.h (fclose): New declaration.
48445         * lib/fclose.c: New file.
48446         * m4/fclose.m4: New file.
48447         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
48448         REPLACE_FCLOSE.
48449         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
48450         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
48451         REPLACE_FCLOSE.
48452         * modules/close (Depends-on): fclose.
48453         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
48454
48455 2008-10-11  Bruno Haible  <bruno@clisp.org>
48456
48457         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
48458         set errno and don't call _close.
48459
48460 2008-10-10  Bruno Haible  <bruno@clisp.org>
48461
48462         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
48463         ACL, not afterwards. Fixes test failure on Cygwin.
48464
48465 2008-10-09  Ben Pfaff  <blp@gnu.org>
48466
48467         * build-aux/announce-gen: Fix gnulib version related part of usage
48468         message.  Die with a useful error message if no tarballs are
48469         found.
48470
48471 2008-10-10  Jim Meyering  <meyering@redhat.com>
48472
48473         bootstrap: use git's --depth=N option only if it's supported
48474         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
48475         recognize the --depth option.  Reported by Pádraig Brady.
48476
48477 2008-10-09  Bruno Haible  <bruno@clisp.org>
48478
48479         New module 'ioctl'.
48480         * modules/ioctl: New file.
48481         * lib/sys_socket.in.h (ioctl): Remove declaration.
48482         * lib/winsock.c: Include <sys/ioctl.h>.
48483         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
48484         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
48485         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
48486         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
48487         * doc/posix-functions/ioctl.texi: Mention the new module.
48488
48489 2008-10-09  Bruno Haible  <bruno@clisp.org>
48490
48491         New module 'sys_ioctl'.
48492         * lib/sys_ioctl.in.h: New file.
48493         * m4/sys_ioctl_h.m4: New file.
48494         * modules/sys_ioctl: New file.
48495         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
48496
48497 2008-10-09  Bruno Haible  <bruno@clisp.org>
48498
48499         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
48500         * lib/winsock.c: Include <stdarg.h>.
48501         (rpl_ioctl): Change to second argument 'int' and then varargs.
48502
48503 2008-10-09  Bruno Haible  <bruno@clisp.org>
48504
48505         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
48506         when the sys_socket module is present and the system has <winsock2.h>.
48507
48508 2008-10-09  Bruno Haible  <bruno@clisp.org>
48509
48510         * doc/posix-functions/close.texi: Mention module 'close' instead of
48511         module 'sys_socket'.
48512
48513 2008-10-09  Bruno Haible  <bruno@clisp.org>
48514
48515         * doc/glibc-headers/sys_ioctl.texi: New file.
48516         * doc/gnulib.texi: Include it.
48517
48518 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48519             Bruno Haible  <bruno@clisp.org>
48520
48521         Combine the two replacements of 'close'.
48522         * lib/sys_socket.in.h (close): Define to a reminder to include
48523         <unistd.h>.
48524         (_gl_close_fd_maybe_socket): New declaration.
48525         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
48526         * lib/winsock.c (close): Remove undefinition.
48527         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
48528         needed for the gnulib module 'close'.
48529         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
48530         define to an error symbol or to a warning, if suitable.
48531         * lib/close.c: Include <sys/socket.h>.
48532         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
48533         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
48534         UNISTD_H_HAVE_WINSOCK2_H.
48535         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
48536         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48537         UNISTD_H_HAVE_WINSOCK2_H.
48538         * modules/sys_socket (Files): Add m4/unistd_h.m4.
48539         (configure.ac): Set a module indicator.
48540         (Makefile.am): Substitute GNULIB_CLOSE.
48541         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
48542         * modules/poll-tests (Depends-on): Add close.
48543         * modules/select-tests (Depends-on): Likewise.
48544
48545 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48546             Bruno Haible  <bruno@clisp.org>
48547
48548         New module 'close'.
48549         * modules/close: New file.
48550         * lib/unistd.in.h (close): Move declaration out of the
48551         FCHDIR_REPLACEMENT scope.
48552         (_gl_unregister_fd): New declaration.
48553         * lib/close.c: New file.
48554         * lib/fchdir.c (rpl_close): Remove function.
48555         * m4/close.m4: New file.
48556         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
48557         close.
48558         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
48559         REPLACE_CLOSE.
48560         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
48561         REPLACE_CLOSE.
48562         * modules/fchdir (Depends-on): Add close.
48563
48564 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48565             Bruno Haible  <bruno@clisp.org>
48566
48567         * lib/fcntl.in.h (open): Simplify conditionals.
48568         (_gl_register_fd): New declaration.
48569         * lib/fchdir.c (rpl_open): Remove function.
48570         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
48571         also.
48572         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
48573         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
48574         open.
48575
48576 2008-10-09  Jim Meyering  <meyering@redhat.com>
48577
48578         GNUmakefile: use the more name-space-friendly "_version"
48579         * top/GNUmakefile (_dummy): Update.
48580         (_version): Rename from "version".
48581
48582 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48583             Bruno Haible  <bruno@clisp.org>
48584
48585         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
48586         rpl_close.
48587         (_gl_register_fd): New function, extracted from rpl_open.
48588         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
48589         (rpl_open, rpl_opendir): Use _gl_register_fd.
48590
48591 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48592
48593         Fix organization of 'open' replacement.
48594         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
48595         (gl_FUNC_OPEN): Use it.
48596         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
48597
48598 2008-10-08  Bruno Haible  <bruno@clisp.org>
48599
48600         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
48601
48602 2008-10-08  Simon Josefsson  <simon@josefsson.org>
48603
48604         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
48605         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
48606         listen).
48607
48608 2008-10-08  Eric Blake  <ebb9@byu.net>
48609
48610         GNUmakefile: add 'make version' target
48611         * top/GNUmakefile (_curr-ver): Split version update rules...
48612         (version): ...into a target.
48613
48614 2008-10-07  Bruno Haible  <bruno@clisp.org>
48615
48616         Use a more portable replacement expression for -0.0L.
48617         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
48618         instead of -0.0L. Fix m4 quotation.
48619
48620         * tests/test-signbit.c: Include <float.h>.
48621         (minus_zero): New variable.
48622         (test_signbitl): Use minus_zero instead of -zero.
48623         * modules/signbit-tests (Depends-on): Add float.
48624
48625         * tests/test-ceill.c: Include <float.h>.
48626         (zero): Remove variable.
48627         (minus_zero): New variable.
48628         (main): Use minus_zero instead of -zero.
48629         * modules/ceill-tests (Depends-on): Add float.
48630
48631         * tests/test-floorl.c: Include <float.h>.
48632         (zero): Remove variable.
48633         (minus_zero): New variable.
48634         (main): Use minus_zero instead of -zero.
48635         * modules/floorl-tests (Depends-on): Add float.
48636
48637         * tests/test-roundl.c: Include <float.h>.
48638         (zero): Remove variable.
48639         (minus_zero): New variable.
48640         (main): Use minus_zero instead of -zero.
48641         * modules/roundl-tests (Depends-on): Add float.
48642
48643         * tests/test-truncl.c: Include <float.h>.
48644         (zero): Remove variable.
48645         (minus_zero): New variable.
48646         (main): Use minus_zero instead of -zero.
48647         * modules/truncl-tests (Depends-on): Add float.
48648
48649         * tests/test-frexpl.c (zero): Remove variable.
48650         (minus_zero): New variable.
48651         (main): Use minus_zero instead of -zero.
48652         * modules/frexpl-tests (Depends-on): Add float.
48653
48654         * tests/test-isnan.c (zerol): Remove variable.
48655         (minus_zerol): New variable.
48656         (test_long_double): Use minus_zerol instead of -zerol.
48657         * modules/isnan-tests (Depends-on): Add float.
48658
48659         * tests/test-isnanl.h (zero): Remove variable.
48660         (minus_zero): New variable.
48661         (main): Use minus_zero instead of -zero.
48662         * modules/isnanl-nolibm-tests (Depends-on): Add float.
48663         * modules/isnanl-tests (Depends-on): Add float.
48664
48665         * tests/test-ldexpl.c (zero): Remove variable.
48666         (minus_zero): New variable.
48667         (main): Use minus_zero instead of -zero.
48668         * modules/ldexpl-tests (Depends-on): Add float.
48669
48670         * tests/test-snprintf-posix.h (zerol): Remove variable.
48671         (minus_zerol): New variable.
48672         (test_function): Use minus_zerol instead of -zerol.
48673         * modules/snprintf-posix-tests (Depends-on): Add float.
48674         * modules/vsnprintf-posix-tests (Depends-on): Add float.
48675
48676         * tests/test-sprintf-posix.h (zerol): Remove variable.
48677         (minus_zerol): New variable.
48678         (test_function): Use minus_zerol instead of -zerol.
48679         * modules/sprintf-posix-tests (Depends-on): Add float.
48680         * modules/vsprintf-posix-tests (Depends-on): Add float.
48681
48682         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
48683         (minus_zerol): New variable.
48684         (test_function): Use minus_zerol instead of -zerol.
48685         * modules/vasnprintf-posix-tests (Depends-on): Add float.
48686
48687         * tests/test-vasprintf-posix.c (zerol): Remove variable.
48688         (minus_zerol): New variable.
48689         (test_function): Use minus_zerol instead of -zerol.
48690         * modules/vasprintf-posix-tests (Depends-on): Add float.
48691
48692 2008-10-07  Simon Josefsson  <simon@josefsson.org>
48693
48694         * MODULES.html.sh (Support for building documentation): Mention
48695         pmccabe2html.  Sort entries.
48696
48697         Add pmccabe2html module, from gnupdf.
48698         * build-aux/pmccabe.css: New file.
48699         * build-aux/pmccabe2html: New file.
48700         * m4/pmccabe2html.m4: New file.
48701         * modules/pmccabe2html: New file.
48702
48703 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
48704
48705         flock: new module
48706         * MODULES.html.sh: Add to list of modules.
48707         * lib/flock.c: flock implementation for Windows and Unix systems
48708         which have fcntl.
48709         * doc/glibc-functions/flock.texi: Update documentation.
48710         * lib/sys_file.in.h: <sys/file.h> header file.
48711         * m4/flock.m4: M4 macros.
48712         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
48713         * modules/flock: flock module.
48714         * modules/flock-tests: flock tests module.
48715         * modules/sys_file: sys/file.h module.
48716         * tests/test-flock.c: test suite for flock.
48717
48718 2008-10-06  Jim Meyering  <meyering@redhat.com>
48719
48720         bootstrap: check for LT_INIT more portably still ;-)
48721         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
48722         Spotted by Bruno Haible.
48723
48724 2008-10-06  Eric Blake  <ebb9@byu.net>
48725
48726         test-signbit: avoid tripping Irix cc bug on -0.0L
48727         * tests/test-signbit.c (minus_zerol): Delete, and replace with
48728         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
48729         entire testsuite consistent and avoids an Irix 6.2 bug.
48730
48731 2008-10-05  Bruno Haible  <bruno@clisp.org>
48732             Jim Meyering  <jim@meyering.net>
48733
48734         Add an option for ignoring EPIPE during close_stdout.
48735         * lib/closeout.h: Include <stdbool.h>.
48736         (close_stdout_set_ignore_EPIPE): New declaration.
48737         * lib/closeout.c: Include <stdbool.h>.
48738         (ignore_EPIPE): New variable.
48739         (close_stdout_set_ignore_EPIPE): New function.
48740         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
48741         * lib/close-stream.c (close_stream): Mention the possible EPIPE
48742         failure.
48743         * modules/closeout (Depends-on): Add stdbool.
48744
48745 2008-10-05  Bruno Haible  <bruno@clisp.org>
48746
48747         * modules/accept: New file.
48748         * modules/bind: New file.
48749         * modules/connect: New file.
48750         * modules/getpeername: New file.
48751         * modules/getsockname: New file.
48752         * modules/getsockopt: New file.
48753         * modules/listen: New file.
48754         * modules/recv: New file.
48755         * modules/recvfrom: New file.
48756         * modules/send: New file.
48757         * modules/sendto: New file.
48758         * modules/setsockopt: New file.
48759         * modules/socket: New file.
48760         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
48761         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
48762         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
48763         the particular module is requested. Add a link warning when the
48764         particular module is not requested.
48765         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
48766         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
48767         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
48768         the particular module is requested.
48769         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
48770         gl_SYS_SOCKET_H_DEFAULTS): New macros.
48771         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
48772         * modules/sys_socket (Depends-on): Add link-warning.
48773         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
48774         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
48775         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
48776         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
48777         GL_LINK_WARNING.
48778         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
48779         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
48780         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
48781         * doc/posix-functions/getpeername.texi: Mention the new module
48782         'getpeername'.
48783         * doc/posix-functions/getsockname.texi: Mention the new module
48784         'getsockname'.
48785         * doc/posix-functions/getsockopt.texi: Mention the new module
48786         'getsockopt'.
48787         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
48788         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
48789         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
48790         * doc/posix-functions/send.texi: Mention the new module 'send'.
48791         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
48792         * doc/posix-functions/setsockopt.texi: Mention the new module
48793         'setsockopt'.
48794         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
48795         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
48796         listen, connect, accept.
48797         * modules/select-tests (Depends-on): Likewise.
48798
48799 2008-10-05  Bruno Haible  <bruno@clisp.org>
48800
48801         * lib/winsock.c (strerror): Remove unused #undef.
48802         (rpl_close): Remove unused local variable.
48803
48804         * modules/sys_socket (Depends-on); Add errno.
48805
48806 2008-10-05  Bruno Haible  <bruno@clisp.org>
48807
48808         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
48809         (select): Add a link warning when the 'select' module is not used.
48810         * modules/sys_select (Depends-on): Add link-warning.
48811         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
48812         Suggested by Paolo Bonzini.
48813
48814 2008-10-05  Jim Meyering  <meyering@redhat.com>
48815
48816         bootstrap: check for LT_INIT more portably
48817         * build-aux/bootstrap: Avoid using grep -E, since it's not
48818         portable enough.  Suggestion from Bruno Haible.
48819
48820 2008-10-05  Bruno Haible  <bruno@clisp.org>
48821
48822         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
48823         as being fixed by gnulib.
48824
48825 2008-10-05  Bruno Haible  <bruno@clisp.org>
48826
48827         * modules/select-tests: New file, mostly copied from
48828         modules/sys_select-tests.
48829         * tests/test-select.c: New file, mostly copied from
48830         tests/test-sys_select.c.
48831         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
48832         * modules/sys_select-tests (Depends-on): Remove all dependencies.
48833         (Makefile.am): Remove test_sys_select_LDADD.
48834
48835         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
48836         to an undefined symbol, for an error message.
48837         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
48838         (gl_SYS_SELECT_H_DEFAULTS): New macro.
48839         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
48840         winsock-select.c here.
48841         * modules/sys_select (Files): Remove lib/winsock-select.c.
48842         (Depends-on): Remove alloca.
48843         (Makefile.am): Substitute GNULIB_SELECT.
48844         * modules/select: New file.
48845         * doc/posix-functions/select.texi: Update.
48846
48847 2008-10-05  Bruno Haible  <bruno@clisp.org>
48848
48849         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
48850         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
48851         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
48852         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
48853         getdtablesize.
48854         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
48855         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
48856
48857 2008-10-05  Bruno Haible  <bruno@clisp.org>
48858
48859         * modules/getdtablesize-tests: New file.
48860         * tests/test-getdtablesize.c: New file.
48861
48862         New module 'getdtablesize'.
48863         * lib/unistd.in.h (getdtablesize): New declaration.
48864         * lib/getdtablesize.c: New file.
48865         * m4/getdtablesize.m4: New file.
48866         * modules/getdtablesize: New file.
48867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48868         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
48869         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
48870         HAVE_GETDTABLESIZE.
48871         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
48872
48873 2008-10-05  Bruno Haible  <bruno@clisp.org>
48874
48875         * modules/sched (Makefile.am): Fix typo.
48876         Reported by Simon Josefsson.
48877
48878 2008-10-05  Jim Meyering  <meyering@redhat.com>
48879
48880         bootstrap: check for LT_INIT, too
48881         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
48882         are deprecated.  Suggestion from Ralf Wildenhues.
48883
48884 2008-10-05  Bruno Haible  <bruno@clisp.org>
48885
48886         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
48887         overriding them by ours.
48888         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
48889
48890 2008-10-05  Jim Meyering  <meyering@redhat.com>
48891
48892         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
48893         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
48894         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
48895
48896 2008-10-04  Bruno Haible  <bruno@clisp.org>
48897
48898         * modules/dup2 (License): Change to LGPLv2+.
48899         * modules/sleep (License): Likewise.
48900         * modules/perror (License): Likewise.
48901         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
48902         Blake.
48903         * modules/signal (License): Likewise.
48904         * modules/sigprocmask (License): Likewise.
48905         * modules/raise (License): Change to LGPLv2+, with approval by Jim
48906         Meyering.
48907
48908 2008-10-04  Bruno Haible  <bruno@clisp.org>
48909
48910         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
48911         Reported by Rainer Tammer <tammer@tammer.net>.
48912
48913 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
48914             Bruno Haible  <bruno@clisp.org>
48915
48916         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
48917         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
48918         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
48919
48920 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
48921
48922         filevercmp: new module
48923         * lib/filevercmp.h: New function filevercmp comparing version strings.
48924         * lib/filevercmp.c: Implementation of filevercmp function.
48925         * modules/filevercmp: Module metadata.
48926         * tests/test-filevercmp.c: Unit test for new module.
48927         * modules/filevercmp-tests: Unit test metadata.
48928         * MODULES.html.sh: Add filevercmp module.
48929
48930 2008-10-03  Bruno Haible  <bruno@clisp.org>
48931
48932         * lib/c-ctype.h: Add comment.
48933         Reported by Jim Meyering.
48934
48935 2008-10-02  Bruno Haible  <bruno@clisp.org>
48936
48937         * modules/posix_spawn-internal (Depends-on): Add 'open'.
48938
48939 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
48940
48941         * build-aux/bootstrap: Allow renaming bootstrap, and change the
48942         name of bootstrap.conf accordingly.
48943
48944 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
48945
48946         * build-aux/bootstrap: Install git-merge-changelog configuration
48947         items into .gitconfig if needed.
48948
48949 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
48950
48951         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
48952         git repository, and initialize/update it accordingly.
48953
48954 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
48955
48956         * modules/fsync-tests: New file.
48957         * tests/test-fsync.c: New file.
48958
48959         New module 'fsync'.
48960         * lib/fsync.c: New file.
48961         * m4/fsync.m4: New file.
48962         * modules/fsync: New file.
48963         * lib/unistd.in.h (fsync): New declaration.
48964         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
48965         GNULIB_FSYNC and HAVE_FSYNC.
48966         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
48967         * MODULES.html.sh (posix_functions): Add fsync.
48968         * doc/posix-functions/fsync.texi: Mention the new module.
48969
48970 2008-10-02  Jim Meyering  <meyering@redhat.com>
48971
48972         fts.c: sync with similar code from coreutils' remove.c
48973         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
48974         Guard also with "#if defined __linux__", since for now at least,
48975         this code is Linux-kernel-specific.
48976
48977 2008-10-02  Jim Meyering  <meyering@redhat.com>
48978
48979         fts: bug fixes
48980         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
48981         Include <sys/vfs.h>, not <sys/statfs.h>.
48982
48983         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
48984         Include <sys/vfs.h>, not <sys/statfs.h>.
48985
48986 2008-10-01  Bruno Haible  <bruno@clisp.org>
48987
48988         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
48989         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
48990         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
48991         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
48992         * doc/posix-functions/posix_spawnp.texi: Likewise.
48993         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
48994         whether posix_spawn actually works.
48995         * m4/pipe.m4 (gl_PIPE): Likewise.
48996         * modules/execute (Files): Add m4/posix_spawn.m4.
48997         * modules/pipe (Files): Add m4/posix_spawn.m4.
48998         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
48999
49000 2008-10-01  Jim Meyering  <meyering@redhat.com>
49001
49002         remove trailing spaces
49003         * NEWS: Likewise.
49004         * lib/poll.c (poll): Likewise.
49005         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
49006         * lib/winsock.c (rpl_close): Likewise.
49007         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
49008         * modules/yield: Likewise.
49009         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
49010         * tests/test-sys_select.c (connect_to_socket): Likewise.
49011
49012         fts.c: adjust a new interface to be more generally useful
49013         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
49014         (fts_build): Adjust caller.
49015
49016 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49017
49018         * modules/cond-tests: New file.
49019         * tests/test-cond.c: New file.
49020
49021 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49022             Bruno Haible  <bruno@clisp.org>
49023
49024         * modules/cond (Dependencies): Add errno, time.
49025         * lib/glthread/cond.h: Include <time.h>.
49026         (gl_cond_define, gl_cond_define_initialized): Use the same definition
49027         across platforms.
49028
49029 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49030             Bruno Haible  <bruno@clisp.org>
49031
49032         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
49033
49034 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49035             Bruno Haible  <bruno@clisp.org>
49036
49037         * modules/tls-tests (Depends-on): Add thread, yield.
49038         (configure.ac): Remove all checks.
49039         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
49040         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
49041         gl_thread_self): Remove definitions. Include glthread/thread.h and
49042         glthread/yield.h instead.
49043         (test_tls): Pass an additional NULL argument to gl_thread_join.
49044
49045 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49046             Bruno Haible  <bruno@clisp.org>
49047
49048         * modules/lock-tests (Depends-on): Add thread, yield.
49049         (configure.ac): Remove all checks.
49050         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
49051         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
49052         gl_thread_self): Remove definitions. Include glthread/thread.h and
49053         glthread/yield.h instead.
49054         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
49055         additional NULL argument to gl_thread_join.
49056
49057 2008-09-30  Bruno Haible  <bruno@clisp.org>
49058
49059         Fix the Win32 implementation of the 'thread' module.
49060         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
49061         pointer type.
49062         (gl_thread_self): Invoke gl_thread_self_func.
49063         (gl_thread_self_func): New declaration.
49064         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
49065         (do_init_self_key, init_self_key): New functions.
49066         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
49067         Remove some fields.
49068         (running_threads, running_lock): Remove variables.
49069         (get_current_thread_handle): New function.
49070         (gl_thread_self_func, wrapper_func, glthread_create_func,
49071         glthread_join_func, gl_thread_exit_func): Largely rewritten and
49072         simplified.
49073
49074 2008-09-30  Bruno Haible  <bruno@clisp.org>
49075
49076         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
49077         files.
49078
49079 2008-09-30  Jim Meyering  <meyering@redhat.com>
49080
49081         fts.m4: correct the test for statfs.f_type
49082         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
49083         when checking for statfs.f_type.
49084
49085 2008-09-15  Simon Josefsson  <simon@josefsson.org>
49086
49087         tests: avoid some compiler warnings
49088         * tests/test-memchr.c (main): Pass NULL indirectly.
49089         * tests/test-getdate.c (main): Remove unused variable 'ret'.
49090
49091 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
49092
49093         getdate.y: disallow countable dayshifts like "4 yesterday ago"
49094         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
49095         exactly specified dayshifts.
49096         (dayshift): New rule.
49097         (rel): Add dayshift.
49098         (relative_time_table) [tomorrow, yesterday, today, now]:
49099         Use tDAY_SHIFT in place of tDAY_UNIT.
49100         * tests/test-getdate.c: Add tests for now-disallowed countable
49101         dayshifts, e.g., "4 yesterday ago".
49102
49103 2008-09-29  Bruno Haible  <bruno@clisp.org>
49104
49105         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
49106         * tests/test-posix_spawn1.in.sh: Renamed from
49107         tests/test-posix_spawn.in.sh.
49108         * tests/test-posix_spawn2.c: New file.
49109         * tests/test-posix_spawn2.in.sh: New file.
49110         * modules/posix_spawnp-tests (Files): Update.
49111         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
49112
49113 2008-09-29  Bruno Haible  <bruno@clisp.org>
49114
49115         Propagate effects of putenv/setenv/unsetenv to child processes.
49116         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
49117         * lib/pipe.c (create_pipe): Likewise.
49118
49119 2008-09-29  Bruno Haible  <bruno@clisp.org>
49120
49121         Enable use of shell scripts as executables in mingw.
49122         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
49123         run the program as a shell script.
49124         * lib/pipe.c (create_pipe): Likewise.
49125         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
49126         resulting array.
49127
49128 2008-09-29  Eric Blake  <ebb9@byu.net>
49129
49130         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
49131
49132 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
49133
49134         * doc/posix-functions/accept.texi: Update mingw problems.
49135         * doc/posix-functions/bind.texi: Update mingw problems.
49136         * doc/posix-functions/close.texi: Update mingw problems.
49137         * doc/posix-functions/connect.texi: Update mingw problems.
49138         * doc/posix-functions/getpeername.texi: Update mingw problems.
49139         * doc/posix-functions/getsockname.texi: Update mingw problems.
49140         * doc/posix-functions/getsockopt.texi: Update mingw problems.
49141         * doc/posix-functions/ioctl.texi: Update mingw problems.
49142         * doc/posix-functions/listen.texi: Update mingw problems.
49143         * doc/posix-functions/recv.texi: Update mingw problems.
49144         * doc/posix-functions/recvfrom.texi: Update mingw problems.
49145         * doc/posix-functions/select.texi: Update mingw problems.
49146         * doc/posix-functions/send.texi: Update mingw problems.
49147         * doc/posix-functions/sendto.texi: Update mingw problems.
49148         * doc/posix-functions/setsockopt.texi: Update mingw problems.
49149         * doc/posix-functions/socket.texi: Update mingw problems.
49150
49151 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
49152             Bruno Haible  <bruno@clisp.org>
49153
49154         * lib/sys_select.in.h: Include sys/time.h.
49155         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
49156         * modules/sys_select: Depend on sys_time.
49157         * tests/test-sys_select.c: Test that sys/select.h defines struct
49158         timeval fully.
49159
49160 2008-09-29  Bruno Haible  <bruno@clisp.org>
49161
49162         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
49163         * lib/sys_select.in.h: Likewise.
49164
49165 2008-09-29  Bruno Haible  <bruno@clisp.org>
49166
49167         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
49168
49169 2008-09-29  Bruno Haible  <bruno@clisp.org>
49170
49171         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
49172         Set LIBSOCKET instead of augmenting LIBS.
49173         * modules/sockets (Link): New section.
49174         * modules/sockets-tests (test_sockets_LDADD): New variable.
49175         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
49176         * modules/poll-tests (test_poll_LDADD): New variable.
49177         * NEWS: Document the change.
49178
49179 2008-09-29  Bruno Haible  <bruno@clisp.org>
49180
49181         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
49182         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
49183         ARPA_INET_H directly.
49184         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49185
49186 2008-09-28  Bruno Haible  <bruno@clisp.org>
49187
49188         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
49189         from gl_HEADER_SYS_SOCKET.
49190         (gl_HEADER_SYS_SOCKET): Invoke it.
49191         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49192
49193 2008-09-28  Bruno Haible  <bruno@clisp.org>
49194
49195         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
49196         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
49197         Needed on OSF/1 4.0.
49198
49199 2008-09-28  Bruno Haible  <bruno@clisp.org>
49200
49201         Override open more carefully.
49202         * lib/open.c (orig_open): New function.
49203         (rpl_open): Use orig_open instead of open.
49204         * lib/fcntl.in.h: Add special invocation convention.
49205         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
49206         (gl_FUNC_OPEN): Invoke it.
49207
49208         Override freopen more carefully.
49209         * lib/freopen.c (orig_freopen): New function.
49210         (rpl_freopen): Use orig_freopen instead of freopen.
49211         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
49212         (gl_FUNC_FREOPEN): Invoke it.
49213
49214         Override fopen more carefully.
49215         * lib/fopen.c (orig_fopen): New function.
49216         (rpl_fopen): Use orig_fopen instead of fopen.
49217         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
49218         (gl_FUNC_FOPEN): Invoke it.
49219         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
49220
49221 2008-09-28  Bruno Haible  <bruno@clisp.org>
49222
49223         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
49224         SIGPIPE.
49225
49226 2008-09-28  Bruno Haible  <bruno@clisp.org>
49227
49228         * tests/test-sigaction.c (handler, main): Disable the check whether
49229         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
49230         glibc systems with LinuxThreads.
49231
49232 2008-09-28  Bruno Haible  <bruno@clisp.org>
49233
49234         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
49235
49236         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
49237         with AIX xlc.
49238         * lib/fcntl.in.h (open): Likewise.
49239         Reported by Rainer Tammer <tammer@tammer.net>.
49240
49241 2008-09-28  Bruno Haible  <bruno@clisp.org>
49242
49243         * modules/posix_spawnp-tests: New file.
49244         * tests/test-posix_spawn.c: New file.
49245         * tests/test-posix_spawn.in.sh: New file.
49246
49247         New module 'posix_spawnp'.
49248         * modules/posix_spawnp: New file.
49249         * lib/spawnp.c: New file, from GNU libc with modifications.
49250         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
49251
49252         New module 'posix_spawn'.
49253         * modules/posix_spawn: New file.
49254         * lib/spawn.c: New file, from GNU libc with modifications.
49255         * doc/posix-functions/posix_spawn.texi: Mention the new module.
49256
49257         New module 'posix_spawnattr_destroy'.
49258         * modules/posix_spawnattr_destroy: New file.
49259         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
49260         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
49261         module.
49262
49263         New module 'posix_spawnattr_setsigmask'.
49264         * modules/posix_spawnattr_setsigmask: New file.
49265         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
49266         modifications.
49267         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
49268         new module.
49269
49270         New module 'posix_spawnattr_getsigmask'.
49271         * modules/posix_spawnattr_getsigmask: New file.
49272         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
49273         modifications.
49274         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
49275         new module.
49276
49277         New module 'posix_spawnattr_setsigdefault'.
49278         * modules/posix_spawnattr_setsigdefault: New file.
49279         * lib/spawnattr_setdefault.c: New file, from GNU libc with
49280         modifications.
49281         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
49282         new module.
49283
49284         New module 'posix_spawnattr_getsigdefault'.
49285         * modules/posix_spawnattr_getsigdefault: New file.
49286         * lib/spawnattr_getdefault.c: New file, from GNU libc with
49287         modifications.
49288         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
49289         new module.
49290
49291         New module 'posix_spawnattr_setschedpolicy'.
49292         * modules/posix_spawnattr_setschedpolicy: New file.
49293         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
49294         modifications.
49295         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
49296         new module.
49297
49298         New module 'posix_spawnattr_getschedpolicy'.
49299         * modules/posix_spawnattr_getschedpolicy: New file.
49300         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
49301         modifications.
49302         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
49303         new module.
49304
49305         New module 'posix_spawnattr_setschedparam'.
49306         * modules/posix_spawnattr_setschedparam: New file.
49307         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
49308         modifications.
49309         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
49310         new module.
49311
49312         New module 'posix_spawnattr_getschedparam'.
49313         * modules/posix_spawnattr_getschedparam: New file.
49314         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
49315         modifications.
49316         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
49317         new module.
49318
49319         New module 'posix_spawnattr_setpgroup'.
49320         * modules/posix_spawnattr_setpgroup: New file.
49321         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
49322         modifications.
49323         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
49324         module.
49325
49326         New module 'posix_spawnattr_getpgroup'.
49327         * modules/posix_spawnattr_getpgroup: New file.
49328         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
49329         modifications.
49330         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
49331         module.
49332
49333         New module 'posix_spawnattr_setflags'.
49334         * modules/posix_spawnattr_setflags: New file.
49335         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
49336         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
49337         module.
49338
49339         New module 'posix_spawnattr_getflags'.
49340         * modules/posix_spawnattr_getflags: New file.
49341         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
49342         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
49343         module.
49344
49345         New module 'posix_spawnattr_init'.
49346         * modules/posix_spawnattr_init: New file.
49347         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
49348         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
49349         module.
49350
49351         New module 'posix_spawn_file_actions_destroy'.
49352         * modules/posix_spawn_file_actions_destroy: New file.
49353         * lib/spawn_faction_destroy.c: New file, from GNU libc with
49354         modifications.
49355         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
49356         the new module.
49357
49358         New module 'posix_spawn_file_actions_addopen'.
49359         * modules/posix_spawn_file_actions_addopen: New file.
49360         * lib/spawn_faction_addopen.c: New file, from GNU libc with
49361         modifications.
49362         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
49363         the new module.
49364
49365         New module 'posix_spawn_file_actions_adddup2'.
49366         * modules/posix_spawn_file_actions_adddup2: New file.
49367         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
49368         modifications.
49369         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
49370         the new module.
49371
49372         New module 'posix_spawn_file_actions_addclose'.
49373         * modules/posix_spawn_file_actions_addclose: New file.
49374         * lib/spawn_faction_addclose.c: New file, from GNU libc with
49375         modifications.
49376         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
49377         the new module.
49378
49379         New module 'posix_spawn_file_actions_init'.
49380         * modules/posix_spawn_file_actions_init: New file.
49381         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
49382         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
49383         new module.
49384
49385         New module 'posix_spawn-internal'.
49386         * modules/posix_spawn-internal: New file.
49387         * lib/spawn_int.h: New file, from GNU libc with modifications.
49388         * lib/spawni.c: New file, from GNU libc with modifications.
49389         * m4/posix_spawn.m4: New file.
49390
49391         New module 'spawn'.
49392         * modules/spawn: New file.
49393         * lib/spawn.in.h: New file, from GNU libc with modifications.
49394         * m4/spawn_h.m4: New file.
49395         * doc/posix-headers/spawn.texi: Mention the new module.
49396
49397 2008-09-28  Bruno Haible  <bruno@clisp.org>
49398
49399         * modules/sched-tests: New file.
49400         * tests/test-sched.c: New file.
49401
49402         New module 'sched'.
49403         * modules/sched: New file.
49404         * lib/sched.in.h: New file.
49405         * m4/sched_h.m4: New file.
49406         * doc/posix-headers/sched.texi: Mention the new module.
49407
49408 2008-09-27  Eric Blake  <ebb9@byu.net>
49409
49410         Fix previous patch, and tweak references to $0.
49411         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
49412         (func_version, func_gnulib_dir): Don't call this program
49413         gnulib-tool.
49414         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
49415         with using $0 in function.
49416         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
49417         (func_fatal_error): Reuse the name the user invoked us with.
49418
49419 2008-09-27  Bruno Haible  <bruno@clisp.org>
49420
49421         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
49422         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
49423         (gl_ICONV_H): Not here.
49424         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
49425         instead of assigning ICONV_H directly.
49426
49427         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
49428         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
49429         WCHAR_H directly.
49430
49431 2008-09-27  Bruno Haible  <bruno@clisp.org>
49432
49433         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
49434         * modules/arpa_inet (Depends-on): Add link-warning.
49435         (Makefile.am): Insert the definition of GL_LINK-WARNING.
49436         * modules/unistd (Makefile.am): Likewise.
49437
49438 2008-09-26  Bruno Haible  <bruno@clisp.org>
49439
49440         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
49441         variables.
49442         (func_version): Essentially copied from gnulib-tool.
49443         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
49444         func_readlink): Copied from gnulib-tool.
49445
49446 2008-09-26  Bruno Haible  <bruno@clisp.org>
49447
49448         * gnulib-tool (func_version): Change directory to $gnulib_dir before
49449         invoking git-version-gen.
49450
49451 2008-09-26  Bruno Haible  <bruno@clisp.org>
49452
49453         * posix-modules: Update to directory names changed on 2008-01-19.
49454         Remove commas in output before splitting into words. No more need to
49455         avoid 'ftruncate' since 2007-02-19.
49456
49457 2008-09-26  Bruno Haible  <bruno@clisp.org>
49458
49459         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
49460
49461 2008-09-26  Bruno Haible  <bruno@clisp.org>
49462
49463         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
49464         * modules/fwriteerror (Depends-on): Add errno.
49465
49466 2008-09-26  Bruno Haible  <bruno@clisp.org>
49467
49468         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
49469         * tests/test-vc-list-files-cvs.sh: Likewise.
49470
49471 2008-09-26  Bruno Haible  <bruno@clisp.org>
49472
49473         * doc/posix-headers/sys_resource.texi: Reorder items.
49474
49475 2008-09-26  Jim Meyering  <meyering@redhat.com>
49476
49477         fts: tweak inode comparison function
49478         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
49479         inode numbers, as documented.
49480
49481         fts: sort dirent entries on inode number before traversing
49482         This avoids a quadratic, seek-related performance penalty when
49483         operating on a directory containing many entries (measurable at 10k;
49484         3.5 hours at 2 million entries with a cold cache) on certain types
49485         of file systems, including ext3 and ext4, but not tmpfs.
49486         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
49487         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
49488         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
49489         (fs_handles_readdir_ordered_dirents_efficiently): New function.
49490         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
49491         (fts_build): Set the stat.st_ino member from D_INO.
49492         If it is likely to be useful, sort dirent entries on inode number.
49493
49494         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
49495         and the struct statfs.f_type member.
49496         * modules/fts (Depends-on): Add d-ino.
49497
49498 2008-09-26  Bruno Haible  <bruno@clisp.org>
49499
49500         * modules/sigpipe-die (Depends-on): Add sigpipe.
49501
49502         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
49503         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
49504         and GNULIB_STDIO_H_SIGPIPE are set.
49505         * lib/stdio-write.c: New file.
49506         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
49507         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
49508         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
49509         REPLACE_STDIO_WRITE_FUNCS.
49510         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
49511         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
49512         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
49513         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
49514         * modules/stdio (Files): Add lib/stdio-write.c.
49515         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
49516         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
49517         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
49518         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
49519         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
49520         REPLACE_FPRINTF_POSIX.
49521         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
49522         REPLACE_PRINTF_POSIX.
49523         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
49524         REPLACE_VFPRINTF_POSIX.
49525         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
49526         REPLACE_VPRINTF_POSIX.
49527         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
49528         SIGPIPE issue.
49529         * doc/posix-functions/fputc.texi: Likewise.
49530         * doc/posix-functions/fputs.texi: Likewise.
49531         * doc/posix-functions/fwrite.texi: Likewise.
49532         * doc/posix-functions/printf.texi: Likewise.
49533         * doc/posix-functions/putc.texi: Likewise.
49534         * doc/posix-functions/putchar.texi: Likewise.
49535         * doc/posix-functions/puts.texi: Likewise.
49536         * doc/posix-functions/vfprintf.texi: Likewise.
49537         * doc/posix-functions/vprintf.texi: Likewise.
49538
49539         * modules/safe-write (Depends-on): Add write.
49540
49541         * modules/sigpipe-tests: New file.
49542         * tests/test-sigpipe.c: New file.
49543         * tests/test-sigpipe.sh: New file.
49544
49545         * modules/write: New file.
49546         * lib/unistd.in.h: Include <sys/types.h>.
49547         (write): New declaration.
49548         * lib/write.c: New file.
49549         * m4/write.m4: New file.
49550         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49551         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
49552         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
49553         GNULIB_WRITE, REPLACE_WRITE.
49554         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
49555         and the SIGPIPE issue.
49556
49557         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
49558         (raise): New declaration.
49559         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
49560         (ext_signal): New function.
49561         (rpl_raise): New function.
49562         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
49563         GNULIB_SIGNAL_H_SIGPIPE.
49564         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
49565         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
49566
49567         * modules/sigpipe: New file.
49568         * m4/sigpipe.m4: New file.
49569
49570 2008-09-25  Derek Price  <derek@ximbiot.com>
49571             Bruno Haible  <bruno@clisp.org>
49572
49573         * gnulib-tool (func_import): Report all license incompatibilities, not
49574         just the first one.
49575
49576 2008-09-25  Bruno Haible  <bruno@clisp.org>
49577
49578         * gnulib-tool (func_import): When computing the edits, consider not
49579         only the Makefile.ams that exist but also those that will be generated.
49580
49581 2008-09-25  Simon Josefsson  <simon@josefsson.org>
49582
49583         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
49584         fixes gnulib-tool --test warning about duplicate dependency.
49585
49586 2008-09-25  Bruno Haible  <bruno@clisp.org>
49587
49588         * gnulib-tool: Don't ask the user to perform edits in the generated
49589         Makefile.ams.
49590         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
49591         apply to the Makefile.am being generated.
49592         (func_emit_tests_Makefile_am): Execute edits that apply to the
49593         Makefile.am being generated.
49594         (func_import): Setup list of Makefile.am edits before emitting the
49595         Makefile.ams, not at the end.
49596         (func_create_testdir): Update.
49597         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49598
49599 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49600
49601         * gnulib-tool (func_import): Store the --tests-base option in the
49602         comment in gnulib-cache.m4.
49603
49604 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
49605
49606         * NEWS: Document increased portability that sys_select now provides.
49607
49608         * lib/sys_select.in.h: Install select wrapper.
49609         * lib/sys_socket.in.h: Use more descriptive name when there is no
49610         select wrapper.
49611         * lib/winsock-select.c: New.
49612         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
49613         Require gl_HEADER_SYS_SOCKET.
49614         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
49615         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
49616         * tests/test-sys_select.c: Add functional tests.
49617
49618 2008-09-24  Eric Blake  <ebb9@byu.net>
49619
49620         open, fopen: close fd leak in last patch
49621         * lib/open.c (rpl_open): Close fd before returning error.
49622         * lib/fopen.c (rpl_fopen): Close fd before returning error.
49623         * doc/posix-functions/open.texi (open): Document that Irix also
49624         has the bug.
49625         * doc/posix-functions/fopen.texi (fopen): Likewise.
49626         Reported by Paolo Bonzini.
49627
49628 2008-09-24  Bruno Haible  <bruno@clisp.org>
49629
49630         Ensure that a filename ending in a slash cannot be used to access a
49631         non-directory.
49632         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
49633         to check whether it's really a directory.
49634         * lib/fopen.c: Include fcntl.h, unistd.h.
49635         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
49636         and fdopen().
49637         * modules/fopen (Depends-on): Add unistd.
49638         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
49639         * tests/test-fopen.c (main): Likewise.
49640         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
49641         * doc/posix-functions/fopen.texi: Likewise.
49642         Reported by Eric Blake.
49643
49644 2008-09-23  Eric Blake  <ebb9@byu.net>
49645
49646         c-stack: avoid compiler optimizations when provoking overflow
49647         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
49648         recursion harder to optimize, to ensure a stack overflow occurs.
49649         * tests/test-c-stack.c (recurse): Likewise.
49650         Borrowed from libsigsegv.
49651
49652         c-stack: work around Irix sigaltstack bug
49653         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
49654         whether sigaltstack uses wrong end of stack_t (copied in part from
49655         libsigsegv).
49656         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
49657         Irix bug, without requiring an over-allocation.
49658         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
49659         bug.
49660
49661         fopen: document mingw bug on directories
49662         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
49663         not allowing a stream visiting a directory, even though reading
49664         from such a stream is not portable.
49665
49666 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
49667
49668         * lib/poll.c: Rewrite.
49669         * modules/poll: Depend on alloca.
49670
49671 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
49672
49673         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
49674         instead define prototypes for a full set of wrappers.  Ensure
49675         that Cygwin does not use the compatibility code, which is only
49676         for MinGW.
49677         * lib/winsock.c: New.
49678         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
49679         * modules/sys_socket: Add lib/winsock.c.
49680
49681         * modules/poll-tests: Add errno and perror.
49682         * tests/test-poll.c: Use ioctl, not ioctlsocket.
49683
49684 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
49685
49686         * tests/test-poll.c: Downgrade minimum needed Winsock version.
49687
49688 2008-09-23  Bruno Haible  <bruno@clisp.org>
49689
49690         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
49691         * doc/glibc-functions/*: Likewise.
49692
49693 2008-09-23  Simon Josefsson  <simon@josefsson.org>
49694
49695         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
49696         success.
49697
49698 2008-09-22  Eric Blake  <ebb9@byu.net>
49699             Bruno Haible  <bruno@clisp.org>
49700
49701         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
49702         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
49703         supply %A but mishandle pseudo-NaN.
49704         Reported by Simon Josefsson.
49705
49706 2008-09-21  Bruno Haible  <bruno@clisp.org>
49707
49708         * tests/test-lock.c (main): Tweak skip message.
49709         * tests/test-tls.c (main): Likewise.
49710
49711 2008-09-21  Bruno Haible  <bruno@clisp.org>
49712
49713         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
49714         whether 'struct sigaction' has sa_sigaction here...
49715         (gl_PREREQ_SIG_HANDLER_H): ... not here.
49716         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
49717
49718 2008-09-21  Bruno Haible  <bruno@clisp.org>
49719
49720         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
49721         section.
49722         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
49723         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
49724         the new section.
49725         (Support for obsolete systems lacking POSIX:2001): New section.
49726         (String handling <string.h>): Move strdup to the new section.
49727         Suggested by Simon Josefsson and Paolo Bonzini.
49728
49729 2008-09-21  Bruno Haible  <bruno@clisp.org>
49730
49731         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
49732         exponents in %e and %g results on 'long double'. Needed for mingw's
49733         improved *printf functions.
49734         * tests/test-vasprintf-posix.c (test_function): Likewise.
49735         * tests/test-snprintf-posix.h (test_function): Likewise.
49736         * tests/test-sprintf-posix.h (test_function): Likewise.
49737         Reported by Eric Blake.
49738
49739 2008-09-21  Bruno Haible  <bruno@clisp.org>
49740
49741         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
49742         * tests/test-sprintf-posix.h (test_function): Likewise.
49743
49744 2008-09-21  Bruno Haible  <bruno@clisp.org>
49745
49746         * modules/getpass (Depends-on): Add strdup-posix.
49747
49748         New module 'strdup-posix'.
49749         * modules/strdup-posix: New file.
49750         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
49751         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
49752         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49753         REPLACE_STRDUP.
49754         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
49755         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
49756         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49757         strdup-posix.
49758
49759         * modules/strdup (Depends-on): Remove malloc-posix.
49760
49761 2008-09-20  Bruno Haible  <bruno@clisp.org>
49762
49763         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
49764         Wildenhues.
49765
49766 2008-09-20  Bruno Haible  <bruno@clisp.org>
49767
49768         Ensure that wint_t gets defined on IRIX 5.3.
49769         * lib/wchar.in.h (wint_t): Define if not defined by the system.
49770         * lib/wctype.in.h (wint_t): Likewise.
49771         (__wctype_wint_t): Remove type.
49772         (isw*): Use wint_t instead of __wctype_wint_t.
49773         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
49774         * modules/wchar (Files): Add m4/wint_t.m4.
49775         (Makefile.am): Substitute HAVE_WINT_T.
49776         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
49777         * tests/test-wctype.c: Check that wint_t is defined.
49778         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
49779         * doc/posix-headers/wctype.texi: Likewise.
49780         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49781
49782 2008-09-18  Bruno Haible  <bruno@clisp.org>
49783
49784         * gnulib-tool (func_exit): Update comment.
49785
49786 2008-09-18  Simon Josefsson  <simon@josefsson.org>
49787
49788         * modules/getaddrinfo (Depends-on): Remove strdup, this module
49789         assumes strdup exists and does not depend on strdup to return
49790         ENOMEM on out of memory conditions.
49791
49792 2008-09-18  Bruno Haible  <bruno@clisp.org>
49793
49794         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
49795         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
49796         digits for the exponent.
49797
49798 2008-09-18  Jim Meyering  <meyering@redhat.com>
49799             Bruno Haible  <bruno@clisp.org>
49800
49801         * lib/vasnprintf.c (decimal_point_char): Define also if
49802         NEED_PRINTF_INFINITE_LONG_DOUBLE.
49803
49804 2008-09-16  Bruno Haible  <bruno@clisp.org>
49805         and Eric Blake  <ebb9@byu.net>
49806
49807         vasnprintf: support Irix 5.3
49808         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
49809         that mishandle long double infinity.
49810         Reported by Tom G. Christensen.
49811
49812 2008-09-16  Bruno Haible  <bruno@clisp.org>
49813
49814         * doc/glibc-functions/scandir.texi: Mention the function is missing on
49815         Solaris 9.
49816         * doc/glibc-functions/alphasort.texi: Likewise.
49817         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
49818
49819 2008-09-16  Jim Meyering  <meyering@redhat.com>
49820
49821         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
49822         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
49823         a umask modification leak out of a subshell.  Otherwise, the
49824         opensolaris /bin/sh would be accepted and thus cause unwarranted
49825         failures in the coreutils test suite.
49826
49827 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
49828
49829         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
49830         to succeed.
49831
49832 2008-09-16  Jim Meyering  <meyering@redhat.com>
49833
49834         avoid spurious test failure when library is built without ACL support
49835         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
49836         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
49837         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
49838         * tests/test-copy-acl.sh: Likewise.
49839
49840 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49841
49842         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
49843         based on character occurrence counts.
49844
49845 2008-09-15  Eric Blake  <ebb9@byu.net>
49846
49847         tests: avoid some compiler warnings
49848         * tests/test-memchr.c (main): Pass NULL indirectly.
49849         * tests/test-closein.c (main): Avoid unused variable.
49850
49851 2008-09-15  Bruno Haible  <bruno@clisp.org>
49852
49853         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
49854         are missing on OpenBSD 4.0 individually.
49855         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49856
49857 2008-09-15  Bruno Haible  <bruno@clisp.org>
49858
49859         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
49860         * doc/posix-functions/strerror.texi: Mention also Cygwin.
49861         * doc/posix-functions/perror.texi: Likewise.
49862         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
49863         is missing.
49864         Reported by Eric Blake.
49865
49866         * lib/errno.in.h: Use replacement values >= 2000.
49867         Reported by Eric Blake.
49868
49869 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49870
49871         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
49872         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
49873         limit.
49874         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
49875         compareseq was aborted.
49876
49877 2008-09-14  Bruno Haible  <bruno@clisp.org>
49878
49879         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
49880         yvec_edit_count.
49881         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
49882         (fstrcmp_bounded): Simplify result computation accordingly.
49883
49884 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49885
49886         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
49887         (fstrcmp): Define in terms of fstrcmp_bounded.
49888         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
49889         lower_bound argument.
49890         Return quickly if the result is certainly < lower_bound.
49891         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
49892
49893 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49894
49895         * lib/diffseq.h (EARLY_ABORT): New macro.
49896         (compareseq): Change return type to bool. Return true when EARLY_ABORT
49897         evaluates to true.
49898
49899 2008-09-14  Bruno Haible  <bruno@clisp.org>
49900
49901         * modules/perror-tests: New file.
49902         * tests/test-perror.sh: New file.
49903         * tests/test-perror.c: New file.
49904
49905         New module 'perror'.
49906         * lib/stdio.in.h (perror): New declaration.
49907         * lib/perror.c: New file.
49908         * m4/perror.m4: New file.
49909         * modules/perror: New file.
49910         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
49911         * doc/posix-functions/perror.texi: Mention the perror module.
49912         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
49913         REPLACE_PERROR.
49914         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
49915         REPLACE_PERROR.
49916
49917 2008-09-14  Bruno Haible  <bruno@clisp.org>
49918
49919         * modules/stdio (Makefile.am): Reorder to match the order in
49920         lib/stdio.in.h.
49921         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49922
49923 2008-09-13  Bruno Haible  <bruno@clisp.org>
49924
49925         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
49926
49927 2008-09-13  Bruno Haible  <bruno@clisp.org>
49928
49929         Extend strerror to cover the added errno values.
49930         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
49931         (rpl_strerror): Provide error messages for the added errno values and
49932         for the WSA* values.
49933         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
49934         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
49935         strerror.
49936         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
49937         * modules/strerror (Depends-on): Add errno.
49938         * doc/posix-functions/strerror.texi: Document the change.
49939         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
49940         and EOVERFLOW.
49941
49942 2008-09-13  Bruno Haible  <bruno@clisp.org>
49943
49944         * modules/EOVERFLOW: Remove file.
49945         * m4/eoverflow.m4: Remove file.
49946         * modules/EOVERFLOW-tests: Remove file.
49947         * tests/test-EOVERFLOW.c: Remove file.
49948         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
49949         * modules/ftell (Depends-on): Likewise.
49950         * modules/getdelim (Depends-on): Likewise.
49951         * modules/getugroups (Depends-on): Likewise.
49952         * modules/poll (Depends-on): Likewise.
49953         * modules/snprintf (Depends-on): Likewise.
49954         * modules/sprintf-posix (Depends-on): Likewise.
49955         * modules/vasnprintf (Depends-on): Likewise.
49956         * modules/vasprintf (Depends-on): Likewise.
49957         * modules/vfprintf-posix (Depends-on): Likewise.
49958         * modules/vsnprintf (Depends-on): Likewise.
49959         * modules/vsprintf-posix (Depends-on): Likewise.
49960         * modules/xvasprintf (Depends-on): Likewise.
49961         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49962         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
49963         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
49964         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
49965         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49966         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
49967         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
49968         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
49969         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49970         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
49971         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
49972         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
49973         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49974         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
49975         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
49976         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
49977         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49978         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
49979         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
49980         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
49981         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49982         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
49983         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
49984         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
49985         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
49986         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49987         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
49988         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
49989         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
49990         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
49991         * MODULES.html.sh: Remove EOVERFLOW.
49992         * NEWS: Mention the change.
49993
49994 2008-09-13  Bruno Haible  <bruno@clisp.org>
49995
49996         * modules/errno-tests: New file.
49997         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
49998
49999         * lib/errno.in.h: New file.
50000         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
50001         * modules/errno: New file.
50002         * doc/posix-headers/errno.texi: Update documentation.
50003         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
50004
50005 2008-09-13  Bruno Haible  <bruno@clisp.org>
50006
50007         * tests/test-poll.c: Use #if for native Windows, rather than testing
50008         __MSVCRT__.
50009
50010 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50011             Bruno Haible  <bruno@clisp.org>
50012
50013         * lib/glob.c: Don't include <pwd.h> on native Windows.
50014         (WINDOWS32): New macro.
50015         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
50016
50017 2008-09-13  Bruno Haible  <bruno@clisp.org>
50018
50019         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
50020         (ETIMEDOUT): Remove macro.
50021         (glthread_cond_timedwait_multithreaded): New declaration.
50022         (glthread_cond_timedwait): Use it.
50023         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
50024         (glthread_cond_timedwait_multithreaded): New function.
50025
50026 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
50027
50028         * modules/poll-tests: Do not check for io.h.
50029         * tests/test-poll.c: Check for __MSVCRT__ instead.
50030
50031 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
50032
50033         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
50034         * modules/poll-tests: Add inet_pton, stdbool, sockets.
50035         * tests/test-poll.c: Use them.  Use _pipe on Windows.
50036
50037 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
50038
50039         * modules/poll-tests: New.
50040         * tests/test-poll.c: New.
50041
50042 2008-09-12  Eric Blake  <ebb9@byu.net>
50043
50044         frexp: test for NetBSD failure on -0.0
50045         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
50046         not all, bugs from NetBSD 3.0 have been fixed.
50047         * doc/posix-functions/frexp.texi (frexp): Document bug.
50048         Reported by Thomas Klausner.
50049
50050         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
50051         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
50052         literal -0.0.
50053         Reported by Jonathan C. Patschke <jp@centtech.com>.
50054
50055 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50056
50057         * lib/glthread/cond.h: Use dummy implementation also if
50058         USE_WIN32_THREADS.
50059
50060 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50061
50062         * modules/fnmatch-posix (License): Change to LGPLv2+.
50063         * modules/fnmatch-gnu (License): Likewise.
50064
50065 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50066
50067         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
50068
50069 2008-09-11  Jim Meyering  <meyering@redhat.com>
50070
50071         * users.txt: Add gtk-vnc.
50072
50073 2008-09-08  Simon Josefsson  <simon@josefsson.org>
50074
50075         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
50076         rotate amounts.
50077
50078         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
50079         required for 16-bit and 8-bit rotates.
50080         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
50081         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
50082         UINT8_MAX instead of hard-coded constants.
50083         Suggested by Paul Eggert.
50084
50085 2008-09-07  Bruno Haible  <bruno@clisp.org>
50086
50087         * tests/test-striconveh.c (main): Check behaviour when converting from
50088         UTF-7.
50089
50090         Make striconveh work better with stateful encodings.
50091         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
50092         that iconv does not increment the inptr when returning -1/EINVAL.
50093
50094 2008-09-07  Bruno Haible  <bruno@clisp.org>
50095
50096         * build-aux/config.rpath: Update according to libtool-2.2.6.
50097         * build-aux/config.libpath: Likewise.
50098
50099 2008-09-06  Bruno Haible  <bruno@clisp.org>
50100
50101         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
50102         * lib/freadptr.c (freadptr): Likewise.
50103         * lib/freadseek.c (freadptrinc): Likewise.
50104         Reported by Simon Josefsson.
50105
50106 2008-09-06  Bruno Haible  <bruno@clisp.org>
50107
50108         * modules/freadptr (License): Change to LGPLv2+.
50109         * modules/freadseek (License): Likewise.
50110         Suggested by Eric Blake.
50111
50112         * modules/memchr2 (License): Change to LGPLv2+.
50113         Approved by Eric Blake.
50114
50115 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50116             Bruno Haible  <bruno@clisp.org>
50117
50118         Make gnulib-tool work with native 'sed' on AIX.
50119         * gnulib-tool (sed_noop): New variable.
50120         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
50121         func_add_or_update, func_create_testdir): Use it to initialize sed
50122         script variables.
50123         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50124
50125 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
50126             Bruno Haible  <bruno@clisp.org>
50127
50128         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
50129         also works after #include directives.
50130
50131 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
50132
50133         getdate.y: reject an out-of-range timezone value
50134         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
50135         the range [-24...+24].  When specified with only one or two digits,
50136         * tests/test-getdate.c: Tests for the fix.
50137         * doc/getdate.texi: Document this change.
50138
50139 2008-09-03  Bruno Haible  <bruno@clisp.org>
50140
50141         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
50142
50143 2008-09-02  Simon Josefsson  <simon@josefsson.org>
50144
50145         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
50146         <bruce.korb@gmail.com> with ideas from Ben Pfaff
50147         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
50148         Blake <ebb9@byu.net>.
50149
50150         * tests/test-bitrotate.c: Add more test vectors.
50151
50152 2008-09-02  Eric Blake  <ebb9@byu.net>
50153
50154         vasnprintf-posix: handle large precision via %.*d
50155         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
50156         when handling it ourselves.
50157         * tests/test-vasnprintf-posix.c (test_function): Add test.
50158         * tests/test-snprintf-posix.h (test_function): Likewise.
50159         * tests/test-sprintf-posix.h (test_function): Likewise.
50160         * tests/test-vasprintf-posix.c (test_function): Likewise.
50161         Reported by Alain Guibert.
50162
50163 2008-09-01  Eric Blake  <ebb9@byu.net>
50164
50165         c-stack: make configure-time check more robust
50166         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
50167         successful sigaction call.
50168         Reported by Tom G. Christensen.
50169
50170 2008-09-01  Bruno Haible  <bruno@clisp.org>
50171
50172         New module 'findprog-lgpl'.
50173         * modules/findprog-lgpl: New file.
50174         * lib/findprog-lgpl.c: New file.
50175         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
50176         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
50177         to decide whether to use strdup or xstrdup, concatenated_filename or
50178         xconcatenated_filename.
50179
50180 2008-09-01  Bruno Haible  <bruno@clisp.org>
50181
50182         Split module 'concat-filename' into 'concat-filename' (LGPL) and
50183         'xconcat-filename' (GPL).
50184         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
50185         (License): Change to LGPLv2+.
50186         * modules/xconcat-filename: New file.
50187         * lib/concat-filename.h (concatenated_filename): Change specification.
50188         (xconcatenated_filename): New declaration.
50189         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
50190         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
50191         memory situations.
50192         * lib/xconcat-filename.c: New file.
50193         * NEWS: Mention the change.
50194         * lib/findprog.c: Include concat-filename.h, not filename.h.
50195         (find_in_path): Use xconcatenated_filename instead of
50196         concatenated_filename.
50197         * lib/javacomp.c: Include concat-filename.h, not filename.h.
50198         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
50199         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
50200         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
50201         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
50202         instead of concatenated_filename.
50203         * lib/javaexec.c: Include concat-filename.h, not filename.h.
50204         (execute_java_class): Use xconcatenated_filename instead of
50205         concatenated_filename.
50206         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
50207         * modules/javacomp (Depends-on): Likewise.
50208         * modules/javaexec (Depends-on): Likewise.
50209
50210 2008-09-01  Bruno Haible  <bruno@clisp.org>
50211
50212         Split module 'filename' into 'filename' and 'concat-filename'.
50213         * modules/filename: Keep only lib/filename.h.
50214         (License): Change to LGPLv2+.
50215         * modules/concat-filename: New file, extracted from modules/filename.
50216         * lib/filename.h (concatenated_filename): Remove declaration.
50217         * lib/concat-filename.h: New file, extracted from lib/filename.h.
50218         * lib/concat-filename.c: Include concat-filename.h.
50219         * NEWS: Mention the change.
50220
50221 2008-09-01  Simon Josefsson  <simon@josefsson.org>
50222
50223         * lib/bitrotate.h (rotl8, rotr8): Add.
50224
50225         * modules/bitrotate (configure.ac): Need
50226         AC_REQUIRE([AC_C_INLINE]).
50227         (Description): Mention stdint.h.  Reported by Bruno Haible
50228         <bruno@clisp.org>.
50229
50230         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
50231         Paolo Bonzini <bonzini@gnu.org>.
50232
50233 2008-08-31  Bruno Haible  <bruno@clisp.org>
50234
50235         Assume Solaris specific bi-arch conventions on Solaris systems.
50236         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
50237         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
50238         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
50239         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
50240         like acl_libdirstem.
50241         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
50242         acl_libdirstem.
50243         * NEWS: Mention the change.
50244         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
50245
50246 2008-08-31  Jim Meyering  <meyering@redhat.com>
50247
50248         * lib/strftime.h: Add comments describing the two added arguments.
50249
50250         remove duplicate #include directives
50251         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
50252         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
50253
50254 2008-08-31  Bruno Haible  <bruno@clisp.org>
50255
50256         New module 'sigpipe-die'.
50257         * modules/sigpipe-die: New file.
50258         * lib/sigpipe-die.h: New file.
50259         * lib/sigpipe-die.c: New file.
50260         * MODULES.html.sh (Signal handling): Add sigpipe-die.
50261
50262 2008-08-31  Bruno Haible  <bruno@clisp.org>
50263
50264         Don't override previously installed signal handlers.
50265         * lib/fatal-signal.c (saved_sigactions): New variable.
50266         (uninstall_handlers): Reset the signal to the saved handler, not
50267         to SIG_DFL (except when ignored).
50268         (install_handlers): Save the previous handlers.
50269
50270 2008-08-30  Bruno Haible  <bruno@clisp.org>
50271
50272         * gnulib-tool (func_reset_sigpipe): New function.
50273         (func_get_automake_snippet, func_modules_transitive_closure,
50274         func_import): Invoke it before a join command that reads from stdin,
50275         to avoid "echo: write error: Broken pipe" error messages on stderr.
50276         Reported by Sam Steingold <sds@gnu.org>.
50277
50278 2008-08-30  Bruno Haible  <bruno@clisp.org>
50279
50280         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
50281         Code copied from m4/open.m4.
50282         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
50283         access and the filename ends in a slash. Code copied from lib/open.c.
50284         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
50285         * tests/test-fopen.c (main): Check against bug with trailing slash.
50286
50287 2008-08-29  Bruno Haible  <bruno@clisp.org>
50288
50289         Avoid some "gcc -pedantic" warnings.
50290         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
50291         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
50292         * lib/dirent.in.h: Likewise.
50293         * lib/fcntl.in.h: Likewise.
50294         * lib/float.in.h: Likewise.
50295         * lib/iconv.in.h: Likewise.
50296         * lib/inttypes.in.h: Likewise.
50297         * lib/locale.in.h: Likewise.
50298         * lib/math.in.h: Likewise.
50299         * lib/netinet_in.in.h: Likewise.
50300         * lib/search.in.h: Likewise.
50301         * lib/signal.in.h: Likewise.
50302         * lib/stdarg.in.h: Likewise.
50303         * lib/stdint.in.h: Likewise.
50304         * lib/stdio.in.h: Likewise.
50305         * lib/stdlib.in.h: Likewise.
50306         * lib/string.in.h: Likewise.
50307         * lib/strings.in.h: Likewise.
50308         * lib/sys_select.in.h: Likewise.
50309         * lib/sys_socket.in.h: Likewise.
50310         * lib/sys_stat.in.h: Likewise.
50311         * lib/sys_time.in.h: Likewise.
50312         * lib/sysexits.in.h: Likewise.
50313         * lib/time.in.h: Likewise.
50314         * lib/unistd.in.h: Likewise.
50315         * lib/wchar.in.h: Likewise.
50316         * lib/wctype.in.h: Likewise.
50317         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
50318         * modules/fchdir (Makefile.am): Likewise.
50319         * modules/fcntl (Makefile.am): Likewise.
50320         * modules/float (Makefile.am): Likewise.
50321         * modules/iconv_open (Makefile.am): Likewise.
50322         * modules/inttypes (Makefile.am): Likewise.
50323         * modules/locale (Makefile.am): Likewise.
50324         * modules/math (Makefile.am): Likewise.
50325         * modules/netinet_in (Makefile.am): Likewise.
50326         * modules/search (Makefile.am): Likewise.
50327         * modules/signal (Makefile.am): Likewise.
50328         * modules/stdarg (Makefile.am): Likewise.
50329         * modules/stdint (Makefile.am): Likewise.
50330         * modules/stdio (Makefile.am): Likewise.
50331         * modules/stdlib (Makefile.am): Likewise.
50332         * modules/string (Makefile.am): Likewise.
50333         * modules/strings (Makefile.am): Likewise.
50334         * modules/sys_select (Makefile.am): Likewise.
50335         * modules/sys_socket (Makefile.am): Likewise.
50336         * modules/sys_stat (Makefile.am): Likewise.
50337         * modules/sys_time (Makefile.am): Likewise.
50338         * modules/sysexits (Makefile.am): Likewise.
50339         * modules/time (Makefile.am): Likewise.
50340         * modules/unistd (Makefile.am): Likewise.
50341         * modules/wchar (Makefile.am): Likewise.
50342         * modules/wctype (Makefile.am): Likewise.
50343         Reported by Reuben Thomas <rrt@sc3d.org>.
50344
50345 2008-08-29  Bruno Haible  <bruno@clisp.org>
50346
50347         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
50348         any more.
50349
50350 2008-08-29  Simon Josefsson  <simon@josefsson.org>
50351
50352         * MODULES.html.sh (Misc): Add bitrotate.
50353
50354         * modules/bitrotate: New file.
50355
50356         * lib/bitrotate.h: New file.
50357
50358         * modules/bitrotate-tests: New file.
50359
50360         * tests/test-bitrotate.c: New file.
50361
50362         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
50363         on the bitrotate module.
50364
50365         * lib/arctwo.c: Use new bitrotate module.
50366
50367 2008-08-29  Jim Meyering  <meyering@redhat.com>
50368
50369         bootstrap: merge changes from coreutils
50370         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
50371         of copied files.  Remove a kludge, now that this is fixed.
50372         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
50373         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
50374         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
50375
50376 2008-08-29  Bruno Haible  <bruno@clisp.org>
50377
50378         * MODULES.html.sh: Remove --cvs-urls option.
50379
50380 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
50381
50382         maint.mk: adjust to file name change
50383         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
50384
50385 2008-08-28  Jim Meyering  <meyering@redhat.com>
50386
50387         * modules/getndelim2 (License): Relicense to LGPLv2+.
50388         Approved by Richard Stallman for the version of 1995, and by
50389         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
50390
50391 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
50392
50393         * lib/getdelim.c (flockfile, funlockfile): Make all of them
50394         dummy if one is not available.  Do not touch them if
50395         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
50396         (getc_maybe_unlocked): New.
50397         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
50398
50399 2008-08-26  Eric Blake  <ebb9@byu.net>
50400
50401         doc/INSTALL: resync from autoconf
50402         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
50403         (INSTALL_PRELUDE): Delete; this is done more efficiently by
50404         moving...
50405         * install.texi [!autoconf]: ...here.  Resync from autoconf.
50406         * INSTALL: Regenerate.
50407         * INSTALL.ISO: New file.
50408         * INSTALL.UTF-8: Likewise.
50409
50410 2008-08-26  Jim Meyering  <meyering@redhat.com>
50411
50412         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
50413         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
50414         these definitions conditional, so that they may be overridden, too.
50415
50416 2008-08-26  Bruno Haible  <bruno@clisp.org>
50417
50418         Generate INSTALL file variants with prettier quotes.
50419         * doc/Makefile (INSTALL_PRELUDE): New macro.
50420         (INSTALL): Use it.
50421         (INSTALL.ISO, INSTALL.UTF-8): New rules.
50422
50423 2008-08-26  Bruno Haible  <bruno@clisp.org>
50424
50425         Run makeinfo in an English locale.
50426         * doc/Makefile (MAKEINFO): New variable.
50427
50428 2008-08-26  Bruno Haible  <bruno@clisp.org>
50429
50430         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
50431         Suggested by Eric Blake.
50432
50433 2008-08-25  Bruno Haible  <bruno@clisp.org>
50434
50435         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
50436
50437 2008-08-25  Eric Blake  <ebb9@byu.net>
50438
50439         c-stack: test that stack overflow can be caught
50440         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
50441         that platform allows handling stack overflow; at least OS/2 EMX
50442         has sigaltstack, but crashes before transferring control to
50443         handler on stack overflow.
50444         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
50445         check for HAVE_STACK_OVERFLOW_HANDLING.
50446         Reported by Elbert Pol.
50447
50448 2008-08-25  Bruno Haible  <bruno@clisp.org>
50449
50450         * doc/posix-functions/strftime.texi: Fix description of strftime
50451         module.
50452
50453 2008-08-24  Bruno Haible  <bruno@clisp.org>
50454
50455         * tests/uniwidth/test-uc_width2.c: New file.
50456         * tests/uniwidth/test-uc_width2.sh: New file.
50457         * modules/uniwidth/width-tests (Files): Add the new files.
50458         (TESTS): Add uniwidth/test-uc_width2.sh.
50459         (TESTS_ENVIRONMENT): New variable.
50460         (check_PROGRAMS): Add test-uc_width2.
50461         (test_uc_width2_SOURCES): New variable.
50462
50463         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
50464         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
50465         not 0x00AB.
50466         Reported by Alexander V. Lukyanov <lav@netis.ru>.
50467
50468 2008-08-22  Eric Blake  <ebb9@byu.net>
50469
50470         test-lock, test-tls: mention why a test is skipped
50471         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
50472         skipped.
50473         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
50474
50475         count-one-bits: relax license
50476         * modules/count-one-bits (License): Relicense to LGPLv2+.
50477         Suggested by Ludovic Courtès, approved by Ben Pfaff.
50478
50479 2008-08-22  Andreas Schwab  <schwab@suse.de>
50480
50481         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
50482         Remove spurious space in assignment.
50483
50484 2008-08-21  Simon Josefsson  <simon@josefsson.org>
50485
50486         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
50487         Paul Eggert <eggert@CS.UCLA.EDU>.
50488
50489 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
50490
50491         * modules/gettext: Add m4/threadlib.m4.
50492
50493 2008-08-19  Eric Blake  <ebb9@byu.net>
50494
50495         test-c-stack: fix compilation failure on FreeBSD 5.0
50496         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
50497         headers before <sys/resource.h>.
50498         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
50499         the bug.
50500         Reported by Nelson H. F. Beebe.
50501
50502         strverscmp: migrate from "strverscmp.h" to <string.h>
50503         * modules/string (Makefile.am): Add new hooks.
50504         * modules/strverscmp (Files): Remove strverscmp.h.
50505         (Depends-on): Add string.
50506         (configure.ac): Add indicator.
50507         (Include): Mention new header.
50508         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
50509         defaults.
50510         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
50511         results.
50512         * lib/strverscmp.h: Delete.
50513         * lib/string.in.h (strverscmp): Provide declaration, when needed.
50514         * tests/test-strverscmp.c (includes): Adjust client.
50515         * lib/check-version.c (includes): Likewise.
50516         * NEWS: Document the change.
50517
50518         strverscmp: add unit test
50519         * modules/strverscmp-tests: New file.
50520         * tests/test-strverscmp.c: Likewise.
50521
50522 2008-08-19  Simon Josefsson  <simon@josefsson.org>
50523
50524         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
50525         regarding Windows crypto stuff, from Mono.
50526
50527 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
50528
50529         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
50530         if present, for intel RND.  Return error on failures.
50531
50532 2008-08-18  Ben Pfaff  <blp@gnu.org>
50533
50534         gitlog-to-changelog: give better diagnostic for failed pipe-open
50535         * build-aux/gitlog-to-changelog: Improve error message: suggest
50536         that the version of Git may be too old.
50537
50538 2008-08-18  Simon Josefsson  <simon@josefsson.org>
50539
50540         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
50541         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
50542
50543 2008-08-18  Bruno Haible  <bruno@clisp.org>
50544
50545         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
50546         pthread_in_use().
50547
50548 2008-08-18  Bruno Haible  <bruno@clisp.org>
50549
50550         * lib/glthread/threadlib.c: Include <pthread.h>.
50551
50552 2008-08-18  Bruno Haible  <bruno@clisp.org>
50553
50554         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
50555         glthread_recursive_lock_* macros.
50556         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
50557         Fix syntax error.
50558
50559 2008-08-18  Bruno Haible  <bruno@clisp.org>
50560
50561         * lib/glthread/thread.c: Avoid forcing a context switch right after
50562         thread creation.
50563
50564 2008-08-17  Bruno Haible  <bruno@clisp.org>
50565
50566         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
50567         * lib/glthread/thread.h: Provide Win32 specific implementation.
50568         * modules/thread (Files): Add lib/glthread/thread.c.
50569         (Depends-on): Add lock.
50570         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
50571
50572 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50573
50574         New module 'yield'.
50575         * modules/yield: New file.
50576         * lib/glthread/yield.h: New file.
50577         * m4/yield.m4: New file.
50578         * MODULES.html.sh (Multithreading): Add yield.
50579
50580 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50581
50582         New module 'thread'.
50583         * modules/thread: New file.
50584         * lib/glthread/thread.h: New file.
50585         * m4/thread.m4: New file.
50586         * MODULES.html.sh (Multithreading): Add thread.
50587
50588 2008-08-17  Bruno Haible  <bruno@clisp.org>
50589
50590         * lib/glthread/lock.h: Include <stdlib.h> always.
50591         * lib/glthread/tls.h: Likewise.
50592         * lib/glthread/cond.h: Likewise.
50593
50594 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50595
50596         New module 'cond'.
50597         * modules/cond: New file.
50598         * lib/glthread/cond.h: New file.
50599         * lib/glthread/cond.c: New file.
50600         * m4/cond.m4: New file.
50601         * MODULES.html.sh (Multithreading): Add cond.
50602
50603 2008-08-16  Eric Blake  <ebb9@byu.net>
50604
50605         c-stack: fix regression on Irix 5.3 from 2008-06-21
50606         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
50607         sa_sigaction...
50608         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
50609         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
50610         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
50611         * modules/signal (Makefile.am): Use the value.
50612         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
50613         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
50614         * doc/posix-headers/signal.texi (signal.h): Document this
50615         portability issue.
50616         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
50617         Reported by Tom G. Christensen.
50618
50619 2008-08-17  Bruno Haible  <bruno@clisp.org>
50620
50621         New module 'threadlib'.
50622         * modules/threadlib: New file.
50623         * lib/glthread/threadlib.c: New file, extracted from
50624         lib/glthread/lock.c.
50625         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
50626         functions.
50627         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
50628         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
50629         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
50630         macros.
50631         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
50632         (gl_DISABLE_THREADS): Remove macro.
50633         * modules/lock (Files): Remove build-aux/config.rpath.
50634         (Depends-on): Remove havelib. Add threadlib.
50635         (configure.ac-early): Remove section.
50636         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
50637         * modules/tls (Depends-on): Remove lock. Add threadlib.
50638         (Link): New section, copied from threadlib.
50639         * MODULES.html.sh (Multithreading): Add threadlib.
50640
50641 2008-08-14  Bruno Haible  <bruno@clisp.org>
50642
50643         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
50644         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
50645         glthread_rwlock_unlock, glthread_rwlock_destroy,
50646         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
50647         glthread_recursive_lock_destroy): Define as macros always.
50648         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
50649         glthread_lock_lock.
50650         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
50651         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
50652         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
50653         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
50654         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
50655         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
50656         (glthread_recursive_lock_lock_func): Renamed from
50657         glthread_recursive_lock_lock.
50658         (glthread_recursive_lock_unlock_func): Renamed from
50659         glthread_recursive_lock_unlock.
50660         (glthread_recursive_lock_destroy_func): Renamed from
50661         glthread_recursive_lock_destroy.
50662
50663 2008-08-14  Bruno Haible  <bruno@clisp.org>
50664
50665         * lib/glthread/lock.h: Renamed from lib/lock.h.
50666         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
50667         * lib/glthread/tls.h: Renamed from lib/tls.h.
50668         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
50669         * lib/fstrcmp.c: Update includes.
50670         * lib/strsignal.c: Update includes.
50671         * modules/lock (Files, Makefile.am): Update.
50672         (Include): Change to "glthread/lock.h".
50673         * modules/tls (Files, Makefile.am): Update.
50674         (Include): Change to "glthread/tls.h".
50675         * tests/test-lock.c: Update includes.
50676         * tests/test-tls.c: Update includes.
50677         * NEWS: Mention the renamed header files.
50678
50679 2008-08-11  Jim Meyering  <meyering@redhat.com>
50680
50681         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
50682
50683 2008-08-11  Eric Blake  <ebb9@byu.net>
50684
50685         test-c-stack: avoid C99-ism
50686         * tests/test-c-stack.c (main): Fix whitespace, move declaration
50687         before statement.
50688         Reported by Alain Guibert.
50689
50690 2008-08-10  Jim Meyering  <meyering@redhat.com>
50691
50692         ensure that return value of uinttostr et al are not ignored
50693         * lib/inttostr.h (__GNUC_PREREQ): Define.
50694         (__attribute_warn_unused_result__): Define.
50695         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
50696
50697 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
50698
50699         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
50700         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
50701
50702 2008-08-07  Jim Meyering  <meyering@redhat.com>
50703
50704         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
50705
50706         * modules/mkstemp (License): Relicense under LGPLv2+.
50707         * modules/tempname (License): Likewise.
50708
50709 2008-08-06  Bruno Haible  <bruno@clisp.org>
50710
50711         * lib/poll.c (poll): Further micro-optimization.
50712
50713 2008-08-06  Jim Meyering  <meyering@redhat.com>
50714
50715         inet_pton.c: use locale-independent tolower
50716         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
50717         (inet_pton6): Use c_tolower rather than tolower.
50718         * modules/inet_pton (Depends-on): Add c-ctype.
50719
50720 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
50721
50722         * lib/poll.c (poll): Avoid division when timeout is 0, cache
50723         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
50724
50725 2008-08-06  Jim Meyering  <meyering@redhat.com>
50726
50727         * modules/inet_pton (License): Relicense under LGPLv2+.
50728
50729 2008-08-03  Bruno Haible  <bruno@clisp.org>
50730
50731         Additional non-aborting API for lock and tls.
50732         * lib/lock.h: Include <errno.h>.
50733         (glthread_lock_init): New macro/function.
50734         (gl_lock_init): Define as wrapper around glthread_lock_init.
50735         (glthread_lock_lock): New macro/function.
50736         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
50737         (glthread_lock_unlock): New macro/function.
50738         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
50739         (glthread_lock_destroy): New macro/function.
50740         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
50741         (glthread_rwlock_init): New macro/function.
50742         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
50743         (glthread_rwlock_rdlock): New macro/function.
50744         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
50745         (glthread_rwlock_wrlock): New macro/function.
50746         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
50747         (glthread_rwlock_unlock): New macro/function.
50748         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
50749         (glthread_rwlock_destroy): New macro/function.
50750         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
50751         (glthread_recursive_lock_init): New macro/function.
50752         (gl_recursive_lock_init): Define as wrapper around
50753         glthread_recursive_lock_init.
50754         (glthread_recursive_lock_lock): New macro/function.
50755         (gl_recursive_lock_lock): Define as wrapper around
50756         glthread_recursive_lock_lock.
50757         (glthread_recursive_lock_unlock): New macro/function.
50758         (gl_recursive_lock_unlock): Define as wrapper around
50759         glthread_recursive_lock_unlock.
50760         (glthread_recursive_lock_destroy): New macro/function.
50761         (gl_recursive_lock_destroy): Define as wrapper around
50762         glthread_recursive_lock_destroy.
50763         (glthread_once): New macro/function.
50764         (gl_once): Define as wrapper around glthread_once.
50765         Update function declarations.
50766         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
50767         glthread_rwlock_init. Return error code.
50768         (glthread_rwlock_rdlock_multithreaded): Renamed from
50769         glthread_rwlock_rdlock. Return error code.
50770         (glthread_rwlock_wrlock_multithreaded): Renamed from
50771         glthread_rwlock_wrlock. Return error code.
50772         (glthread_rwlock_unlock_multithreaded): Renamed from
50773         glthread_rwlock_unlock. Return error code.
50774         (glthread_rwlock_destroy_multithreaded): Renamed from
50775         glthread_rwlock_destroy. Return error code.
50776         (glthread_recursive_lock_init_multithreaded): Renamed from
50777         glthread_recursive_lock_init. Return error code.
50778         (glthread_recursive_lock_lock_multithreaded): Renamed from
50779         glthread_recursive_lock_lock. Return error code.
50780         (glthread_recursive_lock_unlock_multithreaded): Renamed from
50781         glthread_recursive_lock_unlock. Return error code.
50782         (glthread_recursive_lock_destroy_multithreaded): Renamed from
50783         glthread_recursive_lock_destroy. Return error code.
50784         (glthread_once_call): Make static.
50785         (glthread_once_multithreaded): Renamed from glthread_once.
50786         * lib/tls.h: Include <errno.h>.
50787         (glthread_tls_key_init): New macro/function.
50788         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
50789         (glthread_tls_set): New macro/function.
50790         (gl_tls_set): Define as wrapper around glthread_tls_set.
50791         (glthread_tls_key_destroy): New macro/function.
50792         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
50793         Update function declarations.
50794         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
50795         glthread_tls_get.
50796         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50797
50798 2008-08-04  Eric Blake  <ebb9@byu.net>
50799
50800         gnumakefile: use space, not TAB, outside of targets
50801         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
50802
50803 2008-08-02  Jim Meyering  <meyering@redhat.com>
50804
50805         getdate.y: avoid locale-dependent date parsing failure
50806         In Turkish locales, getdate would fail to recognize keywords
50807         containing a lowercase "i".  The solution is not to rely on
50808         locale-sensitive case-conversion.
50809         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
50810         (lookup_word): Use c_toupper in place of toupper.
50811         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
50812         Reported by Vefa Bicakci <bicave@superonline.com> in
50813         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
50814         * modules/getdate (Depends-on): Add c-ctype.
50815
50816 2008-08-02  Bruno Haible  <bruno@clisp.org>
50817
50818         * gnulib-tool (func_import): When updating or creating a .gitignore
50819         file, prepend each added line with a slash, and ignore leading slashes
50820         from the existing lines.
50821         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
50822
50823 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50824
50825         Portability fix for GNU make 3.79.1.
50826         * top/GNUmakefile: Avoid 'else COND', which older GNU make
50827         versions do not understand.
50828
50829 2008-08-01  Bruno Haible  <bruno@clisp.org>
50830
50831         Work around bug of HP-UX 10.20 cc with -0.0 literal.
50832         * tests/test-isnanf.h (zero): New variable.
50833         (main): Avoid literal -0.0f.
50834         * tests/test-isnand.h (zero): New variable.
50835         (main): Avoid literal -0.0.
50836         * tests/test-isnanl.h (zero): New variable.
50837         (main): Avoid literal -0.0L.
50838         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
50839         (test_float, test_double, test_long_double): Avoid literals -0.0f,
50840         -0.0, -0.0L.
50841         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
50842         (test_signbitd): Avoid literal -0.0.
50843         (test_signbitl): Avoid literal -0.0L.
50844         * tests/test-ceilf1.c (zero): New variable.
50845         (main): Avoid literal -0.0f.
50846         * tests/test-ceill.c (zero): New variable.
50847         (main): Avoid literal -0.0L.
50848         * tests/test-floorf1.c (zero): New variable.
50849         (main): Avoid literal -0.0f.
50850         * tests/test-floorl.c (zero): New variable.
50851         (main): Avoid literal -0.0L.
50852         * tests/test-roundf1.c (zero): New variable.
50853         (main): Avoid literal -0.0f.
50854         * tests/test-round1.c (zero): New variable.
50855         (main): Avoid literal -0.0.
50856         * tests/test-roundl.c (zero): New variable.
50857         (main): Avoid literal -0.0L.
50858         * tests/test-truncf1.c (zero): New variable.
50859         (main): Avoid literal -0.0f.
50860         * tests/test-trunc1.c (zero): New variable.
50861         (main): Avoid literal -0.0.
50862         * tests/test-truncl.c (zero): New variable.
50863         (main): Avoid literal -0.0L.
50864         * tests/test-frexp.c (zero): New variable.
50865         (main): Avoid literal -0.0.
50866         * tests/test-frexpl.c (zero): New variable.
50867         (main): Avoid literal -0.0L.
50868         * tests/test-ldexpl.c (zero): New variable.
50869         (main): Avoid literal -0.0L.
50870         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
50871         (zerod, zerol): New variables.
50872         (test_function): Avoid literals -0.0, -0.0L.
50873         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
50874         (zerod, zerol): New variables.
50875         (test_function): Avoid literals -0.0, -0.0L.
50876         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
50877         (zerod, zerol): New variables.
50878         (test_function): Avoid literals -0.0, -0.0L.
50879         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
50880         (zerod, zerol): New variables.
50881         (test_function): Avoid literals -0.0, -0.0L.
50882         * tests/test-strtod.c (zero): New variable.
50883         (main): Avoid literal -0.0.
50884         Reported by Jonathan C. Patschke <jp@centtech.com>.
50885
50886 2008-07-31  Jim Meyering  <meyering@redhat.com>
50887
50888         sha256.h: correct definition of SHA224_DIGEST_SIZE
50889         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
50890         Reported by Paulie Pena IV <paulie4@gmail.com>.
50891         Define as 224 / 8, rather than as a literal.
50892         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
50893         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
50894         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
50895
50896 2008-07-31  Bruno Haible  <bruno@clisp.org>
50897
50898         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
50899         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
50900         Reported by Jonathan Patschke <jp@centtech.com>.
50901
50902 2008-07-31  Bruno Haible  <bruno@clisp.org>
50903
50904         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
50905         Reported by Paolo Bonzini <bonzini@gnu.org>.
50906
50907 2008-07-30  Eric Blake  <ebb9@byu.net>
50908
50909         test-strtod: allow compilation without -lm
50910         * tests/test-strtod.c (main): Avoid link dependence on fabs.
50911         Reported by Dennis Clarke <blastwave@gmail.com>.
50912
50913 2008-07-28  Jim Meyering  <meyering@redhat.com>
50914
50915         bootstrap: work also when there are no .po files in po/
50916         * build-aux/bootstrap (update_po_files): Complete the change
50917         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
50918
50919 2008-07-27  Jim Meyering  <meyering@redhat.com>
50920
50921         * users.txt: Add zile.
50922
50923 2008-07-26  Ben Pfaff  <blp@gnu.org>
50924
50925         Add missing dependencies on new m4/exponent[fdl].m4 files.
50926         * modules/isnanf-nolibm: Add m4/exponentf.m4.
50927         * modules/isnand-nolibm: Add m4/exponentd.m4.
50928         * modules/isnanl-nolibm: Add m4/exponentl.m4.
50929         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
50930         m4/isnan[fdl].m4, because the macros actually used moved.
50931         Reported by Jim Meyering.
50932
50933 2008-07-14  Ben Pfaff  <blp@gnu.org>
50934
50935         Add isinf module.
50936         * lib/isinf.c: New file.
50937         * lib/math.in.h: Define isinf macro if we have decided to replace
50938         it.
50939         * m4/isinf.m4: New file.
50940         * m4/math_h.m4: Initialize and substitute variables for isinf
50941         module.
50942         * modules/isinf: New file.
50943         * modules/isinf-tests: New file.
50944         * modules/math: Add substitutions for new module.
50945         * tests/test-isinf.c: New file.
50946         * doc/posix-functions/isinf.texi: Mention new module.
50947         * MODULES.html.sh: Mention new module.
50948
50949 2008-07-14  Ben Pfaff  <blp@gnu.org>
50950
50951         Factor out some macros for use by additional modules.
50952         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
50953         exponentf.m4.
50954         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
50955         exponentd.m4.
50956         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
50957         file exponentl.m4.
50958         * m4/exponentf.m4: New file.
50959         * m4/exponentd.m4: New file.
50960         * m4/exponentl.m4: New file.
50961         * modules/isnanf: Use new file m4/exponentf.m4.
50962         * modules/isnand: Use new file m4/exponentd.m4.
50963         * modules/isnanl: Use new file m4/exponentl.m4.
50964
50965 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
50966
50967         mktime.c: normalize tp->tm_isdst value to -1/0/1.
50968         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
50969         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
50970         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
50971
50972         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
50973         readlink on platforms without PATH_MAX.
50974
50975 2008-07-21  Eric Blake  <ebb9@byu.net>
50976
50977         Warn, not fail, on stale version.
50978         * top/GNUmakefile (_curr-ver): Tone down previous patch.
50979
50980         Don't allow installation with stale devel version number.
50981         * top/GNUmakefile (_is-install-target): New macro.
50982         (_curr-ver): Forbid installation with stale version number.
50983
50984 2008-07-20  Bruno Haible  <bruno@clisp.org>
50985
50986         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
50987         TESTS_ENVIRONMENT.
50988         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
50989
50990 2008-07-20  Bruno Haible  <bruno@clisp.org>
50991
50992         * lib/c-stack.h (c_stack_action): Add documentation.
50993         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
50994
50995 2008-07-20  Bruno Haible  <bruno@clisp.org>
50996
50997         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
50998         * modules/readlink (License): Likewise.
50999
51000 2008-07-17  Eric Blake  <ebb9@byu.net>
51001
51002         * modules/c-stack (Link): Fix typo.
51003
51004         Make c-stack use libsigsegv, when available.
51005         * modules/c-stack (Depends-on): Add libsigsegv.
51006         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
51007         needed.
51008         * lib/c-stack.c (SIGSTKSZ): Define fallback.
51009         (segv_handler, overflow_handler, c_stack_action)
51010         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
51011         implementation when libsigsegv is available, but only when using
51012         the library is necessary.
51013         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
51014         comment, explaining why XSI check fails on Linux.
51015         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
51016         * tests/test-c-stack2.sh: Tweak skip message.
51017         * NEWS: Document new link-time requirements.
51018
51019 2008-07-16  Eric Blake  <ebb9@byu.net>
51020
51021         c-stack: Expose false positives when not using libsigsegv.
51022         * modules/c-stack-tests (Files): Expand test.
51023         * tests/test-c-stack.c (main): Add means to conditionally trigger
51024         non-overflow SIGSEGV.
51025         * tests/test-c-stack2.sh: New file.
51026
51027 2008-07-14  Bruno Haible  <bruno@clisp.org>
51028
51029         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
51030         Reported by Eric Blake.
51031
51032 2008-07-14  Sam Steingold  <sds@gnu.org>
51033             Bruno Haible  <bruno@clisp.org>
51034
51035         New module libsigsegv.
51036         * modules/libsigsegv: New file.
51037         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
51038         modifications.
51039         * MODULES.html.sh (Signal handling): New section.
51040
51041 2008-07-14  Bruno Haible  <bruno@clisp.org>
51042
51043         * modules/unictype/ctype-* (Description): Add the word "function".
51044         Improves the resulting doc in MODULES.html.
51045
51046 2008-07-12  Ben Pfaff  <blp@gnu.org>
51047
51048         Add longlong module.
51049         * modules/longlong: New file.
51050
51051 2008-07-12  Bruno Haible  <bruno@clisp.org>
51052
51053         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
51054         to empty.
51055
51056 2008-07-10  Ben Pfaff  <blp@gnu.org>
51057
51058         Add isnan module.
51059         * doc/posix-functions/isnan.texi: Mention new module.
51060         * lib/math.in.h: Define isnan macro if we have decided to replace
51061         it.
51062         * m4/isnan.m4: New file.
51063         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
51064         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
51065         also.
51066         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
51067         redundancy.
51068         * m4/math_h.m4: Initialize and substitute variables for isnan
51069         module.
51070         * modules/isnan: New file.
51071         * modules/isnan-tests: New file.
51072         * modules/math: Add substitutions for new module.
51073         * tests/test-isnan.c: New file.
51074         * MODULES.html.sh: Mention new module.
51075
51076 2008-07-10  Ben Pfaff  <blp@gnu.org>
51077
51078         Add isnanf module.
51079         * lib/isnanf.m4: New file.
51080         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
51081         (gl_HAVE_ISNANF_IN_LIBM): New macro.
51082         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
51083         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
51084         * modules/isnanf: New file.
51085         * modules/isnanf-tests: New file.
51086         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
51087         files.
51088         * tests/test-isnanf-nolibm.c: factored most of its contents into
51089         new file tests/test-isnanf.h.
51090         * tests/test-isnanf.h: New file.
51091         * tests/test-isnanf.c: New file.
51092         * MODULES.html.sh: Mention new module.
51093         * doc/glibc-functions/isnanf.texi: Mention new module.
51094
51095 2008-07-10  Ben Pfaff  <blp@gnu.org>
51096
51097         Add isnand module.
51098         * lib/isnand.h: New file.
51099         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
51100         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
51101         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
51102         functionality also.
51103         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
51104         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
51105         (gl_HAVE_ISNAND_IN_LIBM): New macro.
51106         * modules/isnand: New file.
51107         * modules/isnand-tests: New file.
51108         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
51109         files.
51110         * tests/test-isnand-nolibm.c: factored most of its contents into
51111         new file tests/test-isnand.h.
51112         * tests/test-isnand.h: New file.
51113         * tests/test-isnand.c: New file.
51114         * MODULES.html.sh: Mention new module.
51115
51116 2008-07-10  Ben Pfaff  <blp@gnu.org>
51117
51118         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
51119         * lib/isnand.h: Rename lib/isnand-nolibm.h.
51120         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
51121         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
51122         * modules/isnanf-nolibm: Update references to renamed files.
51123         * modules/isnand-nolibm: Likewise.
51124         * modules/isnanf-nolibm-tests: Likewise.
51125         * modules/isnand-nolibm-tests: Likewise.
51126         * lib/frexp.c: Likewise.
51127         * lib/isfinite.c: Likewise.
51128         * lib/signbitd.c: Likewise.
51129         * lib/signbitf.c: Likewise.
51130         * lib/vasnprintf.c: Likewise.
51131         * tests/test-ceilf1.c: Likewise.
51132         * tests/test-ceilf2.c: Likewise.
51133         * tests/test-floorf1.c: Likewise.
51134         * tests/test-floorf2.c: Likewise.
51135         * tests/test-frexp.c: Likewise.
51136         * tests/test-round1.c: Likewise.
51137         * tests/test-round2.c: Likewise.
51138         * tests/test-roundf1.c: Likewise.
51139         * tests/test-strtod.c: Likewise.
51140         * tests/test-trunc1.c: Likewise.
51141         * tests/test-trunc2.c: Likewise.
51142         * tests/test-truncf1.c: Likewise.
51143         * tests/test-truncf2.c: Likewise.
51144         * NEWS: Mention the renamed header files.
51145
51146 2008-07-11  Jim Meyering  <meyering@redhat.com>
51147
51148         vc-list-files: make the last-resort awk code more portable
51149         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
51150         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
51151         does not support it.
51152
51153 2008-07-10  Eric Blake  <ebb9@byu.net>
51154
51155         Work with tar's bootstrap.
51156         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
51157         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
51158         an m4 comment.
51159
51160 2008-07-09  Jim Meyering  <meyering@redhat.com>
51161
51162         posix-shell.m4: fix typo that made this test malfunction
51163         * m4/posix-shell.m4: Remove capitalization in variable name.
51164
51165 2008-07-08  Bruno Haible  <bruno@clisp.org>
51166
51167         * m4/onceonly.m4: Update comments.
51168         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51169
51170 2008-07-04  Jim Meyering  <meyering@redhat.com>
51171
51172         * users.txt: Add vc-dwim.
51173         (bison, coreutils): Use the gitweb URL.
51174
51175 2008-07-03  Jim Meyering  <meyering@redhat.com>
51176
51177         * users.txt: Add libffcall.  From Sam Steingold.
51178
51179 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
51180
51181         getdate.y: do not ignore TZ with relative day, month or year offset
51182         * lib/getdate.y (get_date): Move the tz-handling block to follow the
51183         relative-date-handling, since otherwise, the latter would clobber the
51184         sole output (an updated Start value) of the tz-handling block.
51185         * tests/test-getdate.c: Tests for the fix
51186
51187 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51188
51189         Recognize 'foo_LIBRARIES += libgnu.a'.
51190         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
51191         makefile snippet has already specified an installation location,
51192         also using '+='.
51193
51194 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
51195
51196         getdate.y: factor out common actions
51197         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
51198         Use them in place of open-coded actions.
51199
51200 2008-07-01  Simon Josefsson  <simon@josefsson.org>
51201
51202         Add self-test for getdate module.
51203         * modules/getdate-tests: New file.
51204         * tests/test-getdate.c: New file.
51205
51206 2008-06-29  Bruno Haible  <bruno@clisp.org>
51207
51208         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
51209         .gitignore.
51210         Reported by Sylvain Beucler <beuc@beuc.net>.
51211
51212 2008-06-29  Bruno Haible  <bruno@clisp.org>
51213
51214         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
51215         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
51216
51217 2008-06-29  Bruno Haible  <bruno@clisp.org>
51218
51219         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
51220         EXTRA_DIST.
51221         Reported by Sylvain Beucler <beuc@beuc.net>.
51222
51223 2008-06-26  Jim Meyering  <meyering@redhat.com>
51224
51225         make several modules depend on the "open" module
51226         This provides slightly increased consistency when opening-for-write
51227         the name of a non-directory spelled with a trailing slash.
51228         * modules/chdir-safer: Likewise.
51229         * modules/chown: Likewise.
51230         * modules/clean-temp: Likewise.
51231         * modules/copy-file: Likewise.
51232         * modules/fchdir: Likewise.
51233         * modules/fcntl-safer: Likewise.
51234         * modules/pipe: Likewise.
51235         * modules/utime: Likewise.
51236         Prompted by Eric Blake and Bruno Haible.
51237
51238 2008-06-24  Andreas Schwab  <schwab@suse.de>
51239
51240         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
51241         literals can be used as initializers for global variables.
51242
51243 2008-06-23  Eric Blake  <ebb9@byu.net>
51244
51245         Make gnulib-cache.m4 easier to diff.
51246         * gnulib-tool (func_import): Allow newlines when reading cached
51247         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
51248
51249 2008-06-23  Bruno Haible  <bruno@clisp.org>
51250
51251         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
51252         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
51253         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
51254         m4/signalblocking.m4.
51255         (gl_PREREQ_SIGACTION): Don't invoke it.
51256         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
51257         gl_PREREQ_SIG_HANDLER_H.
51258         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
51259         Don't check for sigaction here.
51260
51261 2008-06-23  Bruno Haible  <bruno@clisp.org>
51262
51263         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
51264         (install_handlers): Don't set the SA_RESETHAND flag.
51265
51266 2008-06-23  Bruno Haible  <bruno@clisp.org>
51267
51268         * m4/sigaction.m4: Comment fixes.
51269         * lib/signal.in.h: Likewise.
51270
51271 2008-06-23  Eric Blake  <ebb9@byu.net>
51272
51273         Fix typo.
51274         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
51275
51276         Avoid SA_ namespace.
51277         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
51278         Reported by Ralf Wildenhues.
51279
51280         Avoid test failure due to SA_RESTORER.
51281         * tests/test-sigaction.c (SA_MASK): New macro.
51282         (main): Avoid failing due to extension flags being set.
51283         Reported by Jim Meyering.
51284
51285         Revert use of sig-handler.h in sigprocmask.c.
51286         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
51287         it requires the existence of struct sigaction.
51288         * lib/sigprocmask.c (handler_t): Restore typedef.
51289         (rpl_signal, old_handlers): Use local type.
51290
51291 2008-06-22  Bruno Haible  <bruno@clisp.org>
51292
51293         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
51294         conditionally.
51295         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51296
51297 2008-06-22  Bruno Haible  <bruno@clisp.org>
51298
51299         * doc/posix-functions/siginterrupt.texi: Move note.
51300
51301         * lib/signal.in.h (SA_RESTART): New macro.
51302         * lib/sigaction.c: Update comment.
51303
51304         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
51305
51306         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
51307         (gl_PREREQ_SIGPROCMASK): Invoke it.
51308         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
51309
51310         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
51311
51312         * lib/sigprocmask.c: Update a comment.
51313
51314 2008-06-21  Eric Blake  <ebb9@byu.net>
51315
51316         Use sigaction module rather than signal().
51317         * modules/c-stack (Depends-on): Add sigaction.
51318         * modules/fatal-signal (Depends-on): Likewise.
51319         * modules/nanosleep (Depends-on): Likewise.
51320         * modules/sigprocmask (Files): Add sig-handler.h.
51321         * modules/sigaction (Files): Likewise.
51322         * lib/sig-handler.h (get_handler): New file, suggested by Paul
51323         Eggert.
51324         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
51325         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
51326         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
51327         (init_fatal_signals): Likewise.
51328         * lib/nanosleep.c (rpl_nanosleep): Likewise.
51329         (siginterrupt): Delete fallback.
51330         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
51331         instead.
51332         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
51333         siginterrupt.
51334
51335         New module sigaction, for mingw.
51336         * modules/sigaction: New module...
51337         * modules/sigaction-tests: ...and its test.
51338         * m4/sigaction.m4: New file.
51339         * lib/sigaction.c: Likewise.
51340         * tests/test-sigaction.c: Likewise.
51341         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
51342         * modules/signal (Makefile.am): Likewise.
51343         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
51344         needed.
51345         * doc/posix-headers/signal.texi (signal.h): Mention provided
51346         types.
51347         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
51348         that sigaction is preferable.
51349         * doc/posix-functions/sigaction.texi (sigaction): Mention new
51350         module.
51351         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51352         sigaction.
51353
51354         Improve robustness of sigprocmask by overriding signal.
51355         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
51356         is in use.
51357         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
51358         (SIGKILL, SIGSTOP): Provide fallbacks.
51359         (rpl_signal): Implement.
51360         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
51361         signal can be called inside handlers.
51362
51363         Fix nanosleep module on mingw.
51364         * modules/nanosleep (Depends-on): Add sys_select.
51365         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
51366
51367         Fix licensing of sigprocmask.
51368         * modules/raise (License): Relicense as LGPL.
51369
51370 2008-06-21  Bruno Haible  <bruno@clisp.org>
51371
51372         * lib/propername.c (proper_name_utf8): Don't use the transliterated
51373         result if it contains question marks.
51374         Reported by Michael Geng <linux@michaelgeng.de>.
51375
51376 2008-06-19  Bruno Haible  <bruno@clisp.org>
51377
51378         Fix CVS-ism.
51379         * doc/gnulib.texi: Include updated-stamp.texi.
51380         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
51381         (updated-stamp.texi): New rule.
51382         (gnulib.info): Depend on it.
51383         * doc/.gitignore: Add updated-stamp.texi.
51384         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
51385
51386 2008-06-19  Bruno Haible  <bruno@clisp.org>
51387
51388         * doc/Makefile (gnulib.info): Update and simplify dependencies.
51389         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51390
51391 2008-06-19  Eric Blake  <ebb9@byu.net>
51392
51393         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
51394         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
51395         Reported by Stepan Kasal.
51396
51397 2008-06-18  Bruno Haible  <bruno@clisp.org>
51398
51399         * lib/fatal-signal.c (init_fatal_signals): Add comment.
51400         Reported by Eric Blake.
51401
51402 2008-06-18  Eric Blake  <ebb9@byu.net>
51403
51404         Work around cygwin 1.5.25 strsignal bug.
51405         * tests/test-strsignal.c: Allow for const char *.
51406         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
51407
51408 2008-06-18  Simon Josefsson  <simon@josefsson.org>
51409
51410         * users.txt: Update URL to article and add author/date
51411         information.
51412
51413 2008-06-17  Bruno Haible  <bruno@clisp.org>
51414
51415         New macro gl_DISABLE_THREADS.
51416         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
51417         if the user did not pass --enable-threads or --disable-threads option.
51418         (gl_DISABLE_THREADS): New macro.
51419         Reported by Eric Blake <ebb9@byu.net>.
51420
51421 2008-06-17  Bruno Haible  <bruno@clisp.org>
51422
51423         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
51424         when the macro ignores it.
51425         Based on a patch by Eric Blake <ebb9@byu.net>.
51426
51427 2008-06-17  Bruno Haible  <bruno@clisp.org>
51428
51429         * modules/tls (License): Change to LGPLv2+.
51430         Reported by Eric Blake.
51431
51432 2008-06-17  Eric Blake  <ebb9@byu.net>
51433
51434         Simplify c-stack prerequisites.
51435         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
51436         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
51437         no longer requires <ucontext.h> to exist.  Optimize setrlimit
51438         check.
51439         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
51440         <sys/resource.h>.
51441
51442         Move c-stack test into testsuite.
51443         * modules/c-stack-tests: New file.
51444         * lib/c-stack.c [DEBUG]: Move test program...
51445         * tests/test-c-stack.c: ...into this new file.  Skip rather than
51446         fail test if sigaltstack is lacking.
51447         * tests/test-c-stack.sh: New driver file.
51448
51449 2008-06-16  Eric Blake  <ebb9@byu.net>
51450
51451         Use raise module consistently.
51452         * modules/fatal-signal (Depends-on): Add raise.
51453         * modules/sigprocmask (Depends-on): Likewise.
51454         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
51455         * lib/sigprocmask.c (sigprocmask): Likewise.
51456         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
51457         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
51458
51459         Fix compliance bug in sigpending.
51460         * lib/sigprocmask.c (sigpending): Return pending array via
51461         parameter, not return value.
51462
51463 2008-06-14  Eric Blake  <ebb9@byu.net>
51464
51465         Improve obstack-printf test code.
51466         * tests/test-obstack-printf.c (test_function): Fix comment, and
51467         simplify usage of obstack_* in macros.  Add a test for coverage.
51468         Reported by Bruno Haible.
51469
51470 2008-06-14  Bruno Haible  <bruno@clisp.org>
51471
51472         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
51473         array size as a constant, not as a const variable.
51474         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
51475         AC_USE_SYSTEM_EXTENSIONS.
51476         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
51477         Test whether the obstack_printf function actually exists.
51478         * modules/obstack-printf (Depends-on): Add extensions.
51479         (Include): Remove obstack.h.
51480         * modules/obstack-printf-posix (Depends-on): Add extensions.
51481         (Include): Remove obstack.h.
51482
51483 2008-06-13  Eric Blake  <ebb9@byu.net>
51484
51485         Add obstack-printf and obstack-printf-posix modules.
51486         * modules/obstack-printf: New file.
51487         * modules/obstack-printf-posix: Likewise.
51488         * MODULES.html.sh (Misc): Mention them.
51489         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
51490         Likewise.
51491         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
51492         Likewise.
51493         * modules/stdio (Makefile.am): Accomodate new modules.
51494         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
51495         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
51496         Declare.
51497         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
51498         functions.
51499         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
51500         (gl_REPLACE_OBSTACK_PRINTF): New macros
51501         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
51502         * tests/test-obstack-printf.c: New file.
51503         * modules/obstack-printf-tests: Likewise.
51504         * modules/obstack-printf-posix-tests: Likewise.
51505
51506 2008-06-11  Bruno Haible  <bruno@clisp.org>
51507
51508         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
51509         * lib/open.c: Include errno.h.
51510         (open): Fail when attempting to write to a file that has a trailing
51511         slash.
51512         * tests/test-open.c (main): Test against trailing slash bug.
51513         * doc/posix-functions/open.texi: Mention the trailing slash bug.
51514
51515 2008-06-10  Bruno Haible  <bruno@clisp.org>
51516
51517         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
51518         for $? to work inside the trap command, with various /bin/sh-s.
51519         * tests/test-vc-list-files-cvs.sh: Likewise.
51520
51521 2008-06-10  Bruno Haible  <bruno@clisp.org>
51522
51523         * lib/acl-internal.h: Don't include gettext.h here.
51524         * lib/set-mode-acl.c: Include gettext.h here.
51525         * lib/copy-acl.c: Likewise.
51526
51527 2008-06-10  Bruno Haible  <bruno@clisp.org>
51528
51529         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
51530         * lib/wait-process.c (wait_subprocess): Likewise.
51531         * lib/execute.h (execute): Add termsigp argument.
51532         * lib/execute.c (execute): Likewise.
51533         * lib/csharpcomp.c (compile_csharp_using_pnet,
51534         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
51535         * lib/csharpexec.c (execute_csharp_using_pnet,
51536         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
51537         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
51538         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
51539         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
51540         is_jikes_present): Update.
51541         * lib/javaexec.c (execute_java_class): Update.
51542         * lib/javaversion.c (execute_and_read_line): Update.
51543         * NEWS: Document the changes.
51544         Reported by Eric Blake.
51545
51546 2008-06-10  Eric Blake  <ebb9@byu.net>
51547
51548         Add missing include.
51549         * tests/test-strstr.c (includes): Add <signal.h>.
51550         * tests/test-strcasestr.c (includes): Likewise.
51551         * tests/test-memmem.c (includes): Likewise.
51552
51553 2008-06-10  Bruno Haible  <bruno@clisp.org>
51554
51555         * lib/wait-process.c (wait_subprocess): Add an assertion.
51556
51557 2008-06-10  Bruno Haible  <bruno@clisp.org>
51558
51559         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
51560
51561 2008-06-10  Bruno Haible  <bruno@clisp.org>
51562
51563         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
51564         using alarm().
51565         * tests/test-strcasestr.c (main): Likewise.
51566         * tests/test-strstr.c (main): Likewise.
51567
51568 2008-06-09  Bruno Haible  <bruno@clisp.org>
51569
51570         Work around the Solaris 10 ACE ACLs ABI change.
51571         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
51572         declare if ACL_NO_TRIVIAL is present.
51573         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
51574         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
51575         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
51576         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
51577         define if ACL_NO_TRIVIAL is present.
51578         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
51579         and use the current ABI.
51580         (file_has_acl): Use same #if condition as elsewhere.
51581         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
51582         in use, and use the current ABI.
51583         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
51584         Reported by Jim Meyering.
51585
51586 2008-06-09  Eric Blake  <ebb9@byu.net>
51587
51588         Work around environments that (stupidly) ignore SIGALRM.
51589         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
51590         before using alarm().
51591         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51592         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51593         Reported by Ian Beckwith <ianb@erislabs.net>.
51594
51595         Produce autobuild blurb earlier in log.
51596         * modules/autobuild (configure.ac-early): Move AB_INIT here.
51597
51598 2008-06-09  Jim Meyering  <meyering@redhat.com>
51599         and OndÅ™ej Vašík  <ovasik@redhat.com>
51600
51601         utimens.c: correct kernel bug work-around
51602         OndÅ™ej Vašík found that the invalid return value of 280 indicates
51603         failure, not success, and the kernel bug we're trying to work
51604         around affects not just the utimensat call, but also the fallback
51605         futimens call.
51606         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
51607         not success.
51608         [HAVE_FUTIMENS]: Use the same work-around, here.
51609
51610 2008-06-09  Jim Meyering  <meyering@redhat.com>
51611
51612         add more guards around definition of ACE_-related code
51613         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
51614         ALLOW and ACE_OWNER are also defined.
51615
51616 2008-06-08  Bruno Haible  <bruno@clisp.org>
51617
51618         * lib/acl-internal.h: Add me as co-author.
51619         * lib/file-has-acl.c: Likewise.
51620         * lib/set-mode-acl.c: Likewise.
51621         * lib/copy-acl.c: Likewise.
51622
51623 2008-06-08  Bruno Haible  <bruno@clisp.org>
51624
51625         Add support for AIX ACLs.
51626         * lib/acl-internal.h (acl_nontrivial): New declaration.
51627         * lib/file-has-acl.c (acl_nontrivial): New function.
51628         (file_has_acl): Add implementation using AIX 4 ACL API.
51629         * lib/set-mode-acl.c (qset_acl): Likewise.
51630         * lib/copy-acl.c (qcopy_acl): Likewise.
51631
51632 2008-06-08  Bruno Haible  <bruno@clisp.org>
51633
51634         Add support for HP-UX ACLs.
51635         * lib/acl-internal.h (acl_nontrivial): New declaration.
51636         * lib/file-has-acl.c (acl_nontrivial): New function.
51637         (file_has_acl): Add implementation using HP-UX 11 ACL API.
51638         * lib/set-mode-acl.c (qset_acl): Likewise.
51639         * lib/copy-acl.c (qcopy_acl): Likewise.
51640
51641 2008-06-08  Bruno Haible  <bruno@clisp.org>
51642
51643         Add support for Cygwin ACLs.
51644         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
51645         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
51646         the chmod_or_fchmod call.
51647         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
51648
51649 2008-06-08  Bruno Haible  <bruno@clisp.org>
51650
51651         Fix bug with setuid modes in Solaris 10+ code.
51652         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
51653         succeeded, when the mode contains some special bits.
51654
51655 2008-06-08  Bruno Haible  <bruno@clisp.org>
51656
51657         Add support for Solaris 7..10 ACLs.
51658         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
51659         declarations.
51660         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
51661         functions.
51662         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
51663         * lib/set-mode-acl.c (qset_acl): Likewise.
51664         * lib/copy-acl.c (qcopy_acl): Likewise.
51665
51666 2008-06-08  Bruno Haible  <bruno@clisp.org>
51667
51668         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
51669         declaration.
51670         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
51671         (acl_access_nontrivial): Remove MacOS X case.
51672         (file_has_acl): Use acl_extended_nontrivial.
51673         * lib/copy-acl.c (qcopy_acl): Likewise.
51674
51675 2008-06-08  Bruno Haible  <bruno@clisp.org>
51676
51677         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
51678
51679 2008-06-08  Jim Meyering  <meyering@redhat.com>
51680
51681         * modules/acl (Maintainer): Add Bruno Haible.
51682
51683 2008-06-07  Bruno Haible  <bruno@clisp.org>
51684
51685         Improve support for Tru64 ACLs.
51686         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
51687         ACL on OSF/1.
51688
51689 2008-06-07  Bruno Haible  <bruno@clisp.org>
51690
51691         Add support for MacOS X ACLs.
51692         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
51693         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
51694         * lib/set-mode-acl.c (qset_acl): Likewise.
51695         * lib/copy-acl.c (qcopy_acl): Likewise.
51696
51697 2008-06-07  Bruno Haible  <bruno@clisp.org>
51698
51699         Fix memory leak introduced on 2008-05-22.
51700         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
51701         use.
51702
51703 2008-06-07  Bruno Haible  <bruno@clisp.org>
51704
51705         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
51706         to construct an empty ACL.
51707
51708 2008-06-07  Bruno Haible  <bruno@clisp.org>
51709
51710         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
51711         precisely.
51712         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
51713
51714 2008-06-07  Bruno Haible  <bruno@clisp.org>
51715
51716         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
51717         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
51718
51719 2008-06-07  Bruno Haible  <bruno@clisp.org>
51720
51721         * doc/posix-functions/_setjmp.texi: Explain the use of this function
51722         regardless of POSIX.
51723         * doc/posix-functions/_longjmp.texi: Likewise.
51724         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
51725         SystemV platform in this case.
51726
51727 2008-06-06  Eric Blake  <ebb9@byu.net>
51728
51729         Document abort() bugs.
51730         * doc/posix-functions/abort.texi (abort): Mention anomalies.
51731
51732         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
51733         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
51734         sigsetjmp.
51735         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
51736         siglongjmp, but only as a macro.
51737         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
51738         is obsolete.
51739         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
51740
51741         Tweak documentation to cover cygwin argz bugs.
51742         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
51743         argz bug fix; no code change needed since no cygwin releases
51744         occurred between the last fix and the bug being tested.
51745         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
51746         module and recently fixed cygwin bugs.
51747         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
51748         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
51749         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
51750         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
51751         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
51752         Likewise.
51753         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
51754         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
51755         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
51756         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
51757         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
51758         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
51759         Likewise.
51760
51761         Avoid gcc warning on cygwin.
51762         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
51763         !ACL_NO_TRIVIAL]: Avoid unused variable.
51764
51765 2008-06-05  Eric Blake  <ebb9@byu.net>
51766
51767         Be tolerant of UNKNOWN version in gnulib-tool test dir.
51768         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
51769         git-version-gen fails to come up with a version.
51770         Reported by Simon Josefsson.
51771
51772 2008-06-05  Jim Meyering  <meyering@redhat.com>
51773             Paul Eggert  <eggert@cs.ucla.edu>
51774
51775         utimens.c: work around a probable Linux kernel bug
51776         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
51777         appears to be a kernel bug that causes utimensat to return 280
51778         instead of 0, indicating success.
51779
51780 2008-06-04  Bruno Haible  <bruno@clisp.org>
51781
51782         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
51783         2008-06-01 commit.
51784
51785 2008-06-04  Bruno Haible  <bruno@clisp.org>
51786
51787         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
51788         * lib/file-has-acl.c (acl_access_nontrivial): New function.
51789         (file_has_acl): Use it. Save errno afterwards.
51790         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
51791
51792 2008-06-03  Bruno Haible  <bruno@clisp.org>
51793
51794         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
51795         draft code. Simplify #ifs.
51796         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
51797         Put Solaris code after POSIX-draft code. Fix comments regarding
51798         Solaris 10, HP-UX. Mention Cygwin.
51799         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
51800
51801 2008-06-03  Eric Blake  <ebb9@byu.net>
51802
51803         Provide fallback for older kernels.
51804         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
51805         Provide runtime fallback if kernel lacks support.
51806         Reported by Mike Frysinger.
51807
51808 2008-06-02  Bruno Haible  <bruno@clisp.org>
51809
51810         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
51811         it exists.
51812
51813 2008-06-02  Bruno Haible  <bruno@clisp.org>
51814
51815         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
51816         * lib/copy-acl.c (qcopy_acl): Update comment.
51817
51818 2008-06-02  Bruno Haible  <bruno@clisp.org>
51819
51820         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
51821         like ACL APIs.
51822
51823 2008-06-02  Bruno Haible  <bruno@clisp.org>
51824
51825         * tests/test-file-has-acl.sh: Use different code for Cygwin.
51826         * tests/test-set-mode-acl.sh: Likewise.
51827         * tests/test-copy-acl.sh: Likewise.
51828         * tests/test-copy-file.sh: Likewise.
51829
51830 2008-06-02  Bruno Haible  <bruno@clisp.org>
51831
51832         * tests/test-file-has-acl.sh: Remove unused code.
51833
51834 2008-06-01  Bruno Haible  <bruno@clisp.org>
51835
51836         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
51837         (copy_acl): Just a wrapper around qcopy_acl that emits the error
51838         messages.
51839         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
51840
51841 2008-06-01  Bruno Haible  <bruno@clisp.org>
51842
51843         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
51844         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
51845         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
51846         APIs.
51847         * modules/acl-tests (configure.ac): Remove tests now contained in
51848         m4/acl.m4.
51849
51850 2008-06-02  Jim Meyering  <meyering@redhat.com>
51851
51852         announce-gen: use a better key-server host name
51853         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
51854         it may be more consistently reliable.  Suggested by Werner Koch
51855         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
51856
51857 2008-06-01  Bruno Haible  <bruno@clisp.org>
51858
51859         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
51860         Reported by Voroskoi Andras <voroskoi@gmail.com>.
51861
51862 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
51863
51864         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
51865
51866 2008-06-01  Bruno Haible  <bruno@clisp.org>
51867
51868         New ACL tests.
51869         * tests/test-file-has-acl.sh: New file.
51870         * tests/test-file-has-acl.c: New file.
51871         * tests/test-set-mode-acl.sh: New file.
51872         * tests/test-set-mode-acl.c: New file.
51873         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
51874         * tests/test-copy-acl.c: New file.
51875         * modules/acl-tests: New file, based on modules/copy-file-tests.
51876         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
51877         (Depends-on): Add acl-tests.
51878         (configure.ac): Remove checks.
51879         (Makefile.am): Don't create test-sameacls program here any more.
51880
51881 2008-06-01  Bruno Haible  <bruno@clisp.org>
51882
51883         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
51884         * tests/test-sameacls.c: Include progname.h.
51885         (main): Invoke set_program_name. Portability fixes for MacOS X,
51886         Solaris, HP-UX.
51887
51888 2008-06-01  Bruno Haible  <bruno@clisp.org>
51889
51890         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
51891         function.
51892         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
51893
51894 2008-06-01  Bruno Haible  <bruno@clisp.org>
51895
51896         * modules/rpmatch (Depends-on): Add strdup.
51897
51898 2008-06-01  Bruno Haible  <bruno@clisp.org>
51899
51900         * lib/pipe.c: Include unistd-safer.h.
51901         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
51902         * modules/pipe (Depends-on): Add unistd-safer.
51903
51904 2008-05-30  Simon Josefsson  <simon@josefsson.org>
51905
51906         * modules/autobuild (configure.ac): Call AB_INIT.
51907
51908 2008-05-30  Simon Josefsson  <simon@josefsson.org>
51909
51910         * tests/test-getaddrinfo.c: Don't print debug messages by default.
51911         Suggested by Bruno Haible <bruno@clisp.org>.
51912
51913 2008-05-30  Simon Josefsson  <simon@josefsson.org>
51914
51915         * tests/test-base64.c: Cast size_t to unsigned long when invoking
51916         printf.  Use %lu instead of %d.  Reported by Bruno Haible
51917         <bruno@clisp.org>.
51918
51919 2008-05-29  Eric Blake  <ebb9@byu.net>
51920
51921         Prefer new POSIX 200x interfaces over futimesat.
51922         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
51923         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
51924         when available.
51925         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
51926
51927 2008-05-28  Bruno Haible  <bruno@clisp.org>
51928
51929         * modules/stpcpy (License): Change to LGPLv2+.
51930         Requested by David Lutterkort <dlutter@redhat.com>.
51931
51932 2008-05-27  Bruno Haible  <bruno@clisp.org>
51933
51934         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
51935         current mingw.
51936         Reported by Jose E. Marchesi <jemarch@gnu.org>.
51937
51938 2008-05-27  Bruno Haible  <bruno@clisp.org>
51939
51940         * modules/iconv_open (Link): New section, from module 'iconv'.
51941         * modules/striconv (Link): Likewise.
51942         * modules/striconveh (Link): Likewise.
51943         * modules/xstriconv (Link): Likewise.
51944         * modules/unicodeio (Link): Likewise.
51945         * modules/propername (Link): Likewise.
51946         Reported by Jim Meyering.
51947
51948 2008-05-26  Jim Meyering  <meyering@redhat.com>
51949
51950         sha256: do not artificially restrict buffer length to be < 2^32
51951         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
51952         uint32_t to size_t.
51953         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
51954         to match.
51955
51956         avoid unaligned access errors, e.g., on sparc
51957         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
51958         direct access through a possibly-unaligned uint64* pointer.
51959         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
51960         direct access through a possibly-unaligned uint32* pointer.
51961         Prompted by this patch from Tom "spot" Callaway:
51962         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
51963
51964         sha512.c: fix typo in comment
51965         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
51966
51967 2008-05-25  Bruno Haible  <bruno@clisp.org>
51968
51969         * lib/set-mode-acl.c: Renamed from lib/acl.c.
51970         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
51971         (Makefile.am): Update lib_SOURCES.
51972
51973 2008-05-25  Bruno Haible  <bruno@clisp.org>
51974
51975         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
51976
51977 2008-05-25  Jim Meyering  <meyering@redhat.com>
51978
51979         useless-if-before-free: freed expr may have white-space differences
51980         * build-aux/useless-if-before-free: Recognize cases in which the
51981         freed expression differs from the tested one in embedded white
51982         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
51983         $1 was used, so we can't make any regexp shy.  Improved tests now
51984         detect this.
51985
51986         useless-if-before-free: accept white space in the expression.
51987         * build-aux/useless-if-before-free: For now, any white space
51988         in the expression must be identical in the free argument.
51989
51990         useless-if-before-free: efficiency tweak
51991         * build-aux/useless-if-before-free: Make the expression-matching
51992         regexp "shy".
51993         Make the *outer* regexp shy, not the expr-matching one.
51994
51995         update code-in-comment to accept cast of free arg
51996         * build-aux/useless-if-before-free: Update regexp.
51997
51998 2008-05-25  Bruno Haible  <bruno@clisp.org>
51999
52000         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
52001         * modules/copy-file-tests (Files, Makefile.am): Update.
52002         * tests/test-copy-file.c (func_test_copy): Update.
52003
52004 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
52005
52006         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
52007
52008 2008-05-23  Bruno Haible  <bruno@clisp.org>
52009
52010         Improve support for ACLs on OSF/1.
52011         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
52012         Remove fallback for unknown flavors of ACLs.
52013
52014 2008-05-22  Bruno Haible  <bruno@clisp.org>
52015
52016         Add support for ACLs on OSF/1.
52017         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
52018         replacements.
52019         (acl_free_text): New macro fallback.
52020         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
52021         acl_free.
52022         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
52023         acl_free_text function. Require AC_C_INLINE.
52024
52025 2008-05-22  Bruno Haible  <bruno@clisp.org>
52026
52027         Make copy_acl work on MacOS X 10.5.
52028         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
52029         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
52030         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
52031         If MODE_INSIDE_ACL, don't assume that every system has the same text
52032         representation for ACLs as FreeBSD.
52033         * lib/copy-acl.c (copy_acl): Add support for platforms with
52034         !MODE_INSIDE_ACL.
52035         * lib/file-has-acl.c (file_has_acl): Likewise.
52036         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
52037         FreeBSD, MacOS X, or IRIX, respectively.
52038
52039 2008-05-22  Bruno Haible  <bruno@clisp.org>
52040
52041         * lib/acl.h: Don't include <sys/acl.h>.
52042         (GETACLCNT): Move fallback to lib/acl-internal.h.
52043         * lib/acl-internal.h: Include <sys/acl.h> here.
52044         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
52045
52046 2008-05-22  Bruno Haible  <bruno@clisp.org>
52047
52048         Split off copy_acl function to separate file.
52049         * lib/copy-acl.c: New file, extracted from lib/acl.c.
52050         * lib/acl.c (copy_acl): Moved function to separate file.
52051         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
52052         * modules/acl (Files): Add lib/copy-acl.c.
52053         (Makefiles.am): Augment lib_SOURCES.
52054
52055 2008-05-22  Bruno Haible  <bruno@clisp.org>
52056
52057         * modules/copy-file-tests: New file.
52058         * tests/test-copy-file.sh: New file.
52059         * tests/test-copy-file.c: New file.
52060         * tests/test-copy-file-sameacls.c: New file.
52061
52062 2008-05-22  Eric Blake  <ebb9@byu.net>
52063
52064         Avoid gcc warning.
52065         * tests/test-memcmp.c (main): Pass NULL indirectly.
52066
52067 2008-05-21  Bruno Haible  <bruno@clisp.org>
52068
52069         Add reference doc about ACLs.
52070         * doc/acl-resources.txt: New file.
52071         * doc/acl-cygwin.txt: New file.
52072
52073 2008-05-21  Bruno Haible  <bruno@clisp.org>
52074
52075         Avoid one more warning from gcc.
52076         * lib/vasnprintf.c (IF_LINT): Update comments.
52077         (VASNPRINTF): Use it also for the 'prefix' array initializer.
52078
52079 2008-05-21  Jim Meyering  <meyering@redhat.com>
52080
52081         avoid a warning from gcc
52082         * lib/vasnprintf.c (IF_LINT): Define.
52083         (scale10_round_decimal_long_double):
52084         Use it to avoid a "may be used uninitialized" warning.
52085         (scale10_round_decimal_double): Likewise.
52086
52087 2008-05-21  Simon Josefsson  <simon@josefsson.org>
52088
52089         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
52090         declared.
52091
52092 2008-05-20  Bruno Haible  <bruno@clisp.org>
52093
52094         * tests/test-memcmp.c (main): Test also the sign of the result. Test
52095         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
52096
52097 2008-05-20  Simon Josefsson  <simon@josefsson.org>
52098
52099         * modules/memcmp-tests: New file.
52100         * tests/test-memcmp.c: New file.
52101
52102 2008-05-19  Bruno Haible  <bruno@clisp.org>
52103
52104         * modules/propername (Notice, configure.ac): Put quoted "..." into
52105         --keyword option.
52106         * lib/propername.h: Update comments accordingly.
52107         Reported by Eric Blake.
52108
52109 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
52110
52111         * modules/getpass-gnu (Depends-on): Add fseeko.
52112
52113 2008-05-19  Simon Josefsson  <simon@josefsson.org>
52114
52115         * modules/base64-tests: New file.
52116
52117 2008-05-19  Bo Borgerson <gigabo@gmail.com>
52118
52119         * lib/base64.c (base64_decode_ctx): If a decode context structure
52120         was passed in use it to ignore newlines.  If a context structure
52121         was _not_ passed in, continue to treat newlines as garbage (this
52122         is the historical behavior).  Formerly base64_decode.
52123         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
52124         takes a decode context structure.
52125         * lib/base64.h (base64_decode): Macro for four-argument calls.
52126         (base64_decode_alloc): Likewise.
52127         * lib/base64.c (base64_decode_ctx): If a decode context structure
52128         was passed in use it to ignore newlines.  If a context structure
52129         was _not_ passed in, continue to treat newlines as garbage (this
52130         is the historical behavior).  Formerly base64_decode.
52131         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
52132         takes a decode context structure.
52133         * lib/base64.h (base64_decode): Macro for four-argument calls.
52134         (base64_decode_alloc): Likewise.
52135
52136 2008-05-19  Jim Meyering  <meyering@redhat.com>
52137
52138         avoid a warning from gcc
52139         * lib/trim.c (IF_LINT): Define.
52140         (trim2): Use it to avoid a "may be used uninitialized" warning.
52141
52142         Fix doc typo.
52143         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
52144
52145 2008-05-19  Bruno Haible  <bruno@clisp.org>
52146
52147         * doc/glibc-functions/getpass.texi: Document limits of other
52148         implementations.
52149
52150 2008-05-19  Simon Josefsson  <simon@josefsson.org>
52151             Bruno Haible <bruno@clisp.org>
52152
52153         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
52154
52155 2008-05-18  Bruno Haible  <bruno@clisp.org>
52156
52157         * modules/propername: New file, from GNU gettext.
52158         * lib/propername.h: New file, from GNU gettext.
52159         * lib/propername.c: New file, from GNU gettext.
52160         * MODULES.html.sh (Internationalization functions): Add propername.
52161
52162 2008-05-16  Jim Meyering  <meyering@redhat.com>
52163             Bruno Haible  <bruno@clisp.org>
52164
52165         Avoid some warnings from "gcc -Wshadow".
52166         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
52167
52168 2008-05-15  Eric Blake  <ebb9@byu.net>
52169
52170         Extend previous patch to cygwin 1.7.0.
52171         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
52172         fast implementation in cygwin >= 1.7.0.
52173         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
52174         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52175
52176 2008-05-15  Bruno Haible  <bruno@clisp.org>
52177
52178         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
52179         implementation in glibc >= 2.9.
52180         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
52181         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52182
52183 2008-05-15  Bruno Haible  <bruno@clisp.org>
52184
52185         * MODULES.html.sh (Internationalization functions): Remove linebreak.
52186         (Unicode string functions): Add unilbrk/*.
52187         Reported by Karl Berry.
52188
52189 2008-05-15  Eric Blake  <ebb9@byu.net>
52190
52191         Fix violation of <stdbool.h> replacement in regex.
52192         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
52193         * lib/regexec.c (re_search_internal): Likewise.
52194         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
52195
52196 2008-05-15  Jim Meyering  <meyering@redhat.com>
52197
52198         avoid distracting test output when git or cvs is not found
52199         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
52200         * tests/test-vc-list-files-git.sh: Likewise.
52201
52202 2008-05-15  Eric Blake  <ebb9@byu.net>
52203
52204         Glibc finally accepted the memmem speedup code, bugzilla #5514.
52205         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
52206         glibc version.
52207         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
52208         * doc/posix-functions/strstr.texi (strstr): Likewise.
52209         * lib/str-two-way.h (MAX): Sychronize with glibc.
52210
52211 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
52212
52213         * lib/regcomp.c (optimize_utf8): Add a note on why we test
52214         opr.ctx_type.
52215         (calc_first): Initialize constraint field.
52216         (duplicate_node_closure): Use it instead of special casing ANCHORS.
52217         Fix grammar.
52218         (duplicate_node): Merge constraint field for all node types.
52219         (calc_eclosure_iter): Look at constraint field for all node types.
52220         * lib/regex_internal.c (create_cd_newstate): Don't look at
52221         opr.ctx_type.
52222
52223 2008-05-14  Bruno Haible  <bruno@clisp.org>
52224
52225         Help GCC to do better code generation.
52226         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
52227         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
52228         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
52229         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
52230         Declare with attribute 'malloc' if supported.
52231
52232 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
52233
52234         use "echo STR|wc -c" rather than unportable "expr length STR"
52235         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
52236         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
52237
52238 2008-05-14  Jim Meyering  <meyering@redhat.com>
52239
52240         use dd ibs=$n count=1 ... rather than less-portable head -c$n
52241         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
52242         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
52243         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
52244         via Collin Lasse.
52245
52246 2008-05-14  Eric Blake  <ebb9@byu.net>
52247
52248         Avoid quadratic growth in gl_LIBSOURCES.
52249         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
52250         Suggested by Bruno Haible.
52251
52252         Test xmemdup0.
52253         * modules/xmemdup0-tests: New file.
52254         * tests/test-xmemdup0.c: Likewise.
52255
52256 2008-05-13  Eric Blake  <ebb9@byu.net>
52257
52258         Split xmemdup0 into its own module.
52259         * modules/xmemdup0: New file.
52260         * lib/xmemdup0.h: Likewise.
52261         * lib/xmemdup0.c: Likewise.
52262         * MODULES.html.sh (Memory management functions): Add xmemdup0.
52263         * lib/xalloc.h (xmemdup0): Remove.
52264         * lib/xmalloc.c (xmemdup0): Likewise.
52265
52266 2008-05-13  Eric Blake  <ebb9@byu.net>
52267             Bruno Haible  <bruno@clisp.org>
52268
52269         Reduce number of forks required during autoconf.
52270         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
52271         and gl_LIBSOURCES_DIR.
52272         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
52273         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
52274         m4_syscmd per file.
52275         <m4_foreach_w>: Move...
52276         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
52277
52278 2008-05-13  Eric Blake  <ebb9@byu.net>
52279
52280         * gnulib-tool: Fix various comment typos.
52281
52282 2008-05-12  Bruno Haible  <bruno@clisp.org>
52283
52284         Tailor the linebreaking algorithm.
52285         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
52286
52287 2008-05-12  Bruno Haible  <bruno@clisp.org>
52288
52289         Update to Unicode 5.0.0.
52290         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
52291         LBP_JV, LBP_JT. Redistribute values.
52292         (unilbrk_table): Change size.
52293         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
52294         Unicode TR#14 rev. 22.
52295         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
52296         LBP_JV, LBP_JT. Redistribute values.
52297         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
52298         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
52299         Update.
52300         * lib/unilbrk/lbrkprop1.h: Regenerated.
52301         * lib/unilbrk/lbrkprop2.h: Regenerated.
52302         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
52303         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
52304         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
52305         Likewise.
52306         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
52307         Likewise.
52308         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
52309         result.
52310         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
52311         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
52312         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
52313         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
52314         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
52315         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
52316
52317 2008-05-11  Bruno Haible  <bruno@clisp.org>
52318
52319         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
52320
52321 2008-05-11  Bruno Haible  <bruno@clisp.org>
52322
52323         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
52324         * modules/unilbrk/gen-lbrk: New file.
52325
52326 2008-05-11  Bruno Haible  <bruno@clisp.org>
52327
52328         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
52329         * m4/sha512.m4 (gl_SHA512): Likewise.
52330
52331 2008-05-11  Jim Meyering  <meyering@redhat.com>
52332
52333         New modules: crypto/sha256, crypto/sha512 (from coreutils)
52334         * modules/crypto/sha256: New file.
52335         * modules/crypto/sha512: Likewise.
52336         * lib/sha256.c: Likewise.
52337         * lib/sha256.h: Likewise.
52338         * lib/sha512.c: Likewise.
52339         * lib/sha512.h: Likewise.
52340         * lib/u64.h: Likewise.
52341         * m4/sha256.m4: Likewise.
52342         * m4/sha512.m4: Likewise.
52343         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
52344
52345 2008-05-10  Bruno Haible  <bruno@clisp.org>
52346
52347         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
52348         (Input/Output <stdio.h>): Add xprintf.
52349         (Signal handling <signal.h>): Add strsignal.
52350         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
52351         (Core language properties): Add func.
52352         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
52353         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
52354         strings.
52355         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
52356         (Input/output): New section.
52357         (File system functions): Add openat-die, stat-macros.
52358         (Networking functions): Add sockets.
52359         (Unicode string functions): Add unictype/*.
52360         (Support for building libraries and executables): Add gperf.
52361         (Support for building documentation): Add agpl-3.0.
52362         (Misc): Add nocrash.
52363
52364 2008-05-10  Bruno Haible  <bruno@clisp.org>
52365
52366         * modules/unictype/gen-ctype: New file.
52367
52368 2008-05-10  Jim Meyering  <meyering@redhat.com>
52369
52370         Make chdir-safer.c more efficient on a system with no symlinks.
52371         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
52372         also if ELOOP is zero.  Suggested by Bruno Haible.
52373
52374         Make chdir-safer.c slightly safer.
52375         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
52376         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
52377
52378         Avoid compile failure on systems without ELOOP (like mingw).
52379         * lib/chdir-safer.c (ELOOP): Define if not already defined.
52380         Reported by Bruno Haible.
52381
52382 2008-05-10  Bruno Haible  <bruno@clisp.org>
52383
52384         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
52385         (is_utf8_encoding): Use a case-insensitive comparison.
52386         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
52387         streq.
52388
52389 2008-05-10  Bruno Haible  <bruno@clisp.org>
52390
52391         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
52392         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
52393         * lib/unilbrk/ulc-common.h (iconv_string_length,
52394         iconv_string_keeping_offsets): Remove declarations.
52395         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
52396         Don't include <iconv.h>, streq.h, xsize.h.
52397         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
52398         conversion.
52399         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
52400         <iconv.h>, streq.h, xsize.h.
52401         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
52402         conversion.
52403         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
52404         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
52405         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
52406         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
52407
52408 2008-05-10  Bruno Haible  <bruno@clisp.org>
52409
52410         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
52411         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
52412
52413         * modules/unilbrk/u32-width-linebreaks-tests: New file.
52414         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
52415
52416         * modules/unilbrk/u16-width-linebreaks-tests: New file.
52417         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
52418
52419         * modules/unilbrk/u8-width-linebreaks-tests: New file.
52420         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
52421
52422         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
52423         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
52424
52425         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
52426         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
52427
52428         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
52429         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
52430
52431         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
52432         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
52433
52434 2008-05-10  Bruno Haible  <bruno@clisp.org>
52435
52436         Split up 'linebreak' module.
52437         * lib/unilbrk.h: New file, based on lib/linebreak.h.
52438         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
52439         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
52440         modifications.
52441         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
52442         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
52443         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
52444         lib/linebreak.c.
52445         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
52446         lib/linebreak.c.
52447         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
52448         lib/linebreak.c.
52449         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
52450         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
52451         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
52452         lib/linebreak.c.
52453         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
52454         lib/linebreak.c.
52455         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
52456         lib/linebreak.c.
52457         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
52458         lib/linebreak.c.
52459         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
52460         lib/linebreak.c.
52461         * modules/unilbrk/base: New file.
52462         * modules/unilbrk/tables: New file.
52463         * modules/unilbrk/u8-possible-linebreaks: New file.
52464         * modules/unilbrk/u16-possible-linebreaks: New file.
52465         * modules/unilbrk/u32-possible-linebreaks: New file.
52466         * modules/unilbrk/ulc-common: New file.
52467         * modules/unilbrk/ulc-possible-linebreaks: New file.
52468         * modules/unilbrk/u8-width-linebreaks: New file.
52469         * modules/unilbrk/u16-width-linebreaks: New file.
52470         * modules/unilbrk/u32-width-linebreaks: New file.
52471         * modules/unilbrk/ulc-width-linebreaks: New file.
52472         * lib/linebreak.h: Remove file.
52473         * lib/linebreak.c: Remove file.
52474         * m4/linebreak.m4: Remove file.
52475         * modules/linebreak: Remove file.
52476         * NEWS: Mention the changes.
52477
52478 2008-05-09  Eric Blake  <ebb9@byu.net>
52479
52480         Add xmemdup0.
52481         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
52482         implementation.
52483         * lib/xmalloc.c (xmemdup0): New C implementation.
52484
52485 2008-05-08  Bruno Haible  <bruno@clisp.org>
52486
52487         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
52488
52489 2008-05-07  Eric Blake  <ebb9@byu.net>
52490
52491         Support cross-compilation of <wctype.h>.
52492         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
52493         AC_CACHE_CHECK.
52494
52495 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
52496
52497         * build-aux/vc-list-files: Add support for bzr.
52498
52499 2008-05-03  Jim Meyering  <meyering@redhat.com>
52500
52501         avoid failed assertion with tight malloc
52502         * tests/test-getndelim2.c: Correct an off-by-one assertion.
52503
52504 2008-05-03  Simon Josefsson  <simon@josefsson.org>
52505
52506         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
52507         are needed from arpa/inet.h.
52508         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
52509         Reported by Bruno Haible.
52510
52511 2008-05-02  Jim Meyering  <meyering@redhat.com>
52512
52513         avoid compilation error on FreeBSD 6
52514         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
52515
52516 2008-05-01  Jim Meyering  <meyering@redhat.com>
52517
52518         useless-if-before-free: correct --help's exit status description
52519         * build-aux/useless-if-before-free (usage): Like grep, exit 0
52520         for one or more matches, etc.  Reported by Bruno Haible.
52521
52522         vc-list-files: make the stand-alone gnulib test work
52523         * modules/vc-list-files-tests (configure.ac):
52524         Define and AC_SUBST abs_aux_dir.
52525         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
52526         $(abs_top_srcdir) to each script and having each of them
52527         duplicate the work of setting PATH, set PATH here, using
52528         the new variable, abs_aux_dir instead.
52529         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
52530         * tests/test-vc-list-files-git.sh: Likewise.
52531         Reported by Bruno Haible.
52532
52533 2008-05-01  Bruno Haible  <bruno@clisp.org>
52534
52535         * lib/getndelim2.c (getndelim2): Fix newsize computation during
52536         reallocation. Rename 'done' to 'found_delimiter'.
52537
52538 2008-05-01  Jim Meyering  <meyering@redhat.com>
52539
52540         vc-list-files: accommodate /bin/sh like the one from Solaris 10
52541         * build-aux/vc-list-files: Use `...`, not $(...).
52542
52543 2008-04-30  Jim Meyering  <meyering@redhat.com>
52544
52545         add tests for vc-list-files
52546         * modules/vc-list-files-tests: New module.
52547         * tests/test-vc-list-files-cvs.sh: New file.
52548         * tests/test-vc-list-files-git.sh: New file.
52549
52550         avoid a warning from gcc
52551         * lib/getndelim2.c (IF_LINT): Define.
52552         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
52553
52554         vc-list-files: work properly with build-aux/cvsu, too
52555         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
52556         to all cvs-based clauses.
52557
52558         vc-list-files: work properly in the CVS+awk case, too
52559         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
52560
52561         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
52562         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
52563         take more than one file argument, so .  Add quotes, just in case $dir
52564         ever contains a shell meta-character.  Prompted by Soren Hansen in
52565         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
52566
52567 2008-04-29  Eric Blake  <ebb9@byu.net>
52568
52569         Optimize getndelim2 to use block operations when possible.
52570         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
52571         freadseek, and memchr2.
52572         * lib/getndelim2.c (getndelim2): Use them for block reads.
52573
52574 2008-04-29  Bruno Haible  <bruno@clisp.org>
52575
52576         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
52577         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52578         * modules/inet_ntop (Depends-on): Add extensions.
52579         * modules/inet_pton (Depends-on): Likewise.
52580         Reported by Simon Josefsson.
52581
52582 2008-04-29  Jim Meyering  <meyering@redhat.com>
52583
52584         When the is more than one match in a block, match all of them.
52585         * build-aux/useless-if-before-free: Iterate through each block
52586         until there are no more matches.
52587
52588         Fix broken useless-if-before-free script.
52589         * build-aux/useless-if-before-free: Fix typo: missing "?" after
52590         the expression to match cast of argument to free-like function.
52591
52592 2008-04-29  Eric Blake  <ebb9@byu.net>
52593
52594         Use new header.
52595         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
52596
52597 2008-04-29  Jim Meyering  <meyering@redhat.com>
52598
52599         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
52600         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
52601         by gnulib to exist and to declare e.g., inet_ntop.
52602         Don't include "inet_ntop.h", now removed.
52603
52604         * m4/arpa_inet_h.m4: Remove trailing blanks.
52605
52606 2008-04-29  Eric Blake  <ebb9@byu.net>
52607
52608         Silence valgrind on safe reads beyond potential array bounds.
52609         * lib/rawmemchr.valgrind: New file.
52610         * lib/strchrnul.valgrind: Likewise.
52611         * modules/rawmemchr (Files): Distribute new file.
52612         * modules/strchrnul (Files): Likewise.
52613         Suggested by Bruno Haible.
52614
52615 2008-04-29  Bruno Haible  <bruno@clisp.org>
52616
52617         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
52618         (inet_ntop, inet_pton): Change portability warning's wording.
52619         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
52620         Invoke gl_CHECK_NEXT_HEADERS.
52621         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
52622         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
52623         set ARPA_INET_H.
52624         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52625         * modules/arpa_inet (Description): No longer only for systems that
52626         lack it.
52627         (Depends-on): Add include_next.
52628         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
52629         HAVE_ARPA_INET_H.
52630
52631 2008-04-29  Jim Meyering  <meyering@redhat.com>
52632
52633         * modules/mkdir (License): Re-license as LGPLv2+.
52634
52635 2008-04-29  Bruno Haible  <bruno@clisp.org>
52636
52637         * modules/rawmemchr (Maintainer): Set to Eric.
52638         * modules/strchrnul (Maintainer): Likewise.
52639
52640 2008-04-29  Simon Josefsson  <simon@josefsson.org>
52641
52642         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
52643         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
52644
52645         * modules/arpa_inet (arpa/inet.h): Use them.
52646
52647 2008-04-28  Eric Blake  <ebb9@byu.net>
52648
52649         Test getndelim2.
52650         * modules/getndelim2-tests: New file.
52651         * tests/test-getndelim2.c: Likewise.
52652         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
52653         stream.
52654         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
52655
52656         * MODULES.html.sh: Document new module.
52657
52658 2008-04-20  Bruno Haible  <bruno@clisp.org>
52659
52660         * lib/c-stack.c (die): Use raise.
52661         * modules/c-stack (Depends-on): Add raise.
52662
52663 2008-04-28  Bruno Haible  <bruno@clisp.org>
52664
52665         Expect rpmatch to be declared.
52666         * lib/yesno.c (rpmatch): Remove declaration.
52667
52668         Declare rpmatch.
52669         * lib/stdlib.in.h (rpmatch): New declaration.
52670         * lib/rpmatch.c: Include <stdlib.h> first.
52671         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
52672         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
52673         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
52674         HAVE_RPMATCH.
52675         * modules/rpmatch (Depends-on): Add stdlib, extensions.
52676         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52677         (Include): Set to <stdlib.h>.
52678         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
52679         HAVE_RPMATCH.
52680         * NEWS: Document the change.
52681
52682 2008-04-28  Bruno Haible  <bruno@clisp.org>
52683
52684         Change rpmatch to use nl_langinfo when appropriate.
52685         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
52686         (N_): New macro.
52687         (localized_pattern): New function/macro.
52688         (try): Remove match, nomatch arguments. Copy the pattern into safe
52689         memory before caching it.
52690         (rpmatch): Use localized_pattern. Add translator comments.
52691         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
52692         Suggested by Eric Blake.
52693         * modules/rpmatch (Depends-on): Add stdbool.
52694
52695 2008-04-28  Eric Blake  <ebb9@byu.net>
52696
52697         Add rawmemchr module, matching glibc.
52698         * modules/string (Makefile.am): New indicator.
52699         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
52700         * lib/string.in.h (rawmemchr): Declare when appropriate.
52701         * modules/rawmemchr: New file.
52702         * m4/rawmemchr.m4: Likewise.
52703         * lib/rawmemchr.c: Likewise.
52704         * modules/rawmemchr-tests: Likewise.
52705         * tests/test-rawmemchr.c: Likewise.
52706         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
52707         module.
52708         * modules/strchrnul (Depends-on): Add rawmemchr.
52709         * lib/strchrnul.c (strchrnul): Optimize a corner case.
52710
52711         Whitespace cleanup.
52712         * tests/test-strchrnul.c: Reindent.
52713         * lib/strchrnul.c: Likewise.
52714
52715         Optimize and test strchrnul.
52716         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
52717         * modules/strchrnul-tests: New file.
52718         * tests/test-strchrnul.c: Likewise.
52719
52720         Remove intprops dependency.
52721         * modules/memchr (Depends-on): Remove intprops.
52722         * modules/memrchr (Depends-on): Likewise.
52723         * modules/memchr2 (Depends-on): Likewise.
52724         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
52725         * lib/memrchr.c (__memrchr): Likewise.
52726         * lib/memrchr2.c (memchr2): Likewise.
52727         Reported by Simon Josefsson.
52728
52729 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52730
52731         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
52732         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52733
52734 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52735
52736         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
52737
52738         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
52739
52740         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
52741
52742         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
52743         declarations.
52744         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
52745
52746         * m4/inet_pton.m4: Don't check for header files.
52747
52748         * m4/inet_ntop.m4: Don't check for header files.
52749
52750 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52751
52752         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
52753         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
52754         trigger for cygwin).
52755         Reported by Bruno Haible  <bruno@clisp.org>.
52756
52757 2008-04-28  Bruno Haible  <bruno@clisp.org>
52758
52759         * doc/posix-functions/strdup.texi: Mention mingw problem.
52760
52761 2008-04-27  Bruno Haible  <bruno@clisp.org>
52762
52763         * modules/stat-time-tests (Depends-on): Add sleep.
52764         * tests/test-stat-time.c (force_unlink): New function.
52765         (cleanup): Use it.
52766         (test_mtime): Remove the ctime related tests.
52767         (test_ctime): New function, containing the ctime related tests.
52768         (main): Call test_ctime, except on native Windows platforms.
52769
52770 2008-04-27  Bruno Haible  <bruno@clisp.org>
52771
52772         * lib/rpmatch.c (rpmatch): Add some comments.
52773         Reported by James Youngman <jay@gnu.org>.
52774
52775 2008-04-27  Bruno Haible  <bruno@clisp.org>
52776
52777         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
52778         quiet NaNs.
52779
52780 2008-04-27  Bruno Haible  <bruno@clisp.org>
52781
52782         Make test-yesno.sh work on mingw.
52783         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
52784         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
52785         (main): Set stdin to binary mode.
52786         * modules/yesno-tests (Depends-on): Add binary-io.
52787
52788 2008-04-27  Bruno Haible  <bruno@clisp.org>
52789
52790         Fix 'isfinite' on x86, x86_64, ia64 platforms.
52791         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
52792         argument that lie outside the IEEE 854 domain.
52793         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
52794         (gl_ISFINITE): Use it.
52795         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
52796
52797 2008-04-27  Bruno Haible  <bruno@clisp.org>
52798
52799         Allow local renaming in config.h.
52800         * lib/memrchr.c (memrchr): Don't undefine outside libc.
52801
52802 2008-04-27  Bruno Haible  <bruno@clisp.org>
52803
52804         * lib/memchr.c (__memchr): Change type of 'i'.
52805         * lib/memchr2.c (memchr2): Likewise.
52806
52807 2008-04-26  Eric Blake  <ebb9@byu.net>
52808         and Bruno Haible  <bruno@clisp.org>
52809
52810         Optimize and test memrchr.
52811         * modules/memrchr (Depends-on): Add intprops.
52812         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
52813         * modules/memrchr-tests: New file.
52814         * tests/test-memrchr.c: New file.
52815
52816 2008-04-26  Bruno Haible  <bruno@clisp.org>
52817
52818         Add tentative support for DragonFly BSD.
52819         * lib/stdio-impl.h: Add macros for DragonFly BSD.
52820         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
52821         fp.
52822         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
52823         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
52824         * lib/fpurge.c (fpurge): Likewise.
52825         * lib/freadable.c (freaadable): Likewise.
52826         * lib/freadahead.c (freadahead): Likewise.
52827         * lib/freading.c (freading): Likewise.
52828         * lib/freadptr.c (freadptr): Likewise.
52829         * lib/freadseek.c (freadptrinc): Likewise.
52830         * lib/fseeko.c (fseeko): Likewise.
52831         * lib/fseterr.c (fseterr): Likewise.
52832         * lib/fwritable.c (fwritable): Likewise.
52833         * lib/fwriting.c (fwriting): Likewise.
52834
52835 2008-04-26  Bruno Haible  <bruno@clisp.org>
52836
52837         * lib/stdio-impl.h: New file.
52838         * lib/fbufmode.c: Include stdio-impl.h.
52839         (fbufmode): Use fp_, remove redundant #defines.
52840         * lib/fflush.c: Include stdio-impl.h.
52841         (clear_ungetc_buffer): Remove redundant #defines.
52842         * lib/fpurge.c: Include stdio-impl.h.
52843         (fpurge): Remove redundant #defines.
52844         * lib/freadable.c: Include stdio-impl.h.
52845         (freadable): Remove redundant #defines.
52846         * lib/freadahead.c: Include stdio-impl.h.
52847         (freadahead): Remove redundant #defines.
52848         * lib/freading.c: Include stdio-impl.h.
52849         (freading): Remove redundant #defines.
52850         * lib/freadptr.c: Include stdio-impl.h.
52851         (freadptr): Remove redundant #defines.
52852         * lib/freadseek.c: Include stdio-impl.h.
52853         (freadptrinc): Remove redundant #defines.
52854         * lib/fseeko.c: Include stdio-impl.h.
52855         (rpl_fseeko): Remove redundant #defines.
52856         * lib/fseterr.c: Include stdio-impl.h.
52857         (fseterr): Remove redundant #defines.
52858         * lib/fwritable.c: Include stdio-impl.h.
52859         (fwritable: Remove redundant #defines.
52860         * lib/fwriting.c: Include stdio-impl.h.
52861         (fwriting): Remove redundant #defines.
52862         * modules/fbufmode (Files): Add lib/stdio-impl.h.
52863         * modules/fflush (Files): Likewise.
52864         * modules/fpurge (Files): Likewise.
52865         * modules/freadable (Files): Likewise.
52866         * modules/freadahead (Files): Likewise.
52867         * modules/freading (Files): Likewise.
52868         * modules/freadptr (Files): Likewise.
52869         * modules/freadseek (Files): Likewise.
52870         * modules/fseeko (Files): Likewise.
52871         * modules/fseterr (Files): Likewise.
52872         * modules/fwritable (Files): Likewise.
52873         * modules/fwriting (Files): Likewise.
52874
52875 2008-04-26  Bruno Haible  <bruno@clisp.org>
52876
52877         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
52878         restore_seek_optimization, update_fpos_cache): New functions, extracted
52879         from rpl_fflush.
52880         (rpl_fflush): Use them.
52881         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
52882         (gl_REPLACE_FFLUSH): Use it.
52883
52884 2008-04-26  Bruno Haible  <bruno@clisp.org>
52885
52886         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
52887         on Solaris.
52888         * tests/test-xstrtoimax.sh: Likewise.
52889         * tests/test-xstrtoumax.sh: Likewise.
52890         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52891
52892 2008-04-26  Bruno Haible  <bruno@clisp.org>
52893
52894         * modules/memchr-tests: New file.
52895         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
52896
52897 2008-04-26  Eric Blake  <ebb9@byu.net>
52898             Bruno Haible  <bruno@clisp.org>
52899
52900         * lib/memchr.c: Include intprops.h.
52901         (__memchr): Optimize parallel detection of matching bytes. Rename local
52902         variables. Add explanatory comments.
52903
52904 2008-04-26  Bruno Haible  <bruno@clisp.org>
52905
52906         Fix module 'memchr', broken since 2000-10-28.
52907         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
52908
52909 2008-04-26  Bruno Haible  <bruno@clisp.org>
52910
52911         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
52912         comments.
52913
52914 2008-04-25  Eric Blake  <ebb9@byu.net>
52915
52916         Use native fstatat on cygwin 1.7.0.
52917         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
52918         first.
52919
52920 2008-04-23  Eric Blake  <ebb9@byu.net>
52921
52922         Improve memchr2 performance.
52923         * lib/memchr2.c (memchr2): Further optimize parallel detection of
52924         NUL bytes.
52925         * modules/memchr2 (Depends-on): Use intprops.h.
52926
52927 2008-04-23  Simon Josefsson  <simon@josefsson.org>
52928
52929         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
52930         an inline function instead of a CPP macro.  Patch by Ben Pfaff
52931         <blp@cs.stanford.edu>.
52932
52933 2008-04-23  Simon Josefsson  <simon@josefsson.org>
52934
52935         * lib/arpa_inet.in.h: New file.
52936
52937         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
52938         (Makefile.am): Sed in substitute header file.
52939
52940         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
52941         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
52942
52943         * modules/inet_ntop (configure.ac): Use
52944         gl_ARPA_INET_MODULE_INDICATOR.
52945
52946         * modules/inet_pton (configure.ac): Use
52947         gl_ARPA_INET_MODULE_INDICATOR.
52948
52949 2008-04-22  Jim Meyering  <meyering@redhat.com>
52950
52951         * modules/verify (License): Re-license as LGPLv2+.
52952
52953 2008-04-22  Simon Josefsson  <simon@josefsson.org>
52954
52955         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
52956         parameter to void* as per POSIX standard (MinGW uses char*).
52957
52958 2008-04-21  Bruno Haible  <bruno@clisp.org>
52959
52960         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
52961         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
52962         Define to replacements if REPLACE_ISWCNTRL is 1.
52963         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
52964         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
52965         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
52966         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
52967         what it fixes.
52968         * doc/posix-functions/iswalpha.texi: Likewise.
52969         * doc/posix-functions/iswblank.texi: Likewise.
52970         * doc/posix-functions/iswcntrl.texi: Likewise.
52971         * doc/posix-functions/iswdigit.texi: Likewise.
52972         * doc/posix-functions/iswgraph.texi: Likewise.
52973         * doc/posix-functions/iswlower.texi: Likewise.
52974         * doc/posix-functions/iswprint.texi: Likewise.
52975         * doc/posix-functions/iswpunct.texi: Likewise.
52976         * doc/posix-functions/iswspace.texi: Likewise.
52977         * doc/posix-functions/iswupper.texi: Likewise.
52978         * doc/posix-functions/iswxdigit.texi: Likewise.
52979         Reported by Alain Guibert.
52980
52981 2008-04-21  Bruno Haible  <bruno@clisp.org>
52982
52983         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
52984         Patch by Alain Guibert.
52985
52986 2008-04-21  Bruno Haible  <bruno@clisp.org>
52987
52988         Fix test failures on mingw.
52989         * tests/test-xstrtol.c (print_no_progname): New function.
52990         (main): Install it in error_print_progname hook.
52991         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
52992         * tests/test-xstrtoimax.sh: Likewise.
52993         * tests/test-xstrtoumax.sh: Likewise.
52994
52995 2008-04-21  Bruno Haible  <bruno@clisp.org>
52996
52997         Fix test failure on mingw.
52998         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
52999
53000 2008-04-21  Bruno Haible  <bruno@clisp.org>
53001
53002         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
53003         Actually assign a value.
53004
53005 2008-04-20  Bruno Haible  <bruno@clisp.org>
53006
53007         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
53008         take 2.
53009         * lib/canonicalize.c (canonicalize_file_name): Elide if the
53010         'canonicalize-lgpl' module is also used.
53011         * lib/canonicalize-lgpl.c: Undo last change.
53012         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
53013
53014 2008-04-20  Bruno Haible  <bruno@clisp.org>
53015
53016         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
53017         config.h. Provide _mkdir based fallback for mingw.
53018         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
53019         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
53020         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
53021         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
53022         rather than defining mkdir in config.h.
53023         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
53024         (gl_SYS_STAT_H_DEFAULTS): New macro.
53025         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
53026         HAVE_IO_H any more.
53027         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
53028         HAVE_DECL_MKDIR and HAVE_IO_H.
53029
53030 2008-04-20  Bruno Haible  <bruno@clisp.org>
53031
53032         * lib/isapipe.c: Port to native Windows platforms.
53033
53034 2008-04-20  Bruno Haible  <bruno@clisp.org>
53035
53036         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
53037
53038 2008-04-21  Eric Blake  <ebb9@byu.net>
53039
53040         Work around preprocessors that don't handle UINTMAX_MAX.
53041         * lib/memchr2.c (memchr2): Avoid embedded #if.
53042         Reported by Alain Guibert, fix suggested by Bruno Haible.
53043
53044 2008-04-21  Simon Josefsson  <simon@josefsson.org>
53045
53046         * doc/posix-functions/strftime.texi (strftime): Explain better
53047         Windows incompatibility.  Suggested by Micah Cowan
53048         <micah@cowan.name>.
53049
53050 2008-04-20  Bruno Haible  <bruno@clisp.org>
53051
53052         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
53053         unistr/u8-mblen.
53054
53055 2008-04-20  Bruno Haible  <bruno@clisp.org>
53056
53057         Fix test failure on platforms with non-GNU iconv.
53058         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
53059         (U_TO_U8): Use it, rather than u16_to_u8.
53060         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
53061         units at the end of the input string.
53062         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
53063
53064 2008-04-20  Bruno Haible  <bruno@clisp.org>
53065
53066         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
53067         when the resulting length is 0.
53068         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
53069
53070 2008-04-20  Bruno Haible  <bruno@clisp.org>
53071
53072         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
53073         works.
53074         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
53075
53076 2008-04-20  Bruno Haible  <bruno@clisp.org>
53077
53078         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
53079         * modules/tsearch-tests (configure.ac): Test for initstate function.
53080
53081 2008-04-20  Bruno Haible  <bruno@clisp.org>
53082
53083         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
53084         for nlink_t if missing.
53085         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
53086
53087 2008-04-19  Bruno Haible  <bruno@clisp.org>
53088
53089         Work around snprintf bug on Linux libc5.
53090         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
53091         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53092         gl_SNPRINTF_SIZE1.
53093         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53094         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
53095         that test failed.
53096         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
53097         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
53098         * modules/snprintf (Files): Add m4/printf.m4.
53099         * modules/vsnprintf (Files): Likewise.
53100         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
53101         * doc/posix-functions/vsnprintf.texi: Likewise.
53102
53103 2008-04-19  Bruno Haible  <bruno@clisp.org>
53104
53105         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
53106         from 0.0058 to less than 10^-7.
53107
53108 2008-04-19  Bruno Haible  <bruno@clisp.org>
53109
53110         Fix rounding when a precision is given.
53111         * lib/vasnprintf.c (is_borderline): New function.
53112         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
53113         9...9x.
53114         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
53115         %e, %g.
53116         * tests/test-vasprintf-posix.c (test_function): Likewise.
53117         * tests/test-snprintf-posix.h (test_function): Likewise.
53118         * tests/test-sprintf-posix.h (test_function): Likewise.
53119         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
53120         * tests/test-printf-posix.h (test_function): Likewise.
53121         * tests/test-printf-posix.output: Update.
53122         Reported by John Darrington <john@darrington.wattle.id.au> via
53123         Ben Pfaff <blp@cs.stanford.edu>.
53124
53125 2008-04-18  Simon Josefsson  <simon@josefsson.org>
53126
53127         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
53128         Suggested by Bruno Haible <bruno@clisp.org>.
53129
53130 2008-04-17  Bruno Haible  <bruno@clisp.org>
53131
53132         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
53133         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
53134         implementation.
53135         Patch by Bruce Merry <bmerry@gmail.com>.
53136
53137 2008-04-17  Simon Josefsson  <simon@josefsson.org>
53138
53139         * doc/posix-functions/strftime.texi (strftime): Mention that %e
53140         doesn't work under Windows.
53141
53142 2008-04-16  Bruno Haible  <bruno@clisp.org>
53143
53144         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
53145         New macros.
53146         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
53147         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
53148         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
53149         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
53150         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
53151         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
53152         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
53153         macros.
53154         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
53155         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
53156         Northern Sotho, Uighur.
53157
53158 2008-04-16  Bruno Haible  <bruno@clisp.org>
53159
53160         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
53161         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
53162         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
53163         Reported by Daniel Bergström <daniel@octocode.com>.
53164
53165 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
53166             Bruno Haible  <bruno@clisp.org>
53167
53168         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
53169         function.
53170         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
53171         New functions, mostly extracted from gl_locale_name_default.
53172         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
53173
53174 2008-04-16  Eric Blake  <ebb9@byu.net>
53175
53176         Adjust strtod detection to catch glibc 2.7 bug.
53177         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
53178         Reported by John Gatewood Ham.
53179
53180 2008-04-16  Bruno Haible  <bruno@clisp.org>
53181
53182         Add tentative support for Linux libc5.
53183         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
53184         * lib/fpurge.c (fpurge): Likewise.
53185         * lib/freadable.c (freadable): Likewise.
53186         * lib/freadahead.c (freadahead): Likewise.
53187         * lib/freading.c (freading): Likewise.
53188         * lib/freadptr.c (freadptr): Likewise.
53189         * lib/freadseek.c (freadptrinc): Likewise.
53190         * lib/fseeko.c (rpl_fseeko): Likewise.
53191         * lib/fseterr.c (fseterr): Likewise.
53192         * lib/fwritable.c (fwritable): Likewise.
53193         * lib/fwriting.c (fwriting): Likewise.
53194         Reported by Alain Guibert <alguibert+bts@free.fr>.
53195
53196 2008-04-15  Bruno Haible  <bruno@clisp.org>
53197
53198         * modules/mathl (configure.ac): Define module indicator.
53199
53200 2008-04-15  Bruno Haible  <bruno@clisp.org>
53201
53202         * lib/logl.c (logl): Remove unused variables.
53203
53204 2008-04-15  Bruno Haible  <bruno@clisp.org>
53205
53206         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
53207         fails.
53208
53209 2008-04-15  Bruno Haible  <bruno@clisp.org>
53210
53211         * lib/trim.c (trim2): Fix argument of isspace() macro.
53212
53213 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
53214
53215         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
53216         to 0.
53217         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
53218
53219 2008-04-14  Bruno Haible  <bruno@clisp.org>
53220
53221         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
53222         AC_LANG_PROGRAM argument.
53223         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
53224         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
53225         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
53226         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
53227         * m4/math_h.m4 (gl_MATH_H): Likewise.
53228         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
53229         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53230         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
53231         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
53232         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
53233         * m4/regex.m4 (gl_REGEX): Likewise.
53234         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
53235         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
53236         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53237         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
53238         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53239         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
53240         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
53241         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
53242
53243 2008-04-14  Jim Meyering  <meyering@redhat.com>
53244
53245         test-strtod: fix typos: s/abs/fabs/
53246         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
53247
53248 2008-04-13  Bruno Haible  <bruno@clisp.org>
53249
53250         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
53251         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
53252         module is also used and while not building the reloc-wrapper.
53253
53254 2008-04-13  Bruno Haible  <bruno@clisp.org>
53255
53256         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
53257
53258 2008-04-13  Bruno Haible  <bruno@clisp.org>
53259
53260         Fix AIX compilation failure introduced on 2008-04-02.
53261         * tests/test-frexp.c (exp): Undefine before redefining.
53262         * tests/test-frexpl.c (exp): Likewise.
53263
53264 2008-04-13  Bruno Haible  <bruno@clisp.org>
53265
53266         Work around a HP-UX stdio bug.
53267         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
53268         * tests/test-ftello.c (main): Likewise.
53269         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
53270         * doc/posix-functions/ftello.texi: Likewise.
53271
53272 2008-04-13  Bruno Haible  <bruno@clisp.org>
53273
53274         Make test-signbit pass on HP-UX/hppa.
53275         * tests/test-signbit.c (minus_zerol): New variable.
53276         (test_signbitl): Use it.
53277
53278 2008-04-13  Bruno Haible  <bruno@clisp.org>
53279
53280         Make truncl work on OSF/1 4.0.
53281         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
53282         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
53283         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
53284         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
53285         HAVE_DECL_TRUNCL.
53286         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
53287         HAVE_DECL_TRUNCL.
53288         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
53289
53290 2008-04-13  Bruno Haible  <bruno@clisp.org>
53291
53292         * lib/unictype.h: Remove trailing comma from enumeration definitions.
53293
53294 2008-04-13  Bruno Haible  <bruno@clisp.org>
53295
53296         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
53297         expression, so as to avoid HP-UX 11 cc compiler bug.
53298
53299 2008-04-13  Bruno Haible  <bruno@clisp.org>
53300
53301         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
53302
53303 2008-04-13  Bruno Haible  <bruno@clisp.org>
53304
53305         * lib/git-merge-changelog.c: Remove empty declaration outside of
53306         functions.
53307
53308 2008-04-13  Bruno Haible  <bruno@clisp.org>
53309
53310         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
53311
53312 2008-04-13  Bruno Haible  <bruno@clisp.org>
53313
53314         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
53315         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
53316         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
53317         also if it exists but lacks definitions of the SHUT_* macros.
53318         * modules/sys_socket (Description): Update.
53319         Reported by Elbert Pol <e.pol@chello.nl>.
53320
53321 2008-04-13  Bruno Haible  <bruno@clisp.org>
53322
53323         * lib/localcharset.c (OS2): Don't redefine if already defined.
53324         Reported by Elbert Pol <e.pol@chello.nl>.
53325
53326 2008-04-13  Bruno Haible  <bruno@clisp.org>
53327
53328         * lib/binary-io.h [__EMX__]: Include <io.h>.
53329         Reported by Elbert Pol <e.pol@chello.nl>.
53330
53331 2008-04-12  Bruno Haible  <bruno@clisp.org>
53332
53333         * lib/fpucw.h: Enable the definitions also for x86_64.
53334         Needed for NetBSD/x86_64.
53335         Reported by Thomas Klausner <tk@giga.or.at>.
53336
53337 2008-04-12  Bruno Haible  <bruno@clisp.org>
53338
53339         * tests/test-strtod.c: Include isnand.h.
53340         (main): Use isnand instead of isnan.
53341         Reported by Jim Meyering.
53342
53343 2008-04-12  Bruno Haible  <bruno@clisp.org>
53344
53345         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
53346         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
53347
53348 2008-04-12  Jim Meyering  <meyering@redhat.com>
53349
53350         * m4/math_h.m4 (gl_MATH_H): Fix typos.
53351
53352 2008-04-12  Bruno Haible  <bruno@clisp.org>
53353
53354         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
53355         Reported by Elbert Pol <e.pol@chello.nl>.
53356
53357 2008-04-12  Eric Blake  <ebb9@byu.net>
53358
53359         Work around Solaris 10 math.h bug.
53360         * m4/math_h.m4 (gl_MATH_H): Check for bug.
53361         (gl_MATH_H_DEFAULTS): Set up default.
53362         * modules/math (Makefile.am): Replace new indicators.
53363         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
53364         * tests/test-math.c (main): Test this.
53365         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
53366         * doc/posix-headers/math.texi (math.h): Mention bug.
53367         Reported by Nelson H. F. Beebe and Jim Meyering.
53368
53369 2008-04-11  Bruno Haible  <bruno@clisp.org>
53370
53371         Adapt to future versions of Apple GCC.
53372         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
53373         Reported by Peter O'Gorman <peter@pogma.com>.
53374
53375 2008-04-11  Bruno Haible  <bruno@clisp.org>
53376
53377         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
53378
53379 2008-04-11  Bruno Haible  <bruno@clisp.org>
53380
53381         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
53382
53383         * modules/getaddrinfo-tests (Makefile.am): Define
53384         test_getaddrinfo_LDADD.
53385
53386 2008-04-11  Bruno Haible  <bruno@clisp.org>
53387
53388         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
53389         (init): Fix syntax error.
53390         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
53391         is declared.
53392
53393 2008-04-11  Bruno Haible  <bruno@clisp.org>
53394
53395         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
53396         * modules/glob (Depends-on): Add stdbool.
53397
53398 2008-04-11  Bruno Haible  <bruno@clisp.org>
53399
53400         * lib/trim.c: Include <string.h>.
53401
53402 2008-04-11  Eric Blake  <ebb9@byu.net>
53403
53404         Avoid compile failure on OS/2.
53405         * lib/regex_internal.h (internal_function): Disable optimization
53406         on OS/2 (__EMX__), where it caused compiler error.
53407         Reported by Elbert Pol.
53408
53409 2008-04-11  Bruno Haible  <bruno@clisp.org>
53410
53411         Flush the standard error stream before aborting. Needed on mingw.
53412         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
53413         * tests/test-array_list.c (ASSERT): Likewise.
53414         * tests/test-array_oset.c (ASSERT): Likewise.
53415         * tests/test-avltree_list.c (ASSERT): Likewise.
53416         * tests/test-avltree_oset.c (ASSERT): Likewise.
53417         * tests/test-avltreehash_list.c (ASSERT): Likewise.
53418         * tests/test-binary-io.c (ASSERT): Likewise.
53419         * tests/test-byteswap.c (ASSERT): Likewise.
53420         * tests/test-c-ctype.c (ASSERT): Likewise.
53421         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
53422         * tests/test-c-strcasestr.c (ASSERT): Likewise.
53423         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
53424         * tests/test-c-strstr.c (ASSERT): Likewise.
53425         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
53426         * tests/test-canonicalize.c (ASSERT): Likewise.
53427         * tests/test-carray_list.c (ASSERT): Likewise.
53428         * tests/test-ceilf1.c (ASSERT): Likewise.
53429         * tests/test-ceilf2.c (ASSERT): Likewise.
53430         * tests/test-ceill.c (ASSERT): Likewise.
53431         * tests/test-count-one-bits.c (ASSERT): Likewise.
53432         * tests/test-fbufmode.c (ASSERT): Likewise.
53433         * tests/test-fflush2.c (ASSERT): Likewise.
53434         * tests/test-floorf1.c (ASSERT): Likewise.
53435         * tests/test-floorf2.c (ASSERT): Likewise.
53436         * tests/test-floorl.c (ASSERT): Likewise.
53437         * tests/test-fopen.c (ASSERT): Likewise.
53438         * tests/test-fpending.c (ASSERT): Likewise.
53439         * tests/test-fprintf-posix.c (ASSERT): Likewise.
53440         * tests/test-fpurge.c (ASSERT): Likewise.
53441         * tests/test-freadable.c (ASSERT): Likewise.
53442         * tests/test-freadahead.c (ASSERT): Likewise.
53443         * tests/test-freading.c (ASSERT): Likewise.
53444         * tests/test-freadptr.c (ASSERT): Likewise.
53445         * tests/test-freadptr2.c (ASSERT): Likewise.
53446         * tests/test-freadseek.c (ASSERT): Likewise.
53447         * tests/test-freopen.c (ASSERT): Likewise.
53448         * tests/test-frexp.c (ASSERT): Likewise.
53449         * tests/test-frexpl.c (ASSERT): Likewise.
53450         * tests/test-fseek.c (ASSERT): Likewise.
53451         * tests/test-fseeko.c (ASSERT): Likewise.
53452         * tests/test-fstrcmp.c (ASSERT): Likewise.
53453         * tests/test-ftell.c (ASSERT): Likewise.
53454         * tests/test-ftello.c (ASSERT): Likewise.
53455         * tests/test-func.c (ASSERT): Likewise.
53456         * tests/test-fwritable.c (ASSERT): Likewise.
53457         * tests/test-fwriting.c (ASSERT): Likewise.
53458         * tests/test-getdelim.c (ASSERT): Likewise.
53459         * tests/test-getline.c (ASSERT): Likewise.
53460         * tests/test-i-ring.c (ASSERT): Likewise.
53461         * tests/test-iconv-utf.c (ASSERT): Likewise.
53462         * tests/test-iconv.c (ASSERT): Likewise.
53463         * tests/test-isfinite.c (ASSERT): Likewise.
53464         * tests/test-isnand.c (ASSERT): Likewise.
53465         * tests/test-isnanf.c (ASSERT): Likewise.
53466         * tests/test-isnanl.h (ASSERT): Likewise.
53467         * tests/test-ldexpl.c (ASSERT): Likewise.
53468         * tests/test-linked_list.c (ASSERT): Likewise.
53469         * tests/test-linkedhash_list.c (ASSERT): Likewise.
53470         * tests/test-localename.c (ASSERT): Likewise.
53471         * tests/test-lseek.c (ASSERT): Likewise.
53472         * tests/test-mbscasecmp.c (ASSERT): Likewise.
53473         * tests/test-mbscasestr1.c (ASSERT): Likewise.
53474         * tests/test-mbscasestr2.c (ASSERT): Likewise.
53475         * tests/test-mbscasestr3.c (ASSERT): Likewise.
53476         * tests/test-mbscasestr4.c (ASSERT): Likewise.
53477         * tests/test-mbschr.c (ASSERT): Likewise.
53478         * tests/test-mbscspn.c (ASSERT): Likewise.
53479         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
53480         * tests/test-mbspbrk.c (ASSERT): Likewise.
53481         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
53482         * tests/test-mbsrchr.c (ASSERT): Likewise.
53483         * tests/test-mbsspn.c (ASSERT): Likewise.
53484         * tests/test-mbsstr1.c (ASSERT): Likewise.
53485         * tests/test-mbsstr2.c (ASSERT): Likewise.
53486         * tests/test-mbsstr3.c (ASSERT): Likewise.
53487         * tests/test-memchr2.c (ASSERT): Likewise.
53488         * tests/test-memmem.c (ASSERT): Likewise.
53489         * tests/test-open.c (ASSERT): Likewise.
53490         * tests/test-printf-frexp.c (ASSERT): Likewise.
53491         * tests/test-printf-frexpl.c (ASSERT): Likewise.
53492         * tests/test-printf-posix.c (ASSERT): Likewise.
53493         * tests/test-quotearg.c (ASSERT): Likewise.
53494         * tests/test-rbtree_list.c (ASSERT): Likewise.
53495         * tests/test-rbtree_oset.c (ASSERT): Likewise.
53496         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
53497         * tests/test-round1.c (ASSERT): Likewise.
53498         * tests/test-roundf1.c (ASSERT): Likewise.
53499         * tests/test-roundl.c (ASSERT): Likewise.
53500         * tests/test-signbit.c (ASSERT): Likewise.
53501         * tests/test-sleep.c (ASSERT): Likewise.
53502         * tests/test-snprintf-posix.c (ASSERT): Likewise.
53503         * tests/test-snprintf.c (ASSERT): Likewise.
53504         * tests/test-sprintf-posix.c (ASSERT): Likewise.
53505         * tests/test-stat-time.c (ASSERT): Likewise.
53506         * tests/test-strcasestr.c (ASSERT): Likewise.
53507         * tests/test-strerror.c (ASSERT): Likewise.
53508         * tests/test-striconv.c (ASSERT): Likewise.
53509         * tests/test-striconveh.c (ASSERT): Likewise.
53510         * tests/test-striconveha.c (ASSERT): Likewise.
53511         * tests/test-strsignal.c (ASSERT): Likewise.
53512         * tests/test-strstr.c (ASSERT): Likewise.
53513         * tests/test-strtod.c (ASSERT): Likewise.
53514         * tests/test-trunc1.c (ASSERT): Likewise.
53515         * tests/test-trunc2.c (ASSERT): Likewise.
53516         * tests/test-truncf1.c (ASSERT): Likewise.
53517         * tests/test-truncf2.c (ASSERT): Likewise.
53518         * tests/test-truncl.c (ASSERT): Likewise.
53519         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
53520         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
53521         * tests/test-vasnprintf.c (ASSERT): Likewise.
53522         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
53523         * tests/test-vasprintf.c (ASSERT): Likewise.
53524         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
53525         * tests/test-vprintf-posix.c (ASSERT): Likewise.
53526         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
53527         * tests/test-vsnprintf.c (ASSERT): Likewise.
53528         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
53529         * tests/test-wcwidth.c (ASSERT): Likewise.
53530         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
53531         * tests/test-xprintf-posix.c (ASSERT): Likewise.
53532         * tests/test-xvasprintf.c (ASSERT): Likewise.
53533         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
53534         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
53535         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
53536         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
53537         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
53538         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
53539         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
53540         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
53541         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
53542         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
53543         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
53544         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
53545         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
53546         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
53547         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
53548         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
53549         * tests/unictype/test-block_list.c (ASSERT): Likewise.
53550         * tests/unictype/test-block_of.c (ASSERT): Likewise.
53551         * tests/unictype/test-block_test.c (ASSERT): Likewise.
53552         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
53553         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
53554         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
53555         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
53556         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
53557         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
53558         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
53559         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
53560         * tests/unictype/test-combining.c (ASSERT): Likewise.
53561         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
53562         * tests/unictype/test-digit.c (ASSERT): Likewise.
53563         * tests/unictype/test-mirror.c (ASSERT): Likewise.
53564         * tests/unictype/test-numeric.c (ASSERT): Likewise.
53565         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
53566         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
53567         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
53568         * tests/unictype/test-scripts.c (ASSERT): Likewise.
53569         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
53570         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
53571         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
53572         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
53573         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
53574         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
53575         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
53576         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
53577         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
53578         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
53579         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
53580         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
53581         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
53582         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
53583         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
53584         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
53585         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
53586         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
53587         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
53588         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
53589         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
53590         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
53591         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
53592         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
53593         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
53594         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
53595         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
53596         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
53597         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
53598         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
53599         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
53600         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
53601         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
53602         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
53603         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
53604         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
53605         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
53606         Reported by Eric Blake.
53607
53608 2008-04-11  Bruno Haible  <bruno@clisp.org>
53609
53610         * lib/wchar.in.h: Tweak comment.
53611
53612 2008-04-11  Bruno Haible  <bruno@clisp.org>
53613
53614         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
53615         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
53616         gl_COMMON.
53617         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
53618
53619 2008-04-11  Bruno Haible  <bruno@clisp.org>
53620
53621         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
53622
53623 2008-04-11  Simon Josefsson  <simon@josefsson.org>
53624
53625         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
53626         of attempting to use non-existing /dev/*random.  Based on patch
53627         from Adam Strzelecki <ono@java.pl> in
53628         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
53629
53630 2008-04-08  Bruno Haible  <bruno@clisp.org>
53631
53632         Add tentative support for emx+gcc.
53633         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
53634         * lib/fpurge.c (fpurge): Likewise.
53635         * lib/freadable.c (freadable): Likewise.
53636         * lib/freadahead.c (freadahead): Likewise.
53637         * lib/freading.c (freading): Likewise.
53638         * lib/freadptr.c (freadptr): Likewise.
53639         * lib/freadseek.c (freadptrinc): Likewise.
53640         * lib/fseeko.c (rpl_fseeko): Likewise.
53641         * lib/fseterr.c (fseterr): Likewise.
53642         * lib/fwritable.c (fwritable): Likewise.
53643         * lib/fwriting.c (fwriting): Likewise.
53644         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
53645
53646 2008-04-09  Eric Blake  <ebb9@byu.net>
53647
53648         Avoid some autoconf warnings.
53649         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
53650         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
53651         * m4/afs.m4 (gl_AFS): Likewise.
53652         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
53653         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
53654         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
53655         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
53656         (gl_INTEGER_TYPE_SUFFIX): Likewise.
53657         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
53658         (AC_CHECK_DECLS_ONCE): Likewise.
53659         Rename file...
53660         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
53661         gnulib-tool requires autoconf 2.59 or better.
53662         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
53663
53664 2008-04-08  Eric Blake  <ebb9@byu.net>
53665
53666         Use 'git describe --match' if present (added in git 1.5.5).
53667         * build-aux/git-version-gen: Limit result to tags that match 'v*'
53668         if possible.
53669
53670 2008-04-08  Bruno Haible  <bruno@clisp.org>
53671
53672         Add tentative support for OpenServer.
53673         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
53674         _ptr, _cnt.
53675         * lib/fpurge.c (fpurge): Likewise.
53676         * lib/freadable.c (freadable): Likewise.
53677         * lib/freadahead.c (freadahead): Likewise.
53678         * lib/freading.c (freading): Likewise.
53679         * lib/freadptr.c (freadptr): Likewise.
53680         * lib/freadseek.c (freadptrinc): Likewise.
53681         * lib/fseeko.c (rpl_fseeko): Likewise.
53682         * lib/fseterr.c (fseterr): Likewise.
53683         * lib/fwritable.c (fwritable): Likewise.
53684         * lib/fwriting.c (fwriting): Likewise.
53685         Reported by Roger Cornelius <rac@tenzing.org> and
53686         Brian K. White <brian@aljex.com>.
53687
53688 2008-04-06  Jim Meyering  <meyering@redhat.com>
53689
53690         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
53691
53692 2008-04-06  Bruno Haible  <bruno@clisp.org>
53693
53694         Avoid possible error with non-ASCII bytes in UTF-8 locales.
53695         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
53696         * tests/test-printf-posix.sh: Likewise.
53697         * tests/test-vfprintf-posix.sh: Likewise.
53698         * tests/test-vprintf-posix.sh: Likewise.
53699         * tests/test-xprintf-posix.sh: Likewise.
53700
53701 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53702
53703         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
53704         hide error from 'ls', needed on OS/2.
53705         Report by Elbert Pol <elbert.pol@gmail.com>.
53706
53707 2008-04-04  Eric Blake  <ebb9@byu.net>
53708
53709         Make test-fseeko.c failures meaningful.
53710         * tests/test-fseeko.c: Print line number on failure.
53711         * tests/test-fseek.c: Likewise.
53712         Reported by Nelson H. F. Beebe.
53713
53714         Improve strtod bug detection check.
53715         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
53716         required for Solaris 10.
53717         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
53718
53719 2008-04-04  Bruno Haible  <bruno@clisp.org>
53720
53721         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
53722         by m4/setenv.m4.
53723
53724 2008-04-03  Eric Blake  <ebb9@byu.net>
53725
53726         Ensure sane .version contents.
53727         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
53728         version string.
53729         * build-aux/git-version-gen: Improve documentation.
53730
53731         Make GNU make output nicer.
53732         * top/GNUmakefile [!_have-Makefile]: Add dependency on
53733         MAKECMDGOALS to enforce message for all command line targets.  Set
53734         srcdir for use in maint.mk.
53735
53736         Another maintainer tweak.
53737         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
53738         a target that regenerates version.
53739
53740 2008-04-03  Jim Meyering  <meyering@redhat.com>
53741
53742         vc-list-files: don't cause coreutils "make po-check" failure
53743         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
53744
53745 2008-04-03  Eric Blake  <ebb9@byu.net>
53746
53747         Allow VPATH usage of vc-list-files.
53748         * build-aux/vc-list-files (scriptversion): Add timestamp.
53749         (options): Add --help, --version, -C.
53750         (CVS): Support installed cvsu.
53751
53752 2008-04-02  Bruno Haible  <bruno@clisp.org>
53753
53754         Avoid some "statement with no effect" warnings from gcc.
53755         * tests/test-wctype.c (main): Explicitly ignore unused values.
53756         Reported by Jim Meyering.
53757
53758 2008-04-02  Jim Meyering  <meyering@redhat.com>
53759
53760         Avoid some warnings from "gcc -Wshadow".
53761         * tests/test-frexp.c (exp): Define to a different identifier.
53762         * tests/test-frexpl.c (exp): Likewise.
53763
53764 2008-04-03  Jim Meyering  <meyering@redhat.com>
53765
53766         bootstrap: remove dangling *.[ch] symlinks from lib
53767         * build-aux/bootstrap [dangling symlink removal]: Move find's
53768         -depth option to precede all others, to avoid a warning.
53769         Remove *.[ch] files too, and from "$source_base" (usually lib/).
53770
53771 2008-04-02  Bruno Haible  <bruno@clisp.org>
53772
53773         Avoid some warnings from "gcc -Wshadow".
53774         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
53775         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
53776         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
53777         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
53778         Reported by Jim Meyering.
53779
53780 2008-04-01  Bruno Haible  <bruno@clisp.org>
53781
53782         Fix test to work on IRIX 6.5 with cc.
53783         * tests/test-math.c (numeric_equal): New function.
53784         (main): Use it.
53785
53786 2008-04-01  Bruno Haible  <bruno@clisp.org>
53787
53788         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
53789
53790 2008-04-01  Bruno Haible  <bruno@clisp.org>
53791
53792         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
53793         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53794         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
53795         (Depends-on): Remove math.
53796
53797         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
53798         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53799         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
53800         (Depends-on): Remove math.
53801
53802         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
53803         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53804         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
53805         (Depends-on): Remove math.
53806         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
53807         (Depends-on): Remove math.
53808
53809         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
53810         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53811         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
53812         (Depends-on): Remove math.
53813         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
53814         (Depends-on): Remove math.
53815
53816         * tests/test-round1.c: Include nan.h.
53817         (main): Use NaNd instead of NAN.
53818         * modules/round-tests (Files): Add tests/nan.h.
53819
53820         * tests/test-trunc1.c: Include nan.h.
53821         (main): Use NaNd instead of NAN.
53822         * modules/trunc-tests (Files): Add tests/nan.h.
53823
53824         * tests/test-roundf1.c: Include nan.h.
53825         (main): Use NaNf instead of NAN.
53826         * modules/roundf-tests (Files): Add tests/nan.h.
53827
53828         * tests/test-truncf1.c: Include nan.h.
53829         (main): Use NaNf instead of NAN.
53830         * modules/truncf-tests (Files): Add tests/nan.h.
53831
53832         * tests/test-ceilf1.c: Include nan.h.
53833         (main): Use NaNf instead of NAN.
53834         * modules/ceilf-tests (Files): Add tests/nan.h.
53835
53836         * tests/test-floorf1.c: Include nan.h.
53837         (main): Use NaNf instead of NAN.
53838         * modules/floorf-tests (Files): Add tests/nan.h.
53839
53840         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
53841         (main): Use NaNf instead of NAN.
53842         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
53843
53844         * tests/test-isnand.c: Include nan.h instead of <math.h>.
53845         (main): Use NaNd instead of NAN.
53846         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
53847
53848         * tests/test-frexp.c: Include nan.h.
53849         (main): Use NaNd instead of NAN.
53850         * modules/frexp-tests (Files): Add tests/nan.h.
53851
53852         * lib/isnan.c: Don't include <math.h>.
53853         (FUNC): Don't use NAN macro.
53854         * modules/isnand-nolibm (Depends-on): Remove math.
53855         * modules/isnanf-nolibm (Depends-on): Remove math.
53856         * modules/isnanl (Depends-on): Remove math.
53857         * modules/isnanl-nolibm (Depends-on): Remove math.
53858
53859         * tests/nan.h: New file.
53860
53861 2008-04-01  Eric Blake  <ebb9@byu.net>
53862
53863         Fix typos.
53864         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
53865         values to be the right type.
53866
53867         For now, cater to gnulib strtod inaccuracies.
53868         * tests/test-strtod.c (main): Allow 1-ulp error on expected
53869         fractional results.  While not as nice from a QoI perspective, it
53870         is a quicker patch than correctly implementing decimal to binary
53871         rounding.
53872
53873 2008-03-31  Eric Blake  <ebb9@byu.net>
53874
53875         Guarantee a definition of NAN.
53876         * lib/math.in.h (NAN): Define if missing.
53877         * tests/test-math.c (main): Test it.
53878         * doc/posix-headers/math.texi (math.h): Document this.
53879         * lib/isnan.c (rpl_isnand): Use it.
53880         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
53881         * tests/test-floorf1.c (NaN): Likewise.
53882         * tests/test-frexp.c (NaN): Likewise.
53883         * tests/test-isnand.c (NaN): Likewise.
53884         * tests/test-isnanf.c (NaN): Likewise.
53885         * tests/test-round1.c (NaN): Likewise.
53886         * tests/test-roundf1.c (NaN): Likewise.
53887         * tests/test-snprintf-posix.h (NaN): Likewise.
53888         * tests/test-sprintf-posix.h (NaN): Likewise.
53889         * tests/test-trunc1.c (NaN): Likewise.
53890         * tests/test-truncf1.c (NaN): Likewise.
53891         * tests/test-vasnprintf-posix.c (NaN): Likewise.
53892         * tests/test-vasprintf-posix.c (NaN): Likewise.
53893         * modules/isnand-nolibm (Depends-on): Add math.
53894         * modules/isnanf-nolibm (Depends-on): Likewise.
53895         * modules/isnanl (Depends-on): Likewise.
53896         * modules/isnanl-nolibm (Depends-on): Likewise.
53897         * modules/snprintf-posix-tests (Depends-on): Likewise.
53898         * modules/sprintf-posix-tests (Depends-on): Likewise.
53899         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
53900         * modules/vsprintf-posix-tests (Depends-on): Likewise.
53901         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
53902         * modules/vasprintf-posix-tests (Depends-on): Likewise.
53903
53904 2008-03-31  Bruno Haible  <bruno@clisp.org>
53905
53906         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
53907         * doc/posix-functions/strtod.texi: Likewise.
53908
53909 2008-03-31  Bruno Haible  <bruno@clisp.org>
53910
53911         * tests/test-strtod.c (main): Don't use C99 syntax.
53912
53913 2008-03-31  Bruno Haible  <bruno@clisp.org>
53914
53915         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
53916         Reported by Eric Blake.
53917
53918 2008-03-31  Jim Meyering  <meyering@redhat.com>
53919
53920         Don't compare actual signbit return values.
53921         * tests/test-strtod.c (main): Rather, compare only their
53922         zero/non-zero nature.
53923
53924 2008-03-31  Eric Blake  <ebb9@byu.net>
53925
53926         More strtod documentation.
53927         * doc/posix-functions/strtod.texi (strtod): Interpret more test
53928         failures as distinct bugs.
53929
53930 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
53931
53932         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
53933         Problem reported by Erik Benada in
53934         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
53935
53936 2008-03-30  Bruno Haible  <bruno@clisp.org>
53937
53938         * tests/test-strtod.c: Add comments about which assertion fails on which
53939         platform.
53940         * doc/posix-functions/strtod.texi: Add info about many more platforms.
53941
53942 2008-03-30  Eric Blake  <ebb9@byu.net>
53943
53944         Test signbit behavior on zeros.
53945         * tests/test-signbit.c (test_signbitf): Add tests for zero.
53946         (test_signbitd, test_signbitl): Likewise.
53947
53948         More strtod touchups.
53949         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
53950         sign of negative underflow, for now.  Use .5, not .1.
53951         * doc/posix-functions/strtod.texi (strtod): Mention these
53952         limitations.
53953         Reported by Jim Meyering.
53954
53955 2008-03-30  Bruno Haible  <bruno@clisp.org>
53956
53957         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
53958         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
53959
53960 2008-03-30  Bruno Haible  <bruno@clisp.org>
53961
53962         Avoid failure when attempting to return empty iconv results on some
53963         platforms.
53964         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
53965         allocation, don't report ENOMEM when the resulting string is empty.
53966
53967 2008-03-30  Bruno Haible  <bruno@clisp.org>
53968
53969         Fix buffer overrun.
53970         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
53971         Don't consider the width for tmp_length. Check count against tmp_length
53972         before doing the padding. Ensure enough allocation during padding.
53973
53974 2008-03-30  Eric Blake  <ebb9@byu.net>
53975
53976         strtod touchups.
53977         * lib/strtod.c (strtod): Avoid compiler warnings.
53978         Reported by Jim Meyering.
53979
53980 2008-03-30  Bruno Haible  <bruno@clisp.org>
53981
53982         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
53983         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
53984         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
53985         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
53986         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
53987         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
53988         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
53989         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
53990
53991         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
53992         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
53993         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
53994         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
53995         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
53996         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
53997         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
53998         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
53999
54000         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
54001         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
54002         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
54003         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
54004         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
54005         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
54006         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
54007         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
54008
54009         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
54010         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
54011
54012         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
54013         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
54014
54015         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
54016         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
54017
54018         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
54019         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
54020         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
54021
54022         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
54023         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
54024         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
54025
54026         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
54027         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
54028         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
54029
54030         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
54031         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
54032         * modules/vasprintf (Depends-on): Add EOVERFLOW.
54033
54034         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
54035         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
54036         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
54037         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
54038         (Depends-on): Add EOVERFLOW.
54039         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
54040         (Depends-on): Add EOVERFLOW.
54041         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
54042         (Depends-on): Add EOVERFLOW.
54043         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
54044         (Depends-on): Add EOVERFLOW.
54045         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
54046         (Depends-on): Add EOVERFLOW.
54047         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
54048         (Depends-on): Add EOVERFLOW.
54049         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
54050         (Depends-on): Add EOVERFLOW.
54051         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
54052         (Depends-on): Add EOVERFLOW.
54053
54054         * lib/sprintf.c (EOVERFLOW): Remove fallback.
54055         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
54056         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
54057
54058         * lib/snprintf.c (EOVERFLOW): Remove fallback.
54059         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
54060         * modules/snprintf (Depends-on): Add EOVERFLOW.
54061
54062         * lib/poll.c (EOVERFLOW): Remove fallback.
54063         * modules/poll (Depends-on): Add EOVERFLOW.
54064
54065         * lib/getugroups.c (EOVERFLOW): Remove fallback.
54066         * modules/getugroups (Depends-on): Add EOVERFLOW.
54067
54068         * lib/getdelim.c (EOVERFLOW): Remove fallback.
54069         * modules/getdelim (Depends-on): Add EOVERFLOW.
54070
54071         * lib/ftell.c (EOVERFLOW): Remove fallback.
54072         * modules/ftell (Depends-on): Add EOVERFLOW.
54073
54074         * lib/fprintf.c (EOVERFLOW): Remove fallback.
54075         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
54076         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
54077
54078         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
54079
54080         * modules/EOVERFLOW-tests: New file.
54081         * tests/test-EOVERFLOW.c: New file.
54082
54083         * modules/EOVERFLOW: New file.
54084         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
54085
54086 2008-03-30  Bruno Haible  <bruno@clisp.org>
54087
54088         Fix bug introduced on 2007-06-10.
54089         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
54090         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
54091
54092 2008-03-30  Bruno Haible  <bruno@clisp.org>
54093
54094         Improve freadseek's efficiency after ungetc.
54095         * lib/freadseek.c: Include freadahead.h.
54096         (freadptrinc): New function, extracted from freadseek.
54097         (freadseek): Use it in a loop. Use freadahead to determine the number
54098         of loop iterations.
54099         * modules/freadseek (Depends-on): Add freadahead.
54100         (configure.ac): Require AC_C_INLINE.
54101
54102 2008-03-30  Bruno Haible  <bruno@clisp.org>
54103
54104         * lib/freadseek.c (freadseek): Don't ignore the return value of
54105         freadptr.
54106
54107 2008-03-29  Eric Blake  <ebb9@byu.net>
54108
54109         Add hex float support.
54110         * modules/strtod (Depends-on): Add c-ctype.
54111         (Link): Mention POW_LIB.
54112         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
54113         whitespace between 'e' and exponent.
54114         * tests/test-strtod.c (main): Enable hex float tests.
54115         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
54116         now provides.
54117
54118         Document various strtod bugs, with some fixes.
54119         * doc/posix-functions/strtod.texi (strtod): Document bugs with
54120         "-0x", "inf", "nan", and hex constants.
54121         * doc/posix-functions/atof.texi (atof): Likewise.
54122         * modules/stdlib (Makefile.am): Support strtod.
54123         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
54124         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
54125         detect additional strtod bugs.
54126         * lib/stdlib.in.h (rpl_strtod): Add declarations.
54127         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
54128         bool where appropriate.  Parse 'inf' and 'nan'.
54129         * tests/test-strtod.c: New file.
54130         * modules/strtod (Depends-on): Add stdbool, stdlib.
54131         (configure.ac): Turn on module indicator.
54132         * modules/strtod-tests: New module.
54133
54134 2008-03-29  Eric Blake  <ebb9@byu.net>
54135
54136         Fix ftell on mingw.
54137         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
54138         * modules/ftell-tests (Depends-on): Add binary-io.
54139         * modules/ftello-tests (Depends-on): Likewise.
54140         * tests/test-ftell.c (main): Enhance test to cover behavior after
54141         ungetc.  Enforce binary mode.
54142         * tests/test-ftello.c (main): Likewise.
54143
54144         Pass test-freadseek on cygwin.
54145         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
54146         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
54147         ungetc buffer.
54148
54149         * tests/test-fflush2.c (main): Fix typo.
54150
54151 2008-03-29  Bruno Haible  <bruno@clisp.org>
54152
54153         * tests/test-fflush2.c (main): Temporarily disable the contents of
54154         this test.
54155         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
54156         Reported by Eric Blake.
54157
54158 2008-03-28  Simon Josefsson  <simon@josefsson.org>
54159
54160         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
54161         (GC_SHA224_DIGEST_SIZE): Add.
54162
54163         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
54164         (gc_hash_digest_length): Likewise.
54165         (gc_hash_buffer): Likewise.
54166
54167 2008-03-25  Bruno Haible  <bruno@clisp.org>
54168
54169         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
54170         detail which gettext release to use.
54171         Reported by Simon Josefsson.
54172
54173 2008-03-26  Jim Meyering  <meyering@redhat.com>
54174
54175         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
54176         * modules/gnumakefile (clean-GNUmakefile): Also, use
54177         test ... && ... || : syntax rather than if-then ... fi.
54178
54179         gnumakefile: Don't double-quote-expand $(VPATH) value.
54180         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
54181
54182 2008-03-24  Eric Blake  <ebb9@byu.net>
54183
54184         Alter GNUmakefile to install into top directory.
54185         * modules/maintainer-makefile: Split, and add dependency...
54186         * modules/gnumakefile: to this new module.
54187         * build-aux/GNUmakefile: Move...
54188         * top/GNUmakefile: ...here.
54189         * build-aux/maint.mk: Move...
54190         * top/maint.mk: ...here.
54191         * MODULES.html.sh (Support for maintaining...): Document new
54192         module.
54193
54194 2008-03-23  Bruno Haible  <bruno@clisp.org>
54195
54196         * gnulib-tool: New options --vc-files, --no-vc-files.
54197         (func_usage): Document them.
54198         (vc_files): New variable.
54199         (func_import): Consider vc_files.
54200         (func_create_testdir): Set vc_files to empty.
54201         Suggested by Jim Meyering and Karl Berry.
54202
54203 2008-03-23  Bruno Haible  <bruno@clisp.org>
54204
54205         Fix regex compilation error on HP-UX 11.
54206         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
54207         * modules/regex (Files): Add m4/mbstate_t.m4.
54208         Reported by Ton Voon <ton.voon@altinity.com>.
54209
54210 2008-03-23  Bruno Haible  <bruno@clisp.org>
54211
54212         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
54213
54214 2008-03-23  Eric Blake  <ebb9@byu.net>
54215             Bruno Haible  <bruno@clisp.org>
54216
54217         Install files from top/ in the destination directory.
54218         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
54219         augmentation also for the files from top/.
54220         (func_import, func_create_testdir): Rewrite file names:
54221         top/filename -> filename.
54222
54223 2008-03-23  Bruno Haible  <bruno@clisp.org>
54224
54225         Tweak "gnulib --version" output.
54226         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
54227
54228 2008-03-23  Bruno Haible  <bruno@clisp.org>
54229
54230         Tweak "gnulib --version" output.
54231         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
54232         rather than contents of ChangeLog, when possible.
54233
54234 2008-03-21  Eric Blake  <ebb9@byu.net>
54235
54236         More --version tweaks.
54237         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
54238         date of last ChangeLog entry.
54239
54240 2008-03-21  Jim Meyering  <meyering@redhat.com>
54241
54242         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
54243
54244 2008-03-20  Eric Blake  <ebb9@byu.net>
54245
54246         VPATH fix.
54247         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
54248
54249 2008-03-20  Simon Josefsson  <simon@josefsson.org>
54250
54251         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
54252         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
54253
54254 2008-03-20  Eric Blake  <ebb9@byu.net>
54255
54256         Sync GNUmakefile with coreutils.
54257         * build-aux/GNUmakefile (have-Makefile): Rename...
54258         (_have-Makefile): ...to this, for namespace consideration.
54259         (GNUmakefile.cfg): Include, if present.
54260         (_autoreconf): Define a default.
54261         (_is-dist-target): New rule for rebuilds to pick up intra-release
54262         version.
54263         (maint-cfg.mk): Rename...
54264         (cfg.mk): ...to this.
54265
54266 2008-03-18  Jim Meyering  <meyering@redhat.com>
54267
54268         New script and module: mktempd
54269         * MODULES.html.sh (maint+release support): Add mktempd.
54270         * build-aux/mktempd: New file.
54271         * modules/mktempd: New file.
54272
54273 2008-03-15  Jim Meyering  <meyering@redhat.com>
54274
54275         Undo last change.
54276         * lib/sha1.c, lib/md5.c: 63 != ~63.
54277         Reported by Andreas Schwab.
54278
54279         sha1.c, md5.c: Hoist a redundant expression.
54280         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
54281         "ctx->buflen" only once, before calling *_process_block.
54282         * lib/md5.c (md5_process_bytes): Likewise.
54283
54284 2008-03-14  Eric Blake  <ebb9@byu.net>
54285
54286         Bump copyright year in files generated by gnulib-tool.
54287         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
54288         gnulib-tool, rather than hard-coding it.
54289
54290         Fix 'gnulib-tool --version' output to work with git.
54291         * gnulib-tool (func_gnulib_dir): New function, extracted from...
54292         (startup): ...here.
54293         (func_version): Use it to invoke git-version-gen, rather than
54294         relying on CVS keyword expansion.  Modernize wording.
54295         (cvsdatestamp, last_checkin_date, version): Kill unused
54296         variables.
54297
54298 2008-03-12  Jim Meyering  <meyering@redhat.com>
54299
54300         Recognize optional cast of the argument to free.
54301         * build-aux/useless-if-before-free: Update regexps.
54302
54303         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
54304
54305 2008-03-11  Bruno Haible  <bruno@clisp.org>
54306
54307         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
54308         by a single package.
54309         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
54310         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
54311         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
54312         Reported by Sam Steingold <sds@gnu.org>.
54313
54314 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
54315
54316         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
54317         repositories.
54318
54319 2008-03-11  Bruno Haible  <bruno@clisp.org>
54320
54321         Avoid conflicts between local macro definitions.
54322         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
54323         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
54324
54325 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
54326             Bruno Haible  <bruno@clisp.org>
54327
54328         Make va_copy work with some version of xlc on AIX 5.1.
54329         * lib/stdarg.in.h: New file.
54330         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
54331         On AIX, use a <stdarg.h> file substitute.
54332         * modules/stdarg (Files): Add lib/stdarg.in.h.
54333         (Depends-on): Add include_next.
54334         (Makefile.am): Build a stdarg.h substitute if requested.
54335         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
54336
54337 2008-03-10  Bruno Haible  <bruno@clisp.org>
54338
54339         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
54340         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
54341         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
54342
54343 2008-03-10  Bruno Haible  <bruno@clisp.org>
54344
54345         * modules/stdlib (Depends-on): Add include_next, remove
54346         absolute-header.
54347
54348 2008-03-09  Bruno Haible  <bruno@clisp.org>
54349
54350         * lib/freadahead.h (freadahead): Document more precisely.
54351         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
54352         the sum of both buffer sizes.
54353         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
54354         * NEWS: Document the change.
54355
54356 2008-03-09  Bruno Haible  <bruno@clisp.org>
54357
54358         Extend freadptr to return also the buffer size.
54359         * lib/freadptr.h (freadptr): Add sizep argument.
54360         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
54361         (freadptr): Add sizep argument. Determine buffer size like freadahead
54362         does.
54363         * tests/test-freadptr.c: Don't include freadahead.h.
54364         (main): Adapt for new calling convention of freadptr.
54365         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
54366         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
54367         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
54368         tests/test-freadptr2.sh.
54369         (Depends): Remove freadahead.
54370         (TESTS): Add test-freadptr2.sh.
54371         (check_PROGRAMS): Add test-freadptr2.
54372
54373 2008-03-09  Bruno Haible  <bruno@clisp.org>
54374
54375         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
54376         Report and solution by Simon Josefsson.
54377
54378 2008-03-06  Bruno Haible  <bruno@clisp.org>
54379
54380         Make fflush after ungetc work on BSD platforms.
54381         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
54382         * tests/test-fflush2.c: New file.
54383         * tests/test-fflush2.sh: New file.
54384         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
54385         tests/test-fflush2.c.
54386         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
54387         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
54388
54389 2008-03-06  Eric Blake  <ebb9@byu.net>
54390
54391         Likewise for ftello.
54392         * modules/ftello (Dependencies): Add extensions.
54393         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
54394
54395 2008-03-06  Bruno Haible  <bruno@clisp.org>
54396
54397         * modules/fseeko (Dependencies): Add extensions.
54398         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
54399         Needed on glibc systems.
54400
54401 2008-03-06  Bruno Haible  <bruno@clisp.org>
54402
54403         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
54404         email address.
54405         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54406
54407 2008-03-06  Bruno Haible  <bruno@clisp.org>
54408
54409         * users.txt: Add libgnupdf.
54410
54411 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
54412
54413         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
54414         (Header File Substitutes, Function Substitutes,
54415         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
54416         (Build robot for gnulib): Fix typo.
54417
54418 2008-03-06  Bruno Haible  <bruno@clisp.org>
54419
54420         * doc/gnulib-tool.texi (VCS Issues): Small updates.
54421         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54422
54423 2008-03-06  Bruno Haible  <bruno@clisp.org>
54424
54425         * doc/func.texi: New file, extracted from doc/gnulib.texi.
54426         * doc/gnulib.texi: Include it.
54427
54428 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54429
54430         * modules/func (License): Change license to unlimited; there was
54431         no LGPL parts in the module anyway.
54432
54433 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54434
54435         * modules/__func__: Renamed to modules/func.
54436         * modules/__func__-tests: Renamed to modules/func-tests.
54437         * tests/test-__func__.c: Renamed to tests/test-func.c.
54438         * m4/__func__.m4: Renamed to m4/func.m4.
54439         * doc/gnulib.texi (__func__): Section renamed to func.
54440         Suggested by Eric Blake <ebb9@byu.net>.
54441
54442 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54443
54444         * doc/gnulib.texi (__func__): Use C99 terminology when talking
54445         about __func__.  Make example self-contained.  Suggested by Eric
54446         Blake <ebb9@byu.net>.
54447
54448         * tests/test-__func__.c (main): Avoid extraneous () around __func.
54449         Suggested by Eric Blake <ebb9@byu.net>.
54450
54451 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54452
54453         * modules/__func__: New file.
54454         * modules/__func__-tests: New file.
54455         * tests/test-__func__.c: New file.
54456         * m4/__func__.m4: New file.
54457         * doc/gnulib.texi (__func__): Document __func__ module.
54458
54459 2008-03-05  Simon Josefsson  <simon@josefsson.org>
54460
54461         * modules/byteswap (License): Re-license as LGPLv2+.
54462
54463 2008-03-05  Simon Josefsson  <simon@josefsson.org>
54464
54465         * doc/Makefile: Add pdf target.
54466
54467 2008-03-05  Simon Josefsson  <simon@josefsson.org>
54468
54469         * modules/inline (License): Use 'unlimited', since there are only
54470         *.m4 files in this module.
54471
54472 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
54473             Bruno Haible  <bruno@clisp.org>
54474
54475         Add support for HP C 7.1 on OpenVMS 8.3.
54476         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
54477
54478 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
54479
54480         Update VMS specifics.
54481         * lib/getopt.c [VMS]: Remove include of unixlib.h.
54482
54483 2008-03-02  Jim Meyering  <meyering@redhat.com>
54484
54485         Remove the last dependency on the "free" module.
54486         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
54487         Reported by Bob Proulx.
54488
54489         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
54490
54491         Remove useless "if" tests before free.  Deprecate "free" module.
54492         * doc/posix-functions/free.texi: Mention that this
54493         module is no longer useful.
54494         * modules/free (Notice): Say this module is obsolete.
54495         * modules/readutmp (Depends-on): Remove free.
54496         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
54497         * lib/putenv.c (putenv): Likewise.
54498         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
54499         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
54500         * tests/test-c-strcasestr.c (main): Likewise.
54501         * tests/test-c-strstr.c (main): Likewise.
54502         * tests/test-mbscasestr1.c (main): Likewise.
54503         * tests/test-mbscasestr2.c (main): Likewise.
54504         * tests/test-mbsstr1.c (main): Likewise.
54505         * tests/test-mbsstr2.c (main): Likewise.
54506         * tests/test-memmem.c (main): Likewise.
54507         * tests/test-strcasestr.c (main): Likewise.
54508         * tests/test-striconv.c (main): Likewise.
54509         * tests/test-striconveh.c (main): Likewise.
54510         * tests/test-striconveha.c (main): Likewise.
54511         * tests/test-strstr.c (main): Likewise.
54512
54513         * build-aux/git-version-gen: Adjust a comment and the Usage string.
54514
54515         bootstrap: sync from coreutils again
54516         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
54517
54518 2008-03-01  Jim Meyering  <meyering@redhat.com>
54519
54520         bootstrap: sync from coreutils
54521         * build-aux/bootstrap (update_po_files): Copy a .po file into place
54522         also when the target doesn't exist.
54523
54524 2008-03-01  Eric Blake  <ebb9@byu.net>
54525
54526         Fix bugs in last patch.
54527         * lib/memchr2.c (memchr2): Fix typo.
54528         * tests/test-memchr2.c: Test previous bug, and don't use GNU
54529         extension.
54530         Reported by Bruce Korb.
54531
54532         New module 'memchr2'.
54533         * modules/memchr2: New file.
54534         * modules/memchr2-tests: Likewise.
54535         * lib/memchr2.h: Likewise.
54536         * lib/memchr2.c: Likewise, based on memchr.c.
54537         * tests/test-memchr2.c: New test.
54538         * MODULES.html.sh (String handling): Add memchr2.
54539
54540 2008-02-29  Bruno Haible  <bruno@clisp.org>
54541
54542         * modules/freadseek-tests: New file.
54543         * tests/test-freadseek.sh: New file.
54544         * tests/test-freadseek.c: New file.
54545
54546         New module 'freadseek'.
54547         * modules/freadseek: New file.
54548         * lib/freadseek.h: New file.
54549         * lib/freadseek.c: New file.
54550         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
54551
54552 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
54553
54554         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
54555         wydawca.
54556
54557         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
54558         program_invocation_name and program_invocation_short_name are
54559         present.
54560
54561 2008-02-28  Bruno Haible  <bruno@clisp.org>
54562
54563         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
54564         * tests/test-freadptr.sh: Also test non-seekable stdin.
54565
54566 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
54567
54568         * build-aux/bootstrap (source_base, m4_base)
54569         (doc_base, tests_base): New variables.
54570         (gnulib_tool_options): Do not hardcode base directories, use
54571         the above variables instead.
54572
54573 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
54574
54575         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
54576
54577 2008-02-28  Bruno Haible  <bruno@clisp.org>
54578
54579         * modules/freadptr-tests: New file.
54580         * tests/test-freadptr.sh: New file.
54581         * tests/test-freadptr.c: New file.
54582
54583         New module 'freadptr'.
54584         * modules/freadptr: New file.
54585         * lib/freadptr.h: New file.
54586         * lib/freadptr.c: New file.
54587         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
54588
54589 2008-02-26  Karl Berry  <karl@freefriends.org>
54590
54591         Sync from Libtool:
54592         * libltdl/argz.c (argz_add, argz_count): New functions.
54593         * libltdl/argz.in.h: Declare them.
54594         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
54595
54596 2008-02-22  Bruno Haible  <bruno@clisp.org>
54597
54598         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
54599         is a pointer type.  Needed for HP-UX 10.
54600         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
54601         * doc/posix-functions/gmtime_r.texi: Likewise.
54602         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
54603
54604 2008-02-24  Bruno Haible  <bruno@clisp.org>
54605
54606         * modules/environ-tests: New file.
54607         * tests/test-environ.c: New file.
54608
54609         New module 'environ'.
54610         * modules/environ: New file.
54611         * lib/unistd.in.h (environ): New declaration.
54612         * m4/environ.m4: New file.
54613         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
54614         after use.
54615         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
54616         HAVE_DECL_ENVIRON.
54617         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
54618         HAVE_DECL_ENVIRON.
54619         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
54620         wrong claim that 'environ' is missing on some systems.
54621         * modules/execute (Depends-on): Add environ.
54622         * lib/execute.c (environ): Remove fallback declaration.
54623         * modules/pipe (Depends-on): Add environ.
54624         * lib/pipe.c (environ): Remove fallback declaration.
54625         * modules/setenv (Depends-on): Add environ.
54626         * lib/setenv.c (environ): Remove fallback declaration.
54627         * modules/unsetenv (Depends-on): Add environ.
54628         * lib/unsetenv.c (environ): Remove fallback declaration.
54629         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
54630         m4/environ.m4.
54631         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
54632         (gl_PREREQ_UNSETENV): Likewise.
54633
54634 2008-02-24  Bruno Haible  <bruno@clisp.org>
54635
54636         * doc/posix-functions/environ.texi: Document the MacOS X problem.
54637
54638 2008-02-20  Bob Proulx  <bob@proulx.com>
54639
54640         Enable use of older two part flavor 'git describe'.
54641         * build-aux/git-version-gen: If using the older two part flavor of
54642         git version then recreate the third part now present in the
54643         newer three part flavor of git describe.
54644
54645 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
54646
54647         * lib/fts.c (fts_build): Typo correction to comment.
54648
54649 2008-02-17  Bruno Haible  <bruno@clisp.org>
54650
54651         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
54652         generating no-op conflicts.
54653
54654 2008-02-17  Bruno Haible  <bruno@clisp.org>
54655
54656         Speed up by 10%.
54657         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
54658         result_entries, rather than an index-based loop.
54659
54660 2008-02-17  Bruno Haible  <bruno@clisp.org>
54661
54662         Speed up by 25%.
54663         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
54664         'hashcode_cached'.
54665         (entry_create): New function.
54666         (entry_hashcode): Use the cached hashcode if possible.
54667         (read_changelog_file, try_split_merged_entry): Use entry_create.
54668
54669 2008-02-17  Bruno Haible  <bruno@clisp.org>
54670
54671         Speed up from O(n^2) to O(n) for long ChangeLog files.
54672         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
54673         (read_changelog_file): Change implementation of entries_reversed list
54674         to rbtreehash.
54675         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
54676
54677 2008-02-17  Bruno Haible  <bruno@clisp.org>
54678
54679         New option --split-merged-entry.
54680         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
54681         (find_paragraph_end, try_split_merged_entry): New functions.
54682         (long_options): Add option --split-merged-entry.
54683         (usage): Document option --split-merged-entry.
54684         (main): Implement option --split-merged-entry.
54685         Reported by Eric Blake.
54686
54687 2008-02-17  Bruno Haible  <bruno@clisp.org>
54688
54689         * lib/git-merge-changelog.c: Include c-strstr.h.
54690         (main): Support the "git pull --rebase" situation.
54691         * modules/git-merge-changelog (Depends-on): Add c-strstr.
54692         Reported by Eric Blake.
54693
54694 2008-02-16  Eric Blake  <ebb9@byu.net>
54695
54696         Avoid doubling \ in common case of "c-maybe" quoting style.
54697         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
54698         eliding outer quotes.
54699         * lib/quotearg.h: Document this.
54700         * tests/test-quotearg.c (result_strings, inputs, results_g)
54701         (flag_results, locale_results): Test it by adding a new string to
54702         each test group.
54703         (compare_strings): Test new string.
54704
54705 2008-02-13  Eric Blake  <ebb9@byu.net>
54706
54707         Avoid trigraph quoting in default output.
54708         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
54709         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
54710         unless explicitly requested.
54711         * tests/test-quotearg.c (flag_results, main): Add additional tests.
54712
54713 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
54714
54715         Don't rely on signed integer overflowing to negative value.
54716         * lib/getugroups.c (getugroups): Include <limits.h>.
54717         Instead, compare against INT_MAX, and increment only if the test passes.
54718
54719 2008-02-13  Jim Meyering  <meyering@redhat.com>
54720         and Eric Blake  <ebb9@byu.net>
54721
54722         Avoid shadowing warning and compile errors on Linux.
54723         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
54724         forwarding macros on Linux.
54725         (dcgettext): Define a stub, for Linux.
54726         (results_g, main): Avoid warnings.
54727
54728 2008-02-12  Eric Blake  <ebb9@byu.net>
54729
54730         Silence warning in last patch.
54731         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
54732
54733         Quotearg part 4: add tests, fix c-maybe colon quoting.
54734         * lib/quotearg.h: Improve documentation.
54735         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
54736         escapes when adding outer quotes.  When quoting trigraphs, use
54737         valid C notation.  When quoting NUL, omit extra characters if next
54738         character is not digit.  Alter prototype.
54739         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
54740         callers.
54741         * modules/quotearg-tests: New module.
54742         * tests/test-quotearg.c: New test.
54743
54744 2008-02-07  Eric Blake  <ebb9@byu.net>
54745
54746         Quotearg part 3: add flag to control outer quote elision.
54747         * lib/quotearg.h (c_maybe_quoting_style): New style.
54748         (enum quoting_flags): Better documentation of flags.
54749         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
54750         c-maybe style.
54751         (quotearg_buffer_restyled): Handle new flag to elide outer
54752         quotes.
54753
54754         Quotearg part 2: add flag that can control NUL elision.
54755         * lib/quotearg.h (set_quoting_flags): New prototype.
54756         * lib/quotearg.c (struct quoting_options): Add flag field.
54757         (set_quoting_flags): New function.
54758         (quotearg_buffer_restyled): Add flags parameter.
54759         (quotearg_alloc_mem): Set the flag if length cannot be returned.
54760         (quotearg_n_options): Set the flag, since length cannot be
54761         returned.
54762         (quoting_options_from_style): Default flags correctly.
54763
54764         Quotearg part 1: more wrappers, restore quotearg_char state.
54765         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
54766         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
54767         (quotearg_colon_mem): New wrappers.
54768         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
54769         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
54770         functions.
54771         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
54772         (quotearg_colon_mem): New functions.
54773
54774 2008-02-11  Bruno Haible  <bruno@clisp.org>
54775
54776         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
54777         library in the current directory: it does not work with parallel make.
54778         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54779
54780 2008-02-11  Bruno Haible  <bruno@clisp.org>
54781
54782         * .gitattributes: New file.
54783
54784 2008-02-11  Jim Meyering  <meyering@redhat.com>
54785
54786         useless-if-before-free: Fix reversed exit values.
54787         * build-aux/useless-if-before-free: Use correct values
54788         for EXIT_MATCH and EXIT_NO_MATCH.
54789
54790         * build-aux/useless-if-before-free: Close stdout carefully.
54791
54792 2008-02-10  Bruno Haible  <bruno@clisp.org>
54793
54794         New module 'git-merge-changelog'.
54795         * modules/git-merge-changelog: New file.
54796         * lib/git-merge-changelog.c: New file.
54797
54798 2008-02-10  Jim Meyering  <meyering@redhat.com>
54799
54800         useless-if-before-free: New option: --list (-l).
54801
54802         useless-if-before-free: Don't exit immediately upon open failure.
54803         * build-aux/useless-if-before-free: Exit 2 for errors.
54804         Upon failure to open a file, don't exit immediately.
54805         Rather, just warn and continue with any remaining files.
54806
54807 2008-02-10  Bruno Haible  <bruno@clisp.org>
54808
54809         New abstract list operation 'node_set_value'.
54810         * lib/gl_list.h (gl_list_node_set_value): New function.
54811         (struct gl_list_implementation): New field node_set_value.
54812         * lib/gl_list.c (gl_list_node_set_value): New function.
54813         * lib/gl_array_list.c (gl_array_node_set_value): New function.
54814         (gl_array_list_implementation): Update.
54815         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
54816         (gl_carray_list_implementation): Update.
54817         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
54818         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
54819         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
54820         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
54821         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
54822         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
54823         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
54824         Update.
54825         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
54826         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
54827         (gl_sublist_list_implementation): Update.
54828
54829 2008-02-10  Bruno Haible  <bruno@clisp.org>
54830
54831         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
54832         Needed when ELEMENT is #defined to 'some_type *'.
54833
54834 2008-02-10  Jim Meyering  <meyering@redhat.com>
54835
54836         New script and module: useless-if-before-free
54837         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
54838         * build-aux/useless-if-before-free: New file.
54839         * modules/useless-if-before-free: New file.
54840
54841         * build-aux/gitlog-to-changelog: Use committer date, not author date.
54842
54843         xstrtol_error: Fix typo.
54844         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
54845         s/exit_failure/exit_status/.
54846
54847 2008-02-09  Jim Meyering  <meyering@redhat.com>
54848
54849         New script and module: gitlog-to-changelog
54850         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
54851         * modules/gitlog-to-changelog: New file.
54852         * build-aux/gitlog-to-changelog: New file.
54853
54854 2008-02-08  Jim Meyering  <meyering@redhat.com>
54855
54856         Avoid two "parameter unused" warnings.
54857         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
54858         Mark "st" as used.
54859
54860         Use "git COMMAND", not "git-COMMAND".
54861         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
54862         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
54863         * build-aux/git-version-gen: Use "git status", not "git-status".
54864
54865 2008-02-07  Bruno Haible  <bruno@clisp.org>
54866
54867         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
54868         Avoids a crash on Windows Vista.
54869         Reported by Adam Strzelecki <ono@java.pl> via
54870         Simon Josefsson <simon@josefsson.org>.
54871
54872 2008-02-06  Bruno Haible  <bruno@clisp.org>
54873
54874         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
54875         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
54876         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
54877         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
54878         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54879         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54880         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
54881         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
54882         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54883         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54884         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54885         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54886         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54887         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54888         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54889         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
54890         left-adjust flag.
54891         * tests/test-snprintf-posix.h (test_function): Likewise.
54892         * tests/test-sprintf-posix.h (test_function): Likewise.
54893         * tests/test-vasprintf-posix.c (test_function): Likewise.
54894         * doc/posix-functions/fprintf.texi: Update.
54895         * doc/posix-functions/printf.texi: Update.
54896         * doc/posix-functions/snprintf.texi: Update.
54897         * doc/posix-functions/sprintf.texi: Update.
54898         * doc/posix-functions/vfprintf.texi: Update.
54899         * doc/posix-functions/vprintf.texi: Update.
54900         * doc/posix-functions/vsnprintf.texi: Update.
54901         * doc/posix-functions/vsprintf.texi: Update.
54902         Reported by Peter Fales <psfales@alcatel-lucent.com>.
54903
54904 2008-02-06  Bruno Haible  <bruno@clisp.org>
54905
54906         Fix bug introduced on 2008-01-26.
54907         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
54908
54909 2008-02-06  Bruno Haible  <bruno@clisp.org>
54910
54911         Fix bug introduced on 2007-06-10.
54912         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
54913         !NEED_PRINTF_FLAG_ZERO.
54914
54915 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
54916
54917         getloadavg: use libperfstat on AIX5
54918         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
54919
54920 2008-02-03  Bruno Haible  <bruno@clisp.org>
54921
54922         * lib/diffseq.h: Add comments about required #includes.
54923         Reported by Michael Biggs <gnulib@doubleplum.net>.
54924
54925 2008-02-01  Bruno Haible  <bruno@clisp.org>
54926
54927         * users.txt: Add gnuit.
54928
54929 2008-01-31  Bruno Haible  <bruno@clisp.org>
54930
54931         * lib/md4.c (set_uint32): Mark as inline.
54932         * lib/md5.c (set_uint32): Likewise.
54933         * lib/sha1.c (set_uint32): Likewise.
54934         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
54935         * m4/md5.m4 (gl_MD5): Likewise.
54936         * m4/sha1.m4 (gl_SHA1): Likewise.
54937
54938 2008-01-31  Jim Meyering  <meyering@redhat.com>
54939
54940         Use "sizeof VAR", rather than a literal "4".
54941         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
54942         * lib/md4.c (md4_read_ctx): Likewise.
54943         * lib/sha1.c (sha1_read_ctx): Likewise.
54944
54945 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54946
54947         * tests/test-sha1.c: New file, based on test-md5.c.
54948
54949         * modules/crypto/sha1-tests: New file.
54950
54951 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54952
54953         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
54954
54955 2008-01-31  Jim Meyering  <meyering@redhat.com>
54956
54957         Prefer "sizeof v" over the equivalent "4".
54958         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
54959         * lib/md5.c (set_uint32): Likewise.
54960         * lib/sha1.c (set_uint32): Likewise.
54961
54962 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54963
54964         * lib/sha1.c (set_uint32): Mark function as static.
54965
54966 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54967
54968         md2: clarify comments to say that alignment is not required.
54969         * lib/md2.h: Remove warning about alignment in comment.
54970         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
54971         never been required.
54972
54973 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54974
54975         md4: adapt alignment constraint fix from sha1.
54976         * lib/md4.c (set_uint32): New function, from sha1.c
54977         (md4_read_ctx): Use it.
54978         (md4_finish_ctx): Doc fix.
54979         * lib/md4.h: Doc fix.
54980
54981 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54982
54983         md5: adapt alignment constraint fix from sha1.
54984         * lib/md5.c (set_uint32): New function, from sha1.c
54985         (md5_read_ctx): Use it.
54986         (md5_finish_ctx): Doc fix.
54987         * lib/md5.h: Doc fix.
54988
54989 2008-01-30  Peter Palfrader  <weasel@debian.org>
54990
54991         sha1: remove the result buffer alignment constraint
54992         * lib/sha1.c (set_uint32): New function.
54993         (sha1_read_ctx): Rewrite to remove the result buffer alignment
54994         constraint.
54995         (sha1_finish_ctx): Remove comment warning about alignment constraint.
54996         * lib/sha1.h: Likewise.
54997
54998 2008-01-30  Andreas Schwab  <schwab@suse.de>
54999             Bruno Haible  <bruno@clisp.org>
55000
55001         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
55002         correct definition of LDBL_MIN_EXP.
55003
55004 2008-01-30  Karl Berry  <karl@gnu.org>
55005
55006         * config/srclist-update: try to preserve x bit on updates.
55007         * config/srclistvars.sh: update for karl.
55008
55009 2008-01-29  Jim Meyering  <meyering@redhat.com>
55010
55011         vasnprintf.c: Avoid warning about unused label
55012         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
55013         "overflow" label definition and associated code with the
55014         same cpp condition that guards the sole use of that label.
55015
55016 2008-01-26  Bruno Haible  <bruno@clisp.org>
55017
55018         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
55019         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
55020         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
55021         * lib/isnanl-nolibm.h (isnanl): Likewise.
55022         Reported by Paul Eggert <eggert@cs.ucla.edu>.
55023
55024 2008-01-26  Bruno Haible  <bruno@clisp.org>
55025
55026         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
55027         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
55028
55029 2008-01-26  Bruno Haible  <bruno@clisp.org>
55030
55031         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
55032         GCC >= 4.0 built-in.
55033         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
55034
55035 2008-01-26  Bruno Haible  <bruno@clisp.org>
55036
55037         Rename isnan, applicable to 'double' only, to isnand.
55038         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
55039         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
55040         (configure.ac): Update.
55041         (Include): Replace "isnan.h" with "isnand.h".
55042         * m4/isnand.m4: Renamed from m4/isnan.m4.
55043         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
55044         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
55045         instead of isnan.c.
55046         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
55047         instead of HAVE_ISNAN_IN_LIBC.
55048         (isnand): Renamed from isnan.
55049         * lib/isnand.c: New file.
55050         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
55051         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
55052         (Makefile.am): Update.
55053         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
55054         Include isnand.h instead of isnan.h.
55055         (main): Test isnand instead of isnan.
55056         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
55057         isnan-nolibm.
55058         * modules/frexp (Depends-on): Likewise.
55059         * modules/frexp-tests (Depends-on): Likewise.
55060         * modules/frexp-nolibm (Depends-on): Likewise.
55061         * modules/frexp-nolibm-tests (Depends-on): Likewise.
55062         * modules/isfinite (Depends-on): Likewise.
55063         * modules/round-tests (Depends-on): Likewise.
55064         * modules/signbit (Depends-on): Likewise.
55065         * modules/signbit-tests (Depends-on): Likewise.
55066         * modules/snprintf-posix (Depends-on): Likewise.
55067         * modules/sprintf-posix (Depends-on): Likewise.
55068         * modules/trunc-tests (Depends-on): Likewise.
55069         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55070         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55071         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55072         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55073         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55074         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55075         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55076         * modules/vasnprintf-posix (Depends-on): Likewise.
55077         * modules/vasprintf-posix (Depends-on): Likewise.
55078         * modules/vfprintf-posix (Depends-on): Likewise.
55079         * modules/vsnprintf-posix (Depends-on): Likewise.
55080         * modules/vsprintf-posix (Depends-on): Likewise.
55081         * lib/frexp.c: Include isnand.h instead of isnan.h.
55082         (ISNAN): Set to isnand instead of isnan.
55083         * lib/isfinite.c: Include isnand.h instead of isnan.h.
55084         (gl_isfinited): Use isnand instead of isnan.
55085         * lib/signbitd.c: Include isnand.h instead of isnan.h.
55086         (gl_signbitd): Use isnand instead of isnan.
55087         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
55088         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
55089         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
55090         (main): Use isnand instead of isnan.
55091         * tests/test-round1.c: Include isnand.h.
55092         (main): Use isnand instead of isnan.
55093         * tests/test-round2.c: Include isnand.h instead of isnan.h.
55094         (ISNAN): Set to isnand instead of isnan.
55095         * tests/test-trunc1.c: Include isnand.h.
55096         (main): Use isnand instead of isnan.
55097         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
55098         (equal): Use isnand instead of isnan.
55099         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
55100         isnand-nolibm.
55101         * NEWS: Mention the change.
55102
55103 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
55104             Bruno Haible  <bruno@clisp.org>
55105
55106         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
55107         the GCC builtins for signbits are present and set
55108         REPLACE_SIGNBIT_USING_GCC if so.
55109         * lib/math.in.h (signbit): Define using GCC builtins if
55110         REPLACE_SIGNBIT_USING_GCC is set.
55111         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
55112         REPLACE_SIGNBIT_USING_GCC.
55113         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
55114
55115 2008-01-25  Jim Meyering  <meyering@redhat.com>
55116
55117         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
55118         * lib/poll.c: Include <config.h>, not "config.h".
55119         * tests/test-getaddrinfo.c: Likewise.
55120
55121 2008-01-25  Simon Josefsson  <simon@josefsson.org>
55122
55123         * modules/sockets-tests: New file.
55124
55125 2008-01-24  Simon Josefsson  <simon@josefsson.org>
55126
55127         * modules/sockets: New module, can be used to call WSA_Startup and
55128         WSA_Cleanup when needed.
55129
55130         * lib/sockets.h, lib/sockets.c: New files.
55131
55132         * m4/sockets.m4: New file.
55133
55134         * tests/test-sockets.c: New file.
55135
55136 2008-01-19  Bruno Haible  <bruno@clisp.org>
55137
55138         * doc/posix-headers: Renamed from doc/headers.
55139         * doc/posix-functions: Renamed from doc/functions.
55140         * doc/gnulib.texi: Update.
55141
55142 2008-01-19  Bruno Haible  <bruno@clisp.org>
55143
55144         * doc/glibc-functions/strcasestr.texi: Include contents of
55145         doc/functions/strcasestr.texi, fixing the list of platforms.
55146         * doc/functions/strcasestr.texi: Remove file.
55147
55148 2008-01-19  Bruno Haible  <bruno@clisp.org>
55149
55150         * doc/glibc-functions/memmem.texi: Include contents of
55151         doc/functions/memmem.texi.
55152         * doc/functions/memmem.texi: Remove file.
55153
55154 2008-01-18  Bruno Haible  <bruno@clisp.org>
55155
55156         * doc/glibc-functions/*.texi: New files.
55157         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
55158         to use the new files.
55159
55160 2008-01-17  Bruno Haible  <bruno@clisp.org>
55161
55162         * tests/test-gethostname.c (main): Fix printf statement.
55163
55164 2008-01-17  Simon Josefsson  <simon@josefsson.org>
55165
55166         * modules/gethostname-tests: New file.
55167
55168         * tests/test-gethostname.c: New file.
55169
55170 2008-01-17  Simon Josefsson  <simon@josefsson.org>
55171
55172         * lib/gethostname.c: Include string.h unconditionally, strncpy is
55173         used by the UNAME case.  Reported by Bruno Haible
55174         <bruno@clisp.org>.
55175
55176 2008-01-17  Eric Blake  <ebb9@byu.net>
55177
55178         Convert c-strcasestr to be more efficient.
55179         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
55180         (Depends-on): Add c-strcase, remove malloca, strnlen.
55181         * tests/test-c-strcasestr.c (main): Enhance test.
55182         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
55183
55184 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
55185
55186         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
55187         Use it in creating po/Makevars.
55188
55189 2008-01-15  Simon Josefsson  <simon@josefsson.org>
55190
55191         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
55192         Applications that requires it should initialize libgcrypt
55193         manually.
55194
55195 2008-01-16  Simon Josefsson  <simon@josefsson.org>
55196
55197         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
55198
55199 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
55200
55201         Fix problem with getdate on mingw32 reported by Simon Josefsson
55202         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
55203         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
55204         tzname", when deciding whether to declare tzname.
55205         * lib/strftime.c (tzname): Likewise.
55206
55207 2008-01-15  Bruno Haible  <bruno@clisp.org>
55208
55209         Work around a MacOS X 10.5 bug in frexpl().
55210         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
55211         * doc/functions/frexpl.texi: Document the bug.
55212         Reported by Elias Pipping <pipping@gentoo.org>.
55213
55214 2008-01-14  Eric Blake  <ebb9@byu.net>
55215
55216         Touch up previous patch.
55217         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
55218         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
55219
55220         Convert strcasestr module to use Two-Way algorithm.
55221         * modules/strcasestr-simple: New module, based on the old
55222         strcasestr, but with Two-Way rather than KMP.
55223         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
55224         * lib/string.in.h (rpl_strcasestr): Declare.
55225         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
55226         performance.
55227         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
55228         * modules/string (Makefile.am): Support strcasestr.
55229         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
55230         * modules/strcasestr-tests (Depends-on): Check for alarm.
55231         * tests/test-strcasestr.c: Augment test.
55232         * lib/str-two-way.h: Clean up stray macro.
55233         * NEWS: Document new module.
55234         * MODULES.html.sh (string handling): Likewise.
55235         * doc/functions/strcasestr.texi: New file.
55236         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
55237         here, since it is not a POSIX function.
55238
55239 2008-01-14  Colin Watson  <cjwatson@debian.org>
55240             Bruno Haible  <bruno@clisp.org>
55241
55242         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
55243         works fine; if not, set REPLACE_STRSIGNAL.
55244         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
55245         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55246         REPLACE_STRSIGNAL.
55247         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
55248         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
55249         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
55250
55251 2008-01-14  Bruno Haible  <bruno@clisp.org>
55252
55253         * modules/strsignal (Include): Change to <string.h>.
55254
55255 2008-01-14  Colin Watson  <cjwatson@debian.org>
55256
55257         * modules/argp (Notice): Add a notice recommending to change
55258         XGETTEXT_OPTIONS.
55259         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
55260
55261 2008-01-13  Colin Watson  <cjwatson@debian.org>
55262
55263         * modules/strsignal-tests: New file.
55264         * tests/test-strsignal.c: New file.
55265
55266         * lib/strsignal.c: New file, from glibc with modifications.
55267         * lib/siglist.h: New file, from glibc with modifications.
55268         * lib/string.in.h (strsignal): New declaration.
55269         * m4/strsignal.m4: New file.
55270         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55271         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
55272         * modules/strsignal: New file.
55273         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
55274         HAVE_DECL_STRSIGNAL.
55275
55276 2008-01-13  Bruno Haible  <bruno@clisp.org>
55277
55278         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
55279         locale encoding is not ASCII. Needed for OpenBSD 4.0.
55280         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
55281         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55282
55283 2008-01-13  Bruno Haible  <bruno@clisp.org>
55284
55285         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
55286         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
55287         * lib/argp.h (__attribute__): Likewise.
55288         * lib/c-stack.c (__attribute__): Likewise.
55289         * lib/error.h (__attribute__): Likewise.
55290         * lib/fts.c (__attribute__): Likewise.
55291         * lib/openat.h (__attribute__): Likewise.
55292         * lib/stdio.in.h (__attribute__): Likewise.
55293         * lib/string.in.h (__attribute__): Likewise.
55294         * lib/utimens.c (__attribute__): Likewise.
55295         * lib/vasnprintf.h (__attribute__): Likewise.
55296         * lib/xalloc.h (__attribute__): Likewise.
55297         * lib/xprintf.h (__attribute__): Likewise.
55298         * lib/xstrtol.h (__attribute__): Likewise.
55299         * lib/xvasprintf.h (__attribute__): Likewise.
55300
55301 2008-01-12  Bruno Haible  <bruno@clisp.org>
55302
55303         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
55304         * doc/glibc-headers/a.out.texi: New file.
55305         * doc/glibc-headers/aliases.texi: New file.
55306         * doc/glibc-headers/alloca.texi: New file.
55307         * doc/glibc-headers/ar.texi: New file.
55308         * doc/glibc-headers/argp.texi: New file.
55309         * doc/glibc-headers/argz.texi: New file.
55310         * doc/glibc-headers/byteswap.texi: New file.
55311         * doc/glibc-headers/crypt.texi: New file.
55312         * doc/glibc-headers/endian.texi: New file.
55313         * doc/glibc-headers/envz.texi: New file.
55314         * doc/glibc-headers/err.texi: New file.
55315         * doc/glibc-headers/error.texi: New file.
55316         * doc/glibc-headers/execinfo.texi: New file.
55317         * doc/glibc-headers/fpu_control.texi: New file.
55318         * doc/glibc-headers/fstab.texi: New file.
55319         * doc/glibc-headers/fts.texi: New file.
55320         * doc/glibc-headers/getopt.texi: New file.
55321         * doc/glibc-headers/ieee754.texi: New file.
55322         * doc/glibc-headers/ifaddrs.texi: New file.
55323         * doc/glibc-headers/libintl.texi: New file.
55324         * doc/glibc-headers/mcheck.texi: New file.
55325         * doc/glibc-headers/mntent.texi: New file.
55326         * doc/glibc-headers/obstack.texi: New file.
55327         * doc/glibc-headers/paths.texi: New file.
55328         * doc/glibc-headers/printf.texi: New file.
55329         * doc/glibc-headers/pty.texi: New file.
55330         * doc/glibc-headers/resolv.texi: New file.
55331         * doc/glibc-headers/shadow.texi: New file.
55332         * doc/glibc-headers/sysexits.texi: New file.
55333         * doc/glibc-headers/ttyent.texi: New file.
55334
55335 2008-01-12  Jim Meyering  <meyering@redhat.com>
55336
55337         announce-gen: emit Gnulib's git-based version string.
55338         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
55339         New option --gnulib-version=V, where V is expected to be
55340         the output of running git describe in the gnulib directory.
55341         (get_tool_versions): Request feedback on xdelta.  I suspect it's
55342         not useful, and plan to stop publishing an xdelta file with each
55343         coreutils release.
55344
55345         * build-aux/announce-gen: Also check for lzma-compressed files.
55346
55347 2008-01-11  Bruno Haible  <bruno@clisp.org>
55348
55349         * tests/test-memmem.c (main): Increase maximum allowed time.
55350         * tests/test-strstr.c (main): Likewise.
55351
55352 2008-01-11  Bruno Haible  <bruno@clisp.org>
55353
55354         * doc/functions/memmem.texi: Add more precisions about platforms.
55355         * doc/functions/strstr.texi: Likewise.
55356
55357 2008-01-10  Eric Blake  <ebb9@byu.net>
55358
55359         * m4/strstr.m4: Delete cruft from copy-n-paste.
55360         Reported by Bruno Haible.
55361
55362 2008-01-10  Bruno Haible  <bruno@clisp.org>
55363
55364         Make c-strstr rely on strstr.
55365         * lib/c-strstr.c: Don't include str-kmp.h.
55366         (c_strstr): Define in terms of strstr.
55367         * modules/c-strstr (Files): Remove lib/str-kmp.h.
55368         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
55369
55370 2008-01-10  Bruno Haible  <bruno@clisp.org>
55371
55372         * doc/gnulib.texi (String Functions in C Locale): New section.
55373         * doc/c-ctype.texi: New file.
55374         * doc/c-strcase.texi: New file.
55375         * doc/c-strcaseeq.texi: New file.
55376         * doc/c-strcasestr.texi: New file.
55377         * doc/c-strstr.texi: New file.
55378         * doc/c-strtod.texi: New file.
55379         * doc/c-strtold.texi: New file.
55380
55381 2008-01-10  Eric Blake  <ebb9@byu.net>
55382
55383         * lib/relocatable.h: Fix a comment.
55384
55385 2008-01-10  Eric Blake  <ebb9@byu.net>
55386
55387         Share two-way algorithm.
55388         * lib/str-two-way.h: New file, merged from...
55389         * lib/memmem.c: ...here...
55390         * lib/strstr.c: ...and here.
55391         * modules/memmem (Files): Use it.
55392         * modules/strstr (Files): Likewise.
55393
55394         Avoid quadratic strstr implementations.
55395         * lib/strstr.c: New file.
55396         * m4/strstr.m4: Likewise.
55397         * modules/strstr: Likewise.
55398         * modules/strstr-tests: Likewise.
55399         * tests/test-strstr.c: Likewise.
55400         * lib/string.in.h (rpl_strstr): Declare.
55401         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
55402         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
55403         * modules/string (Makefile.am): Likewise.
55404         * MODULES.html.sh (string handling): Mention new module.
55405         * doc/functions/strstr.texi (strstr): Document the bug.
55406
55407 2008-01-10  Bruno Haible  <bruno@clisp.org>
55408
55409         * lib/relocatable.h (relocate): State whether result is freshly
55410         allocated or not.
55411         * lib/relocatable.c (relocate): Return a freshly allocated string
55412         instead of a pointer to a privately held string.
55413         Reported by Sylvain Beucler <beuc@gnu.org>.
55414
55415 2008-01-10  Colin Watson  <cjwatson@debian.org>
55416
55417         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
55418         s/S_ISNLK/S_ISLNK/.
55419
55420 2008-01-09  Bruno Haible  <bruno@clisp.org>
55421
55422         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
55423         and other files.
55424         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
55425         if it's only a guess.
55426         * modules/memmem: Simplify by depending on memmem-simple.
55427
55428 2008-01-09  Bruno Haible  <bruno@clisp.org>
55429
55430         Work around OpenBSD 4.0 tdelete() bug.
55431         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
55432         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
55433         macros and don't redefine the enum values.
55434         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
55435         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
55436         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
55437
55438 2008-01-09  Bruno Haible  <bruno@clisp.org>
55439
55440         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
55441         (main): Don't perform the tests if setlocale did not install a UTF-8
55442         locale. Needed on OpenBSD 4.0.
55443         * modules/wcwidth-tests (Depends-on): Add localcharset.
55444
55445 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
55446
55447         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
55448         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
55449         * NEWS: announce this.
55450         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
55451
55452 2008-01-09  Simon Josefsson  <simon@josefsson.org>
55453         and Eric Blake  <ebb9@byu.net>
55454
55455         Add memmem-simple module.
55456         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
55457         (gl_FUNC_MEMMEM): Separate performance from presence checks.
55458         * modules/memmem-simple: New file.
55459         * modules/memmem (Description): Tweak.
55460         * MODULES.html.sh (string handling): Mention new module.
55461         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
55462         addressed by memmem-simple.
55463         * NEWS: Document the difference.
55464
55465 2008-01-09  Eric Blake  <ebb9@byu.net>
55466
55467         Give gcc some memmem optimization hints.
55468         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
55469         (strcasestr): Declare as pure.
55470         * modules/memmem (Maintainer): Claim my implementation.
55471
55472 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55473
55474         Support AIX 6.1 and higher.
55475         * build-aux/config.libpath: Likewise.
55476         * build-aux/config.rpath: Likewise.
55477
55478 2008-01-08  Jim Meyering  <meyering@redhat.com>
55479             Bruno Haible  <bruno@clisp.org>
55480
55481         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
55482         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
55483         Reported by Peter Fales in
55484         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
55485
55486 2008-01-08  Bruno Haible  <bruno@clisp.org>
55487
55488         * modules/unictype/category-of (Depends-on): Add
55489         unictype/category-none.
55490         * modules/unictype/category-and-tests (Depends-on): Add
55491         unictype/category-{L,N,Lu,Nd}.
55492         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
55493         * modules/unictype/category-or-tests (Depends-on): Add
55494         unictype/category-{L,N}.
55495         * modules/unictype/category-name-tests (Depends-on): Add
55496         unictype/category-{Z,Nl}.
55497         Reported by Simon Josefsson.
55498
55499 2008-01-08  Bruno Haible  <bruno@clisp.org>
55500
55501         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
55502         convention better.
55503         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
55504         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
55505         Reported by Peter Miller <millerp@canb.auug.org.au>.
55506
55507 2008-01-08  Eric Blake  <ebb9@byu.net>
55508
55509         Rewrite memmem to guarantee linear complexity without malloc.
55510         * lib/memmem.c (memmem): Use Two-Way rather than
55511         Knuth-Morris-Pratt, to allow O(1) space usage.
55512         (critical_factorization, two_way_short_needle)
55513         (two_way_long_needle): New functions.
55514         (knuth_morris_pratt): Delete.
55515         * modules/memmem (Depends-on): No longer need malloca or stdbool.
55516         Add stdint.
55517         * tests/test-memmem.c (main): Add tests for periodic needle and
55518         sublinear performance.
55519         * doc/functions/memmem.texi (memmem): Document other deficiencies
55520         in cygwin and older glibc.
55521
55522 2008-01-08  Bruno Haible  <bruno@clisp.org>
55523
55524         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
55525         augmentation.
55526
55527 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
55528
55529         Add a configure time option: --disable-acl.
55530         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
55531         AC_ARG_ENABLE(acl).
55532
55533 2008-01-06  Simon Josefsson  <simon@josefsson.org>
55534
55535         * tests/test-localename.c: Don't include obsolete "setenv.h".
55536
55537         * modules/localename-tests (Depends-on): Need unsetenv.
55538
55539 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55540
55541         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
55542
55543 2008-01-06  Colin Watson  <cjwatson@debian.org>
55544
55545         * users.txt: Add man-db.
55546
55547 2008-01-07  Bruno Haible  <bruno@clisp.org>
55548
55549         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
55550         previous section name.
55551
55552 2008-01-07  Bruno Haible  <bruno@clisp.org>
55553
55554         * lib/progname.c (set_program_name): Don't strip off a leading
55555         "lt-" prefix outside a .libs directory.
55556         Suggested by Paul Eggert.
55557
55558 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
55559             Bruno Haible  <bruno@clisp.org>
55560
55561         Improve memory cleanup in 'relocatable' module.
55562         * lib/relocatable.h (compute_curr_prefix): Change return type to
55563         'char *'.
55564         * lib/relocatable.c (compute_curr_prefix): Change return type to
55565         'char *'. Free curr_installdir after use.
55566         (relocate): Free curr_prefix_better after use.
55567         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
55568
55569 2008-01-01  Bruno Haible  <bruno@clisp.org>
55570
55571         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
55572         failure on older glibc systems.
55573         Reported by Peter Fales <psfales@alcatel-lucent.com>.
55574
55575 2008-01-05  Eric Blake  <ebb9@byu.net>
55576
55577         Avoid quadratic system memmem.
55578         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
55579         Reported by Ralf Wildenhues.
55580
55581         Fix memmem test for mingw.
55582         * modules/memmem-tests (configure.ac): Check for alarm.
55583         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
55584         it.
55585         * doc/functions/memmem.texi: New file.
55586         * doc/gnulib.texi (Function Substitutes): Add memmem.
55587         Reported by Bruno Haible.
55588
55589 2008-01-04  Bruno Haible  <bruno@clisp.org>
55590
55591         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
55592         Require gl_HEADER_STRINGS_H_DEFAULTS, not
55593         gl_HEADER_STRING_H_DEFAULTS.
55594
55595 2008-01-04  Eric Blake  <ebb9@byu.net>
55596
55597         Shorten duration of memmem test.
55598         * tests/test-memmem.c (main): Use alarm to declare failure if test
55599         is taking too long.
55600         Reported by Ralf Wildenhues.
55601
55602 2007-12-21  Simon Josefsson  <simon@josefsson.org>
55603
55604         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
55605         string, needed by strerror.
55606
55607 2008-01-03  Colin Watson  <cjwatson@debian.org>
55608             Bruno Haible  <bruno@clisp.org>
55609
55610         * doc/gnulib-tool.texi (Localization): New section.
55611
55612 2008-01-02  Bruno Haible  <bruno@clisp.org>
55613
55614         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
55615         variables to 'unsigned char *' type.
55616         Reported by Paul Eggert.
55617
55618 2008-01-02  Jim Meyering  <jim@meyering.net>
55619
55620         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
55621
55622 2007-12-31  Jim Meyering  <jim@meyering.net>
55623
55624         Avoid use of private FTS type name.
55625         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
55626
55627 2007-12-30  Karl Berry  <karl@gnu.org>
55628
55629         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
55630         work around defect in Texinfo and/or the standalone Info browser.
55631
55632 2007-12-30  Bruno Haible  <bruno@clisp.org>
55633
55634         Unify 5 copies of the KMP code.
55635         * lib/str-kmp.h: New file.
55636         * lib/c-strcasestr.c: Include str-kmp.h.
55637         (knuth_morris_pratt): Remove function.
55638         (c_strcasestr): Update.
55639         * lib/c-strstr.c: Include str-kmp.h.
55640         (knuth_morris_pratt): Remove function.
55641         (c_strcasestr): Update.
55642         * lib/mbscasestr.c: Include str-kmp.h.
55643         (knuth_morris_pratt_unibyte): Remove function.
55644         * lib/mbsstr.c: Include str-kmp.h.
55645         (knuth_morris_pratt_unibyte): Remove function.
55646         * lib/strcasestr.c: Include str-kmp.h.
55647         (knuth_morris_pratt): Remove function.
55648         (strcasestr): Update.
55649         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
55650         * modules/c-strstr (Files): Likewise.
55651         * modules/mbscasestr (Files): Likewise.
55652         * modules/mbsstr (Files): Likewise.
55653         * modules/strcasestr (Files): Likewise.
55654         Suggested by Paul Eggert.
55655
55656 2007-12-30  Bruno Haible  <bruno@clisp.org>
55657
55658         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
55659         defined.
55660
55661 2007-12-30  Bruno Haible  <bruno@clisp.org>
55662
55663         * lib/xmalloca.h: Include xalloc.h.
55664         (xnmalloca): New macro.
55665
55666 2007-12-30  Bruno Haible  <bruno@clisp.org>
55667
55668         * lib/malloca.h (nmalloca): New macro.
55669         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
55670         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
55671         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
55672         knuth_morris_pratt_multibyte): Likewise.
55673         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
55674         knuth_morris_pratt_multibyte): Likewise.
55675         * lib/memmem.c (knuth_morris_pratt): Likewise.
55676         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
55677
55678 2007-12-25  Bruno Haible  <bruno@clisp.org>
55679
55680         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
55681         * lib/glob.c: Don't include openat.h.
55682         (link_exists2_p): Add back the code that deals with the
55683         !GLOB_ALTDIRFUNC case.
55684         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
55685         let it do the filename concatenation.
55686         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
55687         * modules/glob (Depends-on): Remove openat.
55688
55689 2007-12-31  Bruno Haible  <bruno@clisp.org>
55690
55691         * modules/dirfd (License): Change to LGPLv2+.
55692         Approved by Jim Meyering.
55693
55694 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
55695
55696         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
55697         when multiplying M by sizeof (size_t).
55698
55699 2007-12-10  Martin Lambers  <marlam@marlam.de>
55700
55701         Override getpagesize on mingw.
55702         * lib/getpagesize.c: New file.
55703         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
55704         * modules/getpagesize (Files): Add lib/getpagesize.c.
55705         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
55706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55707         REPLACE_GETPAGESIZE.
55708         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
55709
55710 2007-12-25  Bruno Haible  <bruno@clisp.org>
55711
55712         * modules/localcharset (Notice): New field.
55713         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
55714         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
55715
55716 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
55717             Bruno Haible  <bruno@clisp.org>
55718
55719         Avoid using the syntax symbol() in formatted documentation.
55720         * MODULES.html.sh (func_module): When replacing symbol() with a
55721         hyperlink, remove the parentheses. Show an error if some remain.
55722         Recognize and render the '...' syntax.
55723         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
55724         Rework. Add paragraph about GCC's inlining.
55725         * doc/alloca.texi: Likewise.
55726         * doc/error.texi: Remove parentheses from symbol reference.
55727         * doc/gnulib-intro.texi: Likewise.
55728         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
55729         * modules/fnmatch (Description): Reword to say "the ... function".
55730         * modules/full-read (Description): Likewise.
55731         * modules/full-write (Description): Likewise.
55732         * modules/safe-read (Description): Likewise.
55733         * modules/safe-write (Description): Likewise.
55734         * modules/strchrnul (Description): Likewise.
55735         * modules/trim (Description): Likewise.
55736         * modules/error (Description): Remove parentheses from symbol
55737         references.
55738         * modules/verror (Description): Likewise.
55739         Reported by Karl Berry.
55740
55741 2007-12-25  Bruno Haible  <bruno@clisp.org>
55742
55743         Fixup after 2007-10-16 commit.
55744         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
55745
55746 2007-12-24  Bruno Haible  <bruno@clisp.org>
55747
55748         Make --enable-relocatable work with DESTDIR.
55749         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
55750         to compute installdir from destprog.
55751         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
55752         also set the RELOC_DESTDIR variable.
55753         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
55754
55755 2007-12-24  Bruno Haible  <bruno@clisp.org>
55756
55757         Fix link error due to xalloc_die().
55758         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
55759         of xreadlink.
55760         * lib/relocwrapper.c: Update comments.
55761         * build-aux/install-reloc: Remove xreadlink.c from file list.
55762         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
55763         xreadlink.c.
55764         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
55765
55766 2007-12-24  Bruno Haible  <bruno@clisp.org>
55767
55768         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
55769         * lib/setenv.h: Remove file.
55770         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
55771         lib/setenv.h.
55772         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
55773         (Depends-on): Add stdlib.
55774         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
55775         gl_FUNC_UNSETENV.
55776         (Include): Replace setenv.h with <stdlib.h>.
55777         * modules/unsetenv: New file.
55778         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
55779         * lib/unsetenv.c: Include <stdlib.h> first.
55780         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
55781         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
55782         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
55783         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
55784         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
55785         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
55786         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
55787         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
55788         * doc/functions/unsetenv.texi: Update.
55789         * modules/xsetenv (Depends-on): Add unsetenv.
55790         * modules/getdate (Depends-on): Likewise.
55791         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
55792         * lib/xsetenv.c: Don't include setenv.h.
55793         * lib/getdate.y: Likewise.
55794         * lib/relocwrapper.c: Likewise.
55795         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
55796         (Depends-on): Add stdlib.
55797         * NEWS: Mention the changes.
55798         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
55799
55800 2007-12-23  Bruno Haible  <bruno@clisp.org>
55801
55802         * lib/memmem.c (memmem): Use lowercase variable names. Tab
55803         indentation.
55804
55805 2007-12-23  Bruno Haible  <bruno@clisp.org>
55806
55807         * lib/c-strcasestr.c: Add more comments.
55808         * lib/c-strstr.c: Likewise.
55809         * lib/mbscasestr.c: Likewise.
55810         * lib/mbsstr.c: Likewise.
55811         * lib/strcasestr.c: Likewise.
55812         * lib/memmem.c: Likewise.
55813
55814 2007-12-23  Bruno Haible  <bruno@clisp.org>
55815
55816         * tests/test-memmem.c: Include <string.h> first.
55817
55818 2007-12-22  Bruno Haible  <bruno@clisp.org>
55819
55820         * gnulib-tool (func_create_testdir): Change $auxdir while generating
55821         the contents of $testsbase.
55822         Reported by Ralf Wildenhues.
55823
55824 2007-12-22  Bruno Haible  <bruno@clisp.org>
55825
55826         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
55827         two variables local_ldadd_before, local_ldadd_last.
55828
55829 2007-12-20  Eric Blake  <ebb9@byu.net>
55830
55831         Work around circular library issue when cross-compiling.
55832         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
55833         that progname.o does not need to pull in rpl_memcmp.
55834
55835 2007-12-19  Eric Blake  <ebb9@byu.net>
55836
55837         Fix memmem to avoid O(n^2) worst-case complexity.
55838         * lib/memmem.c (knuth_morris_pratt): New function.
55839         (memmem): Use it if first few naive iterations fail.
55840         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
55841         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
55842         * modules/memchr (License): Likewise.
55843         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
55844         malloca.
55845         * tests/test-memmem.c: Rewrite, borrowing ideas from
55846         test-mbsstr1.c; the old version wouldn't even compile!
55847         * modules/memmem-tests: New file.
55848         * lib/string.in.h (rpl_memmem): Add declaration.
55849         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
55850         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
55851         REPLACE_MEMMEM.
55852
55853 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
55854
55855         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
55856         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
55857         before any system include files, and undef after them all.  This
55858         should fix a problem on VMS reported by John E. Malmberg in
55859         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
55860
55861 2007-12-17  Eric Blake  <ebb9@byu.net>
55862
55863         Revert addition of verify, for BSD/OS.
55864         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
55865         can't handle large files, for the sake of obsolete platforms.
55866         * modules/fseeko (Depends-on): Remove verify.
55867         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
55868         * doc/functions/ftello.texi (ftello): Likewise.
55869         * doc/functions/fgetpos.texi (fgetpos): Likewise.
55870         Reported by Larry Jones.
55871
55872 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
55873
55874         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
55875         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
55876
55877 2007-12-17  Jim Meyering  <meyering@redhat.com>
55878
55879         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
55880         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
55881         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
55882         * modules/getcwd (Depends-on): Add openat.
55883         Reported by Petr Salinger.
55884
55885 2007-12-17  Bruno Haible  <bruno@clisp.org>
55886
55887         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
55888         avoid a segmentation fault of the configure test on x86_64 systems.
55889
55890 2007-12-15  Jim Meyering  <meyering@redhat.com>
55891
55892         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
55893
55894 2007-12-13  Eric Blake  <ebb9@byu.net>
55895
55896         Another fseek test.
55897         * tests/test-fseek.c (main): Also test ungetc handling.
55898         * tests/test-fseeko.c (main): Likewise.
55899         * modules/fseeko (Depends-on): Add verify.
55900         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
55901         large.
55902         Reported by Larry Jones.
55903
55904         Fix fseeko on mingw.
55905         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
55906         seek.
55907
55908         Beef up fseek tests.
55909         * tests/test-fseek.c (main): Also test eof handling.
55910         * tests/test-fseeko.c (main): Likewise.
55911         Reported by Larry Jones.
55912
55913 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
55914
55915         Fix fseeko on BSD-based platforms.
55916         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
55917         successful seek.
55918
55919 2007-12-12  Eric Blake  <ebb9@byu.net>
55920
55921         Allow circular dependency of separate libtests.a
55922         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
55923         when use_libtests.
55924
55925 2007-12-11  Eric Blake  <ebb9@byu.net>
55926
55927         Fix bug with -0.0L in previous patch.
55928         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
55929         * tests/test-isnan.c (main): Also test on zeroes.
55930         * tests/test-isnanf.c (main): Likewise.
55931         * tests/test-isnanl.h (main): Likewise.
55932
55933         Detect pseudo-denormals on x86 even when cross-compiling.
55934         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
55935         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
55936         invalid bit patterns that happen to satisfy ==.
55937
55938         Avoid link failures with separate libtests.a.
55939         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
55940         last, to satisfy circular dependencies.
55941
55942 2007-12-11  Eric Blake  <ebb9@byu.net>
55943         and Bruno Haible  <bruno@clisp.org>
55944
55945         Fix OpenBSD 4.0 <float.h> handling of long double.
55946         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
55947         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
55948         * doc/headers/float.texi (float.h): Document OpenBSD bug.
55949
55950 2007-12-11  Jim Meyering  <meyering@redhat.com>
55951
55952         * users.txt: Add libvirt.
55953
55954         Support versions of autoconf prior to 2.59c.
55955         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
55956         if it is not already defined.
55957
55958 2007-12-09  Bruno Haible  <bruno@clisp.org>
55959
55960         Let 'gnulib-tool --import' collect sources needed for the tests in
55961         tests/ rather than in lib/.
55962         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
55963         argument. If true, add rules to generate libtests.a, and put libtests.a
55964         into $(LDADD). Consider source files in subdirectories and set
55965         uses_subdirs.
55966         (func_emit_initmacro_start, func_emit_initmacro_end,
55967         func_emit_initmacro_done): Pass all arguments explicitly.
55968         (func_import): Determine two module lists main_modules,
55969         testsrelated_modules. Determine use_libtests. Determine two variables
55970         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
55971         instead of just sed_transform_lib_file. Determine two variables
55972         main_files and testsrelated_files. Compute 'files' as the union of
55973         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
55974         func_add_or_update. In the generated gnulib-comp.m4, collect the
55975         object files for tests/ in different variables than those for lib/.
55976         Substitute LIBTESTS_LIBDEPS.
55977         (func_create_testdir): Combine the uses_subdirs results from
55978         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
55979
55980 2007-12-09  Bruno Haible  <bruno@clisp.org>
55981
55982         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
55983         the build-aux directory.
55984
55985 2007-12-09  Bruno Haible  <bruno@clisp.org>
55986
55987         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
55988         introduced on 2006-09-09.
55989
55990 2007-12-07  Jim Meyering  <meyering@redhat.com>
55991
55992         Let these macros work also with autoconf-2.59.
55993         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
55994         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
55995         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
55996
55997 2007-12-06  Jim Meyering  <meyering@redhat.com>
55998
55999         Avoid a configure-time syntax error in gl_FUNC_ACL.
56000         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
56001         function in each branch, before testing the cache variable.
56002
56003 2007-12-04  Eric Blake  <ebb9@byu.net>
56004
56005         Make scripts executable.
56006         * build-aux/config.guess: Add execute permissions.
56007         * build-aux/config.sub: Likewise.
56008         * build-aux/gendocs.sh: Likewise.
56009
56010         Fix frexp on mingw.
56011         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
56012         cross-compiling.
56013         * doc/functions/frexp.texi (frexp): Document the bug.
56014
56015         Make cygwin fseeko check more reliable.
56016         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
56017         version numbers, rather than unrelated feature check.
56018         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
56019         * doc/functions/ftello.texi (ftello): Likewise.
56020         Reported by Bruno Haible.
56021
56022         * m4/strerror.m4: Bump version number.
56023
56024 2007-12-03  Bruno Haible  <bruno@clisp.org>
56025
56026         * doc/functions/mprotect.texi: Mention the mingw problem.
56027
56028 2007-12-03  Eric Blake  <ebb9@byu.net>
56029
56030         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
56031         REPLACE_STRERROR is initialized before this macro.
56032
56033 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
56034
56035         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
56036         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
56037         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
56038         put -lsec in even for programs other than 'ls'.  This fixes a problem
56039         for gettext reported by Bruno Haible in
56040         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
56041         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
56042         Add support for Solaris 10.  This isn't efficient, but should get the
56043         job done for now.
56044
56045 2007-12-03  James Youngman  <jay@gnu.org>
56046
56047         * doc/regexprops-generic.texi: change "an close-group" to "a
56048         close-group" and "illegal" to "not allowed".
56049
56050 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56051
56052         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
56053         pr_byname.h. Needed for the rare case when the maintainer has done
56054         "make maintainer-clean" in the source directory and then attempts a
56055         build outside the source directory.
56056         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
56057         scripts_byname.h.
56058
56059 2007-12-02  Martin Lambers <marlam@marlam.de>
56060             Bruno Haible  <bruno@clisp.org>
56061
56062         * lib/getpagesize.h: Remove file.
56063         * lib/unistd.in.h: Include declaration of getpagesize here.
56064         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
56065         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
56066         HAVE_SYS_PARAM_H.
56067         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
56068         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
56069         * modules/getpagesize (Files): Remove lib/getpagesize.h.
56070         (Depends-on): Add unistd.
56071         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56072         (Include): Use <unistd.h> instead of getpagesize.h.
56073         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
56074         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
56075         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
56076         gl_GETPAGESIZE invocation, already handled by module dependency.
56077         * lib/pagealign_alloc.c: Don't include getpagesize.h.
56078
56079 2007-12-02  Bruno Haible  <bruno@clisp.org>
56080
56081         * modules/strings-tests: New file.
56082         * tests/test-strings.c: New file.
56083
56084         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
56085         * lib/strings.in.h: New file.
56086         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
56087         * m4/strings_h.m4: New file.
56088         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
56089         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
56090         * modules/strings: New file.
56091         * modules/string (Makefile.am): Update.
56092         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
56093         Reported by Karl Berry.
56094
56095 2007-12-01  Eric Blake  <ebb9@byu.net>
56096
56097         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
56098         accomodate fix in cygwin 1.5.25.
56099
56100 2007-12-01  Jim Meyering  <meyering@redhat.com>
56101
56102         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
56103         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
56104         that would inhibit utf8-optimization of a regexp containing line-
56105         or buffer-anchors, e.g., `^', `$'.
56106
56107 2007-11-30  Bruno Haible  <bruno@clisp.org>
56108
56109         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
56110         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
56111         glthread_recursive_lock_init.
56112         * lib/lock.c (glthread_recursive_lock_init)
56113         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
56114         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56115
56116 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
56117
56118         New function qset_acl, like set_acl but with syscall semantics.
56119         * lib/acl.h (qset_acl): New decl.
56120         * lib/acl.c (qset_acl): New function.
56121         (set_acl): Use new function.  Use more-consistent diagnostics.
56122
56123 2007-11-28  Jim Meyering  <meyering@redhat.com>
56124
56125         * modules/physmem (License): Change from GPL to LGPLv2+.
56126
56127 2007-11-26  Bruno Haible  <bruno@clisp.org>
56128
56129         * lib/vasnprintf.c (decode_long_double): Don't abort if the
56130         'long double' type has excess precision.
56131         Reported by Jim Meyering in
56132         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
56133
56134 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56135
56136         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
56137         Sync from <http://gnu.org/licenses>.
56138         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
56139         with license text from same location.
56140         * doc/maintain.texi, doc/standards.texi:  Sync from
56141         <http://savannah.gnu.org/projects/gnustandards>.
56142
56143 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
56144         and Jim Meyering  <meyering@redhat.com>
56145
56146         Adjust getdate' grammar to accept a slightly more regular language.
56147         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
56148         Before, the former was rejected.
56149         * lib/getdate.y (digits_to_date_time): New function, factored
56150         out of ...
56151         (number): ...here.  Just call digits_to_date_time.
56152         (hybrid): New non-terminal to handle an <unsigned number,
56153         signed relative offset> sequence consistently.
56154
56155 2007-11-18  Jim Meyering  <meyering@redhat.com>
56156
56157         Pull my changes from coreutils:
56158         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
56159         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
56160         use of $gnulib_tool_option_extras, so that it's separated from the
56161         preceding argument.
56162
56163         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
56164         * build-aux/bootstrap (cp_mark_as_generated): Create any required
56165         parent destination directories before copying a file into place.
56166
56167 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
56168
56169         bootstrap: work also with 4-argument variant of AC_INIT
56170         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
56171
56172 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
56173
56174         Port test-getaddrinfo to Solaris.
56175         Problem reported by Bruno Haible in
56176         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
56177         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
56178         explanation of setting 'hints'.
56179         Don't reject an implementation merely because it returns EAI_SERVICE.
56180         (EAI_SERVICE): Define to 0 if not defined.
56181
56182 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
56183
56184         The license of gnu-make and posix-shell is now "GPLed build tool".
56185         * modules/gnu-make (License): Likewise.
56186         * modules/posix-shell (License): Likewise.
56187
56188         New module posix-shell, for determining a POSIX shell
56189         or perhaps something that is close enough to a POSIX shell.
56190         * m4/posix-shell.m4: New file.
56191         * modules/posix-shell: New file.
56192
56193         * MODULES.html.sh: Mention new module.
56194
56195         New module gnu-make, for determining whether we're using GNU Make.
56196         * m4/gnu-make.m4: New file.
56197         * modules/gnu-make: New file.
56198         * MODULES.html.sh: Mention new module.
56199
56200 2007-11-14  Jim Meyering  <meyering@redhat.com>
56201
56202         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
56203         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
56204         use this macro to create a function _definition_.
56205         Remove useless "#undef ARGMATCH_DIE".
56206
56207 2007-11-14  Bruno Haible  <bruno@clisp.org>
56208
56209         * lib/config.charset: Update for OpenBSD 4.1.
56210         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
56211
56212 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
56213
56214         Document 64-bit #if problems in stdint.texi.
56215         * doc/headers/stdint.texi (stdint.h): Mention problems with
56216         64-bit-#if, and how to work around them.
56217
56218         Don't insist on 'long long int' support in the preprocessor.  It
56219         breaks too many things.  For example, PRIdMAX still uses a 'long
56220         long int' format with the latest Sun compiler, even though
56221         HAVE_LONG_LONG_INT isn't defined due to that compiler's
56222         preprocessor problem.  This causes the latest coreutils to dump
56223         core on Solaris 10 sparc with the Sun C compiler.
56224         Instead, fix the 2007-10-16 problem in a different way, by evaluating
56225         the troublesome expressions at configure-time, not at #if-time.
56226         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
56227         preprocessor.
56228         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
56229         compile-time C checks, done at 'configure'-time.
56230         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
56231         * modules/inttypes (Makefile): Substitute the new symbols that
56232         gl_INTTYPES_H now generates.
56233         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
56234
56235 2007-11-12  Bruno Haible  <bruno@clisp.org>
56236
56237         Tests for Unicode character classification functions.
56238
56239         * modules/unictype/bidicategory-byname-tests: New file.
56240         * modules/unictype/bidicategory-name-tests: New file.
56241         * modules/unictype/bidicategory-of-tests: New file.
56242         * modules/unictype/bidicategory-test-tests: New file.
56243         * modules/unictype/block-list-tests: New file.
56244         * modules/unictype/block-of-tests: New file.
56245         * modules/unictype/block-test-tests: New file.
56246         * modules/unictype/category-C-tests: New file.
56247         * modules/unictype/category-Cc-tests: New file.
56248         * modules/unictype/category-Cf-tests: New file.
56249         * modules/unictype/category-Cn-tests: New file.
56250         * modules/unictype/category-Co-tests: New file.
56251         * modules/unictype/category-Cs-tests: New file.
56252         * modules/unictype/category-L-tests: New file.
56253         * modules/unictype/category-Ll-tests: New file.
56254         * modules/unictype/category-Lm-tests: New file.
56255         * modules/unictype/category-Lo-tests: New file.
56256         * modules/unictype/category-Lt-tests: New file.
56257         * modules/unictype/category-Lu-tests: New file.
56258         * modules/unictype/category-M-tests: New file.
56259         * modules/unictype/category-Mc-tests: New file.
56260         * modules/unictype/category-Me-tests: New file.
56261         * modules/unictype/category-Mn-tests: New file.
56262         * modules/unictype/category-N-tests: New file.
56263         * modules/unictype/category-Nd-tests: New file.
56264         * modules/unictype/category-Nl-tests: New file.
56265         * modules/unictype/category-No-tests: New file.
56266         * modules/unictype/category-P-tests: New file.
56267         * modules/unictype/category-Pc-tests: New file.
56268         * modules/unictype/category-Pd-tests: New file.
56269         * modules/unictype/category-Pe-tests: New file.
56270         * modules/unictype/category-Pf-tests: New file.
56271         * modules/unictype/category-Pi-tests: New file.
56272         * modules/unictype/category-Po-tests: New file.
56273         * modules/unictype/category-Ps-tests: New file.
56274         * modules/unictype/category-S-tests: New file.
56275         * modules/unictype/category-Sc-tests: New file.
56276         * modules/unictype/category-Sk-tests: New file.
56277         * modules/unictype/category-Sm-tests: New file.
56278         * modules/unictype/category-So-tests: New file.
56279         * modules/unictype/category-Z-tests: New file.
56280         * modules/unictype/category-Zl-tests: New file.
56281         * modules/unictype/category-Zp-tests: New file.
56282         * modules/unictype/category-Zs-tests: New file.
56283         * modules/unictype/category-and-not-tests: New file.
56284         * modules/unictype/category-and-tests: New file.
56285         * modules/unictype/category-byname-tests: New file.
56286         * modules/unictype/category-name-tests: New file.
56287         * modules/unictype/category-none-tests: New file.
56288         * modules/unictype/category-of-tests: New file.
56289         * modules/unictype/category-or-tests: New file.
56290         * modules/unictype/category-test-withtable-tests: New file.
56291         * modules/unictype/combining-class-tests: New file.
56292         * modules/unictype/ctype-alnum-tests: New file.
56293         * modules/unictype/ctype-alpha-tests: New file.
56294         * modules/unictype/ctype-blank-tests: New file.
56295         * modules/unictype/ctype-cntrl-tests: New file.
56296         * modules/unictype/ctype-digit-tests: New file.
56297         * modules/unictype/ctype-graph-tests: New file.
56298         * modules/unictype/ctype-lower-tests: New file.
56299         * modules/unictype/ctype-print-tests: New file.
56300         * modules/unictype/ctype-punct-tests: New file.
56301         * modules/unictype/ctype-space-tests: New file.
56302         * modules/unictype/ctype-upper-tests: New file.
56303         * modules/unictype/ctype-xdigit-tests: New file.
56304         * modules/unictype/decimal-digit-tests: New file.
56305         * modules/unictype/digit-tests: New file.
56306         * modules/unictype/mirror-tests: New file.
56307         * modules/unictype/numeric-tests: New file.
56308         * modules/unictype/property-alphabetic-tests: New file.
56309         * modules/unictype/property-ascii-hex-digit-tests: New file.
56310         * modules/unictype/property-bidi-arabic-digit-tests: New file.
56311         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
56312         * modules/unictype/property-bidi-block-separator-tests: New file.
56313         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
56314         * modules/unictype/property-bidi-common-separator-tests: New file.
56315         * modules/unictype/property-bidi-control-tests: New file.
56316         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
56317         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
56318         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
56319         * modules/unictype/property-bidi-european-digit-tests: New file.
56320         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
56321         * modules/unictype/property-bidi-left-to-right-tests: New file.
56322         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
56323         * modules/unictype/property-bidi-other-neutral-tests: New file.
56324         * modules/unictype/property-bidi-pdf-tests: New file.
56325         * modules/unictype/property-bidi-segment-separator-tests: New file.
56326         * modules/unictype/property-bidi-whitespace-tests: New file.
56327         * modules/unictype/property-byname-tests: New file.
56328         * modules/unictype/property-combining-tests: New file.
56329         * modules/unictype/property-composite-tests: New file.
56330         * modules/unictype/property-currency-symbol-tests: New file.
56331         * modules/unictype/property-dash-tests: New file.
56332         * modules/unictype/property-decimal-digit-tests: New file.
56333         * modules/unictype/property-default-ignorable-code-point-tests: New file.
56334         * modules/unictype/property-deprecated-tests: New file.
56335         * modules/unictype/property-diacritic-tests: New file.
56336         * modules/unictype/property-extender-tests: New file.
56337         * modules/unictype/property-format-control-tests: New file.
56338         * modules/unictype/property-grapheme-base-tests: New file.
56339         * modules/unictype/property-grapheme-extend-tests: New file.
56340         * modules/unictype/property-grapheme-link-tests: New file.
56341         * modules/unictype/property-hex-digit-tests: New file.
56342         * modules/unictype/property-hyphen-tests: New file.
56343         * modules/unictype/property-id-continue-tests: New file.
56344         * modules/unictype/property-id-start-tests: New file.
56345         * modules/unictype/property-ideographic-tests: New file.
56346         * modules/unictype/property-ids-binary-operator-tests: New file.
56347         * modules/unictype/property-ids-trinary-operator-tests: New file.
56348         * modules/unictype/property-ignorable-control-tests: New file.
56349         * modules/unictype/property-iso-control-tests: New file.
56350         * modules/unictype/property-join-control-tests: New file.
56351         * modules/unictype/property-left-of-pair-tests: New file.
56352         * modules/unictype/property-line-separator-tests: New file.
56353         * modules/unictype/property-logical-order-exception-tests: New file.
56354         * modules/unictype/property-lowercase-tests: New file.
56355         * modules/unictype/property-math-tests: New file.
56356         * modules/unictype/property-non-break-tests: New file.
56357         * modules/unictype/property-not-a-character-tests: New file.
56358         * modules/unictype/property-numeric-tests: New file.
56359         * modules/unictype/property-other-alphabetic-tests: New file.
56360         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
56361         * modules/unictype/property-other-grapheme-extend-tests: New file.
56362         * modules/unictype/property-other-id-continue-tests: New file.
56363         * modules/unictype/property-other-id-start-tests: New file.
56364         * modules/unictype/property-other-lowercase-tests: New file.
56365         * modules/unictype/property-other-math-tests: New file.
56366         * modules/unictype/property-other-uppercase-tests: New file.
56367         * modules/unictype/property-paired-punctuation-tests: New file.
56368         * modules/unictype/property-paragraph-separator-tests: New file.
56369         * modules/unictype/property-pattern-syntax-tests: New file.
56370         * modules/unictype/property-pattern-white-space-tests: New file.
56371         * modules/unictype/property-private-use-tests: New file.
56372         * modules/unictype/property-punctuation-tests: New file.
56373         * modules/unictype/property-quotation-mark-tests: New file.
56374         * modules/unictype/property-radical-tests: New file.
56375         * modules/unictype/property-sentence-terminal-tests: New file.
56376         * modules/unictype/property-soft-dotted-tests: New file.
56377         * modules/unictype/property-space-tests: New file.
56378         * modules/unictype/property-terminal-punctuation-tests: New file.
56379         * modules/unictype/property-test-tests: New file.
56380         * modules/unictype/property-titlecase-tests: New file.
56381         * modules/unictype/property-unassigned-code-value-tests: New file.
56382         * modules/unictype/property-unified-ideograph-tests: New file.
56383         * modules/unictype/property-uppercase-tests: New file.
56384         * modules/unictype/property-variation-selector-tests: New file.
56385         * modules/unictype/property-white-space-tests: New file.
56386         * modules/unictype/property-xid-continue-tests: New file.
56387         * modules/unictype/property-xid-start-tests: New file.
56388         * modules/unictype/property-zero-width-tests: New file.
56389         * modules/unictype/scripts-tests: New file.
56390         * modules/unictype/syntax-c-ident-tests: New file.
56391         * modules/unictype/syntax-c-whitespace-tests: New file.
56392         * modules/unictype/syntax-java-ident-tests: New file.
56393         * modules/unictype/syntax-java-whitespace-tests: New file.
56394         * tests/unictype/test-bidi_byname.c: New file.
56395         * tests/unictype/test-bidi_name.c: New file.
56396         * tests/unictype/test-bidi_of.c: New file.
56397         * tests/unictype/test-bidi_test.c: New file.
56398         * tests/unictype/test-block_list.c: New file.
56399         * tests/unictype/test-block_of.c: New file.
56400         * tests/unictype/test-block_test.c: New file.
56401         * tests/unictype/test-categ_and.c: New file.
56402         * tests/unictype/test-categ_and_not.c: New file.
56403         * tests/unictype/test-categ_byname.c: New file.
56404         * tests/unictype/test-categ_name.c: New file.
56405         * tests/unictype/test-categ_none.c: New file.
56406         * tests/unictype/test-categ_of.c: New file.
56407         * tests/unictype/test-categ_or.c: New file.
56408         * tests/unictype/test-categ_test_withtable.c: New file.
56409         * tests/unictype/test-combining.c: New file.
56410         * tests/unictype/test-decdigit.c: New file.
56411         * tests/unictype/test-digit.c: New file.
56412         * tests/unictype/test-mirror.c: New file.
56413         * tests/unictype/test-numeric.c: New file.
56414         * tests/unictype/test-pr_byname.c: New file.
56415         * tests/unictype/test-pr_test.c: New file.
56416         * tests/unictype/test-predicate-part1.h: New file.
56417         * tests/unictype/test-predicate-part2.h: New file.
56418         * tests/unictype/test-scripts.c: New file.
56419         * tests/unictype/test-sy_c_ident.c: New file.
56420         * tests/unictype/test-sy_java_ident.c: New file.
56421
56422         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
56423         for Unicode 5.0.0.
56424         * tests/unictype/test-categ_Cc.c: Likewise.
56425         * tests/unictype/test-categ_Cf.c: Likewise.
56426         * tests/unictype/test-categ_Cn.c: Likewise.
56427         * tests/unictype/test-categ_Co.c: Likewise.
56428         * tests/unictype/test-categ_Cs.c: Likewise.
56429         * tests/unictype/test-categ_L.c: Likewise.
56430         * tests/unictype/test-categ_Ll.c: Likewise.
56431         * tests/unictype/test-categ_Lm.c: Likewise.
56432         * tests/unictype/test-categ_Lo.c: Likewise.
56433         * tests/unictype/test-categ_Lt.c: Likewise.
56434         * tests/unictype/test-categ_Lu.c: Likewise.
56435         * tests/unictype/test-categ_M.c: Likewise.
56436         * tests/unictype/test-categ_Mc.c: Likewise.
56437         * tests/unictype/test-categ_Me.c: Likewise.
56438         * tests/unictype/test-categ_Mn.c: Likewise.
56439         * tests/unictype/test-categ_N.c: Likewise.
56440         * tests/unictype/test-categ_Nd.c: Likewise.
56441         * tests/unictype/test-categ_Nl.c: Likewise.
56442         * tests/unictype/test-categ_No.c: Likewise.
56443         * tests/unictype/test-categ_P.c: Likewise.
56444         * tests/unictype/test-categ_Pc.c: Likewise.
56445         * tests/unictype/test-categ_Pd.c: Likewise.
56446         * tests/unictype/test-categ_Pe.c: Likewise.
56447         * tests/unictype/test-categ_Pf.c: Likewise.
56448         * tests/unictype/test-categ_Pi.c: Likewise.
56449         * tests/unictype/test-categ_Po.c: Likewise.
56450         * tests/unictype/test-categ_Ps.c: Likewise.
56451         * tests/unictype/test-categ_S.c: Likewise.
56452         * tests/unictype/test-categ_Sc.c: Likewise.
56453         * tests/unictype/test-categ_Sk.c: Likewise.
56454         * tests/unictype/test-categ_Sm.c: Likewise.
56455         * tests/unictype/test-categ_So.c: Likewise.
56456         * tests/unictype/test-categ_Z.c: Likewise.
56457         * tests/unictype/test-categ_Zl.c: Likewise.
56458         * tests/unictype/test-categ_Zp.c: Likewise.
56459         * tests/unictype/test-categ_Zs.c: Likewise.
56460         * tests/unictype/test-ctype_alnum.c: Likewise.
56461         * tests/unictype/test-ctype_alpha.c: Likewise.
56462         * tests/unictype/test-ctype_blank.c: Likewise.
56463         * tests/unictype/test-ctype_cntrl.c: Likewise.
56464         * tests/unictype/test-ctype_digit.c: Likewise.
56465         * tests/unictype/test-ctype_graph.c: Likewise.
56466         * tests/unictype/test-ctype_lower.c: Likewise.
56467         * tests/unictype/test-ctype_print.c: Likewise.
56468         * tests/unictype/test-ctype_punct.c: Likewise.
56469         * tests/unictype/test-ctype_space.c: Likewise.
56470         * tests/unictype/test-ctype_upper.c: Likewise.
56471         * tests/unictype/test-ctype_xdigit.c: Likewise.
56472         * tests/unictype/test-decdigit.h: Likewise.
56473         * tests/unictype/test-digit.h: Likewise.
56474         * tests/unictype/test-numeric.h: Likewise.
56475         * tests/unictype/test-pr_alphabetic.c: Likewise.
56476         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
56477         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
56478         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
56479         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
56480         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
56481         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
56482         * tests/unictype/test-pr_bidi_control.c: Likewise.
56483         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
56484         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
56485         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
56486         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
56487         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
56488         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
56489         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
56490         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
56491         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
56492         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
56493         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
56494         * tests/unictype/test-pr_combining.c: Likewise.
56495         * tests/unictype/test-pr_composite.c: Likewise.
56496         * tests/unictype/test-pr_currency_symbol.c: Likewise.
56497         * tests/unictype/test-pr_dash.c: Likewise.
56498         * tests/unictype/test-pr_decimal_digit.c: Likewise.
56499         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
56500         * tests/unictype/test-pr_deprecated.c: Likewise.
56501         * tests/unictype/test-pr_diacritic.c: Likewise.
56502         * tests/unictype/test-pr_extender.c: Likewise.
56503         * tests/unictype/test-pr_format_control.c: Likewise.
56504         * tests/unictype/test-pr_grapheme_base.c: Likewise.
56505         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
56506         * tests/unictype/test-pr_grapheme_link.c: Likewise.
56507         * tests/unictype/test-pr_hex_digit.c: Likewise.
56508         * tests/unictype/test-pr_hyphen.c: Likewise.
56509         * tests/unictype/test-pr_id_continue.c: Likewise.
56510         * tests/unictype/test-pr_id_start.c: Likewise.
56511         * tests/unictype/test-pr_ideographic.c: Likewise.
56512         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
56513         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
56514         * tests/unictype/test-pr_ignorable_control.c: Likewise.
56515         * tests/unictype/test-pr_iso_control.c: Likewise.
56516         * tests/unictype/test-pr_join_control.c: Likewise.
56517         * tests/unictype/test-pr_left_of_pair.c: Likewise.
56518         * tests/unictype/test-pr_line_separator.c: Likewise.
56519         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
56520         * tests/unictype/test-pr_lowercase.c: Likewise.
56521         * tests/unictype/test-pr_math.c: Likewise.
56522         * tests/unictype/test-pr_non_break.c: Likewise.
56523         * tests/unictype/test-pr_not_a_character.c: Likewise.
56524         * tests/unictype/test-pr_numeric.c: Likewise.
56525         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
56526         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
56527         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
56528         * tests/unictype/test-pr_other_id_continue.c: Likewise.
56529         * tests/unictype/test-pr_other_id_start.c: Likewise.
56530         * tests/unictype/test-pr_other_lowercase.c: Likewise.
56531         * tests/unictype/test-pr_other_math.c: Likewise.
56532         * tests/unictype/test-pr_other_uppercase.c: Likewise.
56533         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
56534         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
56535         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
56536         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
56537         * tests/unictype/test-pr_private_use.c: Likewise.
56538         * tests/unictype/test-pr_punctuation.c: Likewise.
56539         * tests/unictype/test-pr_quotation_mark.c: Likewise.
56540         * tests/unictype/test-pr_radical.c: Likewise.
56541         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
56542         * tests/unictype/test-pr_soft_dotted.c: Likewise.
56543         * tests/unictype/test-pr_space.c: Likewise.
56544         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
56545         * tests/unictype/test-pr_titlecase.c: Likewise.
56546         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
56547         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
56548         * tests/unictype/test-pr_uppercase.c: Likewise.
56549         * tests/unictype/test-pr_variation_selector.c: Likewise.
56550         * tests/unictype/test-pr_white_space.c: Likewise.
56551         * tests/unictype/test-pr_xid_continue.c: Likewise.
56552         * tests/unictype/test-pr_xid_start.c: Likewise.
56553         * tests/unictype/test-pr_zero_width.c: Likewise.
56554         * tests/unictype/test-sy_c_whitespace.c: Likewise.
56555         * tests/unictype/test-sy_java_whitespace.c: Likewise.
56556
56557 2007-11-12  Bruno Haible  <bruno@clisp.org>
56558
56559         Unicode character classification functions.
56560         * lib/unictype.h: New file.
56561         * modules/unictype/base: New file.
56562         * modules/unictype/category-L: New file.
56563         * modules/unictype/category-Lu: New file.
56564         * modules/unictype/category-Ll: New file.
56565         * modules/unictype/category-Lt: New file.
56566         * modules/unictype/category-Lm: New file.
56567         * modules/unictype/category-Lo: New file.
56568         * modules/unictype/category-M: New file.
56569         * modules/unictype/category-Mn: New file.
56570         * modules/unictype/category-Mc: New file.
56571         * modules/unictype/category-Me: New file.
56572         * modules/unictype/category-N: New file.
56573         * modules/unictype/category-Nd: New file.
56574         * modules/unictype/category-Nl: New file.
56575         * modules/unictype/category-No: New file.
56576         * modules/unictype/category-P: New file.
56577         * modules/unictype/category-Pc: New file.
56578         * modules/unictype/category-Pd: New file.
56579         * modules/unictype/category-Ps: New file.
56580         * modules/unictype/category-Pe: New file.
56581         * modules/unictype/category-Pi: New file.
56582         * modules/unictype/category-Pf: New file.
56583         * modules/unictype/category-Po: New file.
56584         * modules/unictype/category-S: New file.
56585         * modules/unictype/category-Sm: New file.
56586         * modules/unictype/category-Sc: New file.
56587         * modules/unictype/category-Sk: New file.
56588         * modules/unictype/category-So: New file.
56589         * modules/unictype/category-Z: New file.
56590         * modules/unictype/category-Zs: New file.
56591         * modules/unictype/category-Zl: New file.
56592         * modules/unictype/category-Zp: New file.
56593         * modules/unictype/category-C: New file.
56594         * modules/unictype/category-Cc: New file.
56595         * modules/unictype/category-Cf: New file.
56596         * modules/unictype/category-Cs: New file.
56597         * modules/unictype/category-Co: New file.
56598         * modules/unictype/category-Cn: New file.
56599         * modules/unictype/category-or: New file.
56600         * modules/unictype/category-of: New file.
56601         * modules/unictype/category-test: New file.
56602         * modules/unictype/category-test-withtable: New file.
56603         * modules/unictype/category-byname: New file.
56604         * modules/unictype/category-none: New file.
56605         * modules/unictype/category-and: New file.
56606         * modules/unictype/category-and-not: New file.
56607         * modules/unictype/category-name: New file.
56608         * modules/unictype/combining-class: New file.
56609         * modules/unictype/category-all: New file.
56610         * modules/unictype/bidicategory-all: New file.
56611         * modules/unictype/bidicategory-byname: New file.
56612         * modules/unictype/bidicategory-name: New file.
56613         * modules/unictype/bidicategory-of: New file.
56614         * modules/unictype/bidicategory-test: New file.
56615         * modules/unictype/decimal-digit: New file.
56616         * modules/unictype/digit: New file.
56617         * modules/unictype/numeric: New file.
56618         * modules/unictype/mirror: New file.
56619         * modules/unictype/property-white-space: New file.
56620         * modules/unictype/property-alphabetic: New file.
56621         * modules/unictype/property-other-alphabetic: New file.
56622         * modules/unictype/property-not-a-character: New file.
56623         * modules/unictype/property-default-ignorable-code-point: New file.
56624         * modules/unictype/property-other-default-ignorable-code-point: New
56625         file.
56626         * modules/unictype/property-deprecated: New file.
56627         * modules/unictype/property-logical-order-exception: New file.
56628         * modules/unictype/property-variation-selector: New file.
56629         * modules/unictype/property-private-use: New file.
56630         * modules/unictype/property-unassigned-code-value: New file.
56631         * modules/unictype/property-uppercase: New file.
56632         * modules/unictype/property-other-uppercase: New file.
56633         * modules/unictype/property-lowercase: New file.
56634         * modules/unictype/property-other-lowercase: New file.
56635         * modules/unictype/property-titlecase: New file.
56636         * modules/unictype/property-soft-dotted: New file.
56637         * modules/unictype/property-id-start: New file.
56638         * modules/unictype/property-other-id-start: New file.
56639         * modules/unictype/property-id-continue: New file.
56640         * modules/unictype/property-other-id-continue: New file.
56641         * modules/unictype/property-xid-start: New file.
56642         * modules/unictype/property-xid-continue: New file.
56643         * modules/unictype/property-pattern-white-space: New file.
56644         * modules/unictype/property-pattern-syntax: New file.
56645         * modules/unictype/property-join-control: New file.
56646         * modules/unictype/property-grapheme-base: New file.
56647         * modules/unictype/property-grapheme-extend: New file.
56648         * modules/unictype/property-other-grapheme-extend: New file.
56649         * modules/unictype/property-grapheme-link: New file.
56650         * modules/unictype/property-bidi-control: New file.
56651         * modules/unictype/property-bidi-left-to-right: New file.
56652         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
56653         * modules/unictype/property-bidi-arabic-right-to-left: New file.
56654         * modules/unictype/property-bidi-european-digit: New file.
56655         * modules/unictype/property-bidi-eur-num-separator: New file.
56656         * modules/unictype/property-bidi-eur-num-terminator: New file.
56657         * modules/unictype/property-bidi-arabic-digit: New file.
56658         * modules/unictype/property-bidi-common-separator: New file.
56659         * modules/unictype/property-bidi-block-separator: New file.
56660         * modules/unictype/property-bidi-segment-separator: New file.
56661         * modules/unictype/property-bidi-whitespace: New file.
56662         * modules/unictype/property-bidi-non-spacing-mark: New file.
56663         * modules/unictype/property-bidi-boundary-neutral: New file.
56664         * modules/unictype/property-bidi-pdf: New file.
56665         * modules/unictype/property-bidi-embedding-or-override: New file.
56666         * modules/unictype/property-bidi-other-neutral: New file.
56667         * modules/unictype/property-hex-digit: New file.
56668         * modules/unictype/property-ascii-hex-digit: New file.
56669         * modules/unictype/property-ideographic: New file.
56670         * modules/unictype/property-unified-ideograph: New file.
56671         * modules/unictype/property-radical: New file.
56672         * modules/unictype/property-ids-binary-operator: New file.
56673         * modules/unictype/property-ids-trinary-operator: New file.
56674         * modules/unictype/property-zero-width: New file.
56675         * modules/unictype/property-space: New file.
56676         * modules/unictype/property-non-break: New file.
56677         * modules/unictype/property-iso-control: New file.
56678         * modules/unictype/property-format-control: New file.
56679         * modules/unictype/property-dash: New file.
56680         * modules/unictype/property-hyphen: New file.
56681         * modules/unictype/property-punctuation: New file.
56682         * modules/unictype/property-line-separator: New file.
56683         * modules/unictype/property-paragraph-separator: New file.
56684         * modules/unictype/property-quotation-mark: New file.
56685         * modules/unictype/property-sentence-terminal: New file.
56686         * modules/unictype/property-terminal-punctuation: New file.
56687         * modules/unictype/property-currency-symbol: New file.
56688         * modules/unictype/property-math: New file.
56689         * modules/unictype/property-other-math: New file.
56690         * modules/unictype/property-paired-punctuation: New file.
56691         * modules/unictype/property-left-of-pair: New file.
56692         * modules/unictype/property-combining: New file.
56693         * modules/unictype/property-composite: New file.
56694         * modules/unictype/property-decimal-digit: New file.
56695         * modules/unictype/property-numeric: New file.
56696         * modules/unictype/property-diacritic: New file.
56697         * modules/unictype/property-extender: New file.
56698         * modules/unictype/property-ignorable-control: New file.
56699         * modules/unictype/property-test: New file.
56700         * modules/unictype/property-byname: New file.
56701         * modules/unictype/property-all: New file.
56702         * modules/unictype/scripts: New file.
56703         * modules/unictype/scripts-all: New file.
56704         * modules/unictype/block-of: New file.
56705         * modules/unictype/block-test: New file.
56706         * modules/unictype/block-list: New file.
56707         * modules/unictype/block-all: New file.
56708         * modules/unictype/syntax-c-whitespace: New file.
56709         * modules/unictype/syntax-java-whitespace: New file.
56710         * modules/unictype/syntax-c-ident: New file.
56711         * modules/unictype/syntax-java-ident: New file.
56712         * modules/unictype/ctype-alnum: New file.
56713         * modules/unictype/ctype-alpha: New file.
56714         * modules/unictype/ctype-cntrl: New file.
56715         * modules/unictype/ctype-digit: New file.
56716         * modules/unictype/ctype-graph: New file.
56717         * modules/unictype/ctype-lower: New file.
56718         * modules/unictype/ctype-print: New file.
56719         * modules/unictype/ctype-punct: New file.
56720         * modules/unictype/ctype-space: New file.
56721         * modules/unictype/ctype-upper: New file.
56722         * modules/unictype/ctype-xdigit: New file.
56723         * modules/unictype/ctype-blank: New file.
56724         * lib/unictype/bidi_byname.c: New file.
56725         * lib/unictype/bidi_name.c: New file.
56726         * lib/unictype/bidi_of.c: New file.
56727         * lib/unictype/bidi_test.c: New file.
56728         * lib/unictype/bitmap.h: New file.
56729         * lib/unictype/block_test.c: New file.
56730         * lib/unictype/blocks.c: New file.
56731         * lib/unictype/categ_C.c: New file.
56732         * lib/unictype/categ_Cc.c: New file.
56733         * lib/unictype/categ_Cf.c: New file.
56734         * lib/unictype/categ_Cn.c: New file.
56735         * lib/unictype/categ_Co.c: New file.
56736         * lib/unictype/categ_Cs.c: New file.
56737         * lib/unictype/categ_L.c: New file.
56738         * lib/unictype/categ_Ll.c: New file.
56739         * lib/unictype/categ_Lm.c: New file.
56740         * lib/unictype/categ_Lo.c: New file.
56741         * lib/unictype/categ_Lt.c: New file.
56742         * lib/unictype/categ_Lu.c: New file.
56743         * lib/unictype/categ_M.c: New file.
56744         * lib/unictype/categ_Mc.c: New file.
56745         * lib/unictype/categ_Me.c: New file.
56746         * lib/unictype/categ_Mn.c: New file.
56747         * lib/unictype/categ_N.c: New file.
56748         * lib/unictype/categ_Nd.c: New file.
56749         * lib/unictype/categ_Nl.c: New file.
56750         * lib/unictype/categ_No.c: New file.
56751         * lib/unictype/categ_P.c: New file.
56752         * lib/unictype/categ_Pc.c: New file.
56753         * lib/unictype/categ_Pd.c: New file.
56754         * lib/unictype/categ_Pe.c: New file.
56755         * lib/unictype/categ_Pf.c: New file.
56756         * lib/unictype/categ_Pi.c: New file.
56757         * lib/unictype/categ_Po.c: New file.
56758         * lib/unictype/categ_Ps.c: New file.
56759         * lib/unictype/categ_S.c: New file.
56760         * lib/unictype/categ_Sc.c: New file.
56761         * lib/unictype/categ_Sk.c: New file.
56762         * lib/unictype/categ_Sm.c: New file.
56763         * lib/unictype/categ_So.c: New file.
56764         * lib/unictype/categ_Z.c: New file.
56765         * lib/unictype/categ_Zl.c: New file.
56766         * lib/unictype/categ_Zp.c: New file.
56767         * lib/unictype/categ_Zs.c: New file.
56768         * lib/unictype/categ_and.c: New file.
56769         * lib/unictype/categ_and_not.c: New file.
56770         * lib/unictype/categ_byname.c: New file.
56771         * lib/unictype/categ_name.c: New file.
56772         * lib/unictype/categ_none.c: New file.
56773         * lib/unictype/categ_of.c: New file.
56774         * lib/unictype/categ_or.c: New file.
56775         * lib/unictype/categ_test.c: New file.
56776         * lib/unictype/combining.c: New file.
56777         * lib/unictype/ctype_alnum.c: New file.
56778         * lib/unictype/ctype_alpha.c: New file.
56779         * lib/unictype/ctype_blank.c: New file.
56780         * lib/unictype/ctype_cntrl.c: New file.
56781         * lib/unictype/ctype_digit.c: New file.
56782         * lib/unictype/ctype_graph.c: New file.
56783         * lib/unictype/ctype_lower.c: New file.
56784         * lib/unictype/ctype_print.c: New file.
56785         * lib/unictype/ctype_punct.c: New file.
56786         * lib/unictype/ctype_space.c: New file.
56787         * lib/unictype/ctype_upper.c: New file.
56788         * lib/unictype/ctype_xdigit.c: New file.
56789         * lib/unictype/decdigit.c: New file.
56790         * lib/unictype/digit.c: New file.
56791         * lib/unictype/identsyntaxmap.h: New file.
56792         * lib/unictype/mirror.c: New file.
56793         * lib/unictype/numeric.c: New file.
56794         * lib/unictype/pr_alphabetic.c: New file.
56795         * lib/unictype/pr_ascii_hex_digit.c: New file.
56796         * lib/unictype/pr_bidi_arabic_digit.c: New file.
56797         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
56798         * lib/unictype/pr_bidi_block_separator.c: New file.
56799         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
56800         * lib/unictype/pr_bidi_common_separator.c: New file.
56801         * lib/unictype/pr_bidi_control.c: New file.
56802         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
56803         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
56804         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
56805         * lib/unictype/pr_bidi_european_digit.c: New file.
56806         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
56807         * lib/unictype/pr_bidi_left_to_right.c: New file.
56808         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
56809         * lib/unictype/pr_bidi_other_neutral.c: New file.
56810         * lib/unictype/pr_bidi_pdf.c: New file.
56811         * lib/unictype/pr_bidi_segment_separator.c: New file.
56812         * lib/unictype/pr_bidi_whitespace.c: New file.
56813         * lib/unictype/pr_byname.c: New file.
56814         * lib/unictype/pr_byname.gperf: New file.
56815         * lib/unictype/pr_combining.c: New file.
56816         * lib/unictype/pr_composite.c: New file.
56817         * lib/unictype/pr_currency_symbol.c: New file.
56818         * lib/unictype/pr_dash.c: New file.
56819         * lib/unictype/pr_decimal_digit.c: New file.
56820         * lib/unictype/pr_default_ignorable_code_point.c: New file.
56821         * lib/unictype/pr_deprecated.c: New file.
56822         * lib/unictype/pr_diacritic.c: New file.
56823         * lib/unictype/pr_extender.c: New file.
56824         * lib/unictype/pr_format_control.c: New file.
56825         * lib/unictype/pr_grapheme_base.c: New file.
56826         * lib/unictype/pr_grapheme_extend.c: New file.
56827         * lib/unictype/pr_grapheme_link.c: New file.
56828         * lib/unictype/pr_hex_digit.c: New file.
56829         * lib/unictype/pr_hyphen.c: New file.
56830         * lib/unictype/pr_id_continue.c: New file.
56831         * lib/unictype/pr_id_start.c: New file.
56832         * lib/unictype/pr_ideographic.c: New file.
56833         * lib/unictype/pr_ids_binary_operator.c: New file.
56834         * lib/unictype/pr_ids_trinary_operator.c: New file.
56835         * lib/unictype/pr_ignorable_control.c: New file.
56836         * lib/unictype/pr_iso_control.c: New file.
56837         * lib/unictype/pr_join_control.c: New file.
56838         * lib/unictype/pr_left_of_pair.c: New file.
56839         * lib/unictype/pr_line_separator.c: New file.
56840         * lib/unictype/pr_logical_order_exception.c: New file.
56841         * lib/unictype/pr_lowercase.c: New file.
56842         * lib/unictype/pr_math.c: New file.
56843         * lib/unictype/pr_non_break.c: New file.
56844         * lib/unictype/pr_not_a_character.c: New file.
56845         * lib/unictype/pr_numeric.c: New file.
56846         * lib/unictype/pr_other_alphabetic.c: New file.
56847         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
56848         * lib/unictype/pr_other_grapheme_extend.c: New file.
56849         * lib/unictype/pr_other_id_continue.c: New file.
56850         * lib/unictype/pr_other_id_start.c: New file.
56851         * lib/unictype/pr_other_lowercase.c: New file.
56852         * lib/unictype/pr_other_math.c: New file.
56853         * lib/unictype/pr_other_uppercase.c: New file.
56854         * lib/unictype/pr_paired_punctuation.c: New file.
56855         * lib/unictype/pr_paragraph_separator.c: New file.
56856         * lib/unictype/pr_pattern_syntax.c: New file.
56857         * lib/unictype/pr_pattern_white_space.c: New file.
56858         * lib/unictype/pr_private_use.c: New file.
56859         * lib/unictype/pr_punctuation.c: New file.
56860         * lib/unictype/pr_quotation_mark.c: New file.
56861         * lib/unictype/pr_radical.c: New file.
56862         * lib/unictype/pr_sentence_terminal.c: New file.
56863         * lib/unictype/pr_soft_dotted.c: New file.
56864         * lib/unictype/pr_space.c: New file.
56865         * lib/unictype/pr_terminal_punctuation.c: New file.
56866         * lib/unictype/pr_test.c: New file.
56867         * lib/unictype/pr_titlecase.c: New file.
56868         * lib/unictype/pr_unassigned_code_value.c: New file.
56869         * lib/unictype/pr_unified_ideograph.c: New file.
56870         * lib/unictype/pr_uppercase.c: New file.
56871         * lib/unictype/pr_variation_selector.c: New file.
56872         * lib/unictype/pr_white_space.c: New file.
56873         * lib/unictype/pr_xid_continue.c: New file.
56874         * lib/unictype/pr_xid_start.c: New file.
56875         * lib/unictype/pr_zero_width.c: New file.
56876         * lib/unictype/scripts.c: New file.
56877         * lib/unictype/sy_c_ident.c: New file.
56878         * lib/unictype/sy_c_whitespace.c: New file.
56879         * lib/unictype/sy_java_ident.c: New file.
56880         * lib/unictype/sy_java_whitespace.c: New file.
56881
56882         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
56883         Unicode 5.0.0.
56884         * lib/unictype/blocks.h: Likewise.
56885         * lib/unictype/categ_C.h: Likewise.
56886         * lib/unictype/categ_Cc.h: Likewise.
56887         * lib/unictype/categ_Cf.h: Likewise.
56888         * lib/unictype/categ_Cn.h: Likewise.
56889         * lib/unictype/categ_Co.h: Likewise.
56890         * lib/unictype/categ_Cs.h: Likewise.
56891         * lib/unictype/categ_L.h: Likewise.
56892         * lib/unictype/categ_Ll.h: Likewise.
56893         * lib/unictype/categ_Lm.h: Likewise.
56894         * lib/unictype/categ_Lo.h: Likewise.
56895         * lib/unictype/categ_Lt.h: Likewise.
56896         * lib/unictype/categ_Lu.h: Likewise.
56897         * lib/unictype/categ_M.h: Likewise.
56898         * lib/unictype/categ_Mc.h: Likewise.
56899         * lib/unictype/categ_Me.h: Likewise.
56900         * lib/unictype/categ_Mn.h: Likewise.
56901         * lib/unictype/categ_N.h: Likewise.
56902         * lib/unictype/categ_Nd.h: Likewise.
56903         * lib/unictype/categ_Nl.h: Likewise.
56904         * lib/unictype/categ_No.h: Likewise.
56905         * lib/unictype/categ_P.h: Likewise.
56906         * lib/unictype/categ_Pc.h: Likewise.
56907         * lib/unictype/categ_Pd.h: Likewise.
56908         * lib/unictype/categ_Pe.h: Likewise.
56909         * lib/unictype/categ_Pf.h: Likewise.
56910         * lib/unictype/categ_Pi.h: Likewise.
56911         * lib/unictype/categ_Po.h: Likewise.
56912         * lib/unictype/categ_Ps.h: Likewise.
56913         * lib/unictype/categ_S.h: Likewise.
56914         * lib/unictype/categ_Sc.h: Likewise.
56915         * lib/unictype/categ_Sk.h: Likewise.
56916         * lib/unictype/categ_Sm.h: Likewise.
56917         * lib/unictype/categ_So.h: Likewise.
56918         * lib/unictype/categ_Z.h: Likewise.
56919         * lib/unictype/categ_Zl.h: Likewise.
56920         * lib/unictype/categ_Zp.h: Likewise.
56921         * lib/unictype/categ_Zs.h: Likewise.
56922         * lib/unictype/categ_of.h: Likewise.
56923         * lib/unictype/combining.h: Likewise.
56924         * lib/unictype/ctype_alnum.h: Likewise.
56925         * lib/unictype/ctype_alpha.h: Likewise.
56926         * lib/unictype/ctype_blank.h: Likewise.
56927         * lib/unictype/ctype_cntrl.h: Likewise.
56928         * lib/unictype/ctype_digit.h: Likewise.
56929         * lib/unictype/ctype_graph.h: Likewise.
56930         * lib/unictype/ctype_lower.h: Likewise.
56931         * lib/unictype/ctype_print.h: Likewise.
56932         * lib/unictype/ctype_punct.h: Likewise.
56933         * lib/unictype/ctype_space.h: Likewise.
56934         * lib/unictype/ctype_upper.h: Likewise.
56935         * lib/unictype/ctype_xdigit.h: Likewise.
56936         * lib/unictype/decdigit.h: Likewise.
56937         * lib/unictype/digit.h: Likewise.
56938         * lib/unictype/mirror.h: Likewise.
56939         * lib/unictype/numeric.h: Likewise.
56940         * lib/unictype/pr_alphabetic.h: Likewise.
56941         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
56942         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
56943         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
56944         * lib/unictype/pr_bidi_block_separator.h: Likewise.
56945         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
56946         * lib/unictype/pr_bidi_common_separator.h: Likewise.
56947         * lib/unictype/pr_bidi_control.h: Likewise.
56948         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
56949         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
56950         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
56951         * lib/unictype/pr_bidi_european_digit.h: Likewise.
56952         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
56953         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
56954         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
56955         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
56956         * lib/unictype/pr_bidi_pdf.h: Likewise.
56957         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
56958         * lib/unictype/pr_bidi_whitespace.h: Likewise.
56959         * lib/unictype/pr_combining.h: Likewise.
56960         * lib/unictype/pr_composite.h: Likewise.
56961         * lib/unictype/pr_currency_symbol.h: Likewise.
56962         * lib/unictype/pr_dash.h: Likewise.
56963         * lib/unictype/pr_decimal_digit.h: Likewise.
56964         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
56965         * lib/unictype/pr_deprecated.h: Likewise.
56966         * lib/unictype/pr_diacritic.h: Likewise.
56967         * lib/unictype/pr_extender.h: Likewise.
56968         * lib/unictype/pr_format_control.h: Likewise.
56969         * lib/unictype/pr_grapheme_base.h: Likewise.
56970         * lib/unictype/pr_grapheme_extend.h: Likewise.
56971         * lib/unictype/pr_grapheme_link.h: Likewise.
56972         * lib/unictype/pr_hex_digit.h: Likewise.
56973         * lib/unictype/pr_hyphen.h: Likewise.
56974         * lib/unictype/pr_id_continue.h: Likewise.
56975         * lib/unictype/pr_id_start.h: Likewise.
56976         * lib/unictype/pr_ideographic.h: Likewise.
56977         * lib/unictype/pr_ids_binary_operator.h: Likewise.
56978         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
56979         * lib/unictype/pr_ignorable_control.h: Likewise.
56980         * lib/unictype/pr_iso_control.h: Likewise.
56981         * lib/unictype/pr_join_control.h: Likewise.
56982         * lib/unictype/pr_left_of_pair.h: Likewise.
56983         * lib/unictype/pr_line_separator.h: Likewise.
56984         * lib/unictype/pr_logical_order_exception.h: Likewise.
56985         * lib/unictype/pr_lowercase.h: Likewise.
56986         * lib/unictype/pr_math.h: Likewise.
56987         * lib/unictype/pr_non_break.h: Likewise.
56988         * lib/unictype/pr_not_a_character.h: Likewise.
56989         * lib/unictype/pr_numeric.h: Likewise.
56990         * lib/unictype/pr_other_alphabetic.h: Likewise.
56991         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
56992         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
56993         * lib/unictype/pr_other_id_continue.h: Likewise.
56994         * lib/unictype/pr_other_id_start.h: Likewise.
56995         * lib/unictype/pr_other_lowercase.h: Likewise.
56996         * lib/unictype/pr_other_math.h: Likewise.
56997         * lib/unictype/pr_other_uppercase.h: Likewise.
56998         * lib/unictype/pr_paired_punctuation.h: Likewise.
56999         * lib/unictype/pr_paragraph_separator.h: Likewise.
57000         * lib/unictype/pr_pattern_syntax.h: Likewise.
57001         * lib/unictype/pr_pattern_white_space.h: Likewise.
57002         * lib/unictype/pr_private_use.h: Likewise.
57003         * lib/unictype/pr_punctuation.h: Likewise.
57004         * lib/unictype/pr_quotation_mark.h: Likewise.
57005         * lib/unictype/pr_radical.h: Likewise.
57006         * lib/unictype/pr_sentence_terminal.h: Likewise.
57007         * lib/unictype/pr_soft_dotted.h: Likewise.
57008         * lib/unictype/pr_space.h: Likewise.
57009         * lib/unictype/pr_terminal_punctuation.h: Likewise.
57010         * lib/unictype/pr_titlecase.h: Likewise.
57011         * lib/unictype/pr_unassigned_code_value.h: Likewise.
57012         * lib/unictype/pr_unified_ideograph.h: Likewise.
57013         * lib/unictype/pr_uppercase.h: Likewise.
57014         * lib/unictype/pr_variation_selector.h: Likewise.
57015         * lib/unictype/pr_white_space.h: Likewise.
57016         * lib/unictype/pr_xid_continue.h: Likewise.
57017         * lib/unictype/pr_xid_start.h: Likewise.
57018         * lib/unictype/pr_zero_width.h: Likewise.
57019         * lib/unictype/scripts.h: Likewise.
57020         * lib/unictype/scripts_byname.gperf: Likewise.
57021         * lib/unictype/sy_c_ident.h: Likewise.
57022         * lib/unictype/sy_c_whitespace.h: Likewise.
57023         * lib/unictype/sy_java_ident.h: Likewise.
57024         * lib/unictype/sy_java_whitespace.h: Likewise.
57025
57026         * lib/unictype/Makefile: New file.
57027         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
57028         glibc.
57029         * lib/unictype/3level.h: New file, copied from glibc.
57030         * lib/unictype/3levelbit.h: New file.
57031
57032 2007-11-11  Bruno Haible  <bruno@clisp.org>
57033
57034         * modules/gperf: New file.
57035         * modules/iconv_open (Depends-on): Add it.
57036         (Makefile.am): Remove the GPERF definition.
57037
57038 2007-11-11  Bruno Haible  <bruno@clisp.org>
57039
57040         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
57041         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
57042
57043 2007-11-11  Bruno Haible  <bruno@clisp.org>
57044
57045         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
57046         (usage): Remove function.
57047
57048 2007-11-11  Bruno Haible  <bruno@clisp.org>
57049
57050         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
57051         gl_FUNC_CEILF_LIBS.
57052         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
57053         gl_FUNC_CEIL_LIBS.
57054         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
57055         gl_FUNC_CEILL_LIBS.
57056         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
57057         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
57058         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
57059
57060 2007-11-11  Bruno Haible  <bruno@clisp.org>
57061
57062         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
57063         roundf were declared but do not exist on functions.
57064         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
57065         roundl were declared but do not exist on functions.
57066         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
57067         HAVE_FLOORL_AND_CEILL, respectively.
57068         Needed for Sun C on Solaris 10.
57069
57070 2007-11-11  Bruno Haible  <bruno@clisp.org>
57071
57072         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
57073         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
57074         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
57075         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
57076         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
57077         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
57078         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
57079         HAVE_DECL_ROUNDF.
57080         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
57081         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
57082         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
57083         of HAVE_DECL_ROUND*.
57084         * modules/math (Makefile.am): Update.
57085
57086 2007-11-10  Bruno Haible  <bruno@clisp.org>
57087
57088         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
57089         ptrdiff_t as m4/intl.m4.
57090
57091 2007-11-10  Jim Meyering  <meyering@redhat.com>
57092
57093         Avoid link failure for the argmatch test.
57094         * tests/test-argmatch.c (usage): Define function to avoid a link
57095         failure: argmatch_die requires a usage function.
57096
57097 2007-11-09  Bruno Haible  <bruno@clisp.org>
57098
57099         * doc/functions/snprintf.texi: Mention BeOS deficiency.
57100         * doc/functions/vsnprintf.texi: Likewise.
57101         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
57102         with a size argument < 2.
57103
57104 2007-11-09  Bruno Haible  <bruno@clisp.org>
57105
57106         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
57107         buffer. Fixes an inefficiency introduced on 2007-11-03.
57108
57109 2007-11-09  Bruno Haible  <bruno@clisp.org>
57110
57111         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
57112         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
57113
57114 2007-11-08  Jim Meyering  <meyering@redhat.com>
57115
57116         Change cache variable name prefix "jm_" to "gl_" everywhere.
57117         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
57118         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
57119         * m4/uptime.m4: s/gl_/jm_/
57120
57121 2007-11-07  Bruno Haible  <bruno@clisp.org>
57122
57123         Update to GNU gettext 0.17.
57124         * m4/intl.m4: Update to GNU gettext 0.17.
57125         * m4/po.m4: Likewise.
57126         * modules/gettext (Files): Remove m4/ulonglong.m4.
57127         (configure.ac): Require gettext infrastructure from version 0.17.
57128
57129 2007-11-06  Bruno Haible  <bruno@clisp.org>
57130
57131         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
57132         symbolic values are not defined in a public header.
57133         * lib/freadable.c (freadable) [QNX]: Likewise.
57134         * lib/freadahead.c (freadahead) [QNX]: Likewise.
57135         * lib/freading.c (freading) [QNX]: Likewise.
57136         * lib/fseterr.c (fseterr) [QNX]: Likewise.
57137         * lib/fwritable.c (fwritable) [QNX]: Likewise.
57138         * lib/fwriting.c (fwriting) [QNX]: Likewise.
57139         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
57140         Reported by Alain Magloire.
57141
57142         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
57143
57144 2007-11-05  Bruno Haible  <bruno@clisp.org>
57145
57146         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
57147         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
57148         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
57149         Reported by Eric Blake.
57150
57151 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57152             Bruno Haible  <bruno@clisp.org>
57153
57154         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
57155         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
57156         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
57157         (malloc): Undefine also before including <stdlib.h>.
57158         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
57159         Needed on OSF/1 4.0.
57160
57161 2007-11-05  Jim Meyering  <meyering@redhat.com>
57162
57163         git-version-gen: sync from coreutils.
57164         * build-aux/git-version-gen: Add comments.
57165         Change the first '-' to '.' in the snapshot version string,
57166         e.g., 6.9-377-08144 -> 6.9.377-08144
57167         Remove first parameter.
57168         Don't declare a version "-dirty" merely because a time
57169         stamp has changed.
57170
57171 2007-11-04  Bruno Haible  <bruno@clisp.org>
57172
57173         * lib/lock.h: Protect all macro definitions containing an 'if'
57174         statement through a "do { ... } while (0)".
57175         * lib/tls.h: Likewise.
57176
57177 2007-11-04  Bruno Haible  <bruno@clisp.org>
57178
57179         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
57180
57181 2007-11-04  Bruno Haible  <bruno@clisp.org>
57182
57183         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
57184         * modules/fprintf-posix (Depends-on): Add nocrash.
57185         * modules/snprintf-posix (Depends-on): Likewise.
57186         * modules/sprintf-posix (Depends-on): Likewise.
57187         * modules/vasnprintf-posix (Depends-on): Likewise.
57188         * modules/vasprintf-posix (Depends-on): Likewise.
57189         * modules/vfprintf-posix (Depends-on): Likewise.
57190         * modules/vsnprintf-posix (Depends-on): Likewise.
57191         * modules/vsprintf-posix (Depends-on): Likewise.
57192         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57193         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57194         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57195         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57196         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57197         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57198         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57199
57200 2007-11-04  Bruno Haible  <bruno@clisp.org>
57201
57202         * modules/nocrash: New file.
57203         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
57204         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
57205
57206 2007-11-04  Bruno Haible  <bruno@clisp.org>
57207
57208         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
57209         precision handling.
57210         * tests/test-vasprintf-posix.c (test_function): Likewise.
57211         * tests/test-snprintf-posix.h (test_function): Likewise.
57212         * tests/test-sprintf-posix.h (test_function): Likewise.
57213
57214         Fix *printf behaviour for large precisions on mingw and BeOS.
57215         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
57216         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
57217         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
57218         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57219         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57220         gl_PRINTF_PRECISION and test its result. Invoke
57221         gl_PREREQ_VASNPRINTF_PRECISION.
57222         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57223         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57224         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57225         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57226         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57227         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57228         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57229         * doc/functions/fprintf.texi: Update.
57230         * doc/functions/printf.texi: Update.
57231         * doc/functions/snprintf.texi: Update.
57232         * doc/functions/sprintf.texi: Update.
57233         * doc/functions/vfprintf.texi: Update.
57234         * doc/functions/vprintf.texi: Update.
57235         * doc/functions/vsnprintf.texi: Update.
57236         * doc/functions/vsprintf.texi: Update.
57237
57238 2007-11-04  Bruno Haible  <bruno@clisp.org>
57239
57240         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
57241
57242 2007-11-04  Bruno Haible  <bruno@clisp.org>
57243
57244         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
57245         Reported by Sylvain Beucler <beuc@gnu.org>.
57246
57247 2007-11-03  Bruno Haible  <bruno@clisp.org>
57248
57249         * tests/test-fprintf-posix2.sh: New file.
57250         * tests/test-fprintf-posix2.c: New file.
57251         * modules/fprintf-posix-tests (Files): Add them.
57252         (TESTS): Add test-fprintf-posix2.sh.
57253         (configure.ac): Check for getrlimit and setrlimit.
57254         (check_PROGRAMS): Add test-fprintf-posix2.
57255
57256         * tests/test-printf-posix2.sh: New file.
57257         * tests/test-printf-posix2.c: New file.
57258         * modules/printf-posix-tests (Files): Add them.
57259         (TESTS): Add test-printf-posix2.sh.
57260         (configure.ac): Check for getrlimit and setrlimit.
57261         (check_PROGRAMS): Add test-printf-posix2.
57262
57263         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
57264         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
57265         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
57266         (decode_double): New function, copied from decode_long_double.
57267         (scale10_round_decimal_decoded): New function, extracted from
57268         scale10_round_decimal_long_double.
57269         (scale10_round_decimal_long_double): Use it.
57270         (scale10_round_decimal_double): New function.
57271         (floorlog10): New function.
57272         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
57273         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
57274         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57275         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57276         gl_PRINTF_ENOMEM and test its result. Invoke
57277         gl_PREREQ_VASNPRINTF_ENOMEM.
57278         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57279         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57280         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57281         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57282         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57283         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57284         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57285         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
57286         * modules/snprintf-posix (Depends-on): Likewise.
57287         * modules/sprintf-posix (Depends-on): Likewise.
57288         * modules/vasnprintf-posix (Depends-on): Likewise.
57289         * modules/vasprintf-posix (Depends-on): Likewise.
57290         * modules/vfprintf-posix (Depends-on): Likewise.
57291         * modules/vsnprintf-posix (Depends-on): Likewise.
57292         * modules/vsprintf-posix (Depends-on): Likewise.
57293         * doc/functions/fprintf.texi: Update.
57294         * doc/functions/printf.texi: Update.
57295         * doc/functions/snprintf.texi: Update.
57296         * doc/functions/sprintf.texi: Update.
57297         * doc/functions/vfprintf.texi: Update.
57298         * doc/functions/vprintf.texi: Update.
57299         * doc/functions/vsnprintf.texi: Update.
57300         * doc/functions/vsprintf.texi: Update.
57301
57302 2007-11-03  Bruno Haible  <bruno@clisp.org>
57303
57304         * modules/frexp-nolibm-tests: New file.
57305
57306         * modules/frexp-nolibm: New file.
57307         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
57308
57309 2007-11-03  Bruno Haible  <bruno@clisp.org>
57310
57311         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
57312         value is C99 compliant.
57313         Needed for OSF/1 5.1.
57314
57315 2007-11-03  Bruno Haible  <bruno@clisp.org>
57316
57317         Fix out-of-memory handling of vasnprintf.
57318         * lib/printf-parse.c: Include <errno.h>.
57319         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
57320         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
57321         is already set.
57322
57323 2007-11-02  Eric Blake  <ebb9@byu.net>
57324
57325         Fix tests on cygwin.
57326         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
57327
57328 2007-11-01  Bruno Haible  <bruno@clisp.org>
57329
57330         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
57331         warning.
57332         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
57333         needed for POSIX compatibility.
57334
57335 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
57336
57337         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
57338         for compatibility with GNU.
57339
57340 2007-11-01  Bruno Haible  <bruno@clisp.org>
57341
57342         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
57343         (putenv): Renamed from rpl_putenv. Change argument type from
57344         'const char *' to 'char *'.
57345         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
57346         of defining putenv in config.h, just set REPLACE_PUTENV.
57347         * modules/putenv (Depends-on): Add stdlib.
57348         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57349         (Include): Use <stdlib.h>.
57350         * lib/stdlib.in.h (putenv): New declaration.
57351         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
57352         REPLACE_PUTENV.
57353         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
57354         REPLACE_PUTENV.
57355         Needed for MacOS X 10.5.0.
57356         Reported by Peter O'Gorman <peter@pogma.com>.
57357
57358 2007-11-01  Jim Meyering  <meyering@redhat.com>
57359
57360         Treat an empty date string exactly like "0".
57361         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
57362         if the remaining date string (to be parsed) is empty, use "0".
57363         Reported by Mischa Molhoek and discussed in this thread:
57364         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
57365
57366 2007-10-31  Bruno Haible  <bruno@clisp.org>
57367
57368         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
57369         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
57370         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
57371         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
57372         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
57373         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
57374
57375 2007-10-31  Bruno Haible  <bruno@clisp.org>
57376
57377         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
57378         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
57379         (AC_TYPE_LONG_LONG_INT): Use it.
57380         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
57381         it as well.
57382         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
57383         to m4/longlong.m4.
57384         * modules/stdint (Files): Remove m4/ulonglong.m4.
57385         * modules/strtoull (Files): Use m4/longlong.m4 instead of
57386         m4/ulonglong.m4.
57387         * modules/strtoumax (Files): Likewise.
57388
57389 2007-10-30  Bruno Haible  <bruno@clisp.org>
57390
57391         * modules/xvasprintf-posix: New file.
57392         Suggested by Eric Blake.
57393
57394 2007-10-30  Bruno Haible  <bruno@clisp.org>
57395
57396         * modules/xprintf-posix-tests: New file.
57397         * tests/test-xprintf-posix.sh: New file.
57398         * tests/test-xprintf-posix.c: New file.
57399         * tests/test-xfprintf-posix.c: New file.
57400
57401         * modules/xprintf-posix: New file.
57402
57403 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57404
57405         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
57406         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
57407         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
57408
57409 2007-10-29  Bruno Haible  <bruno@clisp.org>
57410
57411         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
57412         contain the special marker '_cv_'.
57413         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
57414         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
57415         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
57416         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
57417         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
57418         Reported by Ralf Wildenhues.
57419
57420 2007-10-29  Bruno Haible  <bruno@clisp.org>
57421
57422         * gnulib-tool (func_import): When --lgpl is not specified, set
57423         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
57424         GPLv3.
57425         Reported by Simon Josefsson.
57426
57427 2007-10-28  Bruno Haible  <bruno@clisp.org>
57428
57429         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
57430         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
57431         HAVE_DECL_ISFINITE.
57432         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
57433         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
57434         HAVE_DECL_ISFINITE.
57435
57436 2007-10-28  Bruno Haible  <bruno@clisp.org>
57437
57438         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
57439         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
57440
57441 2007-10-28  Bruno Haible  <bruno@clisp.org>
57442
57443         Fix link errors with Sun C 5.0 on Solaris 10.
57444         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
57445         function is declared but not present in the compiler's libm.
57446         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
57447         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
57448         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
57449         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
57450         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
57451         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
57452         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
57453         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
57454         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
57455         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
57456         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
57457         HAVE_DECL_FLOORL.
57458
57459 2007-10-28  Bruno Haible  <bruno@clisp.org>
57460
57461         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
57462         gl_FUNC_FLOORL. Cache the result.
57463         (gl_FUNC_FLOORL): Use it.
57464         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
57465         gl_FUNC_CEILL. Cache the result.
57466         (gl_FUNC_CEILL): Use it.
57467
57468         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
57469         gl_FUNC_FLOOR. Cache the result.
57470         (gl_FUNC_FLOOR): Use it.
57471         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
57472         gl_FUNC_CEIL. Cache the result.
57473         (gl_FUNC_CEIL): Use it.
57474
57475         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
57476         gl_FUNC_FLOORF. Cache the result.
57477         (gl_FUNC_FLOORF): Use it.
57478         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
57479         gl_FUNC_CEILF. Cache the result.
57480         (gl_FUNC_CEILF): Use it.
57481
57482 2007-10-28  Bruno Haible  <bruno@clisp.org>
57483
57484         * gnulib-tool: Allow specifying the LGPL version number through
57485         --lgpl=2 or --lgpl=3.
57486         (func_usage): Document --lgpl with argument.
57487         Handle --lgpl=... arguments.
57488         (func_import): Recognize also gl_LGPL calls with an argument. When
57489         --lgpl=2 is used and the module's license is just LGPL, report an
57490         error. Set sed_transform_lib_file according to the lgpl variable. In
57491         the generated files, use --lgpl or gl_LGPL invocations with argument,
57492         if necessary.
57493         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
57494         an LGPv2+ license.
57495         * doc/gnulib-tool.texi (Modified imports): Update explanation of
57496         gl_LGPL macro.
57497
57498 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57499             Bruno Haible  <bruno@clisp.org>
57500
57501         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
57502         (u16_uctomb_aux): Likewise.
57503         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
57504         !HAVE_INLINE.
57505         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
57506
57507 2007-10-28  Bruno Haible  <bruno@clisp.org>
57508
57509         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
57510         Invoke AM_GETTEXT_OPTION if it exists.
57511         * modules/vasprintf: Likewise.
57512         * modules/verror: Likewise.
57513         * modules/xprintf: Likewise.
57514         * modules/xvasprintf: Likewise.
57515
57516 2007-10-27  Ben Pfaff  <blp@gnu.org>
57517
57518         * lib/math.in.h: Define isfinite macro and prototypes for
57519         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
57520         implementations.
57521         * m4/math_h.m4: New substitutions for isfinite module.
57522         * lib/isfinite.c: New file.
57523         * m4/isfinite.m4: New file.
57524         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
57525         * modules/isfinite: New file.
57526         * modules/isfinite-tests: New file.
57527         * tests/tests-isfinite.c: New file.
57528         * doc/functions/isfinite.texi: Mention isfinite module.
57529         * MODULES.html.sh: Mention new module.
57530
57531 2007-10-27  Ben Pfaff  <blp@gnu.org>
57532
57533         Ralf Wildenhues reported that Tru64 4.0D declares the round
57534         functions but does not have definitions.
57535         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
57536         cannot be found in any library, set the output variable to
57537         "missing" instead of "".
57538         * m4/round.m4: Also use our substitute if we cannot find round in
57539         any library, even if it is declared.
57540         * m4/roundf.m4: Likewise for roundf.
57541         * m4/roundl.m4: Likewise for roundl.
57542         * lib/math.in.h: Undefine roundf, round, roundl before defining
57543         their replacements, to allow for hypothetical systems where these
57544         may be defined as macros but not available in libraries.
57545
57546 2007-10-27  Bruno Haible  <bruno@clisp.org>
57547
57548         * doc/gnulib.texi: Invoke @firstparagraphindent.
57549         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
57550         changes in gnulib.
57551         (Source changes): New section.
57552
57553 2007-10-26  Bruno Haible  <bruno@clisp.org>
57554
57555         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
57556         borrowed from autoconf.
57557
57558 2007-10-26  Bruno Haible  <bruno@clisp.org>
57559
57560         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
57561         strerror returned the empty string. Needed on HP-UX 11.00.
57562
57563 2007-10-24  Micah Cowan  <micah@cowan.name>
57564
57565         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
57566         * build-aux/bootstrap: Remove support for now-unnecessary option,
57567         --cvs-user, and envvars CVS_USER, CVS_RSH.
57568
57569 2007-10-24  Jim Meyering  <meyering@redhat.com>
57570
57571         Avoid diagnostics from sha1sum when there is no cached checksum.
57572         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
57573         if the po.s1 file hasn't been created yet.
57574
57575         * build-aux/bootstrap: Sync from coreutils:
57576         2007-10-24  Jim Meyering  <meyering@redhat.com>
57577         Get gnulib from the git repository, not from an obsolete cvs one.
57578         * build-aux/bootstrap: Suggestion from Micah Cowan.
57579         2007-10-04  Jim Meyering  <jim@meyering.net>
57580         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
57581         (update_po_files): Work also when there are no .po files in po/.
57582
57583 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57584
57585         * README: Append ".git" to git and cg examples.
57586         Problem reported by Benoit Sigoure.
57587
57588 2007-10-23  Micah Cowan  <micah@cowan.name>
57589
57590         * users.txt: Add wget.
57591
57592 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57593
57594         Fix linking of some unistdio tests on FreeBSD.
57595         * modules/unistdio/u16-vsnprintf-tests
57596         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
57597         * modules/unistdio/u16-vsprintf-tests
57598         (test_u16_vsnprintf1_LDADD): Likewise.
57599         * modules/unistdio/u32-vsnprintf-tests
57600         (test_u32_vsnprintf1_LDADD): Likewise.
57601         * modules/unistdio/u32-vsprintf-tests
57602         (test_u32_vsprintf1_LDADD): Likewise.
57603         * modules/unistdio/u8-vsnprintf-tests
57604         (test_u8_vsnprintf1_LDADD): Likewise.
57605         * modules/unistdio/u8-vsprintf-tests
57606         (test_u8_vsprintf1_LDADD): Likewise.
57607         * modules/unistdio/ulc-vsnprintf-tests
57608         (test_ulc_vsnprintf1_LDADD): Likewise.
57609         * modules/unistdio/ulc-vsprintf-tests
57610         (test_ulc_vsprintf1_LDADD): Likewise.
57611
57612         Fix linking of some uniconv tests on FreeBSD.
57613         * modules/uniconv/u16-conv-from-enc-tests
57614         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
57615         * modules/uniconv/u16-conv-to-enc-tests
57616         (test_u16_conv_to_enc_LDADD): Likewise.
57617         * modules/uniconv/u16-strconv-from-enc-tests
57618         (test_u16_strconv_from_enc_LDADD): Likewise.
57619         * modules/uniconv/u16-strconv-to-enc-tests
57620         (test_u16_strconv_to_enc_LDADD): Likewise.
57621         * modules/uniconv/u32-conv-from-enc-tests
57622         (test_u32_conv_from_enc_LDADD): Likewise.
57623         * modules/uniconv/u32-conv-to-enc-tests
57624         (test_u32_conv_to_enc_LDADD): Likewise.
57625         * modules/uniconv/u32-strconv-from-enc-tests
57626         (test_u32_strconv_from_enc_LDADD): Likewise.
57627         * modules/uniconv/u32-strconv-to-enc-tests
57628         (test_u32_strconv_to_enc_LDADD): Likewise.
57629         * modules/uniconv/u8-conv-from-enc-tests
57630         (test_u8_conv_from_enc_LDADD): Likewise.
57631         * modules/uniconv/u8-conv-to-enc-tests
57632         (test_u8_conv_to_enc_LDADD): Likewise.
57633         * modules/uniconv/u8-strconv-from-enc-tests
57634         (test_u8_strconv_from_enc_LDADD): Likewise.
57635         * modules/uniconv/u8-strconv-to-enc-tests
57636         (test_u8_strconv_to_enc_LDADD): Likewise.
57637
57638 2007-10-22  Bruno Haible  <bruno@clisp.org>
57639
57640         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
57641         size.
57642
57643 2007-10-22  Eric Blake  <ebb9@byu.net>
57644
57645         Tweak x*printf documentation.
57646         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
57647         variable name and comments.
57648         Suggested by Bruno Haible.
57649
57650 2007-10-22  Bruno Haible  <bruno@clisp.org>
57651
57652         * lib/acl.c (copy_acl): Fix file name in comment.
57653
57654 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57655
57656         Fix Tru64 problem with stdbool.h.
57657         * lib/stdbool.in.h (false, true):
57658         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
57659         Don't declare as an enum in this situation; it runs afoul of Tru64.
57660         Problem reported by Steven M. Schweda in
57661         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
57662
57663 2007-10-22  Eric Blake  <ebb9@byu.net>
57664
57665         Also wrap vf?printf.
57666         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
57667         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
57668         (xvprintf, xvfprintf): New functions.
57669
57670 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57671
57672         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
57673         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
57674
57675         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
57676         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
57677
57678 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57679
57680         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
57681         by Bruno Haible.
57682
57683 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57684
57685         * lib/getloadavg.c
57686         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
57687         Undef `sys' after including sys/table.h, for Tru64 4.0D.
57688
57689         * tests/test-i-ring.c: Work for C89.
57690
57691 2007-10-22  Bruno Haible  <bruno@clisp.org>
57692
57693         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
57694         -1u, in preprocessor expression, so that we don't test for the bug
57695         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
57696         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
57697
57698 2007-10-22  Eric Blake  <ebb9@byu.net>
57699
57700         * tests/test-yesno.sh: Silence stderr during test.
57701
57702 2007-10-22  Simon Josefsson  <simon@josefsson.org>
57703
57704         * modules/crypto/gc-camellia: New file.
57705
57706         * m4/gc-camellia.m4: New file.
57707
57708         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
57709
57710         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
57711
57712 2007-10-22  Simon Josefsson  <simon@josefsson.org>
57713
57714         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
57715         --help to stdout.  Reported by sms@antinode.org (Steven
57716         M. Schweda).
57717
57718 2007-10-22  Simon Josefsson  <simon@josefsson.org>
57719
57720         * users.txt: Fix link to libksba.
57721
57722 2007-10-21  Ben Pfaff  <blp@gnu.org>
57723
57724         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
57725         round.c roundf implementation that depends on floorf and ceilf to
57726         be tested unconditionally.
57727
57728 2007-10-21  Ben Pfaff  <blp@gnu.org>
57729
57730         * m4/check-libm-func.m4: Removed.
57731         * m4/check-math-lib.m4: New file.
57732         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
57733         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
57734         definition and lack of AC_LIBOBJ([roundf]).
57735         * m4/roundl.m4: Ditto, and similarly for roundl.
57736         * modules/round: Reference new m4 file.
57737         * modules/roundf: Ditto.
57738         * modules/roundl: Ditto.
57739         * tests/test-round2.c (main): Use ROUND instead of round.
57740         Bug report from Bruno Haible.
57741
57742 2007-10-21  Bruno Haible  <bruno@clisp.org>
57743
57744         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
57745         context.
57746
57747 2007-10-21  Bruno Haible  <bruno@clisp.org>
57748
57749         * tests/test-wcwidth.c (main): Allow negative result for some control
57750         characters.
57751
57752         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
57753         Needed on OSF/1 5.1.
57754
57755 2007-10-21  Bruno Haible  <bruno@clisp.org>
57756
57757         * tests/test-floorf1.c: Include isnanf.h.
57758         (main): Use isnanf() instead of isnan().
57759         * tests/test-ceilf1.c: Include isnanf.h.
57760         (main): Use isnanf() instead of isnan().
57761         * tests/test-truncf1.c: Include isnanf.h.
57762         (main): Use isnanf() instead of isnan().
57763         * tests/test-roundf1.c: Include isnanf.h.
57764         (main): Use isnanf() instead of isnan().
57765
57766 2007-10-21  Eric Blake  <ebb9@byu.net>
57767
57768         * users.txt: Update URL for m4.
57769
57770 2007-10-21  Bruno Haible  <bruno@clisp.org>
57771
57772         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
57773
57774 2007-10-21  Bruno Haible  <bruno@clisp.org>
57775
57776         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
57777         Git's management files if the CVS files are not present.
57778
57779 2007-10-20  Bruno Haible  <bruno@clisp.org>
57780
57781         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
57782         gcc-3.4.x.
57783
57784 2007-10-20  Ben Pfaff  <blp@gnu.org>
57785
57786         * lib/math.in.h: Declare round, roundf, roundl if we are providing
57787         implementations.
57788         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
57789         * lib/round.c: New file.
57790         * lib/roundf.c: New file.
57791         * lib/roundl.c: New file.
57792         * m4/round.m4: New file.
57793         * m4/roundf.m4: New file.
57794         * m4/roundl.m4: New file.
57795         * m4/check-libm-func-m4: New file.
57796         * modules/math: Replace round, roundf, roundl related @VARS@ in
57797         math.in.h.
57798         * modules/round: New file.
57799         * modules/round-tests: New file.
57800         * modules/roundf: New file.
57801         * modules/roundf-tests: New file.
57802         * modules/roundl: New file.
57803         * modules/roundl-tests: New file.
57804         * tests/test-round1.c: New file.
57805         * tests/test-round2.c: New file.
57806         * tests/test-roundf1.c: New file.
57807         * tests/test-roundf2.c: New file.
57808         * tests/test-roundl.c: New file.
57809         * doc/functions/round.texi: Mention round module.
57810         * doc/functions/roundf.texi: Mention roundf module.
57811         * doc/functions/roundl.texi: Mention roundl module.
57812         * MODULES.html.sh: Mention new modules.
57813         Thanks to Bruno Haible for suggestions.
57814
57815 2007-10-20  Jim Meyering  <meyering@redhat.com>
57816
57817         * lib/xprintf.c: Include <config.h> unconditionally.
57818
57819         Change xprintf's license to GPL.
57820         * modules/xprintf (License): s/LGPL/GPL/, since this module
57821         depends on modules (exit and exitfail) which are GPL.
57822         Suggestion from Bruno Haible.
57823
57824         xprintf fixes.
57825         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
57826         Use a clearer diagnostic.
57827         Patch from Bruno Haible.
57828
57829 2007-10-20  Bruno Haible  <bruno@clisp.org>
57830
57831         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
57832         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
57833         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57834
57835 2007-10-20  Bruno Haible  <bruno@clisp.org>
57836
57837         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
57838         precision in the comparison result > x - 1 or similar.
57839         * tests/test-ceilf2.c (correct_result_p): Likewise.
57840         * tests/test-truncf2.c (correct_result_p): Likewise.
57841         * tests/test-trunc2.c (correct_result_p): Likewise.
57842         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57843
57844 2007-10-20  Bruno Haible  <bruno@clisp.org>
57845
57846         * modules/ceil: New file.
57847         * m4/ceil.m4: New file.
57848         * doc/functions/ceil.texi: Mention the 'ceil' module.
57849
57850 2007-10-20  Bruno Haible  <bruno@clisp.org>
57851
57852         * modules/floor: New file.
57853         * m4/floor.m4: New file.
57854         * doc/functions/floor.texi: Mention the 'floor' module.
57855
57856 2007-10-20  Bruno Haible  <bruno@clisp.org>
57857
57858         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
57859         of %a.
57860         * modules/floorf-tests (Depends-on): Likewise.
57861         * modules/truncf-tests (Depends-on): Likewise.
57862         * modules/trunc-tests (Depends-on): Likewise.
57863         Reported by Ben Pfaff.
57864
57865 2007-10-19  Jim Meyering  <meyering@redhat.com>
57866
57867         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
57868         Don't bother testing specific errno values.  Just test ferror.
57869
57870         New module: xprintf
57871         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
57872
57873 2007-10-19  Bruno Haible  <bruno@clisp.org>
57874
57875         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
57876         syntax.
57877         * modules/javaexec (Makefile.am): Likewise.
57878         * modules/relocatable-prog (Makefile.am): Likewise.
57879         Suggested by Jim Meyering.
57880
57881 2007-10-18  Bruno Haible  <bruno@clisp.org>
57882
57883         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
57884         Reported by Jim Meyering.
57885
57886 2007-10-18  Eric Blake  <ebb9@byu.net>
57887
57888         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
57889
57890 2007-10-18  Bruno Haible  <bruno@clisp.org>
57891
57892         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
57893         the format string into writable memory. Needed in Fortify conditions.
57894
57895 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
57896             Bruno Haible  <bruno@clisp.org>
57897
57898         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
57899         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
57900         * modules/trim (Depends-on): Add mbchar.
57901         (configure.ac): Add gl_FUNC_MBRTOWC.
57902         (Makefile.am): Augment lib_SOURCES.
57903
57904 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
57905
57906         Modify glob.c to use fstatat and dirfd, to simplify it.
57907         Suggested by Eric Blake.
57908         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
57909         Don't include <stdbool.h>; not used.
57910         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
57911         (link_exists_p): Simplify implementation, since we can now assume
57912         dirfd and fstatat.
57913         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
57914
57915 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57916
57917         * gnulib-tool (func_get_dependencies): Fix sed script to
57918         match only tests.
57919
57920 2007-10-17  Bruno Haible  <bruno@clisp.org>
57921
57922         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
57923         allow locale names without encoding suffix.
57924         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
57925         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57926
57927 2007-10-16  Bruno Haible  <bruno@clisp.org>
57928
57929         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
57930         * lib/getgroups.c (getgroups): Likewise.
57931         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
57932
57933 2007-10-16  Bruno Haible  <bruno@clisp.org>
57934
57935         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
57936         * modules/malloc-posix (License): Likewise.
57937         * modules/realloc-posix (License): Likewise.
57938         * modules/calloc-posix (License): Likewise.
57939         * modules/intprops (License): Change from GPL to LGPL, with
57940         Paul Eggert's approval.
57941
57942 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
57943
57944         Merge glibc changes into lib/glob.c.
57945
57946         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
57947         2007-10-15 04:59:03 UTC.  Here are the changes:
57948
57949         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
57950
57951         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
57952
57953         * lib/glob.c: Add some branch prediction throughout.
57954
57955         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
57956
57957         [BZ #5103]
57958         * lib/glob.c (glob): Recognize patterns starting \/.
57959
57960         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
57961
57962         [BZ #3996]
57963         * lib/glob.c (attribute_hidden): Define if not defined.
57964         (glob): Unescape dirname, filename or username when needed and not
57965         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
57966         is NULL.  Handle unescaped [ in pattern without closing ].
57967         Don't pass GLOB_CHECK down to recursive glob for directories.
57968         (__glob_pattern_type): New function.
57969         (__glob_pattern_p): Implement using __glob_pattern_type.
57970         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
57971         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
57972         Remove unreachable code.
57973
57974         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
57975
57976         * lib/glob.c (glob_in_dir): Add some comments and asserts to
57977         explain why there are no leaks.
57978
57979         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
57980
57981         [BZ #3253]
57982         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
57983         time, rather allocate increasingly bigger arrays of pointers, if
57984         possible with alloca, if too large with malloc.
57985
57986 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
57987
57988         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
57989         Problem reported by H.Merijn Brand in
57990         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
57991         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
57992         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
57993
57994 2007-10-15  Bruno Haible  <bruno@clisp.org>
57995
57996         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
57997         with explicit rpl_ prefix.
57998         * lib/fopen.c (fopen): Likewise.
57999         * lib/freopen.c (freopen): Likewise.
58000         * lib/iconv.c (iconv): Likewise.
58001         * lib/iconv_close.c (iconv_close): Likewise.
58002
58003 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58004
58005         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
58006
58007 2007-10-15  Bruno Haible  <bruno@clisp.org>
58008
58009         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
58010         <stddef.h> instead of <stdlib.h> since we only need NULL.
58011         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58012
58013 2007-10-15  Bruno Haible  <bruno@clisp.org>
58014
58015         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
58016         Replace paragraph talking about LIBOBJS.
58017         Reported by Colin Watson <cjwatson@debian.org>.
58018
58019 2007-10-15  Bruno Haible  <bruno@clisp.org>
58020
58021         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
58022         <stdlib.h> before using NULL.
58023
58024 2007-10-15  Simon Josefsson  <simon@josefsson.org>
58025
58026         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
58027         Reported by Albert Chin <china@thewrittenword.com>.
58028
58029 2007-10-14  Bruno Haible  <bruno@clisp.org>
58030
58031         * modules/iconv_open-utf-tests: New file.
58032         * tests/test-iconv-utf.c: New file.
58033
58034         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
58035         * modules/iconv_open-utf: New file.
58036         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
58037         (iconv, iconv_close): New declarations.
58038         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
58039         be defined.
58040         (iconv_open): Add special handling of conversion between UTF-8 and
58041         UTF-{16,32}{BE,LE}.
58042         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
58043         * lib/iconv_close.c: New file.
58044         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
58045         gl_FUNC_ICONV_OPEN.
58046         (gl_FUNC_ICONV_OPEN): Use it.
58047         (gl_FUNC_ICONV_OPEN_UTF): New macro.
58048         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
58049         and REPLACE_ICONV_UTF.
58050         * modules/iconv_open (Depends-on): Add c-strcase.
58051         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
58052         ICONV_CONST.
58053         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
58054
58055 2007-10-13  Albert Chin  <china@thewrittenword.com>
58056             Bruno Haible  <bruno@clisp.org>
58057
58058         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
58059         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
58060
58061 2007-10-13  Bruno Haible  <bruno@clisp.org>
58062
58063         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
58064         defined, use the ISO C99 inline semantics.
58065         * lib/argp.h (ARGP_EI): Likewise.
58066
58067 2007-10-13  Bruno Haible  <bruno@clisp.org>
58068
58069         Handle 'inline' change in gcc 4.3.0.
58070         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
58071         argp_fmtstream_write, argp_fmtstream_set_lmargin,
58072         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
58073         argp_fmtstream_point): Disable 'extern' declaration if the function
58074         definition is going to be provided inline.
58075         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
58076         semantics, not the ISO C99 inline semantics.
58077         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
58078         'extern' declaration if the function definition is going to be provided
58079         inline.
58080         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
58081         the GNU C inline semantics, not the ISO C99 inline semantics. With
58082         GCC 4.2, avoid a warning.
58083
58084 2007-10-13  Bruno Haible  <bruno@clisp.org>
58085
58086         * lib/freading.h (freading): Enable the use of __freading for
58087         glibc >= 2.7.
58088         * lib/freading.c (freading): Likewise.
58089
58090 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
58091
58092         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
58093         "warning: C99 inline functions are not supported; using GNU89".
58094
58095 2007-10-12  Bruno Haible  <bruno@clisp.org>
58096
58097         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
58098         of 2.
58099         * tests/test-ceilf2.c: New file.
58100         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
58101
58102         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
58103         * modules/ceilf-tests: Update.
58104
58105 2007-10-12  Bruno Haible  <bruno@clisp.org>
58106
58107         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
58108         of 2.
58109         * tests/test-floorf2.c: New file.
58110         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
58111
58112         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
58113         * modules/floorf-tests: Update.
58114
58115 2007-10-12  Bruno Haible  <bruno@clisp.org>
58116
58117         * tests/test-trunc2.c: New file.
58118         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
58119
58120         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
58121         * modules/trunc-tests: Update.
58122
58123 2007-10-12  Bruno Haible  <bruno@clisp.org>
58124
58125         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
58126         of 2.
58127         * tests/test-truncf2.c: New file.
58128         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
58129
58130         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
58131         * modules/truncf-tests: Update.
58132
58133 2007-10-11  Eric Blake  <ebb9@byu.net>
58134
58135         Don't claim strerror is broken on Interix.
58136         * doc/functions/strerror.texi (strerror): Known broken systems are
58137         now Solaris 8, and not Interix.
58138         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
58139         Interix on cross-compile.
58140         Reported by Martin Koeppe in
58141         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
58142
58143 2007-10-11  Bruno Haible  <bruno@clisp.org>
58144
58145         * modules/i-ring-tests: New file.
58146         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
58147         instead of assert.
58148
58149 2007-10-11  Bruno Haible  <bruno@clisp.org>
58150
58151         * modules/filenamecat-tests: New file.
58152         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
58153         * lib/filenamecat.c: Remove test code.
58154
58155 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58156
58157         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
58158
58159         * lib/strerror.c: Include <string.h> always, to test interface,
58160         and to remove the need for the dummy.
58161         Include intprops.h to compute width instead of doing it ourselves
58162         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
58163         (strerror): Define it to return NULL if there's no system strerror.
58164         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
58165         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
58166         ancient pre-strerror Unix systems well any more.  Saying "unknown
58167         system error" is enough.
58168         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
58169         simpler strerror.c implementation.
58170         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
58171         Simplify the tests to reflect the simpler strerror implementation.
58172         * modules/strerror (Depends-on): Add intprops.
58173
58174 2007-10-09  Eric Blake  <ebb9@byu.net>
58175
58176         Silence test-fpending.
58177         * modules/fpending-tests (Files): Add wrapper script.
58178         * tests/test-fpending.sh: New file.
58179
58180 2007-10-09  Bruno Haible  <bruno@clisp.org>
58181
58182         * MODULES.html.sh (func_module): Don't create a hyperlink for
58183         function names like 'printf_frexp'.
58184         (Misc): Add crc, memxor.
58185         (Characteristics of floating types): New section.
58186         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
58187         isnanf-nolibm, signbit, trunc, truncf, truncl.
58188         (Enhancements for ISO C 99 functions): New subsection Input/output.
58189         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
58190         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
58191         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
58192         (Compatibility checks for POSIX:2001 functions): Add clock-time.
58193         (Enhancements for POSIX:2001 functions): Add chdir-long.
58194         (File system functions): Add areadlink, chdir-safer, read-file.
58195         Remove cycle-check.
58196         (File system as inode set): New section.
58197         (Date and time): Add gethrxtime.
58198         (Multithreading): Add openmp.
58199         (Internationalization functions): Add localename.
58200         (Unicode string functions): Add unistr/u*-mbsnlen.
58201         (Support for maintaining and releasing projects): Add git-version-gen.
58202         (Lone files): Remove directories.
58203
58204 2007-10-08  Ben Pfaff  <blp@gnu.org>
58205
58206         * lib/xmalloca.h: Fix typo in comment.
58207
58208 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
58209
58210         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
58211         when avoiding problems with integer overflow.  Use a portable test
58212         instead.
58213
58214 2007-10-08  Simon Josefsson  <simon@josefsson.org>
58215
58216         * modules/dummy (License): Change to LGPLv2+.
58217         * modules/float (License): Likewise
58218         * modules/realloc (License): Likewise
58219         * modules/stdlib (License): Likewise
58220
58221 2007-10-07  Bruno Haible  <bruno@clisp.org>
58222
58223         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
58224         * floor.c (TWO_MANT_DIG): Likewise.
58225         * ceil.c (TWO_MANT_DIG): Likewise.
58226         Reported by Ben Pfaff.
58227
58228 2007-10-07  Bruno Haible  <bruno@clisp.org>
58229
58230         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
58231         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
58232         * lib/frexp.c (FUNC): Likewise.
58233         * lib/printf-frexp.h (printf_frexp): Likewise.
58234         * lib/printf-frexpl.h (printf_frexpl): Likewise.
58235         * lib/printf-frexp.c (FUNC): Likewise.
58236         Suggested by Jim Meyering.
58237
58238 2007-10-07  Jim Meyering  <meyering@redhat.com>
58239
58240         Make xnanosleep's integer overflow test more robust.
58241         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
58242         so that gcc-4.3.0 doesn't optimize away this test for overflow.
58243
58244 2007-10-07  Bruno Haible  <bruno@clisp.org>
58245
58246         * NEWS: Mention the license change.
58247
58248         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
58249         abbreviations in the modules files.
58250
58251         Change copyright notice from GPLv2+ to GPLv3+.
58252         * README: Change copyright notice.
58253         * MODULES.html.sh: Likewise.
58254         * build-aux/bootstrap.conf: Likewise.
58255         * build-aux/config.libpath: Likewise.
58256         * build-aux/csharpcomp.sh.in: Likewise.
58257         * build-aux/csharpexec.sh.in: Likewise.
58258         * build-aux/install-reloc: Likewise.
58259         * build-aux/javacomp.sh.in: Likewise.
58260         * build-aux/javaexec.sh.in: Likewise.
58261         * build-aux/ldd.sh.in: Likewise.
58262         * build-aux/reloc-ldflags: Likewise.
58263         * build-aux/relocatable.sh.in: Likewise.
58264         * build-aux/x-to-1.in: Likewise.
58265         * check-module: Likewise.
58266         * config/srclistvars.sh: Likewise.
58267         * gnulib-tool: Likewise.
58268         * lib/acl-internal.h: Likewise.
58269         * lib/acl.c: Likewise.
58270         * lib/acl.h: Likewise.
58271         * lib/acl_entries.c: Likewise.
58272         * lib/areadlink-with-size.c: Likewise.
58273         * lib/areadlink.c: Likewise.
58274         * lib/areadlink.h: Likewise.
58275         * lib/argmatch.c: Likewise.
58276         * lib/argmatch.h: Likewise.
58277         * lib/argp-ba.c: Likewise.
58278         * lib/argp-eexst.c: Likewise.
58279         * lib/argp-fmtstream.c: Likewise.
58280         * lib/argp-fmtstream.h: Likewise.
58281         * lib/argp-fs-xinl.c: Likewise.
58282         * lib/argp-help.c: Likewise.
58283         * lib/argp-namefrob.h: Likewise.
58284         * lib/argp-parse.c: Likewise.
58285         * lib/argp-pin.c: Likewise.
58286         * lib/argp-pv.c: Likewise.
58287         * lib/argp-pvh.c: Likewise.
58288         * lib/argp-xinl.c: Likewise.
58289         * lib/argp.h: Likewise.
58290         * lib/at-func.c: Likewise.
58291         * lib/atanl.c: Likewise.
58292         * lib/backupfile.c: Likewise.
58293         * lib/backupfile.h: Likewise.
58294         * lib/basename.c: Likewise.
58295         * lib/binary-io.h: Likewise.
58296         * lib/byteswap.in.h: Likewise.
58297         * lib/c-stack.c: Likewise.
58298         * lib/c-stack.h: Likewise.
58299         * lib/c-strcasestr.c: Likewise.
58300         * lib/c-strcasestr.h: Likewise.
58301         * lib/c-strstr.c: Likewise.
58302         * lib/c-strstr.h: Likewise.
58303         * lib/c-strtod.c: Likewise.
58304         * lib/calloc.c: Likewise.
58305         * lib/canon-host.c: Likewise.
58306         * lib/canon-host.h: Likewise.
58307         * lib/canonicalize-lgpl.c: Likewise.
58308         * lib/canonicalize.c: Likewise.
58309         * lib/canonicalize.h: Likewise.
58310         * lib/ceil.c: Likewise.
58311         * lib/ceilf.c: Likewise.
58312         * lib/ceill.c: Likewise.
58313         * lib/chdir-long.c: Likewise.
58314         * lib/chdir-long.h: Likewise.
58315         * lib/chdir-safer.c: Likewise.
58316         * lib/chdir-safer.h: Likewise.
58317         * lib/chown.c: Likewise.
58318         * lib/classpath.c: Likewise.
58319         * lib/classpath.h: Likewise.
58320         * lib/clean-temp.c: Likewise.
58321         * lib/clean-temp.h: Likewise.
58322         * lib/cloexec.c: Likewise.
58323         * lib/close-stream.c: Likewise.
58324         * lib/closein.c: Likewise.
58325         * lib/closein.h: Likewise.
58326         * lib/closeout.c: Likewise.
58327         * lib/closeout.h: Likewise.
58328         * lib/concat-filename.c: Likewise.
58329         * lib/copy-file.c: Likewise.
58330         * lib/copy-file.h: Likewise.
58331         * lib/count-one-bits.h: Likewise.
58332         * lib/crc.c: Likewise.
58333         * lib/crc.h: Likewise.
58334         * lib/creat-safer.c: Likewise.
58335         * lib/csharpcomp.c: Likewise.
58336         * lib/csharpcomp.h: Likewise.
58337         * lib/csharpexec.c: Likewise.
58338         * lib/csharpexec.h: Likewise.
58339         * lib/cycle-check.c: Likewise.
58340         * lib/cycle-check.h: Likewise.
58341         * lib/diacrit.c: Likewise.
58342         * lib/diacrit.h: Likewise.
58343         * lib/diffseq.h: Likewise.
58344         * lib/dirchownmod.c: Likewise.
58345         * lib/dirent.in.h: Likewise.
58346         * lib/dirfd.c: Likewise.
58347         * lib/dirfd.h: Likewise.
58348         * lib/dirname.c: Likewise.
58349         * lib/dirname.h: Likewise.
58350         * lib/dummy.c: Likewise.
58351         * lib/dup-safer.c: Likewise.
58352         * lib/dup2.c: Likewise.
58353         * lib/eealloc.h: Likewise.
58354         * lib/error.c: Likewise.
58355         * lib/error.h: Likewise.
58356         * lib/euidaccess.c: Likewise.
58357         * lib/exclude.c: Likewise.
58358         * lib/exclude.h: Likewise.
58359         * lib/execute.c: Likewise.
58360         * lib/execute.h: Likewise.
58361         * lib/exitfail.c: Likewise.
58362         * lib/exitfail.h: Likewise.
58363         * lib/expl.c: Likewise.
58364         * lib/fatal-signal.c: Likewise.
58365         * lib/fatal-signal.h: Likewise.
58366         * lib/fbufmode.c: Likewise.
58367         * lib/fbufmode.h: Likewise.
58368         * lib/fchdir.c: Likewise.
58369         * lib/fchmodat.c: Likewise.
58370         * lib/fchownat.c: Likewise.
58371         * lib/fcntl--.h: Likewise.
58372         * lib/fcntl-safer.h: Likewise.
58373         * lib/fcntl.in.h: Likewise.
58374         * lib/fd-safer.c: Likewise.
58375         * lib/fflush.c: Likewise.
58376         * lib/file-has-acl.c: Likewise.
58377         * lib/file-set.c: Likewise.
58378         * lib/file-type.c: Likewise.
58379         * lib/file-type.h: Likewise.
58380         * lib/fileblocks.c: Likewise.
58381         * lib/filemode.c: Likewise.
58382         * lib/filemode.h: Likewise.
58383         * lib/filename.h: Likewise.
58384         * lib/filenamecat.c: Likewise.
58385         * lib/filenamecat.h: Likewise.
58386         * lib/findprog.c: Likewise.
58387         * lib/findprog.h: Likewise.
58388         * lib/float.in.h: Likewise.
58389         * lib/floor.c: Likewise.
58390         * lib/floorf.c: Likewise.
58391         * lib/floorl.c: Likewise.
58392         * lib/fopen-safer.c: Likewise.
58393         * lib/fopen.c: Likewise.
58394         * lib/fpending.c: Likewise.
58395         * lib/fpending.h: Likewise.
58396         * lib/fprintf.c: Likewise.
58397         * lib/fprintftime.h: Likewise.
58398         * lib/fpucw.h: Likewise.
58399         * lib/fpurge.c: Likewise.
58400         * lib/fpurge.h: Likewise.
58401         * lib/freadable.c: Likewise.
58402         * lib/freadable.h: Likewise.
58403         * lib/freadahead.c: Likewise.
58404         * lib/freadahead.h: Likewise.
58405         * lib/freading.c: Likewise.
58406         * lib/freading.h: Likewise.
58407         * lib/free.c: Likewise.
58408         * lib/freopen.c: Likewise.
58409         * lib/frexp.c: Likewise.
58410         * lib/frexpl.c: Likewise.
58411         * lib/fseek.c: Likewise.
58412         * lib/fseterr.c: Likewise.
58413         * lib/fseterr.h: Likewise.
58414         * lib/fstatat.c: Likewise.
58415         * lib/fstrcmp.c: Likewise.
58416         * lib/fstrcmp.h: Likewise.
58417         * lib/fsusage.c: Likewise.
58418         * lib/fsusage.h: Likewise.
58419         * lib/ftell.c: Likewise.
58420         * lib/ftello.c: Likewise.
58421         * lib/fts-cycle.c: Likewise.
58422         * lib/fts.c: Likewise.
58423         * lib/fts_.h: Likewise.
58424         * lib/full-read.c: Likewise.
58425         * lib/full-read.h: Likewise.
58426         * lib/full-write.c: Likewise.
58427         * lib/full-write.h: Likewise.
58428         * lib/fwritable.c: Likewise.
58429         * lib/fwritable.h: Likewise.
58430         * lib/fwriteerror.c: Likewise.
58431         * lib/fwriteerror.h: Likewise.
58432         * lib/fwriting.c: Likewise.
58433         * lib/fwriting.h: Likewise.
58434         * lib/gcd.c: Likewise.
58435         * lib/gcd.h: Likewise.
58436         * lib/getcwd.c: Likewise.
58437         * lib/getdate.h: Likewise.
58438         * lib/getdate.y: Likewise.
58439         * lib/getdomainname.c: Likewise.
58440         * lib/getdomainname.h: Likewise.
58441         * lib/getgroups.c: Likewise.
58442         * lib/gethostname.c: Likewise.
58443         * lib/gethrxtime.c: Likewise.
58444         * lib/gethrxtime.h: Likewise.
58445         * lib/getloadavg.c: Likewise.
58446         * lib/getndelim2.c: Likewise.
58447         * lib/getndelim2.h: Likewise.
58448         * lib/getnline.c: Likewise.
58449         * lib/getnline.h: Likewise.
58450         * lib/getopt.c: Likewise.
58451         * lib/getopt.in.h: Likewise.
58452         * lib/getopt1.c: Likewise.
58453         * lib/getopt_int.h: Likewise.
58454         * lib/getpagesize.h: Likewise.
58455         * lib/getsubopt.c: Likewise.
58456         * lib/gettime.c: Likewise.
58457         * lib/getugroups.c: Likewise.
58458         * lib/getugroups.h: Likewise.
58459         * lib/getusershell.c: Likewise.
58460         * lib/gl_anyavltree_list1.h: Likewise.
58461         * lib/gl_anyavltree_list2.h: Likewise.
58462         * lib/gl_anyhash_list1.h: Likewise.
58463         * lib/gl_anyhash_list2.h: Likewise.
58464         * lib/gl_anylinked_list1.h: Likewise.
58465         * lib/gl_anylinked_list2.h: Likewise.
58466         * lib/gl_anyrbtree_list1.h: Likewise.
58467         * lib/gl_anyrbtree_list2.h: Likewise.
58468         * lib/gl_anytree_list1.h: Likewise.
58469         * lib/gl_anytree_list2.h: Likewise.
58470         * lib/gl_anytree_oset.h: Likewise.
58471         * lib/gl_anytreehash_list1.h: Likewise.
58472         * lib/gl_anytreehash_list2.h: Likewise.
58473         * lib/gl_array_list.c: Likewise.
58474         * lib/gl_array_list.h: Likewise.
58475         * lib/gl_array_oset.c: Likewise.
58476         * lib/gl_array_oset.h: Likewise.
58477         * lib/gl_avltree_list.c: Likewise.
58478         * lib/gl_avltree_list.h: Likewise.
58479         * lib/gl_avltree_oset.c: Likewise.
58480         * lib/gl_avltree_oset.h: Likewise.
58481         * lib/gl_avltreehash_list.c: Likewise.
58482         * lib/gl_avltreehash_list.h: Likewise.
58483         * lib/gl_carray_list.c: Likewise.
58484         * lib/gl_carray_list.h: Likewise.
58485         * lib/gl_linked_list.c: Likewise.
58486         * lib/gl_linked_list.h: Likewise.
58487         * lib/gl_linkedhash_list.c: Likewise.
58488         * lib/gl_linkedhash_list.h: Likewise.
58489         * lib/gl_list.c: Likewise.
58490         * lib/gl_list.h: Likewise.
58491         * lib/gl_oset.c: Likewise.
58492         * lib/gl_oset.h: Likewise.
58493         * lib/gl_rbtree_list.c: Likewise.
58494         * lib/gl_rbtree_list.h: Likewise.
58495         * lib/gl_rbtree_oset.c: Likewise.
58496         * lib/gl_rbtree_oset.h: Likewise.
58497         * lib/gl_rbtreehash_list.c: Likewise.
58498         * lib/gl_rbtreehash_list.h: Likewise.
58499         * lib/gl_sublist.c: Likewise.
58500         * lib/gl_sublist.h: Likewise.
58501         * lib/group-member.c: Likewise.
58502         * lib/group-member.h: Likewise.
58503         * lib/hard-locale.c: Likewise.
58504         * lib/hard-locale.h: Likewise.
58505         * lib/hash-pjw.c: Likewise.
58506         * lib/hash-pjw.h: Likewise.
58507         * lib/hash-triple.c: Likewise.
58508         * lib/hash.c: Likewise.
58509         * lib/hash.h: Likewise.
58510         * lib/human.c: Likewise.
58511         * lib/human.h: Likewise.
58512         * lib/i-ring.c: Likewise.
58513         * lib/i-ring.h: Likewise.
58514         * lib/idcache.c: Likewise.
58515         * lib/imaxabs.c: Likewise.
58516         * lib/imaxdiv.c: Likewise.
58517         * lib/inet_pton.c: Likewise.
58518         * lib/inet_pton.h: Likewise.
58519         * lib/intprops.h: Likewise.
58520         * lib/inttostr.c: Likewise.
58521         * lib/inttostr.h: Likewise.
58522         * lib/inttypes.in.h: Likewise.
58523         * lib/isapipe.c: Likewise.
58524         * lib/isdir.c: Likewise.
58525         * lib/isnan.c: Likewise.
58526         * lib/isnan.h: Likewise.
58527         * lib/isnanf.c: Likewise.
58528         * lib/isnanf.h: Likewise.
58529         * lib/isnanl-nolibm.h: Likewise.
58530         * lib/isnanl.c: Likewise.
58531         * lib/isnanl.h: Likewise.
58532         * lib/javacomp.c: Likewise.
58533         * lib/javacomp.h: Likewise.
58534         * lib/javaexec.c: Likewise.
58535         * lib/javaexec.h: Likewise.
58536         * lib/javaversion.c: Likewise.
58537         * lib/javaversion.h: Likewise.
58538         * lib/javaversion.java: Likewise.
58539         * lib/lbrkprop.h: Likewise.
58540         * lib/lchmod.h: Likewise.
58541         * lib/lchown.c: Likewise.
58542         * lib/ldexpl.c: Likewise.
58543         * lib/linebreak.c: Likewise.
58544         * lib/linebreak.h: Likewise.
58545         * lib/linebuffer.c: Likewise.
58546         * lib/linebuffer.h: Likewise.
58547         * lib/locale.in.h: Likewise.
58548         * lib/logl.c: Likewise.
58549         * lib/long-options.c: Likewise.
58550         * lib/long-options.h: Likewise.
58551         * lib/lstat.c: Likewise.
58552         * lib/lstat.h: Likewise.
58553         * lib/math.in.h: Likewise.
58554         * lib/mbchar.c: Likewise.
58555         * lib/mbchar.h: Likewise.
58556         * lib/mbfile.h: Likewise.
58557         * lib/mbiter.h: Likewise.
58558         * lib/mbscasecmp.c: Likewise.
58559         * lib/mbscasestr.c: Likewise.
58560         * lib/mbschr.c: Likewise.
58561         * lib/mbscspn.c: Likewise.
58562         * lib/mbslen.c: Likewise.
58563         * lib/mbsncasecmp.c: Likewise.
58564         * lib/mbsnlen.c: Likewise.
58565         * lib/mbspbrk.c: Likewise.
58566         * lib/mbspcasecmp.c: Likewise.
58567         * lib/mbsrchr.c: Likewise.
58568         * lib/mbssep.c: Likewise.
58569         * lib/mbsspn.c: Likewise.
58570         * lib/mbsstr.c: Likewise.
58571         * lib/mbstok_r.c: Likewise.
58572         * lib/mbswidth.c: Likewise.
58573         * lib/mbswidth.h: Likewise.
58574         * lib/mbuiter.h: Likewise.
58575         * lib/memcasecmp.c: Likewise.
58576         * lib/memcasecmp.h: Likewise.
58577         * lib/memchr.c: Likewise.
58578         * lib/memcmp.c: Likewise.
58579         * lib/memcoll.c: Likewise.
58580         * lib/memcoll.h: Likewise.
58581         * lib/memcpy.c: Likewise.
58582         * lib/memrchr.c: Likewise.
58583         * lib/mkancesdirs.c: Likewise.
58584         * lib/mkdir-p.c: Likewise.
58585         * lib/mkdir-p.h: Likewise.
58586         * lib/mkdir.c: Likewise.
58587         * lib/mkdirat.c: Likewise.
58588         * lib/mkdtemp.c: Likewise.
58589         * lib/mkstemp-safer.c: Likewise.
58590         * lib/mkstemp.c: Likewise.
58591         * lib/modechange.c: Likewise.
58592         * lib/modechange.h: Likewise.
58593         * lib/mountlist.c: Likewise.
58594         * lib/mountlist.h: Likewise.
58595         * lib/mpsort.c: Likewise.
58596         * lib/nanosleep.c: Likewise.
58597         * lib/obstack.c: Likewise.
58598         * lib/obstack.h: Likewise.
58599         * lib/open-safer.c: Likewise.
58600         * lib/open.c: Likewise.
58601         * lib/openat-die.c: Likewise.
58602         * lib/openat-priv.h: Likewise.
58603         * lib/openat-proc.c: Likewise.
58604         * lib/openat.c: Likewise.
58605         * lib/openat.h: Likewise.
58606         * lib/pagealign_alloc.c: Likewise.
58607         * lib/pagealign_alloc.h: Likewise.
58608         * lib/physmem.c: Likewise.
58609         * lib/physmem.h: Likewise.
58610         * lib/pipe-safer.c: Likewise.
58611         * lib/pipe.c: Likewise.
58612         * lib/pipe.h: Likewise.
58613         * lib/posixtm.c: Likewise.
58614         * lib/posixtm.h: Likewise.
58615         * lib/posixver.c: Likewise.
58616         * lib/printf-frexp.c: Likewise.
58617         * lib/printf-frexp.h: Likewise.
58618         * lib/printf-frexpl.c: Likewise.
58619         * lib/printf-frexpl.h: Likewise.
58620         * lib/printf.c: Likewise.
58621         * lib/progname.c: Likewise.
58622         * lib/progname.h: Likewise.
58623         * lib/progreloc.c: Likewise.
58624         * lib/putenv.c: Likewise.
58625         * lib/quote.c: Likewise.
58626         * lib/quote.h: Likewise.
58627         * lib/quotearg.c: Likewise.
58628         * lib/quotearg.h: Likewise.
58629         * lib/raise.c: Likewise.
58630         * lib/readline.c: Likewise.
58631         * lib/readline.h: Likewise.
58632         * lib/readlink.c: Likewise.
58633         * lib/readtokens.c: Likewise.
58634         * lib/readtokens.h: Likewise.
58635         * lib/readtokens0.c: Likewise.
58636         * lib/readtokens0.h: Likewise.
58637         * lib/readutmp.c: Likewise.
58638         * lib/readutmp.h: Likewise.
58639         * lib/realloc.c: Likewise.
58640         * lib/relocwrapper.c: Likewise.
58641         * lib/rename-dest-slash.c: Likewise.
58642         * lib/rename.c: Likewise.
58643         * lib/rmdir.c: Likewise.
58644         * lib/rpmatch.c: Likewise.
58645         * lib/safe-read.c: Likewise.
58646         * lib/safe-read.h: Likewise.
58647         * lib/safe-write.c: Likewise.
58648         * lib/safe-write.h: Likewise.
58649         * lib/same-inode.h: Likewise.
58650         * lib/same.c: Likewise.
58651         * lib/same.h: Likewise.
58652         * lib/save-cwd.c: Likewise.
58653         * lib/save-cwd.h: Likewise.
58654         * lib/savedir.c: Likewise.
58655         * lib/savedir.h: Likewise.
58656         * lib/savewd.c: Likewise.
58657         * lib/savewd.h: Likewise.
58658         * lib/search.in.h: Likewise.
58659         * lib/setenv.c: Likewise.
58660         * lib/setenv.h: Likewise.
58661         * lib/settime.c: Likewise.
58662         * lib/sh-quote.c: Likewise.
58663         * lib/sh-quote.h: Likewise.
58664         * lib/sig2str.c: Likewise.
58665         * lib/sig2str.h: Likewise.
58666         * lib/signal.in.h: Likewise.
58667         * lib/signbitd.c: Likewise.
58668         * lib/signbitf.c: Likewise.
58669         * lib/signbitl.c: Likewise.
58670         * lib/sigprocmask.c: Likewise.
58671         * lib/sincosl.c: Likewise.
58672         * lib/sleep.c: Likewise.
58673         * lib/sprintf.c: Likewise.
58674         * lib/sqrtl.c: Likewise.
58675         * lib/stat-time.h: Likewise.
58676         * lib/stdio--.h: Likewise.
58677         * lib/stdio-safer.h: Likewise.
58678         * lib/stdlib--.h: Likewise.
58679         * lib/stdlib-safer.h: Likewise.
58680         * lib/stdlib.in.h: Likewise.
58681         * lib/stpcpy.c: Likewise.
58682         * lib/stpncpy.c: Likewise.
58683         * lib/strchrnul.c: Likewise.
58684         * lib/strcspn.c: Likewise.
58685         * lib/strerror.c: Likewise.
58686         * lib/strftime.c: Likewise.
58687         * lib/strftime.h: Likewise.
58688         * lib/striconveh.c: Likewise.
58689         * lib/striconveh.h: Likewise.
58690         * lib/striconveha.c: Likewise.
58691         * lib/striconveha.h: Likewise.
58692         * lib/stripslash.c: Likewise.
58693         * lib/strnlen1.c: Likewise.
58694         * lib/strnlen1.h: Likewise.
58695         * lib/strtod.c: Likewise.
58696         * lib/strtoimax.c: Likewise.
58697         * lib/strtok_r.c: Likewise.
58698         * lib/strtol.c: Likewise.
58699         * lib/strtoll.c: Likewise.
58700         * lib/strtoul.c: Likewise.
58701         * lib/strtoull.c: Likewise.
58702         * lib/sysexits.in.h: Likewise.
58703         * lib/tempname.c: Likewise.
58704         * lib/tempname.h: Likewise.
58705         * lib/timespec.h: Likewise.
58706         * lib/tls.c: Likewise.
58707         * lib/tls.h: Likewise.
58708         * lib/tmpdir.c: Likewise.
58709         * lib/tmpdir.h: Likewise.
58710         * lib/tmpfile-safer.c: Likewise.
58711         * lib/tmpfile.c: Likewise.
58712         * lib/trigl.c: Likewise.
58713         * lib/trigl.h: Likewise.
58714         * lib/trim.c: Likewise.
58715         * lib/trim.h: Likewise.
58716         * lib/trunc.c: Likewise.
58717         * lib/truncf.c: Likewise.
58718         * lib/truncl.c: Likewise.
58719         * lib/tsearch.c: Likewise.
58720         * lib/unicodeio.c: Likewise.
58721         * lib/unicodeio.h: Likewise.
58722         * lib/unistd--.h: Likewise.
58723         * lib/unistd-safer.h: Likewise.
58724         * lib/unistdio/ulc-fprintf.c: Likewise.
58725         * lib/unistdio/ulc-vfprintf.c: Likewise.
58726         * lib/unlinkdir.c: Likewise.
58727         * lib/unlinkdir.h: Likewise.
58728         * lib/unlocked-io.h: Likewise.
58729         * lib/unsetenv.c: Likewise.
58730         * lib/userspec.c: Likewise.
58731         * lib/utime.c: Likewise.
58732         * lib/utimecmp.c: Likewise.
58733         * lib/utimecmp.h: Likewise.
58734         * lib/utimens.c: Likewise.
58735         * lib/verify.h: Likewise.
58736         * lib/verror.c: Likewise.
58737         * lib/verror.h: Likewise.
58738         * lib/version-etc-fsf.c: Likewise.
58739         * lib/version-etc.c: Likewise.
58740         * lib/version-etc.h: Likewise.
58741         * lib/vfprintf.c: Likewise.
58742         * lib/vprintf.c: Likewise.
58743         * lib/vsprintf.c: Likewise.
58744         * lib/w32spawn.h: Likewise.
58745         * lib/wait-process.c: Likewise.
58746         * lib/wait-process.h: Likewise.
58747         * lib/wcwidth.c: Likewise.
58748         * lib/write-any-file.c: Likewise.
58749         * lib/xalloc-die.c: Likewise.
58750         * lib/xalloc.h: Likewise.
58751         * lib/xasprintf.c: Likewise.
58752         * lib/xgetcwd.c: Likewise.
58753         * lib/xgetcwd.h: Likewise.
58754         * lib/xgetdomainname.c: Likewise.
58755         * lib/xgetdomainname.h: Likewise.
58756         * lib/xgethostname.c: Likewise.
58757         * lib/xmalloc.c: Likewise.
58758         * lib/xmalloca.c: Likewise.
58759         * lib/xmalloca.h: Likewise.
58760         * lib/xmemcoll.c: Likewise.
58761         * lib/xnanosleep.c: Likewise.
58762         * lib/xreadlink.c: Likewise.
58763         * lib/xreadlink.h: Likewise.
58764         * lib/xsetenv.c: Likewise.
58765         * lib/xsetenv.h: Likewise.
58766         * lib/xstriconv.c: Likewise.
58767         * lib/xstriconv.h: Likewise.
58768         * lib/xstrndup.c: Likewise.
58769         * lib/xstrndup.h: Likewise.
58770         * lib/xstrtod.c: Likewise.
58771         * lib/xstrtod.h: Likewise.
58772         * lib/xstrtol-error.c: Likewise.
58773         * lib/xstrtol.c: Likewise.
58774         * lib/xstrtol.h: Likewise.
58775         * lib/xtime.h: Likewise.
58776         * lib/xvasprintf.c: Likewise.
58777         * lib/xvasprintf.h: Likewise.
58778         * lib/yesno.c: Likewise.
58779         * lib/yesno.h: Likewise.
58780         * posix-modules: Likewise.
58781         * tests/test-alloca-opt.c: Likewise.
58782         * tests/test-arcfour.c: Likewise.
58783         * tests/test-arctwo.c: Likewise.
58784         * tests/test-argmatch.c: Likewise.
58785         * tests/test-argp-2.sh: Likewise.
58786         * tests/test-argp.c: Likewise.
58787         * tests/test-arpa_inet.c: Likewise.
58788         * tests/test-array_list.c: Likewise.
58789         * tests/test-array_oset.c: Likewise.
58790         * tests/test-atexit.c: Likewise.
58791         * tests/test-avltree_list.c: Likewise.
58792         * tests/test-avltree_oset.c: Likewise.
58793         * tests/test-avltreehash_list.c: Likewise.
58794         * tests/test-base64.c: Likewise.
58795         * tests/test-binary-io.c: Likewise.
58796         * tests/test-byteswap.c: Likewise.
58797         * tests/test-c-ctype.c: Likewise.
58798         * tests/test-c-strcasecmp.c: Likewise.
58799         * tests/test-c-strcasestr.c: Likewise.
58800         * tests/test-c-strncasecmp.c: Likewise.
58801         * tests/test-c-strstr.c: Likewise.
58802         * tests/test-canonicalize-lgpl.c: Likewise.
58803         * tests/test-canonicalize.c: Likewise.
58804         * tests/test-carray_list.c: Likewise.
58805         * tests/test-ceilf.c: Likewise.
58806         * tests/test-ceill.c: Likewise.
58807         * tests/test-count-one-bits.c: Likewise.
58808         * tests/test-crc.c: Likewise.
58809         * tests/test-dirname.c: Likewise.
58810         * tests/test-fbufmode.c: Likewise.
58811         * tests/test-fcntl.c: Likewise.
58812         * tests/test-fflush.c: Likewise.
58813         * tests/test-floorf.c: Likewise.
58814         * tests/test-floorl.c: Likewise.
58815         * tests/test-fopen.c: Likewise.
58816         * tests/test-fprintf-posix.c: Likewise.
58817         * tests/test-fprintf-posix.h: Likewise.
58818         * tests/test-fpurge.c: Likewise.
58819         * tests/test-freadable.c: Likewise.
58820         * tests/test-freadahead.c: Likewise.
58821         * tests/test-freading.c: Likewise.
58822         * tests/test-freopen.c: Likewise.
58823         * tests/test-frexp.c: Likewise.
58824         * tests/test-frexpl.c: Likewise.
58825         * tests/test-fseek.c: Likewise.
58826         * tests/test-fseeko.c: Likewise.
58827         * tests/test-fseterr.c: Likewise.
58828         * tests/test-fstrcmp.c: Likewise.
58829         * tests/test-ftell.c: Likewise.
58830         * tests/test-ftello.c: Likewise.
58831         * tests/test-fwritable.c: Likewise.
58832         * tests/test-fwriting.c: Likewise.
58833         * tests/test-getaddrinfo.c: Likewise.
58834         * tests/test-getpass.c: Likewise.
58835         * tests/test-gettimeofday.c: Likewise.
58836         * tests/test-hmac-md5.c: Likewise.
58837         * tests/test-hmac-sha1.c: Likewise.
58838         * tests/test-iconv.c: Likewise.
58839         * tests/test-iconvme.c: Likewise.
58840         * tests/test-inttypes.c: Likewise.
58841         * tests/test-isnan.c: Likewise.
58842         * tests/test-isnanf.c: Likewise.
58843         * tests/test-isnanl-nolibm.c: Likewise.
58844         * tests/test-isnanl.c: Likewise.
58845         * tests/test-isnanl.h: Likewise.
58846         * tests/test-ldexpl.c: Likewise.
58847         * tests/test-linked_list.c: Likewise.
58848         * tests/test-linkedhash_list.c: Likewise.
58849         * tests/test-locale.c: Likewise.
58850         * tests/test-localename.c: Likewise.
58851         * tests/test-lock.c: Likewise.
58852         * tests/test-lseek.c: Likewise.
58853         * tests/test-malloca.c: Likewise.
58854         * tests/test-math.c: Likewise.
58855         * tests/test-mbscasecmp.c: Likewise.
58856         * tests/test-mbscasestr1.c: Likewise.
58857         * tests/test-mbscasestr2.c: Likewise.
58858         * tests/test-mbscasestr3.c: Likewise.
58859         * tests/test-mbscasestr4.c: Likewise.
58860         * tests/test-mbschr.c: Likewise.
58861         * tests/test-mbscspn.c: Likewise.
58862         * tests/test-mbsncasecmp.c: Likewise.
58863         * tests/test-mbspbrk.c: Likewise.
58864         * tests/test-mbspcasecmp.c: Likewise.
58865         * tests/test-mbsrchr.c: Likewise.
58866         * tests/test-mbsspn.c: Likewise.
58867         * tests/test-mbsstr1.c: Likewise.
58868         * tests/test-mbsstr2.c: Likewise.
58869         * tests/test-mbsstr3.c: Likewise.
58870         * tests/test-md5.c: Likewise.
58871         * tests/test-memmem.c: Likewise.
58872         * tests/test-netinet_in.c: Likewise.
58873         * tests/test-open.c: Likewise.
58874         * tests/test-printf-frexp.c: Likewise.
58875         * tests/test-printf-frexpl.c: Likewise.
58876         * tests/test-printf-posix.c: Likewise.
58877         * tests/test-printf-posix.h: Likewise.
58878         * tests/test-rbtree_list.c: Likewise.
58879         * tests/test-rbtree_oset.c: Likewise.
58880         * tests/test-rbtreehash_list.c: Likewise.
58881         * tests/test-read-file.c: Likewise.
58882         * tests/test-rijndael.c: Likewise.
58883         * tests/test-search.c: Likewise.
58884         * tests/test-signbit.c: Likewise.
58885         * tests/test-sleep.c: Likewise.
58886         * tests/test-snprintf-posix.c: Likewise.
58887         * tests/test-snprintf-posix.h: Likewise.
58888         * tests/test-snprintf.c: Likewise.
58889         * tests/test-sprintf-posix.c: Likewise.
58890         * tests/test-sprintf-posix.h: Likewise.
58891         * tests/test-stat-time.c: Likewise.
58892         * tests/test-stdbool.c: Likewise.
58893         * tests/test-stdint.c: Likewise.
58894         * tests/test-stdio.c: Likewise.
58895         * tests/test-stdlib.c: Likewise.
58896         * tests/test-stpncpy.c: Likewise.
58897         * tests/test-strcasestr.c: Likewise.
58898         * tests/test-striconv.c: Likewise.
58899         * tests/test-striconveh.c: Likewise.
58900         * tests/test-striconveha.c: Likewise.
58901         * tests/test-string.c: Likewise.
58902         * tests/test-sys_select.c: Likewise.
58903         * tests/test-sys_socket.c: Likewise.
58904         * tests/test-sys_stat.c: Likewise.
58905         * tests/test-sys_time.c: Likewise.
58906         * tests/test-sysexits.c: Likewise.
58907         * tests/test-time.c: Likewise.
58908         * tests/test-tls.c: Likewise.
58909         * tests/test-trunc.c: Likewise.
58910         * tests/test-truncf.c: Likewise.
58911         * tests/test-truncl.c: Likewise.
58912         * tests/test-unistd.c: Likewise.
58913         * tests/test-vasnprintf-posix.c: Likewise.
58914         * tests/test-vasnprintf-posix2.c: Likewise.
58915         * tests/test-vasnprintf.c: Likewise.
58916         * tests/test-vasprintf-posix.c: Likewise.
58917         * tests/test-vasprintf.c: Likewise.
58918         * tests/test-verify.c: Likewise.
58919         * tests/test-vfprintf-posix.c: Likewise.
58920         * tests/test-vprintf-posix.c: Likewise.
58921         * tests/test-vsnprintf-posix.c: Likewise.
58922         * tests/test-vsnprintf.c: Likewise.
58923         * tests/test-vsprintf-posix.c: Likewise.
58924         * tests/test-wchar.c: Likewise.
58925         * tests/test-wctype.c: Likewise.
58926         * tests/test-wcwidth.c: Likewise.
58927         * tests/test-xstrtol.c: Likewise.
58928         * tests/test-xvasprintf.c: Likewise.
58929         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
58930         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
58931         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
58932         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
58933         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
58934         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
58935         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
58936         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
58937         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
58938         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
58939         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
58940         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
58941         * tests/uniname/test-uninames.c: Likewise.
58942         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
58943         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
58944         * tests/unistdio/test-u16-printf1.h: Likewise.
58945         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
58946         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
58947         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
58948         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
58949         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
58950         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
58951         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
58952         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
58953         * tests/unistdio/test-u32-printf1.h: Likewise.
58954         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
58955         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
58956         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
58957         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
58958         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
58959         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
58960         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
58961         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
58962         * tests/unistdio/test-u8-printf1.h: Likewise.
58963         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
58964         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
58965         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
58966         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
58967         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
58968         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
58969         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
58970         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
58971         * tests/unistdio/test-ulc-printf1.h: Likewise.
58972         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
58973         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
58974         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
58975         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
58976         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
58977         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
58978         * tests/uniwidth/test-u16-strwidth.c: Likewise.
58979         * tests/uniwidth/test-u16-width.c: Likewise.
58980         * tests/uniwidth/test-u32-strwidth.c: Likewise.
58981         * tests/uniwidth/test-u32-width.c: Likewise.
58982         * tests/uniwidth/test-u8-strwidth.c: Likewise.
58983         * tests/uniwidth/test-u8-width.c: Likewise.
58984         * tests/uniwidth/test-uc_width.c: Likewise.
58985         * config/srclist-update: Likewise.
58986         (fixlicense): Update to GPLv3+.
58987
58988         Change copyright notice from LGPLv2.1+ to LGPLv3+.
58989         * tests/test-tsearch.c: Change copyright notice.
58990
58991         Change copyright notice from LGPLv2.0+ to LGPLv3+.
58992         * lib/c-strcaseeq.h: Change copyright notice.
58993         * lib/streq.h: Likewise.
58994         * lib/uniconv.h: Likewise.
58995         * lib/uniconv/u-conv-from-enc.h: Likewise.
58996         * lib/uniconv/u-conv-to-enc.h: Likewise.
58997         * lib/uniconv/u-strconv-from-enc.h: Likewise.
58998         * lib/uniconv/u-strconv-to-enc.h: Likewise.
58999         * lib/uniconv/u16-conv-from-enc.c: Likewise.
59000         * lib/uniconv/u16-conv-to-enc.c: Likewise.
59001         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
59002         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
59003         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
59004         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
59005         * lib/uniconv/u32-conv-from-enc.c: Likewise.
59006         * lib/uniconv/u32-conv-to-enc.c: Likewise.
59007         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
59008         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
59009         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
59010         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
59011         * lib/uniconv/u8-conv-from-enc.c: Likewise.
59012         * lib/uniconv/u8-conv-to-enc.c: Likewise.
59013         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
59014         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
59015         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
59016         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
59017         * lib/uniname.h: Likewise.
59018         * lib/uniname/uniname.c: Likewise.
59019         * lib/unistdio.h: Likewise.
59020         * lib/unistdio/u-asnprintf.h: Likewise.
59021         * lib/unistdio/u-asprintf.h: Likewise.
59022         * lib/unistdio/u-printf-args.c: Likewise.
59023         * lib/unistdio/u-printf-args.h: Likewise.
59024         * lib/unistdio/u-printf-parse.h: Likewise.
59025         * lib/unistdio/u-snprintf.h: Likewise.
59026         * lib/unistdio/u-sprintf.h: Likewise.
59027         * lib/unistdio/u-vasprintf.h: Likewise.
59028         * lib/unistdio/u-vsnprintf.h: Likewise.
59029         * lib/unistdio/u-vsprintf.h: Likewise.
59030         * lib/unistdio/u16-asnprintf.c: Likewise.
59031         * lib/unistdio/u16-asprintf.c: Likewise.
59032         * lib/unistdio/u16-printf-parse.c: Likewise.
59033         * lib/unistdio/u16-snprintf.c: Likewise.
59034         * lib/unistdio/u16-sprintf.c: Likewise.
59035         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
59036         * lib/unistdio/u16-u16-asprintf.c: Likewise.
59037         * lib/unistdio/u16-u16-snprintf.c: Likewise.
59038         * lib/unistdio/u16-u16-sprintf.c: Likewise.
59039         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
59040         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
59041         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
59042         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
59043         * lib/unistdio/u16-vasnprintf.c: Likewise.
59044         * lib/unistdio/u16-vasprintf.c: Likewise.
59045         * lib/unistdio/u16-vsnprintf.c: Likewise.
59046         * lib/unistdio/u16-vsprintf.c: Likewise.
59047         * lib/unistdio/u32-asnprintf.c: Likewise.
59048         * lib/unistdio/u32-asprintf.c: Likewise.
59049         * lib/unistdio/u32-printf-parse.c: Likewise.
59050         * lib/unistdio/u32-snprintf.c: Likewise.
59051         * lib/unistdio/u32-sprintf.c: Likewise.
59052         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
59053         * lib/unistdio/u32-u32-asprintf.c: Likewise.
59054         * lib/unistdio/u32-u32-snprintf.c: Likewise.
59055         * lib/unistdio/u32-u32-sprintf.c: Likewise.
59056         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
59057         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
59058         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
59059         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
59060         * lib/unistdio/u32-vasnprintf.c: Likewise.
59061         * lib/unistdio/u32-vasprintf.c: Likewise.
59062         * lib/unistdio/u32-vsnprintf.c: Likewise.
59063         * lib/unistdio/u32-vsprintf.c: Likewise.
59064         * lib/unistdio/u8-asnprintf.c: Likewise.
59065         * lib/unistdio/u8-asprintf.c: Likewise.
59066         * lib/unistdio/u8-printf-parse.c: Likewise.
59067         * lib/unistdio/u8-snprintf.c: Likewise.
59068         * lib/unistdio/u8-sprintf.c: Likewise.
59069         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
59070         * lib/unistdio/u8-u8-asprintf.c: Likewise.
59071         * lib/unistdio/u8-u8-snprintf.c: Likewise.
59072         * lib/unistdio/u8-u8-sprintf.c: Likewise.
59073         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
59074         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
59075         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
59076         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
59077         * lib/unistdio/u8-vasnprintf.c: Likewise.
59078         * lib/unistdio/u8-vasprintf.c: Likewise.
59079         * lib/unistdio/u8-vsnprintf.c: Likewise.
59080         * lib/unistdio/u8-vsprintf.c: Likewise.
59081         * lib/unistdio/ulc-asnprintf.c: Likewise.
59082         * lib/unistdio/ulc-asprintf.c: Likewise.
59083         * lib/unistdio/ulc-printf-parse.c: Likewise.
59084         * lib/unistdio/ulc-snprintf.c: Likewise.
59085         * lib/unistdio/ulc-sprintf.c: Likewise.
59086         * lib/unistdio/ulc-vasnprintf.c: Likewise.
59087         * lib/unistdio/ulc-vasprintf.c: Likewise.
59088         * lib/unistdio/ulc-vsnprintf.c: Likewise.
59089         * lib/unistdio/ulc-vsprintf.c: Likewise.
59090         * lib/unistr.h: Likewise.
59091         * lib/unistr/u-cpy-alloc.h: Likewise.
59092         * lib/unistr/u-cpy.h: Likewise.
59093         * lib/unistr/u-endswith.h: Likewise.
59094         * lib/unistr/u-move.h: Likewise.
59095         * lib/unistr/u-set.h: Likewise.
59096         * lib/unistr/u-startswith.h: Likewise.
59097         * lib/unistr/u-stpcpy.h: Likewise.
59098         * lib/unistr/u-stpncpy.h: Likewise.
59099         * lib/unistr/u-strcat.h: Likewise.
59100         * lib/unistr/u-strcpy.h: Likewise.
59101         * lib/unistr/u-strcspn.h: Likewise.
59102         * lib/unistr/u-strdup.h: Likewise.
59103         * lib/unistr/u-strlen.h: Likewise.
59104         * lib/unistr/u-strncat.h: Likewise.
59105         * lib/unistr/u-strncpy.h: Likewise.
59106         * lib/unistr/u-strnlen.h: Likewise.
59107         * lib/unistr/u-strpbrk.h: Likewise.
59108         * lib/unistr/u-strspn.h: Likewise.
59109         * lib/unistr/u-strstr.h: Likewise.
59110         * lib/unistr/u-strtok.h: Likewise.
59111         * lib/unistr/u16-check.c: Likewise.
59112         * lib/unistr/u16-chr.c: Likewise.
59113         * lib/unistr/u16-cmp.c: Likewise.
59114         * lib/unistr/u16-cpy-alloc.c: Likewise.
59115         * lib/unistr/u16-cpy.c: Likewise.
59116         * lib/unistr/u16-endswith.c: Likewise.
59117         * lib/unistr/u16-mblen.c: Likewise.
59118         * lib/unistr/u16-mbsnlen.c: Likewise.
59119         * lib/unistr/u16-mbtouc-aux.c: Likewise.
59120         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
59121         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
59122         * lib/unistr/u16-mbtouc.c: Likewise.
59123         * lib/unistr/u16-mbtoucr.c: Likewise.
59124         * lib/unistr/u16-move.c: Likewise.
59125         * lib/unistr/u16-next.c: Likewise.
59126         * lib/unistr/u16-prev.c: Likewise.
59127         * lib/unistr/u16-set.c: Likewise.
59128         * lib/unistr/u16-startswith.c: Likewise.
59129         * lib/unistr/u16-stpcpy.c: Likewise.
59130         * lib/unistr/u16-stpncpy.c: Likewise.
59131         * lib/unistr/u16-strcat.c: Likewise.
59132         * lib/unistr/u16-strchr.c: Likewise.
59133         * lib/unistr/u16-strcmp.c: Likewise.
59134         * lib/unistr/u16-strcpy.c: Likewise.
59135         * lib/unistr/u16-strcspn.c: Likewise.
59136         * lib/unistr/u16-strdup.c: Likewise.
59137         * lib/unistr/u16-strlen.c: Likewise.
59138         * lib/unistr/u16-strmblen.c: Likewise.
59139         * lib/unistr/u16-strmbtouc.c: Likewise.
59140         * lib/unistr/u16-strncat.c: Likewise.
59141         * lib/unistr/u16-strncmp.c: Likewise.
59142         * lib/unistr/u16-strncpy.c: Likewise.
59143         * lib/unistr/u16-strnlen.c: Likewise.
59144         * lib/unistr/u16-strpbrk.c: Likewise.
59145         * lib/unistr/u16-strrchr.c: Likewise.
59146         * lib/unistr/u16-strspn.c: Likewise.
59147         * lib/unistr/u16-strstr.c: Likewise.
59148         * lib/unistr/u16-strtok.c: Likewise.
59149         * lib/unistr/u16-to-u32.c: Likewise.
59150         * lib/unistr/u16-to-u8.c: Likewise.
59151         * lib/unistr/u16-uctomb-aux.c: Likewise.
59152         * lib/unistr/u16-uctomb.c: Likewise.
59153         * lib/unistr/u32-check.c: Likewise.
59154         * lib/unistr/u32-chr.c: Likewise.
59155         * lib/unistr/u32-cmp.c: Likewise.
59156         * lib/unistr/u32-cpy-alloc.c: Likewise.
59157         * lib/unistr/u32-cpy.c: Likewise.
59158         * lib/unistr/u32-endswith.c: Likewise.
59159         * lib/unistr/u32-mblen.c: Likewise.
59160         * lib/unistr/u32-mbsnlen.c: Likewise.
59161         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
59162         * lib/unistr/u32-mbtouc.c: Likewise.
59163         * lib/unistr/u32-mbtoucr.c: Likewise.
59164         * lib/unistr/u32-move.c: Likewise.
59165         * lib/unistr/u32-next.c: Likewise.
59166         * lib/unistr/u32-prev.c: Likewise.
59167         * lib/unistr/u32-set.c: Likewise.
59168         * lib/unistr/u32-startswith.c: Likewise.
59169         * lib/unistr/u32-stpcpy.c: Likewise.
59170         * lib/unistr/u32-stpncpy.c: Likewise.
59171         * lib/unistr/u32-strcat.c: Likewise.
59172         * lib/unistr/u32-strchr.c: Likewise.
59173         * lib/unistr/u32-strcmp.c: Likewise.
59174         * lib/unistr/u32-strcpy.c: Likewise.
59175         * lib/unistr/u32-strcspn.c: Likewise.
59176         * lib/unistr/u32-strdup.c: Likewise.
59177         * lib/unistr/u32-strlen.c: Likewise.
59178         * lib/unistr/u32-strmblen.c: Likewise.
59179         * lib/unistr/u32-strmbtouc.c: Likewise.
59180         * lib/unistr/u32-strncat.c: Likewise.
59181         * lib/unistr/u32-strncmp.c: Likewise.
59182         * lib/unistr/u32-strncpy.c: Likewise.
59183         * lib/unistr/u32-strnlen.c: Likewise.
59184         * lib/unistr/u32-strpbrk.c: Likewise.
59185         * lib/unistr/u32-strrchr.c: Likewise.
59186         * lib/unistr/u32-strspn.c: Likewise.
59187         * lib/unistr/u32-strstr.c: Likewise.
59188         * lib/unistr/u32-strtok.c: Likewise.
59189         * lib/unistr/u32-to-u16.c: Likewise.
59190         * lib/unistr/u32-to-u8.c: Likewise.
59191         * lib/unistr/u32-uctomb.c: Likewise.
59192         * lib/unistr/u8-check.c: Likewise.
59193         * lib/unistr/u8-chr.c: Likewise.
59194         * lib/unistr/u8-cmp.c: Likewise.
59195         * lib/unistr/u8-cpy-alloc.c: Likewise.
59196         * lib/unistr/u8-cpy.c: Likewise.
59197         * lib/unistr/u8-endswith.c: Likewise.
59198         * lib/unistr/u8-mblen.c: Likewise.
59199         * lib/unistr/u8-mbsnlen.c: Likewise.
59200         * lib/unistr/u8-mbtouc-aux.c: Likewise.
59201         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
59202         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
59203         * lib/unistr/u8-mbtouc.c: Likewise.
59204         * lib/unistr/u8-mbtoucr.c: Likewise.
59205         * lib/unistr/u8-move.c: Likewise.
59206         * lib/unistr/u8-next.c: Likewise.
59207         * lib/unistr/u8-prev.c: Likewise.
59208         * lib/unistr/u8-set.c: Likewise.
59209         * lib/unistr/u8-startswith.c: Likewise.
59210         * lib/unistr/u8-stpcpy.c: Likewise.
59211         * lib/unistr/u8-stpncpy.c: Likewise.
59212         * lib/unistr/u8-strcat.c: Likewise.
59213         * lib/unistr/u8-strchr.c: Likewise.
59214         * lib/unistr/u8-strcmp.c: Likewise.
59215         * lib/unistr/u8-strcpy.c: Likewise.
59216         * lib/unistr/u8-strcspn.c: Likewise.
59217         * lib/unistr/u8-strdup.c: Likewise.
59218         * lib/unistr/u8-strlen.c: Likewise.
59219         * lib/unistr/u8-strmblen.c: Likewise.
59220         * lib/unistr/u8-strmbtouc.c: Likewise.
59221         * lib/unistr/u8-strncat.c: Likewise.
59222         * lib/unistr/u8-strncmp.c: Likewise.
59223         * lib/unistr/u8-strncpy.c: Likewise.
59224         * lib/unistr/u8-strnlen.c: Likewise.
59225         * lib/unistr/u8-strpbrk.c: Likewise.
59226         * lib/unistr/u8-strrchr.c: Likewise.
59227         * lib/unistr/u8-strspn.c: Likewise.
59228         * lib/unistr/u8-strstr.c: Likewise.
59229         * lib/unistr/u8-strtok.c: Likewise.
59230         * lib/unistr/u8-to-u16.c: Likewise.
59231         * lib/unistr/u8-to-u32.c: Likewise.
59232         * lib/unistr/u8-uctomb-aux.c: Likewise.
59233         * lib/unistr/u8-uctomb.c: Likewise.
59234         * lib/unitypes.h: Likewise.
59235         * lib/uniwidth.h: Likewise.
59236         * lib/uniwidth/cjk.h: Likewise.
59237         * lib/uniwidth/u16-strwidth.c: Likewise.
59238         * lib/uniwidth/u16-width.c: Likewise.
59239         * lib/uniwidth/u32-strwidth.c: Likewise.
59240         * lib/uniwidth/u32-width.c: Likewise.
59241         * lib/uniwidth/u8-strwidth.c: Likewise.
59242         * lib/uniwidth/u8-width.c: Likewise.
59243         * lib/uniwidth/width.c: Likewise.
59244
59245 2007-10-07  Bruno Haible  <bruno@clisp.org>
59246
59247         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
59248         The file is still under LGPL (see modules/inttypes).
59249
59250 2007-10-06  Bruno Haible  <bruno@clisp.org>
59251
59252         * modules/trunc (Dependencies): Add 'extensions'.
59253         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
59254         Reported by Ben Pfaff <blp@gnu.org>.
59255
59256 2007-10-06  Bruno Haible  <bruno@clisp.org>
59257
59258         * modules/freopen-tests: New file.
59259         * tests/test-freopen.c: New file.
59260
59261         * modules/fopen-tests: New file.
59262         * tests/test-fopen.c: New file.
59263
59264         * modules/fopen: New file.
59265         * lib/fopen.c: New file.
59266         * m4/fopen.m4: New file.
59267         * modules/freopen: New file.
59268         * lib/freopen.c: New file.
59269         * m4/freopen.m4: New file.
59270         * lib/stdio.in.h (fopen, freopen): New declarations.
59271         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
59272         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
59273         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
59274         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
59275         * doc/functions/fopen.texi: Mention the 'fopen' module.
59276         * doc/functions/freopen.texi: Mention the 'freopen' module.
59277
59278 2007-10-06  Bruno Haible  <bruno@clisp.org>
59279
59280         * modules/open-tests: New file.
59281         * tests/test-open.c: New file.
59282
59283         * modules/open: New file.
59284         * lib/open.c: New file.
59285         * m4/open.m4: New file.
59286         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
59287         lib/open.c does.
59288         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
59289         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
59290         macros.
59291         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
59292         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
59293         REPLACE_OPEN.
59294         * doc/functions/open.texi: Mention the 'open' module.
59295
59296 2007-10-04  Bruno Haible  <bruno@clisp.org>
59297
59298         * modules/ceill-tests: New file.
59299         * tests/test-ceill.c: New file.
59300
59301         * modules/ceill: New file.
59302         * lib/ceill.c: Replace entire file.
59303         * m4/ceill.m4: New file.
59304         * lib/math.in.h (ceill): Replace declaration.
59305         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
59306         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
59307         * doc/functions/ceill.texi: Mention the 'ceill' module.
59308         * modules/mathl (Files): Remove lib/ceill.c.
59309         (Depends-on): Add ceill.
59310
59311 2007-10-04  Bruno Haible  <bruno@clisp.org>
59312
59313         * modules/ceilf-tests: New file.
59314         * tests/test-ceilf.c: New file.
59315
59316         * modules/ceilf: New file.
59317         * lib/ceil.c: New file.
59318         * lib/ceilf.c: New file.
59319         * m4/ceilf.m4: New file.
59320         * lib/math.in.h (ceilf): New declaration.
59321         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
59322         HAVE_DECL_CEILF.
59323         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
59324         HAVE_DECL_CEILF.
59325         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
59326
59327 2007-10-04  Bruno Haible  <bruno@clisp.org>
59328
59329         * modules/floorl-tests: New file.
59330         * tests/test-floorl.c: New file.
59331
59332         * modules/floorl: New file.
59333         * lib/floorl.c: Replace entire file.
59334         * m4/floorl.m4: New file.
59335         * lib/math.in.h (floorl): Replace declaration.
59336         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
59337         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
59338         * doc/functions/floorl.texi: Mention the 'floorl' module.
59339         * modules/mathl (Files): Remove lib/floorl.c.
59340         (Depends-on): Add floorl.
59341
59342 2007-10-04  Bruno Haible  <bruno@clisp.org>
59343
59344         * modules/floorf-tests: New file.
59345         * tests/test-floorf.c: New file.
59346
59347         * modules/floorf: New file.
59348         * lib/floor.c: New file.
59349         * lib/floorf.c: New file.
59350         * m4/floorf.m4: New file.
59351         * lib/math.in.h (floorf): New declaration.
59352         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
59353         HAVE_DECL_FLOORF.
59354         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
59355         HAVE_DECL_FLOORF.
59356         * doc/functions/floorf.texi: Mention the 'floorf' module.
59357
59358 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
59359             Bruno Haible  <bruno@clisp.org>
59360
59361         Advertise for the Git server instead of the CVS server.
59362         * doc/gnulib-intro.texi (Steady Development): Mention the Git
59363         repository instead of the CVS one.
59364         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
59365         about all VCS systems generically.
59366         * doc/gnulib.texi (Introduction): Capitalize `Git'.
59367
59368 2007-10-04  Bruno Haible  <bruno@clisp.org>
59369
59370         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
59371         means.
59372         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
59373
59374 2007-10-04  Bruno Haible  <bruno@clisp.org>
59375
59376         * modules/truncl-tests: New file.
59377         * tests/test-truncl.c: New file.
59378
59379         * modules/truncl: New file.
59380         * lib/truncl.c: New file.
59381         * m4/truncl.m4: New file.
59382         * lib/math.in.h (truncl): New declaration.
59383         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
59384         HAVE_DECL_TRUNCL.
59385         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
59386         HAVE_DECL_TRUNCL.
59387         * doc/functions/truncl.texi: Mention the 'truncl' module.
59388
59389 2007-10-04  Bruno Haible  <bruno@clisp.org>
59390
59391         * modules/truncf-tests: New file.
59392         * tests/test-truncf.c: New file.
59393
59394         * modules/truncf: New file.
59395         * lib/trunc.c: Make paramerizable through USE_* macros.
59396         * lib/truncf.c: New file.
59397         * m4/truncf.m4: New file.
59398         * lib/math.in.h (truncf): New declaration.
59399         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
59400         HAVE_DECL_TRUNCF.
59401         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
59402         HAVE_DECL_TRUNCF.
59403         * doc/functions/truncf.texi: Mention the 'truncf' module.
59404
59405 2007-10-03  Bruno Haible  <bruno@clisp.org>
59406
59407         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
59408         augmentation also for tests modules.
59409         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
59410         * modules/atexit-tests (Makefile.am): Likewise.
59411         * modules/binary-io-tests (Makefile.am): Likewise.
59412         * modules/c-strcase-tests (Makefile.am): Likewise.
59413         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
59414         * modules/canonicalize-tests (Makefile.am): Likewise.
59415         * modules/closein-tests (Makefile.am): Likewise.
59416         * modules/fprintf-posix-tests (Makefile.am): Likewise.
59417         * modules/freadahead-tests (Makefile.am): Likewise.
59418         * modules/fseek-tests (Makefile.am): Likewise.
59419         * modules/fseeko-tests (Makefile.am): Likewise.
59420         * modules/ftell-tests (Makefile.am): Likewise.
59421         * modules/ftello-tests (Makefile.am): Likewise.
59422         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
59423         * modules/isnanl-tests (Makefile.am): Likewise.
59424         * modules/lseek-tests (Makefile.am): Likewise.
59425         * modules/mbscasecmp-tests (Makefile.am): Likewise.
59426         * modules/mbscasestr-tests (Makefile.am): Likewise.
59427         * modules/mbschr-tests (Makefile.am): Likewise.
59428         * modules/mbscspn-tests (Makefile.am): Likewise.
59429         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
59430         * modules/mbspbrk-tests (Makefile.am): Likewise.
59431         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
59432         * modules/mbsrchr-tests (Makefile.am): Likewise.
59433         * modules/mbsspn-tests (Makefile.am): Likewise.
59434         * modules/mbsstr-tests (Makefile.am): Likewise.
59435         * modules/printf-posix-tests (Makefile.am): Likewise.
59436         * modules/snprintf-posix-tests (Makefile.am): Likewise.
59437         * modules/sprintf-posix-tests (Makefile.am): Likewise.
59438         * modules/tsearch-tests (Makefile.am): Likewise.
59439         * modules/uniname/uniname-tests (Makefile.am): Likewise.
59440         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
59441         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
59442         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
59443         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
59444         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
59445         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
59446         * modules/vprintf-posix-tests (Makefile.am): Likewise.
59447         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
59448         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
59449         * modules/xstrtoimax-tests (Makefile.am): Likewise.
59450         * modules/xstrtol-tests (Makefile.am): Likewise.
59451         * modules/xstrtoumax-tests (Makefile.am): Likewise.
59452         * modules/yesno-tests (Makefile.am): Likewise.
59453
59454 2007-10-03  Bruno Haible  <bruno@clisp.org>
59455
59456         * modules/trunc-tests: New file.
59457         * tests/test-trunc.c: New file.
59458
59459         * modules/trunc: New file.
59460         * lib/trunc.c: New file.
59461         * m4/trunc.m4: New file.
59462         * lib/math.in.h (trunc): New declaration.
59463         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
59464         HAVE_DECL_TRUNC.
59465         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
59466         HAVE_DECL_TRUNC.
59467         * doc/functions/trunc.texi: Mention the 'trunc' module.
59468
59469 2007-10-03  Bruno Haible  <bruno@clisp.org>
59470
59471         * tests/test-fpending.c: New file, mostly copied
59472         from coreutils/lib/t-fpending.c.
59473         * modules/fpending-tests: New file.
59474
59475 2007-10-03  Bruno Haible  <bruno@clisp.org>
59476
59477         Port the stdio extensions to QNX (untested).
59478         * lib/fseterr.c (fseterr): Add support for QNX.
59479         * lib/fbufmode.c (fbufmode): Likewise.
59480         * lib/freadable.c (freadable): Likewise.
59481         * lib/fwritable.c (fwritable): Likewise.
59482         * lib/freading.c (freading): Likewise.
59483         * lib/fwriting.c (fwriting): Likewise.
59484         * lib/freadahead.c (freadahed): Likewise.
59485         * lib/fpurge.c (fpurge): Likewise.
59486         * lib/fseeko.c (rpl_fseeko): Likewise.
59487
59488 2007-10-03  Bruno Haible  <bruno@clisp.org>
59489             Jim Meyering  <jim@meyering.net>
59490             Eric Blake  <ebb9@byu.net>
59491
59492         * doc/relocatable.texi: Use @command instead of @program.
59493
59494 2007-10-02  Jim Meyering  <jim@meyering.net>
59495
59496         Perform one more "_.h" -> ".in.h" substitution.
59497         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
59498         instead of unistd_.h here, too.
59499
59500 2007-10-01  Bruno Haible  <bruno@clisp.org>
59501
59502         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
59503         Needed for the alloca-opt module.
59504
59505 2007-09-30  Bruno Haible  <bruno@clisp.org>
59506
59507         * lib/alloca.in.h: Renamed from lib/alloca_.h.
59508         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
59509         alloca_.h.
59510         * lib/argz.in.h: Renamed from lib/argz_.h.
59511         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
59512         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
59513         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
59514         byteswap_.h.
59515         * lib/dirent.in.h: Renamed from lib/dirent_.h.
59516         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
59517         dirent_.h.
59518         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
59519         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
59520         fcntl_.h.
59521         * lib/float.in.h: Renamed from lib/float_.h.
59522         * modules/float (Files, Makefile.am): Use float.in.h instead of
59523         float_.h.
59524         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
59525         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
59526         fnmatch_.h.
59527         * lib/getopt.in.h: Renamed from lib/getopt_.h.
59528         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
59529         getopt_.h.
59530         * lib/glob.in.h: Renamed from lib/glob_.h.
59531         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
59532         * lib/iconv.in.h: Renamed from lib/iconv_.h.
59533         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
59534         iconv_.h.
59535         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
59536         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
59537         inttypes_.h.
59538         * lib/locale.in.h: Renamed from lib/locale_.h.
59539         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
59540         locale_.h.
59541         * lib/math.in.h: Renamed from lib/math_.h.
59542         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
59543         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
59544         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
59545         of netinet_in_.h. Add dependency.
59546         * lib/poll.in.h: Renamed from lib/poll_.h.
59547         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
59548         * lib/search.in.h: Renamed from lib/search_.h.
59549         * modules/search (Files, Makefile.am): Use search.in.h instead of
59550         search_.h.
59551         * lib/signal.in.h: Renamed from lib/signal_.h.
59552         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
59553         _signal.h.
59554         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
59555         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
59556         stdbool_.h.
59557         * lib/stdint.in.h: Renamed from lib/stdint_.h.
59558         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
59559         stdint_.h.
59560         * lib/stdio.in.h: Renamed from lib/stdio_.h.
59561         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
59562         stdio_.h.
59563         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
59564         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
59565         stdlib_.h.
59566         * lib/string.in.h: Renamed from lib/string_.h.
59567         * modules/string (Files, Makefile.am): Use string.in.h instead of
59568         string_.h.
59569         * doc/gnulib-tool.texi (Initial import): Update.
59570         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
59571         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
59572         of sys_select_.h. Add dependency.
59573         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
59574         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
59575         of sys_socket_.h.
59576         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
59577         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
59578         sys_stat_.h.
59579         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
59580         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
59581         sys_time_.h.
59582         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
59583         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
59584         sysexits_.h.
59585         * lib/time.in.h: Renamed from lib/time_.h.
59586         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
59587         * lib/unistd.in.h: Renamed from lib/unistd_.h.
59588         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
59589         unistd_.h.
59590         * lib/wchar.in.h: Renamed from lib/wchar_.h.
59591         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
59592         wchar_.h.
59593         * lib/wctype.in.h: Renamed from lib/wctype_.h.
59594         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
59595         wctype_.h.
59596         * build-aux/bootstrap (slurp): Update.
59597         * lib/.cppi-disable: Update.
59598
59599 2007-09-30  Bruno Haible  <bruno@clisp.org>
59600
59601         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
59602         Needed on BeOS.
59603
59604 2007-09-30  Bruno Haible  <bruno@clisp.org>
59605
59606         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
59607
59608 2007-09-29  Bruno Haible  <bruno@clisp.org>
59609
59610         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
59611
59612 2007-09-29  Bruno Haible  <bruno@clisp.org>
59613
59614         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
59615         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
59616         * build-aux/install-reloc: Compile also areadlink.c.
59617         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
59618
59619 2007-09-29  Bruno Haible  <bruno@clisp.org>
59620
59621         * gnulib-tool (func_emit_initmacro_done): Indentation.
59622
59623 2007-09-29  Bruno Haible  <bruno@clisp.org>
59624
59625         * README: Add CVS checkout update instructions.
59626         Info from Bob Proulx <bob@proulx.com>.
59627
59628 2007-09-28  Eric Blake  <ebb9@byu.net>
59629
59630         Provide move-if-change.
59631         * build-aux/move-if-change: New file, based on best practice
59632         rather than any canonical upstream location.
59633
59634 2007-09-28  Jim Meyering  <jim@meyering.net>
59635
59636         Fix canonicalize loop-detection corner case.
59637         Do not attempt to stat the symlink values stored via seen_triple.
59638         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
59639         on linux-2.6.18, (but not 2.6.22).
59640         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
59641         triple_compare.  The former compares dev,ino,filename, while the latter
59642         would actually stat dirname(filename) when dev and ino were equal.
59643         * lib/hash-triple.c: Install <string.h>.
59644         (STREQ): Define.
59645         (triple_compare_ino_str): New function.
59646         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
59647
59648 2007-09-28  Eric Blake  <ebb9@byu.net>
59649
59650         Enforce that AC_REPLACE_FUNCS files exist.
59651         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
59652         override check for typos.
59653
59654         Fix test-closein on Solaris 10.
59655         * tests/test-closein.c (main): Don't assume stdin can be inherited
59656         closed on all systems.
59657         * tests/test-closein.sh: Likewise.
59658         Reported by Piotr Tarnowski.
59659
59660 2007-09-28  Jim Meyering  <jim@meyering.net>
59661
59662         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
59663
59664 2007-09-27  Jim Meyering  <jim@meyering.net>
59665
59666         canonicalize: Avoid a false-positive cycle failure.
59667         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
59668         Sort.  Remove cycle-check.
59669         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
59670         not cycle-check.h.
59671         (seen_triple): New function.
59672         (canonicalize_filename_mode): Use it instead of cycle-check.
59673         * tests/test-canonicalize.c: Add a test for this bug.
59674         * tests/test-canonicalize.sh: Set up and run the test.
59675
59676         New module, file-set, from coreutils.
59677         * modules/file-set: Define it.
59678         * lib/file-set.c, lib/file-set.h: Implement.
59679
59680         New module, hash-triple, from coreutils.
59681         * modules/hash-triple: Define it.
59682         * lib/hash-triple.c, lib/hash-triple.h: Implement.
59683
59684 2007-09-25  Eric Blake  <ebb9@byu.net>
59685
59686         Fix strerror on Interix.
59687         * lib/string_.h (strerror): Declare replacement.
59688         * doc/functions/strerror.texi (strerror): Document the Interix
59689         shortcoming.
59690         * modules/string (Makefile.am): Support new hooks.
59691         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
59692         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
59693         gl_FUNC_STRERROR_SEPARATE.
59694         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
59695         * lib/strerror.c (rpl_strerror): Provide replacement.
59696         * modules/strerror (Depends-on): Add string.
59697         (configure.ac): Detect use of module.
59698         * tests/test-strerror.c: New file.
59699         * modules/strerror-tests: New test module.
59700         * modules/argp (Depends-on): Add strerror.
59701         * modules/error (Depends-on): Likewise.
59702         Reported by Martin Koeppe.
59703
59704 2007-09-24  Bruno Haible  <bruno@clisp.org>
59705
59706         * README: Update git instructions.
59707
59708 2007-09-24  Eric Blake  <ebb9@byu.net>
59709
59710         Revert fpending breakage from 2007-09-08.
59711         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
59712         __fpending.c.
59713
59714 2007-09-24  Jim Meyering  <jim@meyering.net>
59715
59716         filenamecat.c: Add a test.
59717         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
59718         showing how the function works when DIR is the empty string.
59719
59720 2007-09-21  Simon Josefsson  <simon@josefsson.org>
59721
59722         * tests/test-canonicalize.sh: Turn on executable bit.
59723
59724 2007-09-19  Eric Blake  <ebb9@byu.net>
59725
59726         * README: Update CVS instructions.
59727
59728 2007-09-18  Bruno Haible  <bruno@clisp.org>
59729
59730         * modules/areadlink: New file.
59731         * lib/areadlink.h (areadlink): New declaration.
59732         * lib/areadlink.c: New file, based on lib/xreadlink.c.
59733
59734 2007-09-17  Jim Meyering  <jim@meyering.net>
59735
59736         * lib/savewd.c (ESTALE) [!defined]: Define.
59737         Reported to be required on Interix by Martin Koeppe.
59738
59739 2007-09-17  Bruno Haible  <bruno@clisp.org>
59740
59741         * gnulib-tool (func_version): Use $version.
59742
59743 2007-09-16  Bruno Haible  <bruno@clisp.org>
59744
59745         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
59746         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
59747         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
59748         Reported by Greg Schafer <gschafer@zip.com.au>.
59749
59750 2007-09-15  Bruno Haible  <bruno@clisp.org>
59751
59752         * gnulib-tool (sed): Try a little harder to make bash understand the
59753         alias.
59754         Reported by Bruce Korb <bruce.korb@gmail.com>.
59755
59756 2007-09-13  Eric Blake  <ebb9@byu.net>
59757
59758         * ChangeLog: Remove conflict markers.
59759
59760 2007-09-13  Simon Josefsson  <simon@josefsson.org>
59761
59762         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
59763         Reported by Bruno Haible <bruno@clisp.org>.
59764
59765 2007-09-12  Bruno Haible  <bruno@clisp.org>
59766
59767         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
59768         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
59769         is not defined.
59770
59771 2007-09-12  Eric Blake  <ebb9@byu.net>
59772
59773         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
59774         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
59775         Autoconf definition.
59776         * modules/euidaccess (Depends-on): Add extensions, for
59777         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
59778         * modules/fnmatch (Depends-on): Likewise.
59779         * modules/getaddrinfo (Depends-on): Likewise.
59780         * modules/getdelim (Depends-on): Likewise.
59781         * modules/getline (Depends-on): Likewise.
59782         * modules/getsubopt (Depends-on): Likewise.
59783         * modules/gettext (Depends-on): Likewise.
59784         * modules/group-member (Depends-on): Likewise.
59785         * modules/mbchar (Depends-on): Likewise.
59786         * modules/memmem (Depends-on): Likewise.
59787         * modules/mempcpy (Depends-on): Likewise.
59788         * modules/memrchr (Depends-on): Likewise.
59789         * modules/pagealign_alloc (Depends-on): Likewise.
59790         * modules/readutmp (Depends-on): Likewise.
59791         * modules/stpcpy (Depends-on): Likewise.
59792         * modules/stpncpy (Depends-on): Likewise.
59793         * modules/strchrnul (Depends-on): Likewise.
59794         * modules/strndup (Depends-on): Likewise.
59795         * modules/strsep (Depends-on): Likewise.
59796         * modules/strverscmp (Depends-on): Likewise.
59797         * modules/vasprintf (Depends-on): Likewise.
59798         * modules/wcwidth (Depends-on): Likewise.
59799         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
59800         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
59801         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
59802         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
59803         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59804         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
59805         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
59806         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
59807         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
59808         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
59809         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59810         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
59811         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
59812         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
59813         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
59814         * m4/readutmp.m4 (gl_READUTMP): Likewise.
59815         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59816         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
59817         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59818         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
59819         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
59820         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
59821         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
59822         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
59823         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
59824         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59825         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
59826         so that lock.m4 can be used in gettext without extensions module.
59827
59828 2007-09-11  Bruno Haible  <bruno@clisp.org>
59829
59830         * m4/isc-posix.m4: Remove file.
59831         Suggested by Eric Blake.
59832
59833 2007-09-11  Eric Blake  <ebb9@byu.net>
59834
59835         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
59836
59837 2007-09-10  Bruno Haible  <bruno@clisp.org>
59838
59839         * posix-modules: Fix typo in error message.
59840         Reported by Matt <mkraai@beckman.com>.
59841
59842 2007-09-09  Bruno Haible  <bruno@clisp.org>
59843
59844         * doc/functions/getdelim.texi: Update list of platforms lacking the
59845         function.
59846         * doc/functions/getline.texi: Likewise.
59847
59848 2007-09-09  Jim Meyering  <jim@meyering.net>
59849
59850         * lib/hash.c (hash_initialize): Detect calloc failure.
59851         Reported by Bruno Haible.
59852
59853 2007-09-09  Bruno Haible  <bruno@clisp.org>
59854
59855         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
59856         malloc or realloc fails.
59857
59858 2007-09-09  Bruno Haible  <bruno@clisp.org>
59859
59860         * modules/getcwd (Depends-on): Add malloc-posix.
59861         * modules/glob (Depends-on): Likewise.
59862         * modules/putenv (Depends-on): Likewise.
59863         * modules/strdup (Depends-on): Likewise.
59864         * modules/getdelim (Depends-on): Add realloc-posix.
59865         * modules/read-file (Depends-on): Likewise.
59866
59867 2007-09-09  Bruno Haible  <bruno@clisp.org>
59868
59869         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
59870         (gl_FUNC_MALLOC_POSIX): Require it.
59871         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
59872         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
59873         * modules/realloc (Files): Add m4/malloc.m4.
59874         * modules/calloc (Files): Likewise.
59875
59876 2007-09-09  Bruno Haible  <bruno@clisp.org>
59877
59878         * modules/malloc-posix: New file.
59879         * modules/malloc (Depends-on): Add malloc-posix.
59880         * lib/malloc.c: Include errno.h.
59881         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
59882         and a POSIX-compatible malloc into a single function. Set ENOMEM
59883         when returning NULL.
59884         * m4/malloc.m4: New file.
59885         * doc/functions/malloc.texi: Mention the malloc-posix module.
59886         * lib/stdlib_.h (malloc): New declaration.
59887         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
59888         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
59889         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
59890         and HAVE_MALLOC_POSIX.
59891
59892 2007-09-09  Bruno Haible  <bruno@clisp.org>
59893
59894         * modules/realloc-posix: New file.
59895         * modules/realloc (Depends-on): Add realloc-posix.
59896         * lib/realloc.c: Include errno.h.
59897         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
59898         and a POSIX-compatible realloc into a single function. Set ENOMEM
59899         when returning NULL.
59900         * m4/realloc.m4: New file.
59901         * doc/functions/realloc.texi: Mention the realloc-posix module.
59902         * lib/stdlib_.h (realloc): New declaration.
59903         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
59904         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
59905         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
59906         and HAVE_REALLOC_POSIX.
59907
59908 2007-09-09  Bruno Haible  <bruno@clisp.org>
59909
59910         * modules/calloc-posix: New file.
59911         * modules/calloc (Depends-on): Add calloc-posix.
59912         * lib/calloc.c: Include errno.h.
59913         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
59914         and a POSIX-compatible calloc into a single function. Set ENOMEM
59915         when returning NULL.
59916         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
59917         * doc/functions/calloc.texi: Mention the calloc-posix module.
59918         * lib/stdlib_.h (calloc): New declaration.
59919         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
59920         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
59921         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
59922         and HAVE_CALLOC_POSIX.
59923
59924 2007-09-09  Bruno Haible  <bruno@clisp.org>
59925
59926         Allow for modules to show an arbitrary notice.
59927         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
59928         * gnulib-tool: New option --extract-notice.
59929         (func_usage): Document it.
59930         (sed_extract_prog): Update.
59931         (func_get_notice): New function.
59932         (func_modules_notice): New function.
59933         (func_import, func_create_testdir): Invoke it.
59934         Suggested by Jim Meyering.
59935
59936 2007-09-09  Bruno Haible  <bruno@clisp.org>
59937
59938         * gnulib-tool: New options --verbose, --quiet.
59939         (func_usage): Document them.
59940         (verbose): New variable.
59941         (func_execute_command): New function.
59942         (func_import): Don't show the module list and the file list if
59943         $verbose < 0.
59944         (func_create_testdir): Likewise. Use func_execute_command.
59945         (func_create_megatestdir): Use func_execute_command.
59946
59947 2007-09-08  Bruno Haible  <bruno@clisp.org>
59948
59949         * gnulib-tool (func_import): Prefer rsync over wget when available,
59950         for fetching the PO files.
59951
59952 2007-09-08  Bruno Haible  <bruno@clisp.org>
59953
59954         * posix-modules: New file. Portions copied from gnulib-tool.
59955         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
59956
59957 2007-09-08  Jim Meyering  <jim@meyering.net>
59958
59959         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
59960         * lib/fpending.h: Rename from __fpending.h.
59961         * lib/fpending.c: Rename from __fpending.c.
59962         Include "fpending.h", not "__fpending.h".
59963         * lib/__fpending.h, lib/__fpending.c: Remove files.
59964         * modules/fpending (Files): Reflect new file names.
59965         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
59966
59967 2007-09-08  Bruno Haible  <bruno@clisp.org>
59968
59969         * m4/inttypes-h.m4: Remove stub file.
59970
59971 2007-09-07  Simon Josefsson  <simon@josefsson.org>
59972
59973         * doc/headers/stdint.texi: Discuss #include_next issue.
59974
59975 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
59976
59977         * build-aux/bootstrap: Remove obsolete comment about wget --help.
59978
59979 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59980
59981         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
59982         in variable name.
59983
59984 2007-09-03  Jim Meyering  <jim@meyering.net>
59985
59986         New module: git-version-gen.
59987         * modules/git-version-gen: New file.
59988
59989         Import changes from coreutils for bootstrap script.
59990
59991         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
59992
59993         bootstrap: uses rsync to download the .po files
59994         * build-aux/bootstrap (po_download_command_format): New global.
59995         (download_po_files): Use rsync.
59996         (update_po_files): Don't remove .po files after download,
59997         so future rsync runs can take advantage of the copies.
59998
59999         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
60000
60001         Solve the unnecessary-.po-file-regeneration problem once and for all.
60002         * build-aux/bootstrap (download_po_files): New function, renamed from
60003         get_translations.  Now, downloads, but doesn't update LINGUAS.
60004         (update_po_files): New function.
60005
60006         bootstrap: Ignore more.
60007         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
60008         uniwidth to e.g., lib/.gitignore.
60009         (slurp): Handle the sys_stat_.h -> sys mapping, too.
60010
60011         * build-aux/bootstrap: New setting: vc_ignore.
60012         (insert_sorted_if_absent): Create $file if absent.
60013         Adapt to new, possibly empty, list: $vc_ignore.
60014
60015         bootstrap: generate more ignorable names
60016         * build-aux/bootstrap (slurp): When generating ignorable names,
60017         also map .sin to .sed, .gperf to .c, and .y to .c.
60018
60019 2007-09-03  Jim Meyering  <jim@meyering.net>
60020
60021         * build-aux/git-version-gen: New file, from coreutils.  For details, see
60022         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
60023
60024 2007-09-02  Bruno Haible  <bruno@clisp.org>
60025
60026         Fix mis-recognition of 'mcs' on QNX 6.
60027         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
60028         output contains the string "Mono".
60029         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
60030         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
60031
60032 2007-09-01  Bruno Haible  <bruno@clisp.org>
60033
60034         Fix collision between uniwidth/* and linebreak modules.
60035         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
60036         u32_width): Remove declarations.
60037         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
60038         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
60039         streq3, streq2, streq1, streq0): Remove functions.
60040         (STREQ): Remove macro.
60041         (is_cjk_encoding): Remove function.
60042         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
60043         (uc_width, u8_width, u16_width, u32_width): Remove functions.
60044         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
60045         * NEWS: Document the change.
60046
60047 2007-09-01  Bruno Haible  <bruno@clisp.org>
60048
60049         * lib/streq.h: Add double-inclusion guard.
60050
60051 2007-09-01  Karl Berry  <karl@gnu.org>
60052
60053         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
60054
60055 2007-08-28  Jim Meyering  <jim@meyering.net>
60056
60057         Rename mreadlink_with_size to areadlink_with_size.
60058         * NEWS: Document the change.
60059         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
60060         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
60061         * lib/mreadlink.h: Rename this to...
60062         * lib/areadlink.h: ...this.
60063         * modules/mreadlink-with-size: Rename this to...
60064         * modules/areadlink-with-size: ...this.
60065         * lib/canonicalize.c: Reflect the renaming.
60066         * modules/canonicalize: Likewise.
60067
60068 2007-08-26  Bruno Haible  <bruno@clisp.org>
60069
60070         * gnulib-tool (func_import): When deciding which files to remove,
60071         consider also dangling symbolic links.
60072         Reported by Eric Blake.
60073
60074 2007-08-26  Bruno Haible  <bruno@clisp.org>
60075
60076         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
60077
60078 2007-08-23  Simon Josefsson  <simon@josefsson.org>
60079
60080         * lib/readline.c: Don't include getline.h, the prototype is now
60081         found in stdio.h.
60082
60083 2007-08-23  Jim Meyering  <jim@meyering.net>
60084
60085         Getdelim touchup.
60086         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
60087         around the funlockfile call, since funlockfile never sets errno.
60088         Don't set errno upon failed realloc.
60089
60090 2007-08-22  Eric Blake  <ebb9@byu.net>
60091
60092         Getline touchups.
60093         * lib/getdelim.c (getdelim): Revert regression that required *n to
60094         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
60095         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
60096         getdelim, rather than whether implementation is missing.
60097         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
60098         * lib/stdio_.h (getline): Also declare if replacement is
60099         required.
60100         * doc/functions/getdelim.texi: New file.
60101         * doc/functions/getline.texi: Likewise.
60102         * doc/gnulib.texi (Function Substitutes): Add new files.
60103         Reported by Bruno Haible.
60104
60105 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
60106
60107         * users.txt: Add Guile.
60108
60109 2007-08-22  Eric Blake  <ebb9@byu.net>
60110
60111         * tests/test-getdelim.c (main): Use remove, not unlink.
60112         * tests/test-getline.c (main): Likewise.
60113
60114         Move getline and getdelim into stdio.h, per POSIX 200x.
60115         * modules/getline (Files): Remove getline.h.
60116         (Depends-on): Add stdio.
60117         (configure.ac): Add module indicator.
60118         * modules/getdelim (Files): Remove getdelim.h.
60119         (Depends-on): Add stdio.
60120         (configure.ac): Add module indicator.
60121         * modules/stdio (Makefile.am): Work with new indicators.
60122         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
60123         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
60124         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
60125         * lib/getdelim.h: Delete.
60126         * lib/getline.h: Delete.
60127         * lib/stdio_.h (getdelim, getline): Declare.
60128         * modules/getdelim-tests: New module.
60129         * modules/getline-tests: Likewise.
60130         * tests/test-getdelim.c: New file.
60131         * tests/test-getline.c: Likewise.
60132         * NEWS: Document the change.
60133         * lib/getline.c: Update choice of header.
60134         * lib/csharpcomp.c: Likewise.
60135         * lib/getpass.c: Likewise.
60136         * lib/javacomp.c: Likewise.
60137         * lib/javaversion.c: Likewise.
60138         * lib/yesno.c: Likewise.
60139         * lib/getdelim.c: Likewise.
60140         (getdelim): Set errno on failure, and avoid memory leak.
60141
60142 2007-08-19  Bruno Haible  <bruno@clisp.org>
60143
60144         * modules/closein (Depends-on): Add freadahead.
60145         * lib/closein.c: Include freadahead.h.
60146         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
60147         is zero.
60148
60149 2007-08-19  Bruno Haible  <bruno@clisp.org>
60150
60151         * modules/freadahead-tests: New file.
60152         * tests/test-freadahead.sh: New file.
60153         * tests/test-freadahead.c: New file.
60154
60155         * modules/freadahead: New file.
60156         * lib/freadahead.h: New file.
60157         * lib/freadahead.c: New file.
60158         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
60159         fbufmode, fpurge, freadable, fwritable.
60160
60161 2007-08-19  Eric Blake  <ebb9@byu.net>
60162
60163         Test yesno in combination with closein.
60164         * lib/yesno.c (yesno): Document use of stdin.
60165         * modules/yesno-tests (Files): New module.
60166         * tests/test-yesno.c (main): New file.
60167         * tests/test-yesno.sh: Likewise.
60168
60169 2007-08-19  Bruno Haible  <bruno@clisp.org>
60170
60171         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
60172         * lib/fseeko.c (rpl_fseeko): Likewise.
60173         * lib/fseterr.c (fseterr): Likewise.
60174
60175 2007-08-19  Bruno Haible  <bruno@clisp.org>
60176
60177         * tests/test-lseek.c (main): Disable a test for BeOS.
60178         * doc/functions/lseek.texi: Document the BeOS bug.
60179
60180 2007-08-19  Bruno Haible  <bruno@clisp.org>
60181             Eric Blake  <ebb9@byu.net>
60182
60183         * lib/lseek.c: Include <sys/stat.h>.
60184         (rpl_lseek): Add workaround code also for Unix platforms.
60185         Needed for BeOS.
60186         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
60187         * doc/functions/lseek.texi: Document BeOS definiency.
60188
60189 2007-08-18  Bruno Haible  <bruno@clisp.org>
60190
60191         * modules/fstrcmp-tests: New file.
60192         * tests/test-fstrcmp.c: New file.
60193
60194 2007-08-18  Bruno Haible  <bruno@clisp.org>
60195
60196         * modules/fstrcmp: New file, from GNU gettext with modifications.
60197         * lib/fstrcmp.h: New file, from GNU gettext.
60198         * lib/fstrcmp.c: New file, from GNU gettext.
60199         * MODULES.html.sh (String handling): Add fstrcmp.
60200
60201 2007-08-18  Bruno Haible  <bruno@clisp.org>
60202
60203         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
60204         'bool'.
60205         (diag, compareseq): Remove const from the ctxt argument.
60206         (USE_HEURISTIC): Undefine at the end.
60207
60208 2007-08-18  Jim Meyering  <jim@meyering.net>
60209
60210         New file: lib/idcache.h
60211         * NEWS: Mention the addition.
60212         * modules/idcache (Files): Add lib/idcache.h
60213         * lib/idcache.c: Include "idcache.h".
60214         Don't include <sys/types.h>.
60215         Add a FIXME comment.
60216         Move file-scoped "static" declarations to the top.
60217         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
60218
60219 2007-08-17  Bruno Haible  <bruno@clisp.org>
60220         and Paul Eggert  <eggert@cs.ucla.edu>
60221
60222         * MODULES.html.sh: Add diffseq.
60223         * modules/diffseq: New file.
60224         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
60225         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
60226
60227 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60228
60229         Import changes from coreutils for bootstrap script.
60230
60231         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
60232
60233         * build-aux/bootstrap (slurp): Work even in environments where
60234         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
60235         current code does not slurp files whose names start with ".", and
60236         this looks like it might be a troublesome area.
60237
60238         2007-07-11  Jim Meyering  <jim@meyering.net>
60239
60240         If there's a GPL vN copyright comment, require that N == 3.
60241
60242         2007-07-08  Jim Meyering  <jim@meyering.net>
60243
60244         Run the coreutils-specific code only if tests/Makefile.am.in exists.
60245         * build-aux/bootstrap (mam_template): Move definition out of loop.
60246
60247         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
60248
60249         * build-aux/bootstrap (symlink_to_dir): Rename function from
60250         symlink_to_gnulib.  Add a directory parameter.  Update all
60251         callers.
60252         (cp_mark_as_generated): Also check for -- and link to -- files in
60253         gl/.
60254
60255         2007-07-08  Jim Meyering  <jim@meyering.net>
60256
60257         Adapt to deeper hierarchy in gnulib.
60258         * build-aux/bootstrap (symlink_to_dir): If the destination
60259         directory doesn't exist, create it. This is required at least for
60260         "lib/uniwidth/cjk.h".
60261
60262         2007-05-15  Jim Meyering  <jim@meyering.net>
60263
60264         * build-aux/bootstrap: Now that generated Makefile.am files
60265         are no longer under version control, they must be created at
60266         bootstrap time.
60267
60268 2007-08-14  Ben Pfaff  <blp@gnu.org>
60269
60270         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
60271
60272 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60273
60274         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
60275         given the changes below.
60276         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
60277         even on hosts that have padding bits beyond the supported 64.
60278
60279 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
60280
60281         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
60282         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
60283         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
60284         depends on it.
60285         (xstrtol_error): Remove.
60286         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
60287         but with a different signature.
60288         (ATTRIBUTE_NORETURN, __attribute__): New macros.
60289         * lib/xstrtol-error.c: Include exitfail.h.
60290         (xstrtol_fatal): New function, with a different signature from the
60291         old xstrtol_error, so that the caller need not worry about passing
60292         in an exit status, or about storage management of the option argument.
60293         (xstrtol_error): Now a static function.  Redo signature to
60294         implement xstrtol_fatal.  Output the correct number of hyphens in
60295         front of the option so that the caller need not worry about
60296         storage management.
60297         (N_): New macro.
60298         (_): Remove; not used now.
60299         * modules/xstrtol: Depend on getopt.
60300         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
60301         of old STRTOL_FATAL_ERROR macro.
60302         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
60303         of test program.
60304         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
60305         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
60306
60307 2007-08-08  Eric Blake  <ebb9@byu.net>
60308
60309         * lib/xstrtol-error.c: Add missing include.
60310
60311         Move xstrtol messages into gnulib domain, when --pobase is used.
60312         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
60313         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
60314         * modules/xstrtol (Files): Distribute new file.
60315         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
60316         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
60317         * tests/test-xstrtol.c: ...into new file.
60318         * tests/test-xstrtoul.c: Also test xstrtoul.
60319         * tests/test-xstrtoimax.c: Also test xstrtoimax.
60320         * tests/test-xstrtoumax.c: Also test xstrtoumax.
60321         * tests/test-xstrtol.sh: Drive the tests.
60322         * tests/test-xstrtoimax.sh: Likewise.
60323         * tests/test-xstrtoumax.sh: Likewise.
60324         * modules/xstrtol-tests: New module.
60325         * modules/xstrtoimax-tests: Likewise.
60326         * modules/xstrtoumax-tests: Likewise.
60327
60328 2007-08-08  Jim Meyering  <jim@meyering.net>
60329
60330         New function: mfile_name_concat.
60331         * lib/filenamecat.c (mfile_name_concat): New function, just like
60332         file_name_concat, but return NULL upon failure rather than exiting
60333         with a diagnostic.
60334         * lib/filenamecat.h: Declare it.
60335
60336 2007-08-07  Bruno Haible  <bruno@clisp.org>
60337
60338         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
60339         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
60340         warning from gcc.
60341         Reported by Eric Blake.
60342
60343 2007-08-07  Simon Josefsson  <simon@josefsson.org>
60344
60345         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
60346         * modules/crypto/arcfour (License): Likewise.
60347         * modules/crypto/des-tests (License): Likewise.
60348         * modules/crypto/gc-arctwo-tests (License): Likewise.
60349         * modules/crypto/gc-des-tests (License): Likewise.
60350         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
60351         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
60352         * modules/crypto/gc-md2-tests (License): Likewise.
60353         * modules/crypto/gc-md4-tests (License): Likewise.
60354         * modules/crypto/gc-md5-tests (License): Likewise.
60355         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
60356         * modules/crypto/gc-rijndael-tests (License): Likewise.
60357         * modules/crypto/gc-sha1-tests (License): Likewise.
60358         * modules/crypto/gc-tests (License): Likewise.
60359         * modules/crypto/hmac-md5 (License): Likewise.
60360         * modules/crypto/hmac-sha1 (License): Likewise.
60361         * modules/crypto/md2-tests (License): Likewise.
60362         * modules/crypto/md4-tests (License): Likewise.
60363         * modules/crypto/md5 (License): Likewise.
60364         * modules/crypto/rijndael (License): Likewise.
60365         * modules/crypto/sha1 (License): Likewise.
60366         * modules/memxor (License): Likewise.
60367
60368 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
60369         and Bruno Haible  <bruno@clisp.org>
60370
60371         * NEWS: Describe interface changes to human, xstrtol.
60372         * lib/human.h: Include <xstrtol.h>.
60373         (human_options): Return enum strtol_error, not int.  Remove
60374         bool arg; take int * instead.
60375         * lib/human.c: Don't include "gettext.h".
60376         (_): Remove; no longer used.
60377         Don't include <xstrtol.h>, since human.h does it.
60378         (human_options): Adjust to abovementioned interface changes.
60379         Do not report error to stderr; that's now the caller's
60380         responsibility.
60381         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
60382         interface change.
60383         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
60384         Str, Argument_type_string.  All uses changed.  Put " argument"
60385         in diagnostics to make them clearer.  Change wording of suffix
60386         message for clarity.
60387         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
60388         Argument_type_string.
60389         (STRTOL_FATAL_WARN): Remove; no longer used.
60390         * modules/human (Depends-on): Remove gettext-h.
60391
60392 2007-08-06  Simon Josefsson  <simon@josefsson.org>
60393
60394         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
60395
60396 2007-07-31  Bruno Haible  <bruno@clisp.org>
60397
60398         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
60399         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
60400         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
60401
60402 2007-07-31  Bruno Haible  <bruno@clisp.org>
60403
60404         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
60405         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
60406
60407 2007-07-30  Bruno Haible  <bruno@clisp.org>
60408
60409         * modules/base64 (License): Use the synonymous term "LGPLv2+".
60410         * modules/c-ctype (License): Likewise.
60411         * modules/c-strcase (License): Likewise.
60412         * modules/check-version (License): Likewise.
60413         * modules/iconv (License): Likewise.
60414         * modules/iconv_open (License): Likewise.
60415         * modules/read-file (License): Likewise.
60416         * modules/striconv (License): Likewise.
60417         * modules/strverscmp (License): Likewise.
60418         * modules/vasprintf (License): Likewise.
60419         * modules/crypto/des (License): Likewise.
60420         * modules/crypto/gc (License): Likewise.
60421         * modules/crypto/gc-arcfour (License): Likewise.
60422         * modules/crypto/gc-arctwo (License): Likewise.
60423         * modules/crypto/gc-des (License): Likewise.
60424         * modules/crypto/gc-hmac-md5 (License): Likewise.
60425         * modules/crypto/gc-hmac-sha1 (License): Likewise.
60426         * modules/crypto/gc-md2 (License): Likewise.
60427         * modules/crypto/gc-md4 (License): Likewise.
60428         * modules/crypto/gc-md5 (License): Likewise.
60429         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
60430         * modules/crypto/gc-random (License): Likewise.
60431         * modules/crypto/gc-rijndael (License): Likewise.
60432         * modules/crypto/gc-sha1 (License): Likewise.
60433         * modules/crypto/md2 (License): Likewise.
60434         * modules/crypto/md4 (License): Likewise.
60435
60436 2007-07-30  Jim Meyering  <jim@meyering.net>
60437
60438         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
60439         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
60440         it has valid stat data.  This bug would cause du not to count the
60441         sizes of inaccessible directories.
60442         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
60443         in <http://bugzilla.redhat.com/250077>.
60444
60445 2007-07-25  Peter O'Gorman  <peter@pogma.com>
60446             Bruno Haible  <bruno@clisp.org>
60447
60448         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
60449         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
60450         #include_next, gives a diagnostic about it, but reports no error in
60451         the exit code.
60452         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
60453
60454 2007-07-24  Ben Pfaff  <blp@gnu.org>
60455
60456         Improve name: "count-one-bits" is better than "popcount".
60457         * MODULES.html.sh: Update name.
60458         * lib/popcount.h: Renamed lib/count-one-bits.h.
60459         (popcount): Renamed count_one_bits.
60460         (popcountl): Renamed count_one_bits_l.
60461         (popcountll): Renamed count_one_bits_ll.
60462         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
60463         * modules/popcount: Renamed module/count-one-bits.
60464         * modules/popcount-tests: Renamed module/count-one-bits-tests.
60465         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
60466
60467 2007-07-23  Ben Pfaff  <blp@gnu.org>
60468
60469         * lib/popcount.h (popcount32): Reduce size of constants, to allow
60470         better code generation, and add U to large constants to avoid
60471         warnings, in non-GCC case.
60472         Suggested by Bruno Haible.
60473
60474 2007-07-23  Ben Pfaff  <blp@gnu.org>
60475
60476         * lib/popcount.h: Use verify_true instead of if...abort.
60477         * modules/popcount: Depend on verify module.
60478         Suggested by Jim Meyering.
60479
60480 2007-07-23  Bruno Haible  <bruno@clisp.org>
60481
60482         * gnulib-tool (func_import): Create a .cvsignore file also when the
60483         directory is not yet in CVS but the toplevel directory is. When
60484         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
60485         Reported by Karl Berry.
60486
60487 2007-07-22  Ben Pfaff  <blp@gnu.org>
60488
60489         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
60490         case.
60491         Suggested by Eric Blake.
60492
60493 2007-07-22  Ben Pfaff  <blp@gnu.org>
60494
60495         New module: popcount.
60496         * MODULES.html.sh: Add popcount.
60497         * modules/popcount: New file.
60498         * modules/popcount-tests: New file.
60499         * tests/test-popcount.c: New file.
60500         * lib/popcount.h: New file.
60501         * m4/popcount.m4: New file.
60502
60503 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60504
60505         * build-aux/announce-gen: Update to GPLv3.
60506
60507         * build-aux/config.guess: Update from config.
60508
60509 2007-07-21  Bruno Haible  <bruno@clisp.org>
60510
60511         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
60512         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
60513
60514 2007-07-20  Jim Meyering  <jim@meyering.net>
60515
60516         * check-module: Diagnose a self-dependency.
60517
60518 2007-07-19  Bruno Haible  <bruno@clisp.org>
60519
60520         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
60521         empty.
60522         Reported by Eric Blake.
60523
60524 2007-07-18  Bruno Haible  <bruno@clisp.org>
60525
60526         * gnulib-tool: New options --po-base, --po-domain.
60527         (func_usage): Document them.
60528         (pobase, po_domain): New variables.
60529         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
60530         DEFAULT_TEXT_DOMAIN.
60531         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
60532         (func_import): Consider pobase and po_domain. Create a po/ directory.
60533         (func_create_testdir): Set pobase and po_domain to empty.
60534         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
60535         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
60536
60537 2007-07-18  Bruno Haible  <bruno@clisp.org>
60538
60539         * gnulib-tool (func_get_automake_snippet): Synthesize also an
60540         EXTRA_DIST augmentation for files in build-aux/.
60541
60542 2007-07-16  Bruno Haible  <bruno@clisp.org>
60543
60544         * modules/lseek (License): Use the synonymous term "LGPLv2+".
60545         * modules/getdelim (License): Likewise.
60546
60547 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60548
60549         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
60550         * modules/d-type (License): Likewise.
60551         * modules/extensions (License): Likewise.
60552         * modules/fnmatch (License): Likewise.
60553         * modules/fseeko (License): Likewise.
60554         * modules/getaddrinfo (License): Likewise.
60555         * modules/getline (License): Likewise.
60556         * modules/getlogin_r (License): Likewise.
60557         * modules/getpass (License): Likewise.
60558         * modules/gettimeofday (License): Likewise.
60559         * modules/glob (License): Likewise.
60560         * modules/inet_ntop (License): Likewise.
60561         * modules/malloc (License): Likewise.
60562         * modules/malloca (License): Likewise.
60563         * modules/memmem (License): Likewise.
60564         * modules/mempcpy (License): Likewise.
60565         * modules/memset (License): Likewise.
60566         * modules/minmax (License): Likewise.
60567         * modules/mktime (License): Likewise.
60568         * modules/netinet_in (License): Likewise.
60569         * modules/pathmax (License): Likewise.
60570         * modules/poll (License): Likewise.
60571         * modules/regex (License): Likewise.
60572         * modules/snprintf (License): Likewise.
60573         * modules/stdbool (License): Likewise.
60574         * modules/stdint (License): Likewise.
60575         * modules/stdio (License): Likewise.
60576         * modules/strcase (License): Likewise.
60577         * modules/strcasestr (License): Likewise.
60578         * modules/strdup (License): Likewise.
60579         * modules/string (License): Likewise.
60580         * modules/strndup (License): Likewise.
60581         * modules/strnlen (License): Likewise.
60582         * modules/strpbrk (License): Likewise.
60583         * modules/strptime (License): Likewise.
60584         * modules/strsep (License): Likewise.
60585         * modules/sys_select (License): Likewise.
60586         * modules/sys_socket (License): Likewise.
60587         * modules/sys_stat (License): Likewise.
60588         * modules/sys_time (License): Likewise.
60589         * modules/time (License): Likewise.
60590         * modules/time_r (License): Likewise.
60591         * modules/timegm (License): Likewise.
60592         * modules/unistd (License): Likewise.
60593         * modules/vsnprintf (License): Likewise.
60594         * modules/wctype (License): Likewise.
60595
60596 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60597
60598         * modules/argz (License): LGPLv2+.
60599
60600 2007-07-15  Karl Berry  <karl@gnu.org>
60601
60602         * doc/gnulib.texi: revise node structure per new fdl.texi.
60603
60604 2007-07-14  Bruno Haible  <bruno@clisp.org>
60605
60606         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
60607         the output file.
60608         * lib/uniname/uninames.h: Regenerated.
60609
60610 2007-07-14  Karl Berry  <karl@gnu.org>
60611
60612         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
60613         omitting sectioning and index commands.
60614
60615 2007-07-13  Bruno Haible  <bruno@clisp.org>
60616
60617         New gnulib-tool option --more-symlinks.
60618         * gnulib-tool (func_usage): Document --more-symlinks.
60619         (do_copyrights): New variable.
60620         Recognize option --more-symlinks.
60621         (func_import): Don't add a copyright notice transform to
60622         sed_transform_lib_file if do_copyrights is empty.
60623
60624 2007-07-13  Bruno Haible  <bruno@clisp.org>
60625
60626         * lib/vasnprintf.c (decimal_point_char): Define also if
60627         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
60628         && !NEED_PRINTF_DIRECTIVE_A.
60629         Reported by Clemens Koller <clemens.koller@anagramm.de> via
60630         Gary V. Vaughan <gary@gnu.org>.
60631
60632 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
60633
60634         * lib/inttypes_.h: Undo previous change, since it was fixed
60635         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
60636
60637 2007-07-13  Bruno Haible  <bruno@clisp.org>
60638
60639         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
60640         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
60641
60642 2007-07-13  Jim Meyering  <jim@meyering.net>
60643
60644         df: Don't fail for Tru64's "file-on-file mount".
60645         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
60646         so we fall through and use statfs instead.  Details here:
60647         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
60648         Reported by Albert Chin.
60649
60650 2007-07-13  Bruno Haible  <bruno@clisp.org>
60651
60652         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
60653         * modules/configmake (License): Likewise.
60654         * modules/gettext (License): Likewise.
60655         * modules/gettext-h (License): Likewise.
60656         * modules/include_next (License): Likewise.
60657         * modules/link-warning (License): Likewise.
60658         * modules/localcharset (License): Likewise.
60659         * modules/localename (License): Likewise.
60660         * modules/lock (License): Likewise.
60661         * modules/relocatable-lib-lgpl (License): Likewise.
60662         * modules/size_max (License): Likewise.
60663         * modules/vasnprintf (License): Likewise.
60664         * modules/wchar (License): Likewise.
60665         * modules/xsize (License): Likewise.
60666
60667 2007-07-13  Bruno Haible  <bruno@clisp.org>
60668
60669         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
60670         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
60671
60672 2007-07-12  Bruno Haible  <bruno@clisp.org>
60673
60674         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
60675         in the modules files.
60676
60677 2007-07-11  Karl Berry  <karl@gnu.org>
60678
60679         * MODULES.html.sh (func_module): use
60680          sed -e '\|^'"${includefile}"'$|d'
60681          instead of /.../d, to avoid errors on $includefile's containing /.
60682
60683 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
60684
60685         * gnulib-tool (func_import): Avoid duplication of --avoid
60686         statements
60687         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
60688         names to `_' in variable names.
60689
60690 2007-07-10  Eric Blake  <ebb9@byu.net>
60691
60692         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
60693         * NEWS: Document this change.
60694
60695 2007-07-08  Bruno Haible  <bruno@clisp.org>
60696
60697         Update to Unicode 5.0.
60698         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
60699         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
60700         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
60701         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
60702         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
60703         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
60704         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
60705         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
60706         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
60707         U+10A3F, U+1D242..U+1D244.
60708         (nonspacing_table_ind): Update.
60709         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
60710         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
60711
60712 2007-07-08  Bruno Haible  <bruno@clisp.org>
60713
60714         Update to Unicode 5.0.
60715         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
60716         code transform. Extend the name index field of unicode_name_to_code and
60717         unicode_code_to_name from 16 to 24 bits.
60718         * lib/uniname/uniname.c (unicode_character_name,
60719         unicode_name_character): Add the range 0x12xxx to the code transform.
60720         * lib/uniname/uninames.h: Regenerated.
60721         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
60722
60723 2007-07-07  Bruno Haible  <bruno@clisp.org>
60724
60725         * modules/wcwidth-tests: New file.
60726         * tests/test-wcwidth.c: New file.
60727
60728         Work around MacOS X wcwidth() bug.
60729         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
60730         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
60731         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
60732         original wcwidth in non-UTF-8 locales.
60733         * modules/wcwidth (Depends-on): Add localcharset, streq,
60734         uniwidth/width.
60735         * doc/functions/wcwidth.texi: Update.
60736
60737 2007-07-07  Bruno Haible  <bruno@clisp.org>
60738
60739         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
60740         (wcwidth): New declaration.
60741         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
60742         macros.
60743         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
60744         here. Prepare for creating <wchar.h> unconditionally.
60745         * modules/wchar (Depends-on): Add link-warning.
60746         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
60747         REPLACE_WCWIDTH, and GL_LINK_WARNING.
60748         * lib/wcwidth.h: Remove file.
60749         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
60750         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
60751         * modules/wcwidth (Files): Remove lib/wcwidth.h.
60752         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
60753         (Include): Replace wcwidth.h with <wchar.h>.
60754         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
60755         * lib/mbchar.h: Don't include wcwidth.h.
60756         * lib/mbswidth.c: Likewise.
60757         * NEWS: Mention the change.
60758
60759 2007-07-07  Bruno Haible  <bruno@clisp.org>
60760
60761         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
60762         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
60763         definition with an external declaration.
60764         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
60765         defined as a function. Remove AC_C_INLINE requirement.
60766         * modules/wcwidth (Files): Add lib/wcwidth.c.
60767         (Makefile.am): Remove redundant statement.
60768
60769 2007-07-07  Bruno Haible  <bruno@clisp.org>
60770
60771         * MODULES.html.sh (Unicode string functions): Add the new modules.
60772
60773         * tests/uniwidth/test-u32-strwidth.c: New file.
60774         * modules/uniwidth/u32-strwidth-tests: New file.
60775
60776         * lib/uniwidth/u32-strwidth.c: New file.
60777         * modules/uniwidth/u32-strwidth: New file.
60778
60779         * tests/uniwidth/test-u16-strwidth.c: New file.
60780         * modules/uniwidth/u16-strwidth-tests: New file.
60781
60782         * lib/uniwidth/u16-strwidth.c: New file.
60783         * modules/uniwidth/u16-strwidth: New file.
60784
60785         * tests/uniwidth/test-u8-strwidth.c: New file.
60786         * modules/uniwidth/u8-strwidth-tests: New file.
60787
60788         * lib/uniwidth/u8-strwidth.c: New file.
60789         * modules/uniwidth/u8-strwidth: New file.
60790
60791         * tests/uniwidth/test-u32-width.c: New file.
60792         * modules/uniwidth/u32-width-tests: New file.
60793
60794         * lib/uniwidth/u32-width.c: New file.
60795         * modules/uniwidth/u32-width: New file.
60796
60797         * tests/uniwidth/test-u16-width.c: New file.
60798         * modules/uniwidth/u16-width-tests: New file.
60799
60800         * lib/uniwidth/u16-width.c: New file.
60801         * modules/uniwidth/u16-width: New file.
60802
60803         * tests/uniwidth/test-u8-width.c: New file.
60804         * modules/uniwidth/u8-width-tests: New file.
60805
60806         * lib/uniwidth/u8-width.c: New file.
60807         * modules/uniwidth/u8-width: New file.
60808
60809         * tests/uniwidth/test-uc_width.c: New file.
60810         * modules/uniwidth/width-tests: New file.
60811
60812         * lib/uniwidth/width.c: New file, from GNU libiconv.
60813         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
60814         * modules/uniwidth/width: New file.
60815
60816         * lib/uniwidth.h: New file, from GNU libiconv.
60817         * modules/uniwidth/base: New file.
60818
60819 2007-07-07  Bruno Haible  <bruno@clisp.org>
60820
60821         * lib/uniname.h: New file, from GNU gettext.
60822         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
60823         * lib/uniname/uninames.h: New file, from GNU gettext.
60824         * lib/uniname/uniname.c: New file, from GNU gettext.
60825         * tests/uniname/test-uninames.sh: New file.
60826         * tests/uniname/test-uninames.c: New file, from GNU gettext.
60827         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
60828         * modules/uniname/base: New file.
60829         * modules/uniname/uniname: New file.
60830         * modules/uniname/uniname-tests: New file.
60831         * MODULES.html.sh (Unicode string functions): Add the new modules.
60832
60833 2007-07-06  Bruno Haible  <bruno@clisp.org>
60834
60835         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
60836
60837 2007-07-06  Bruno Haible  <bruno@clisp.org>
60838
60839         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
60840         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
60841         includes <cygwin/sys_time.h> which includes <sys/select.h> which
60842         include <sys/time.h>.
60843         Reported by Eric Blake.
60844
60845 2007-07-06  Eric Blake  <ebb9@byu.net>
60846
60847         Fix testing canonicalize on cygwin.
60848         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
60849         Revert patch from 2007-06-19.
60850         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
60851         canonicalize module is also in use.
60852         * tests/test-canonicalize.c: New file.
60853         * tests/test-canonicalize.sh: Likewise.
60854         * modules/canonicalize-tests: Likewise.
60855
60856 2007-07-06  Jim Meyering  <jim@meyering.net>
60857
60858         * lib/getugroups.c (getugroups): Detect getgrent failure.
60859         Adjust comment to reflect reality: this function may return -1.
60860
60861 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
60862
60863         * build-aux/bootstrap (TP_URL,get_translations): Update to use
60864         the new TP address.
60865         (usage): Fix typo
60866         (gnulib_mk): New variable.
60867
60868 2007-07-05  Jim Meyering  <jim@meyering.net>
60869
60870         Don't let endgrent clobber errno, no matter how improbable.
60871         * lib/getugroups.c (getugroups): Save and restore errno around
60872         endgrent call.
60873
60874         Close the group DB even when failing with 2^31 or more members.
60875         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
60876
60877 2007-07-04  Jim Meyering  <jim@meyering.net>
60878
60879         * lib/getugroups.h: New file.
60880         * lib/getugroups.c: Include "getugroups.h".
60881         Remove uses of "register" keyword.
60882         Move local variable, "cp", down into scope where used.
60883         Give "username" parameter the "const" attribute.
60884         * modules/getugroups (Files): Add lib/getugroups.h
60885
60886 2007-07-04  Karl Berry  <karl@gnu.org>
60887
60888         * MODULES.html.sh (func_all_modules): Complete rename of
60889         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
60890
60891 2007-07-02  Bruno Haible  <bruno@clisp.org>
60892
60893         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
60894         mode, when inttypes.h comes from gnulib.
60895         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
60896
60897 2007-07-02  Simon Josefsson  <simon@josefsson.org>
60898
60899         * NEWS: Mention lgpl module name change.
60900
60901         * modules/lgpl-2.1: Renamed from lgpl.
60902
60903         * NEWS: Mention gpl module name change.
60904
60905         * modules/gpl-3.0: New file, based on gpl-2.0.
60906
60907         * modules/gpl-2.0: Renamed from gpl.
60908
60909         * modules/gpl: Fix filename, doc/gpl.texi is now found at
60910         doc/gpl-2.0.texi.
60911
60912 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60913
60914         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
60915         #define __STDC_LIMIT_MACROS temporarily while including
60916         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
60917         Problem reported by Joel E. Denny in
60918         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
60919
60920 2007-07-01  Bruno Haible  <bruno@clisp.org>
60921
60922         * lib/unistdio.h: New file.
60923         * lib/unistdio/u-asnprintf.h: New file.
60924         * lib/unistdio/u-asprintf.h: New file.
60925         * lib/unistdio/u-printf-args.c: New file.
60926         * lib/unistdio/u-printf-args.h: New file.
60927         * lib/unistdio/u-printf-parse.h: New file.
60928         * lib/unistdio/u-snprintf.h: New file.
60929         * lib/unistdio/u-sprintf.h: New file.
60930         * lib/unistdio/u-vasprintf.h: New file.
60931         * lib/unistdio/u-vsnprintf.h: New file.
60932         * lib/unistdio/u-vsprintf.h: New file.
60933         * lib/unistdio/ulc-asnprintf.c: New file.
60934         * lib/unistdio/ulc-asprintf.c: New file.
60935         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
60936         * lib/unistdio/ulc-printf-parse.c: New file.
60937         * lib/unistdio/ulc-snprintf.c: New file.
60938         * lib/unistdio/ulc-sprintf.c: New file.
60939         * lib/unistdio/ulc-vasnprintf.c: New file.
60940         * lib/unistdio/ulc-vasprintf.c: New file.
60941         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
60942         * lib/unistdio/ulc-vsnprintf.c: New file.
60943         * lib/unistdio/ulc-vsprintf.c: New file.
60944         * lib/unistdio/u8-asnprintf.c: New file.
60945         * lib/unistdio/u8-asprintf.c: New file.
60946         * lib/unistdio/u8-printf-parse.c: New file.
60947         * lib/unistdio/u8-snprintf.c: New file.
60948         * lib/unistdio/u8-sprintf.c: New file.
60949         * lib/unistdio/u8-vasnprintf.c: New file.
60950         * lib/unistdio/u8-vasprintf.c: New file.
60951         * lib/unistdio/u8-vsnprintf.c: New file.
60952         * lib/unistdio/u8-vsprintf.c: New file.
60953         * lib/unistdio/u8-u8-asnprintf.c: New file.
60954         * lib/unistdio/u8-u8-asprintf.c: New file.
60955         * lib/unistdio/u8-u8-snprintf.c: New file.
60956         * lib/unistdio/u8-u8-sprintf.c: New file.
60957         * lib/unistdio/u8-u8-vasnprintf.c: New file.
60958         * lib/unistdio/u8-u8-vasprintf.c: New file.
60959         * lib/unistdio/u8-u8-vsnprintf.c: New file.
60960         * lib/unistdio/u8-u8-vsprintf.c: New file.
60961         * lib/unistdio/u16-asnprintf.c: New file.
60962         * lib/unistdio/u16-asprintf.c: New file.
60963         * lib/unistdio/u16-printf-parse.c: New file.
60964         * lib/unistdio/u16-snprintf.c: New file.
60965         * lib/unistdio/u16-sprintf.c: New file.
60966         * lib/unistdio/u16-vasnprintf.c: New file.
60967         * lib/unistdio/u16-vasprintf.c: New file.
60968         * lib/unistdio/u16-vsnprintf.c: New file.
60969         * lib/unistdio/u16-vsprintf.c: New file.
60970         * lib/unistdio/u16-u16-asnprintf.c: New file.
60971         * lib/unistdio/u16-u16-asprintf.c: New file.
60972         * lib/unistdio/u16-u16-snprintf.c: New file.
60973         * lib/unistdio/u16-u16-sprintf.c: New file.
60974         * lib/unistdio/u16-u16-vasnprintf.c: New file.
60975         * lib/unistdio/u16-u16-vasprintf.c: New file.
60976         * lib/unistdio/u16-u16-vsnprintf.c: New file.
60977         * lib/unistdio/u16-u16-vsprintf.c: New file.
60978         * lib/unistdio/u32-asnprintf.c: New file.
60979         * lib/unistdio/u32-asprintf.c: New file.
60980         * lib/unistdio/u32-printf-parse.c: New file.
60981         * lib/unistdio/u32-snprintf.c: New file.
60982         * lib/unistdio/u32-sprintf.c: New file.
60983         * lib/unistdio/u32-vasnprintf.c: New file.
60984         * lib/unistdio/u32-vasprintf.c: New file.
60985         * lib/unistdio/u32-vsnprintf.c: New file.
60986         * lib/unistdio/u32-vsprintf.c: New file.
60987         * lib/unistdio/u32-u32-asnprintf.c: New file.
60988         * lib/unistdio/u32-u32-asprintf.c: New file.
60989         * lib/unistdio/u32-u32-snprintf.c: New file.
60990         * lib/unistdio/u32-u32-sprintf.c: New file.
60991         * lib/unistdio/u32-u32-vasnprintf.c: New file.
60992         * lib/unistdio/u32-u32-vasprintf.c: New file.
60993         * lib/unistdio/u32-u32-vsnprintf.c: New file.
60994         * lib/unistdio/u32-u32-vsprintf.c: New file.
60995         * tests/unistdio/test-ulc-asnprintf1.c: New file.
60996         * tests/unistdio/test-ulc-asnprintf1.h: New file.
60997         * tests/unistdio/test-ulc-printf1.h: New file.
60998         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
60999         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
61000         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
61001         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
61002         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
61003         * tests/unistdio/test-ulc-vasprintf1.c: New file.
61004         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
61005         * tests/unistdio/test-ulc-vsprintf1.c: New file.
61006         * tests/unistdio/test-u8-asnprintf1.c: New file.
61007         * tests/unistdio/test-u8-asnprintf1.h: New file.
61008         * tests/unistdio/test-u8-printf1.h: New file.
61009         * tests/unistdio/test-u8-vasnprintf1.c: New file.
61010         * tests/unistdio/test-u8-vasnprintf2.c: New file.
61011         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
61012         * tests/unistdio/test-u8-vasnprintf3.c: New file.
61013         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
61014         * tests/unistdio/test-u8-vasprintf1.c: New file.
61015         * tests/unistdio/test-u8-vsnprintf1.c: New file.
61016         * tests/unistdio/test-u8-vsprintf1.c: New file.
61017         * tests/unistdio/test-u16-asnprintf1.c: New file.
61018         * tests/unistdio/test-u16-asnprintf1.h: New file.
61019         * tests/unistdio/test-u16-printf1.h: New file.
61020         * tests/unistdio/test-u16-vasnprintf1.c: New file.
61021         * tests/unistdio/test-u16-vasnprintf2.c: New file.
61022         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
61023         * tests/unistdio/test-u16-vasnprintf3.c: New file.
61024         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
61025         * tests/unistdio/test-u16-vasprintf1.c: New file.
61026         * tests/unistdio/test-u16-vsnprintf1.c: New file.
61027         * tests/unistdio/test-u16-vsprintf1.c: New file.
61028         * tests/unistdio/test-u32-asnprintf1.c: New file.
61029         * tests/unistdio/test-u32-asnprintf1.h: New file.
61030         * tests/unistdio/test-u32-printf1.h: New file.
61031         * tests/unistdio/test-u32-vasnprintf1.c: New file.
61032         * tests/unistdio/test-u32-vasnprintf2.c: New file.
61033         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
61034         * tests/unistdio/test-u32-vasnprintf3.c: New file.
61035         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
61036         * tests/unistdio/test-u32-vasprintf1.c: New file.
61037         * tests/unistdio/test-u32-vsnprintf1.c: New file.
61038         * tests/unistdio/test-u32-vsprintf1.c: New file.
61039         * modules/unistdio/base: New file.
61040         * modules/unistdio/u-printf-args: New file.
61041         * modules/unistdio/ulc-asnprintf: New file.
61042         * modules/unistdio/ulc-asprintf: New file.
61043         * modules/unistdio/ulc-fprintf: New file.
61044         * modules/unistdio/ulc-printf-parse: New file.
61045         * modules/unistdio/ulc-snprintf: New file.
61046         * modules/unistdio/ulc-sprintf: New file.
61047         * modules/unistdio/ulc-vasnprintf: New file.
61048         * modules/unistdio/ulc-vasprintf: New file.
61049         * modules/unistdio/ulc-vfprintf: New file.
61050         * modules/unistdio/ulc-vsnprintf: New file.
61051         * modules/unistdio/ulc-vsprintf: New file.
61052         * modules/unistdio/u8-asnprintf: New file.
61053         * modules/unistdio/u8-asprintf: New file.
61054         * modules/unistdio/u8-printf-parse: New file.
61055         * modules/unistdio/u8-snprintf: New file.
61056         * modules/unistdio/u8-sprintf: New file.
61057         * modules/unistdio/u8-vasnprintf: New file.
61058         * modules/unistdio/u8-vasprintf: New file.
61059         * modules/unistdio/u8-vsnprintf: New file.
61060         * modules/unistdio/u8-vsprintf: New file.
61061         * modules/unistdio/u8-u8-asnprintf: New file.
61062         * modules/unistdio/u8-u8-asprintf: New file.
61063         * modules/unistdio/u8-u8-snprintf: New file.
61064         * modules/unistdio/u8-u8-sprintf: New file.
61065         * modules/unistdio/u8-u8-vasnprintf: New file.
61066         * modules/unistdio/u8-u8-vasprintf: New file.
61067         * modules/unistdio/u8-u8-vsnprintf: New file.
61068         * modules/unistdio/u8-u8-vsprintf: New file.
61069         * modules/unistdio/u16-asnprintf: New file.
61070         * modules/unistdio/u16-asprintf: New file.
61071         * modules/unistdio/u16-printf-parse: New file.
61072         * modules/unistdio/u16-snprintf: New file.
61073         * modules/unistdio/u16-sprintf: New file.
61074         * modules/unistdio/u16-vasnprintf: New file.
61075         * modules/unistdio/u16-vasprintf: New file.
61076         * modules/unistdio/u16-vsnprintf: New file.
61077         * modules/unistdio/u16-vsprintf: New file.
61078         * modules/unistdio/u16-u16-asnprintf: New file.
61079         * modules/unistdio/u16-u16-asprintf: New file.
61080         * modules/unistdio/u16-u16-snprintf: New file.
61081         * modules/unistdio/u16-u16-sprintf: New file.
61082         * modules/unistdio/u16-u16-vasnprintf: New file.
61083         * modules/unistdio/u16-u16-vasprintf: New file.
61084         * modules/unistdio/u16-u16-vsnprintf: New file.
61085         * modules/unistdio/u16-u16-vsprintf: New file.
61086         * modules/unistdio/u32-asnprintf: New file.
61087         * modules/unistdio/u32-asprintf: New file.
61088         * modules/unistdio/u32-printf-parse: New file.
61089         * modules/unistdio/u32-snprintf: New file.
61090         * modules/unistdio/u32-sprintf: New file.
61091         * modules/unistdio/u32-vasnprintf: New file.
61092         * modules/unistdio/u32-vasprintf: New file.
61093         * modules/unistdio/u32-vsnprintf: New file.
61094         * modules/unistdio/u32-vsprintf: New file.
61095         * modules/unistdio/u32-u32-asnprintf: New file.
61096         * modules/unistdio/u32-u32-asprintf: New file.
61097         * modules/unistdio/u32-u32-snprintf: New file.
61098         * modules/unistdio/u32-u32-sprintf: New file.
61099         * modules/unistdio/u32-u32-vasnprintf: New file.
61100         * modules/unistdio/u32-u32-vasprintf: New file.
61101         * modules/unistdio/u32-u32-vsnprintf: New file.
61102         * modules/unistdio/u32-u32-vsprintf: New file.
61103         * modules/unistdio/ulc-asnprintf-tests: New file.
61104         * modules/unistdio/ulc-vasnprintf-tests: New file.
61105         * modules/unistdio/ulc-vasprintf-tests: New file.
61106         * modules/unistdio/ulc-vsnprintf-tests: New file.
61107         * modules/unistdio/ulc-vsprintf-tests: New file.
61108         * modules/unistdio/u8-asnprintf-tests: New file.
61109         * modules/unistdio/u8-vasnprintf-tests: New file.
61110         * modules/unistdio/u8-vasprintf-tests: New file.
61111         * modules/unistdio/u8-vsnprintf-tests: New file.
61112         * modules/unistdio/u8-vsprintf-tests: New file.
61113         * modules/unistdio/u16-asnprintf-tests: New file.
61114         * modules/unistdio/u16-vasnprintf-tests: New file.
61115         * modules/unistdio/u16-vasprintf-tests: New file.
61116         * modules/unistdio/u16-vsnprintf-tests: New file.
61117         * modules/unistdio/u16-vsprintf-tests: New file.
61118         * modules/unistdio/u32-asnprintf-tests: New file.
61119         * modules/unistdio/u32-vasnprintf-tests: New file.
61120         * modules/unistdio/u32-vasprintf-tests: New file.
61121         * modules/unistdio/u32-vsnprintf-tests: New file.
61122         * modules/unistdio/u32-vsprintf-tests: New file.
61123         * MODULES.html.sh (Unicode string functions): Add the new modules.
61124
61125 2007-07-01  Bruno Haible  <bruno@clisp.org>
61126
61127         * lib/sprintf.c (sprintf): Limit the available length estimation,
61128         to avoid address wraparound.
61129         * lib/vsprintf.c (vsprintf): Likewise.
61130         * modules/sprintf-posix (Dependencies): Add stdint.
61131         * modules/vsprintf-posix (Dependencies): Likewise.
61132
61133 2007-07-01  Bruno Haible  <bruno@clisp.org>
61134
61135         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
61136         Windows PATH as well. Conservative double-quoting. Comments.
61137
61138 2007-07-01  Bruno Haible  <bruno@clisp.org>
61139             Eric Blake  <ebb9@byu.net>
61140             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61141
61142         * gnulib-tool (self_abspathname): Fix algorithm to cope with
61143         empty components in $PATH, denoting '.'.
61144
61145 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61146
61147         * gnulib-tool: Fix indentation.
61148         (func_create_megatestdir): Likewise.
61149         Report by Bruno Haible.
61150
61151 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61152
61153         Sync from Automake.
61154         * build-aux/gnupload: Fix shell portability issues with for loops.
61155         Report by Karl Berry.
61156
61157 2007-06-29  Simon Josefsson  <simon@josefsson.org>
61158
61159         * build-aux/maint.mk (POURL): Use translationproject.org.
61160
61161 2007-06-27  Simon Josefsson  <simon@josefsson.org>
61162             Bruno Haible  <bruno@clisp.org>
61163
61164         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
61165         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
61166         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
61167         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
61168         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
61169
61170 2007-06-27  Bruno Haible  <bruno@clisp.org>
61171
61172         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
61173         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
61174
61175 2007-06-26  Karl Berry  <karl@gnu.org>
61176
61177         * MODULES.html.sh: remove xreadlink-with-size.
61178
61179 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
61180
61181         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
61182         method that I hope also handles the double-include problem noted
61183         by Bruno Haible in
61184         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
61185
61186 2007-06-23  Bruno Haible  <bruno@clisp.org>
61187
61188         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61189         Don't let the 'mostlyclean' target fail if the last subdirectory could
61190         not be removed.
61191         Reported by Karl Berry.
61192
61193 2007-06-23  Bruno Haible  <bruno@clisp.org>
61194
61195         * gnulib-tool (echo): Add a speedier workaround for ksh.
61196         * tests/test-echo.sh: Likewise.
61197
61198 2007-06-23  Bruno Haible  <bruno@clisp.org>
61199
61200         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
61201         * tests/test-echo.sh: Likewise.
61202
61203 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61204
61205         * gnulib-tool (IFS): Initialize early, so we don't set it to
61206         empty later.
61207         (self_abspathname): Rewrite algorithm to set it, reindent.
61208         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
61209         (func_create_megatestdir): Merge some sed scripts.
61210
61211 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
61212
61213         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
61214         exposed by Sun Studio 11 cc on Solaris 8.
61215
61216 2007-06-22  Bruno Haible  <bruno@clisp.org>
61217
61218         * gnulib-tool (echo): Ensure the echo primitive does not interpret
61219         backslashes.
61220         * tests/test-echo.sh: New file.
61221
61222 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61223
61224         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
61225         simplify `sed_replace_build_aux' scripts, they are portable but
61226         echoing them with `echo' is not.
61227         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
61228
61229 2007-06-21  Karl Berry  <karl@gnu.org>
61230
61231         * config/srclist.txt: guess we can't handle the licenses via
61232         srclist at the moment.
61233
61234 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
61235
61236         * MODULES.html.sh: Add include_next.
61237         * modules/include_next: New file.
61238
61239 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
61240
61241         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
61242         INCLUDE_NEXT.
61243         (gl_CHECK_NEXT_HEADERS): New macro.
61244         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
61245         the obsolescent gl_ABSOLUTE_HEADER.
61246         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
61247         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
61248         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
61249         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
61250         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
61251         * m4/math_h.m4 (gl_MATH_H): Likewise.
61252         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
61253         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
61254         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
61255         * m4/stdint.m4 (gl_STDINT_H): Likewise.
61256         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
61257         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
61258         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
61259         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
61260         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
61261         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
61262         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
61263         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
61264         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
61265         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
61266         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
61267         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
61268         * m4/inttypes.m4 (gl_INTTYPES_H): Define
61269         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
61270         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
61271         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
61272         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
61273         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
61274         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
61275         * lib/float_.h: Likewise.
61276         * lib/inttypes_.h: Likewise.
61277         * lib/math_.h: Likewise.
61278         * lib/search_.h: Likewise.
61279         * lib/signal_.h: Likewise.
61280         * lib/stdint_.h: Likewise.
61281         * lib/stdio_.h: Likewise.
61282         * lib/stdlib_.h: Likewise.
61283         * lib/string_.h: Likewise.
61284         * lib/sys_stat_.h: Likewise.
61285         * lib/sys_time_.h: Likewise.
61286         * lib/time_.h: Likewise.
61287         * lib/unistd_.h: Likewise.
61288         * lib/wchar_.h: Likewise.
61289         * lib/wctype_.h: Likewise.
61290         * lib/dirent_.h: Likewise.
61291         * lib/iconv_.h: Likewise.
61292         * lib/locale_.h: Likewise.
61293         * lib/netinet_in_.h: Likewise.
61294         * lib/sys_select_.h: Likewise.
61295         * lib/sys_socket_.h: Likewise.
61296         * lib/sysexits_.h: Likewise.
61297         * modules/fcntl (Depends-on): Depend on include_next, not
61298         absolute_header.
61299         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
61300         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
61301         * modules/fchdir: Likewise.
61302         * modules/float: Likewise.
61303         * modules/iconv_open: Likewise.
61304         * modules/inttypes: Likewise.
61305         * modules/locale: Likewise.
61306         * modules/math: Likewise.
61307         * modules/netinet_in: Likewise.
61308         * modules/search: Likewise.
61309         * modules/signal: Likewise.
61310         * modules/stdint: Likewise.
61311         * modules/stdio: Likewise.
61312         * modules/stdlib: Likewise.
61313         * modules/string: Likewise.
61314         * modules/sys_select: Likewise.
61315         * modules/sys_socket: Likewise.
61316         * modules/sys_stat: Likewise.
61317         * modules/sys_time: Likewise.
61318         * modules/sysexits: Likewise.
61319         * modules/time: Likewise.
61320         * modules/unistd: Likewise.
61321         * modules/wchar: Likewise.
61322         * modules/wctype: Likewise.
61323         * modules/sys_stat: Change maintainer to "all".
61324         * modules/unistd: Likewise.
61325
61326 2007-06-20  Karl Berry  <karl@gnu.org>
61327
61328         * config/srclist.txt: track www changes in license files.
61329
61330 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
61331
61332         * build-aux/bootstrap: Remove stray dot.
61333         Make sure build_aux settings are honored when linking
61334         gnulib_extra_files.
61335
61336 2007-06-19  Eric Blake  <ebb9@byu.net>
61337
61338         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
61339         Allow compilation on cygwin.
61340
61341 2007-06-19  Jim Meyering  <jim@meyering.net>
61342
61343         xreadlink-with-size: Remove module.  No longer used.
61344         Ex-callers now use xreadlink or mreadlink-with-size.
61345         * modules/xreadlink-with-size: Remove module.
61346         * lib/xreadlink-with-size.c: Remove file.
61347         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
61348         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
61349         just before the function definition *is* accurate.
61350
61351         Eliminate one way canonicalize_filename_mode could exit.
61352         * lib/canonicalize.c (canonicalize_filename_mode):
61353         Use mreadlink_with_size, not xreadlink_with_size.
61354
61355 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
61356
61357         Detect porting problems to FreeBSD/arm, which has time_t wider than
61358         long int.  Original problem reported for GNU diff by Xin Li in
61359         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
61360         * modules/getdate (Depends-on): Add intprops, verify.
61361         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
61362         is an integer type no wider than long int.
61363
61364 2007-06-18  Jim Meyering  <jim@meyering.net>
61365
61366         New module: mreadlink-with-size.
61367         * MODULES.html.sh: Add mreadlink-with-size.
61368         * modules/mreadlink-with-size: New module
61369         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
61370         not xreadlink-with-size.
61371         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
61372
61373 2007-06-16  Bruno Haible  <bruno@clisp.org>
61374
61375         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
61376         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
61377         Reported by Gary V. Vaughan <gary@gnu.org>.
61378
61379 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
61380
61381         Revamp lchown so that it lives in unistd.h where it belongs.
61382         * lib/lchown.h: Remove.
61383         * lib/dirchownmod.c: Don't include lib/lchown.h.
61384         * lib/fchownat.c: Likewise.
61385         * lib/openat.c: Likewise.
61386         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
61387         does not follow symlinks.
61388         (EOPNOTSUPP): Define if not defined.
61389         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
61390         is defined to 0.
61391         (lchown): New decl.
61392         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
61393         Do not check for lchown decl.
61394         Set REPLACE_LCHOWN.
61395         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
61396         REPLACE_LCHOWN.
61397         * modules/chown: Make it clear it follows symlinks.
61398         * modules/lchown: Make it clear it doesn't follow symlinks.
61399         (Files): Remove lib/lchown.h
61400         (Depends-on): Add unistd.
61401         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
61402         (Include): Include <unistd.h>, not "lchown.h".
61403         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
61404         REPLACE_LCHOWN.
61405
61406 2007-06-15  Jim Meyering  <jim@meyering.net>
61407
61408         Change license (GPL to LGPL) of fsusage and dependents.
61409         * modules/fsusage (License): Change to LGPL.
61410         * modules/full-read (License): Likewise.
61411         * modules/full-write (License): Likewise.
61412         * modules/safe-read (License): Likewise.
61413         * modules/safe-write (License): Likewise.
61414
61415 2007-06-14  Ben Pfaff  <blp@gnu.org>
61416
61417         Missing part of allocsa -> malloca transition.
61418         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
61419         gl_MALLOCA.
61420
61421 2007-06-12  Bruno Haible  <bruno@clisp.org>
61422
61423         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
61424         to ia64, x86_64, i386.
61425         Reported by Eric Blake.
61426
61427 2007-06-12  Bruno Haible  <bruno@clisp.org>
61428
61429         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
61430         cross-compiling to x86_64.
61431
61432 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
61433
61434         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
61435         glitch reported by Ralf Wildenhues in
61436         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
61437
61438         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
61439         Vin Shelton.
61440
61441 2007-06-11  Bruno Haible  <bruno@clisp.org>
61442
61443         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
61444         replacement string.
61445         Reported by Eric Blake.
61446
61447 2007-06-10  Bruno Haible  <bruno@clisp.org>
61448
61449         Prepare vasnprintf code for use with Unicode strings.
61450         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
61451         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
61452         TYPE_U32_STRING.
61453         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
61454         a_u32_string variants.
61455         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
61456         * lib/printf-args.c: Don't include config.h and the specification
61457         header if PRINTF_FETCHARGS is already defined.
61458         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
61459         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
61460         TYPE_U16_STRING, TYPE_U32_STRING.
61461         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
61462         u16_directive, u16_directives, u32_directive, u32_directives): New
61463         types.
61464         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
61465         New declarations.
61466         * lib/printf-parse.c: Don't include config.h and the specification
61467         header if PRINTF_PARSE is already defined. Eliminate the set of
61468         parameters for WIDE_CHAR_VERSION; the user of this file must provide
61469         them now. Include c-ctype.h.
61470         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
61471         directive and CHAR_T_ONLY_ASCII.
61472         * lib/vasnprintf.c: Don't include config.h and the specification header
61473         if VASNPRINTF is already defined.
61474         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
61475         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
61476         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
61477         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
61478         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
61479         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
61480         code accordingly.
61481         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
61482         pad_ourselves also in this case, with the 'c' and 's' directives, and
61483         with a different notion of "width".
61484         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
61485
61486 2007-06-10  Bruno Haible  <bruno@clisp.org>
61487
61488         * modules/unistr/u32-mbsnlen: New file.
61489         * lib/unistr/u32-mbsnlen.c: New file.
61490
61491         * modules/unistr/u16-mbsnlen: New file.
61492         * lib/unistr/u16-mbsnlen.c: New file.
61493
61494         * modules/unistr/u8-mbsnlen: New file.
61495         * lib/unistr/u8-mbsnlen.c: New file.
61496
61497         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
61498         declarations.
61499
61500 2007-06-10  Bruno Haible  <bruno@clisp.org>
61501
61502         * lib/string_.h (mbsnlen): New declaration.
61503         * lib/mbsnlen.c: New file.
61504         * m4/mbsnlen.m4: New file.
61505         * modules/mbsnlen: New file.
61506         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
61507         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
61508         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
61509
61510 2007-06-10  Bruno Haible  <bruno@clisp.org>
61511
61512         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
61513
61514 2007-06-10  Bruno Haible  <bruno@clisp.org>
61515
61516         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
61517         * lib/mbuiter.h: Likewise.
61518
61519 2007-06-10  Bruno Haible  <bruno@clisp.org>
61520
61521         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
61522         declaration.
61523
61524 2007-06-10  Karl Berry  <karl@gnu.org>
61525
61526         * config/srclist.txt: remove gettext entries, Bruno prefers
61527         to update individually.
61528
61529 2007-06-10  Bruno Haible  <bruno@clisp.org>
61530
61531         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
61532         'maxlen'. Ensure only length + width bytes are allocated, not
61533         length + 1 + width.
61534
61535 2007-06-09  Bruno Haible  <bruno@clisp.org>
61536
61537         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
61538         (CHAR_T): Remove macro.
61539         (VASNPRINTF): Update.
61540
61541 2007-06-09  Bruno Haible  <bruno@clisp.org>
61542
61543         * MODULES.html.sh (Unicode string functions): Add the new modules.
61544
61545         * modules/uniconv/u32-conv-to-enc: New file.
61546         * lib/uniconv/u32-conv-to-enc.c: New file.
61547         * modules/uniconv/u32-conv-to-enc-tests: New file.
61548         * tests/uniconv/test-u32-conv-to-enc.c: New file.
61549
61550         * modules/uniconv/u16-conv-to-enc: New file.
61551         * lib/uniconv/u16-conv-to-enc.c: New file.
61552         * lib/uniconv/u-conv-to-enc.h: New file.
61553         * modules/uniconv/u16-conv-to-enc-tests: New file.
61554         * tests/uniconv/test-u16-conv-to-enc.c: New file.
61555
61556         * modules/uniconv/u8-conv-to-enc: New file.
61557         * lib/uniconv/u8-conv-to-enc.c: New file.
61558         * modules/uniconv/u8-conv-to-enc-tests: New file.
61559         * tests/uniconv/test-u8-conv-to-enc.c: New file.
61560
61561         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
61562         u32_conv_to_encoding): New declarations.
61563
61564 2007-06-09  Bruno Haible  <bruno@clisp.org>
61565
61566         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
61567
61568 2007-06-09  Bruno Haible  <bruno@clisp.org>
61569
61570         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
61571         * modules/malloca: Renamed from modules/allocsa, updated.
61572         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
61573         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
61574         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
61575         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
61576         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
61577         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
61578         * modules/xmalloca: Renamed from modules/xallocsa, updated.
61579         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
61580         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
61581         * modules/c-strcasestr (Depends-on): Update.
61582         * lib/c-strcasestr.c: Update.
61583         * modules/c-strstr (Depends-on): Update.
61584         * lib/c-strstr.c: Update.
61585         * modules/canonicalize-lgpl (Depends-on): Update.
61586         * lib/canonicalize-lgpl.c: Update.
61587         * modules/clean-temp (Depends-on): Update.
61588         * lib/clean-temp.c: Update.
61589         * modules/csharpcomp (Depends-on): Update.
61590         * lib/csharpcomp.c: Update.
61591         * modules/csharpexec (Depends-on): Update.
61592         * lib/csharpexec.c: Update.
61593         * modules/javacomp (Depends-on): Update.
61594         * lib/javacomp.c: Update.
61595         * modules/javaexec (Depends-on): Update.
61596         * lib/javaexec.c: Update.
61597         * modules/mbscasestr (Depends-on): Update.
61598         * lib/mbscasestr.c: Update.
61599         * modules/mbsstr (Depends-on): Update.
61600         * lib/mbsstr.c: Update.
61601         * modules/setenv (Depends-on): Update.
61602         * lib/setenv.c: Update.
61603         * modules/strcasestr (Depends-on): Update.
61604         * lib/strcasestr.c: Update.
61605         * modules/striconveha (Depends-on): Update.
61606         * lib/striconveha.c: Update.
61607         * modules/relocatable-prog-wrapper (Files): Update.
61608         * lib/relocwrapper.c: Update.
61609         * build-aux/install-reloc: Update.
61610         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
61611
61612 2007-06-08  Bruno Haible  <bruno@clisp.org>
61613
61614         Port to uClibc.
61615         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
61616         * lib/fpurge.c (fpurge): Likewise.
61617         * lib/freading.c (freading): Likewise.
61618         * lib/fseeko.c (rpl_fseeko): Likewise.
61619         * lib/fseterr.c (fseterr): Likewise.
61620         * lib/fwriting.c (fwriting): Likewise.
61621         * tests/test-fflush.c (main): Avoid a failure on uClibc.
61622
61623 2007-06-08  Bruno Haible  <bruno@clisp.org>
61624
61625         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
61626         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
61627         * modules/gettext (Files): Add m4/intlmacosx.m4.
61628
61629 2007-06-07  Bruno Haible  <bruno@clisp.org>
61630
61631         * modules/localename-tests: New file.
61632         * tests/test-localename.c: New file.
61633
61634         New module 'localename'.
61635         * lib/localename.h: New file.
61636         * lib/localename.c: New file, from GNU gettext.
61637         * m4/localename.m4: New file.
61638         * modules/localename: New file.
61639
61640 2007-06-07  Bruno Haible  <bruno@clisp.org>
61641
61642         Work around the lack of <wchar.h> on some builds of uClibc.
61643         * doc/headers/wchar.texi: Update.
61644         * lib/wchar_.h: Include <wchar.h> only if it exists.
61645         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
61646         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
61647         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
61648         doesn't exist.
61649         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
61650         * modules/mbfile (Depends-on): Add wchar.
61651         * modules/mbiter (Depends-on): Likewise.
61652         * modules/mbuiter (Depends-on): Likewise.
61653         Reported by Simon Josefsson.
61654
61655 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
61656
61657         Work around problem reported by Steven M. Schweda in
61658         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
61659         Tru64 5.1B with the Compaq compiler environment installed declares
61660         an 'isblank' function but does not define it in the C library.
61661         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
61662         * lib/regex_internal.h (isblank): Likewise.
61663         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
61664         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
61665
61666 2007-06-05  Bruno Haible  <bruno@clisp.org>
61667
61668         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
61669         ia64.
61670         * modules/printf-safe: New file.
61671         * modules/fprintf-posix (Depends-on): Add printf-safe.
61672         * modules/printf-posix (Depends-on): Likewise.
61673         * modules/snprintf-posix (Depends-on): Likewise.
61674         * modules/sprintf-posix (Depends-on): Likewise.
61675         * modules/vasnprintf-posix (Depends-on): Likewise.
61676         * modules/vasprintf-posix (Depends-on): Likewise.
61677         * modules/vfprintf-posix (Depends-on): Likewise.
61678         * modules/vprintf-posix (Depends-on): Likewise.
61679         * modules/vsnprintf-posix (Depends-on): Likewise.
61680         * modules/vsprintf-posix (Depends-on): Likewise.
61681         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
61682         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
61683         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
61684         "no" on i386, x86_64, ia64.
61685         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
61686         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61687         on i386, x86_64, ia64.
61688         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
61689         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61690         on i386, x86_64, ia64.
61691         * tests/test-vasnprintf-posix.c: Include float.h.
61692         (LDBL80_WORDS): New macro.
61693         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61694         on i386, x86_64, ia64.
61695         * tests/test-vasprintf-posix.c: Include float.h.
61696         (LDBL80_WORDS): New macro.
61697         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61698         on i386, x86_64, ia64.
61699         * tests/test-snprintf-posix.c: Include float.h.
61700         * tests/test-sprintf-posix.c: Likewise.
61701         * tests/test-vsnprintf-posix.c: Likewise.
61702         * tests/test-vsprintf-posix.c: Likewise.
61703
61704 2007-06-05  Bruno Haible  <bruno@clisp.org>
61705
61706         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
61707         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
61708         non-IEEE numbers on i386, x86_64, ia64.
61709         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
61710         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
61711         * tests/test-isnanl.h: Include float.h.
61712         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
61713
61714 2007-06-05  Bruno Haible  <bruno@clisp.org>
61715
61716         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
61717         also the %a / %A. Handle the %a / %A code before this extra handling.
61718
61719 2007-06-05  Bruno Haible  <bruno@clisp.org>
61720
61721         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
61722         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
61723
61724 2007-06-05  Bruno Haible  <bruno@clisp.org>
61725
61726         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
61727         typo in variable name.
61728
61729 2007-06-05  Eric Blake  <ebb9@byu.net>
61730
61731         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
61732         Reported by Simon Josefsson.
61733
61734 2007-06-04  Bruno Haible  <bruno@clisp.org>
61735
61736         Avoid test failures on some PowerPC platforms.
61737         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
61738         Define differently for PowerPC.
61739         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
61740         Reported by Gary V. Vaughan <gary@gnu.org>.
61741
61742 2007-06-02  Bruno Haible  <bruno@clisp.org>
61743
61744         Fix test-stdint failure on FreeBSD/ia64.
61745         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
61746         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
61747         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
61748         * doc/headers/stdint.texi: Update.
61749
61750 2007-06-01  Bruno Haible  <bruno@clisp.org>
61751
61752         * tests/test-binary-io.c (main): Pass a third argument to open().
61753         Reported by Gary V. Vaughan <gary@gnu.org>.
61754
61755 2007-06-01  Bruno Haible  <bruno@clisp.org>
61756
61757         * doc/functions/frexpl.texi: Update for mingw.
61758
61759 2007-06-01  Bruno Haible  <bruno@clisp.org>
61760
61761         * tests/test-lseek.c (main): Disable test of errno for invalid third
61762         argument.
61763         * doc/functions/lseek.texi: Update.
61764         Reported by Gary V. Vaughan <gary@gnu.org>.
61765
61766 2007-05-28  Bruno Haible  <bruno@clisp.org>
61767
61768         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
61769
61770 2007-05-31  Eric Blake  <ebb9@byu.net>
61771
61772         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
61773         cross compiling.
61774
61775 2007-05-30  Eric Blake  <ebb9@byu.net>
61776         and Bruno Haible  <bruno@clisp.org>
61777
61778         Work around mingw test failures exposed by m4-1.4.9b.
61779         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
61780         * tests/test-unistd.c: Disable uid_t and git_t tests for the
61781         moment.
61782
61783 2007-05-30  Bruno Haible  <bruno@clisp.org>
61784
61785         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
61786         assuming that they are closed. Needed on HP-UX 11.
61787
61788 2007-05-29  Bruno Haible  <bruno@clisp.org>
61789
61790         Fix a problem with #include_next.
61791         * lib/dirent_.h: Split the double-inclusion guard.
61792         * lib/fcntl_.h: Likewise.
61793         * lib/float_.h: Likewise.
61794         * lib/iconv_.h: Likewise.
61795         * lib/inttypes_.h: Likewise.
61796         * lib/locale_.h: Likewise.
61797         * lib/math_.h: Likewise.
61798         * lib/netinet_in_.h: Likewise.
61799         * lib/search_.h: Likewise.
61800         * lib/signal_.h: Likewise.
61801         * lib/stdint_.h: Likewise.
61802         * lib/stdio_.h: Likewise.
61803         * lib/stdlib_.h: Likewise.
61804         * lib/string_.h: Likewise.
61805         * lib/sys_select_.h: Likewise.
61806         * lib/sys_socket_.h: Likewise.
61807         * lib/sys_stat_.h: Likewise.
61808         * lib/sys_time_.h: Likewise.
61809         * lib/sysexits_.h: Likewise.
61810         * lib/time_.h: Likewise.
61811         * lib/unistd_.h: Likewise.
61812         * lib/wchar_.h: Likewise.
61813         * lib/wctype_.h: Likewise.
61814
61815 2007-05-29  Bruno Haible  <bruno@clisp.org>
61816
61817         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
61818         for the moment.
61819
61820 2007-05-29  Bruno Haible  <bruno@clisp.org>
61821
61822         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
61823         invocation.
61824         Reported by Eric Blake.
61825
61826 2007-05-29  Bruno Haible  <bruno@clisp.org>
61827
61828         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
61829         compiling case.
61830
61831 2007-05-29  Eric Blake  <ebb9@byu.net>
61832             Bruno Haible  <bruno@clisp.org>
61833
61834         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
61835         cross compiles.
61836
61837 2007-05-28  Eric Blake  <ebb9@byu.net>
61838
61839         * modules/closein-tests (test_closein_LDADD): Support test on
61840         cygwin with libtool.
61841
61842 2007-05-28  Bruno Haible  <bruno@clisp.org>
61843
61844         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
61845         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61846         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61847         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61848         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61849         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61850         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61851         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61852         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61853
61854 2007-05-28  Eric Blake  <ebb9@byu.net>
61855
61856         Unconditionally include <config.h> in unit tests.
61857         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
61858         * tests/test-allocsa.c, tests/test-arcfour.c,
61859         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
61860         tests/test-array_list.c, tests/test-array_oset.c,
61861         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
61862         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
61863         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
61864         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
61865         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
61866         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
61867         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
61868         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
61869         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
61870         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
61871         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
61872         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
61873         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
61874         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
61875         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
61876         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
61877         test-md5.c, test-memmem.c, test-printf-posix.c,
61878         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
61879         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
61880         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
61881         test-strcasestr.c, test-striconv.c, test-striconveh.c,
61882         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
61883         test-vasnprintf-posix2.c, test-vasnprintf.c,
61884         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
61885         test-vfprintf-posix.c, test-vprintf-posix.c,
61886         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
61887         test-xvasprintf.c: Likewise.
61888
61889 2007-05-28  Bruno Haible  <bruno@clisp.org>
61890
61891         * gnulib-tool (func_import): Remember the --with-tests command-line
61892         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
61893         Reported by Eric Blake.
61894
61895 2007-05-28  Bruno Haible  <bruno@clisp.org>
61896
61897         * modules/ftell-tests: New file.
61898         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
61899         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
61900
61901         * lib/ftell.c: New file.
61902         * modules/ftell: New file.
61903         * m4/ftell.m4: New file.
61904         * doc/functions/ftell.texi: Update.
61905         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
61906         REPLACE_FTELL.
61907         * lib/stdio_.h (rpl_ftell): New declaration.
61908         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
61909         REPLACE_FTELL.
61910
61911 2007-05-28  Eric Blake  <ebb9@byu.net>
61912
61913         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
61914
61915 2007-05-28  Bruno Haible  <bruno@clisp.org>
61916
61917         * modules/fseek-tests: New file.
61918         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
61919         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
61920
61921         * lib/fseek.c: New file.
61922         * modules/fseek: New file.
61923         * m4/fseek.m4: New file.
61924         * doc/functions/fseek.texi: Update.
61925         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
61926         REPLACE_FSEEK.
61927         * lib/stdio_.h (rpl_fseek): New declaration.
61928         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
61929         REPLACE_FSEEK.
61930
61931 2007-05-28  Bruno Haible  <bruno@clisp.org>
61932
61933         * lib/stdio_.h (fflush): More comments.
61934
61935 2007-05-28  Bruno Haible  <bruno@clisp.org>
61936
61937         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
61938         runtime test.
61939
61940 2007-05-28  Eric Blake  <ebb9@byu.net>
61941
61942         Improve lseek module.
61943         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
61944         * lib/unistd_.h (lseek): Scale back link warning message.
61945         * tests/test-lseek.c: Beef up test.
61946         * tests/test-lseek.sh: Exercise more facets of lseek.
61947         Reported by Bruno Haible.
61948
61949 2007-05-28  Bruno Haible  <bruno@clisp.org>
61950
61951         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
61952         to define.
61953
61954 2007-05-27  Bruno Haible  <bruno@clisp.org>
61955
61956         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
61957
61958 2007-05-27  Bruno Haible  <bruno@clisp.org>
61959
61960         * modules/openmp: New file.
61961         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
61962         Noah Misch.
61963
61964 2007-05-26  Bruno Haible  <bruno@clisp.org>
61965
61966         * modules/chdir-long (Depends-on): Add fchdir.
61967         * modules/chdir-safer (Depends-on): Likewise.
61968         * modules/fts (Depends-on): Likewise.
61969         * modules/fts-lgpl (Depends-on): Likewise.
61970         * modules/openat (Depends-on): Likewise.
61971         * modules/savewd (Depends-on): Likewise.
61972
61973 2007-05-24  Eric Blake  <ebb9@byu.net>
61974
61975         Fix lseek on mingw.
61976         * modules/lseek: New module.
61977         * m4/lseek.m4: New file.
61978         * lib/lseek.c: New file.
61979         * modules/lseek-tests: New file.
61980         * tests/test-lseek.c: New file.
61981         * tests/test-lseek.sh: New file.
61982         * MODULES.html.sh: Document lseek module.
61983         * modules/fflush (Depends-on): Add lseek, fseeko.
61984         * modules/fseeko (Depends-on): Likewise.
61985         * modules/ftello (Depends-on): Likewise.
61986         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
61987         broken.
61988         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
61989         broken.
61990         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
61991         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
61992         * lib/ftello.c (rpl_ftello): Likewise.
61993         * tests/test-fseeko.c (main): Test this.
61994         * tests/test-fseeko.sh: Likewise.
61995         * tests/test-ftello.c (main): Likewise.
61996         * tests/test-ftello.sh: Likewise.
61997         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
61998         implies replacing fseek.
61999         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
62000         HAVE_FTELLO.
62001         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
62002         * modules/unistd (Makefile.am): Likewise.
62003         * lib/unistd_.h (lseek): Declare a replacement.
62004         * doc/functions/lseek.texi (lseek): Document this fix.
62005         * doc/functions/fseek.texi (fseek): Likewise.
62006         * doc/functions/ftell.texi (ftell): Likewise.
62007
62008 2007-05-24  Bruno Haible  <bruno@clisp.org>
62009
62010         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
62011         in the printed representation of a NaN.
62012         * tests/test-vasprintf-posix.c (test_function): Likewise.
62013         * tests/test-snprintf-posix.h (test_function): Likewise.
62014         * tests/test-sprintf-posix.h (test_function): Likewise.
62015         Reported by Eric Blake.
62016
62017 2007-05-23  Eric Blake  <ebb9@byu.net>
62018
62019         Fix fseeko/ftello on cygwin 1.5.24.
62020         * doc/functions/fseeko.texi (fseeko): Document the fix.
62021         * doc/functions/ftello.texi (ftello): Document the fix.
62022         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
62023         * doc/functions/stdout.text (stdout): New file.
62024         * doc/functions/stderr.text (stderr): New file.
62025         * doc/gnulib.texi (Function Substitutes): Use new files.
62026         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
62027         prior to 1.7.0.
62028         * tests/test-ftello.c (main): Likewise for ftello.
62029         * tests/test-fseeko.sh: New file.
62030         * tests/test-ftello.sh: New file.
62031         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
62032         with seekable stdin.
62033         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
62034         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
62035         (gl_REPLACE_FSEEKO): New macro.
62036         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
62037         * modules/fseeko (Files): Distribute fseeko.c.
62038         * modules/ftello (Files): Distribute ftello.c.
62039         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
62040         mode.
62041         * lib/ftello.c (rpl_ftello): New file.
62042         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
62043         fseeko, ftello.
62044         (gl_STDIN_LARGE_OFFSET): New macro.
62045         * modules/stdio (Makefile.am): Perform the replacement.
62046         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
62047
62048 2007-05-23  Bruno Haible  <bruno@clisp.org>
62049
62050         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
62051         GNULIB_POSIXCHECK is defined.
62052
62053 2007-05-21  Bruno Haible  <bruno@clisp.org>
62054
62055         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
62056         Check also the output for NaN arguments. When cross-compiling, guess
62057         no on IRIX.
62058         * lib/vasnprintf.c: Update comments.
62059         * tests/test-vasnprintf-posix.c (strisnan): New function.
62060         (test_function): Use it.
62061         * tests/test-vasprintf-posix.c (strisnan): New function.
62062         (test_function): Use it.
62063         * tests/test-snprintf-posix.h (strisnan): New function.
62064         (test_function): Use it.
62065         * tests/test-sprintf-posix.h (strisnan): New function.
62066         (test_function): Use it.
62067         Reported by Eric Blake.
62068
62069 2007-05-20  Bruno Haible  <bruno@clisp.org>
62070
62071         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
62072         numbers that fails on BeOS.
62073         * doc/functions/frexpl.texi: Update.
62074
62075 2007-05-20  Jim Meyering  <jim@meyering.net>
62076
62077         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
62078         forced upon us by glibc-2.6.
62079
62080 2007-05-20  Bruno Haible  <bruno@clisp.org>
62081
62082         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
62083         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
62084         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
62085         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
62086         NEED_PRINTF_INFINITE.
62087         (is_infinitel): New function.
62088         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
62089         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
62090         gl_PREREQ_VASNPRINTF_INFINITE.
62091         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
62092         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62093         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
62094         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
62095         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
62096         gl_PREREQ_VASNPRINTF_INFINITE.
62097         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62098         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62099         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62100         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62101         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62102         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62103         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62104         * doc/functions/fprintf.texi: Update.
62105         * doc/functions/printf.texi: Update.
62106         * doc/functions/snprintf.texi: Update.
62107         * doc/functions/sprintf.texi: Update.
62108         * doc/functions/vfprintf.texi: Update.
62109         * doc/functions/vprintf.texi: Update.
62110         * doc/functions/vsnprintf.texi: Update.
62111         * doc/functions/vsprintf.texi: Update.
62112
62113 2007-05-20  Bruno Haible  <bruno@clisp.org>
62114
62115         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
62116         was not found in libc.
62117         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
62118
62119 2007-05-20  Bruno Haible  <bruno@clisp.org>
62120
62121         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
62122         printed as "-nan" instead of "nan".
62123         * tests/test-vasprintf-posix.c (test_function): Likewise.
62124         * tests/test-snprintf-posix.h (test_function): Likewise.
62125         * tests/test-sprintf-posix.h (test_function): Likewise.
62126         Needed for HP-UX 11.
62127
62128 2007-05-20  Jim Meyering  <jim@meyering.net>
62129
62130         Fix buggy test for the fchownat-deref bug.
62131         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
62132         symlink required for the run-test.  Without it, this test would
62133         always declare that fchownat doesn't work, and client code would
62134         unnecessarily use the replacement function with fixed libc.
62135         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
62136         Reported by Greg Schafer.
62137
62138 2007-05-19  Bruno Haible  <bruno@clisp.org>
62139
62140         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
62141         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
62142         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
62143         Needed for IRIX 6.5 and Solaris 2.5.1.
62144
62145 2007-05-19  Bruno Haible  <bruno@clisp.org>
62146
62147         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
62148         (test_function): Skip tests involving -0.0 on platforms where
62149         -0.0 = 0.0.
62150         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
62151         (test_function): Skip tests involving -0.0 on platforms where
62152         -0.0 = 0.0.
62153         * tests/test-snprintf-posix.h (have_minus_zero): New function.
62154         (test_function): Skip tests involving -0.0 on platforms where
62155         -0.0 = 0.0.
62156         * tests/test-sprintf-posix.h (have_minus_zero): New function.
62157         (test_function): Skip tests involving -0.0 on platforms where
62158         -0.0 = 0.0.
62159         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
62160         tests.
62161         * tests/test-printf-posix.h (test_function): Likewise.
62162         * tests/test-printf-posix.output: Remove all -0.0 related results.
62163         Needed for IRIX 6.5.
62164
62165 2007-05-19  Bruno Haible  <bruno@clisp.org>
62166
62167         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
62168         printed as "nan0x7fffffff" instead of "nan".
62169         * tests/test-vasprintf-posix.c (test_function): Likewise.
62170         * tests/test-snprintf-posix.h (test_function): Likewise.
62171         * tests/test-sprintf-posix.h (test_function): Likewise.
62172         * tests/test-fprintf-posix.h (NaN): Remove macro.
62173         (test_function): Remove all NaN related tests.
62174         * tests/test-printf-posix.h (NaN): Remove macro.
62175         (test_function): Remove all NaN related tests.
62176         * tests/test-printf-posix.output: Remove all NaN related results.
62177         Needed for IRIX 6.5.
62178
62179 2007-05-19  Bruno Haible  <bruno@clisp.org>
62180
62181         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
62182         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
62183
62184 2007-05-19  Bruno Haible  <bruno@clisp.org>
62185
62186         * lib/float_.h: New file.
62187         * m4/float_h.m4: New file.
62188         * modules/float: New file.
62189         * modules/isnanl (Dependencies): Add float.
62190         * modules/isnanl-nolibm (Dependencies): Likewise.
62191         * modules/mathl (Dependencies): Likewise.
62192         * modules/printf-frexpl (Dependencies): Likewise.
62193         * modules/signbit (Dependencies): Likewise.
62194         * modules/vasnprintf (Dependencies): Likewise.
62195         * doc/headers/float.texi: Update.
62196
62197 2007-05-19  Jim Meyering  <jim@meyering.net>
62198
62199         * lib/utimens.c (gl_futimens): Rename from futimens,
62200         now that glibc-2.6 declares futimens.
62201         * lib/utimens.h: Likewise.
62202
62203 2007-05-19  Bruno Haible  <bruno@clisp.org>
62204
62205         Avoid test failures on mingw.
62206         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
62207         * tests/test-printf-posix.sh: Likewise.
62208         * tests/test-vfprintf-posix.sh: Likewise.
62209         * tests/test-vprintf-posix.sh: Likewise.
62210
62211 2007-05-19  Bruno Haible  <bruno@clisp.org>
62212
62213         Fix *printf result for NaN, Inf, -0.0 on mingw.
62214         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
62215         * lib/vasnprintf.c: Include math.h and isnan.h.
62216         (is_infinite_or_zero): New function.
62217         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
62218         values in the %f, %F, %e, %E, %g, %G directives.
62219         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
62220         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62221         gl_PRINTF_INFINITE and test its result. Invoke
62222         gl_PREREQ_VASNPRINTF_INFINITE.
62223         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62224         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62225         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62226         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62227         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62228         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62229         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62230         * doc/functions/fprintf.texi: Update.
62231         * doc/functions/printf.texi: Update.
62232         * doc/functions/snprintf.texi: Update.
62233         * doc/functions/sprintf.texi: Update.
62234         * doc/functions/vfprintf.texi: Update.
62235         * doc/functions/vprintf.texi: Update.
62236         * doc/functions/vsnprintf.texi: Update.
62237         * doc/functions/vsprintf.texi: Update.
62238
62239 2007-05-19  Bruno Haible  <bruno@clisp.org>
62240
62241         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
62242         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
62243         Instead of multiplying with 10^k, set extra_zeroes to k.
62244         (scale10_round_long_double): Remove function.
62245
62246 2007-05-18  Bruno Haible  <bruno@clisp.org>
62247
62248         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
62249         introduced on 2007-05-06.
62250
62251 2007-05-18  Bruno Haible  <bruno@clisp.org>
62252
62253         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
62254         %g directives.
62255         * tests/test-vasprintf-posix.c (test_function): Likewise.
62256         * tests/test-snprintf-posix.h (test_function): Likewise.
62257         * tests/test-sprintf-posix.h (test_function): Likewise.
62258
62259 2007-05-18  Bruno Haible  <bruno@clisp.org>
62260
62261         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
62262         (strmatch): New function.
62263         (test_function): Test the %f directive on numbers of various exponents.
62264         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
62265         (strmatch): New function.
62266         (test_function): Test the %f directive on numbers of various exponents.
62267         * tests/test-snprintf-posix.h (strmatch): New function.
62268         (test_function): Test the %f directive on numbers of various exponents.
62269         * tests/test-sprintf-posix.h (strmatch): New function.
62270         (test_function): Test the %f directive on numbers of various exponents.
62271         * tests/test-snprintf-posix.c (SIZEOF): New macro.
62272         * tests/test-sprintf-posix.c (SIZEOF): New macro.
62273         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
62274         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
62275
62276 2007-05-18  Bruno Haible  <bruno@clisp.org>
62277
62278         Add support for 'long double' number output.
62279         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
62280         * lib/vasnprintf.c: Include math.h and float+.h.
62281         (mp_limb_t): New type.
62282         (GMP_LIMB_BITS): New macro.
62283         (mp_twolimb_t): New type.
62284         (GMP_TWOLIMB_BITS): New macro.
62285         (mpn_t): New type.
62286         (multiply, divide, convert_to_decimal, decode_long_double,
62287         scale10_round_long_double, scale10_round_decimal_long_double,
62288         floorlog10l): New functions.
62289         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
62290         for the %f, %F, %e, %E, %g, %G directives.
62291         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
62292         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62293         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
62294         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
62295         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62296         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62297         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62298         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62299         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62300         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62301         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62302         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
62303         * modules/snprintf-posix (Depends-on): Likewise.
62304         * modules/sprintf-posix (Depends-on): Likewise.
62305         * modules/vasnprintf-posix (Depends-on): Likewise.
62306         * modules/vasprintf-posix (Depends-on): Likewise.
62307         * modules/vfprintf-posix (Depends-on): Likewise.
62308         * modules/vsnprintf-posix (Depends-on): Likewise.
62309         * modules/vsprintf-posix (Depends-on): Likewise.
62310         * modules/vasnprintf (Files): Add lib/float+.h.
62311         * doc/functions/fprintf.texi: Update.
62312         * doc/functions/printf.texi: Update.
62313         * doc/functions/snprintf.texi: Update.
62314         * doc/functions/sprintf.texi: Update.
62315         * doc/functions/vfprintf.texi: Update.
62316         * doc/functions/vprintf.texi: Update.
62317         * doc/functions/vsnprintf.texi: Update.
62318         * doc/functions/vsprintf.texi: Update.
62319
62320 2007-05-18  Bruno Haible  <bruno@clisp.org>
62321
62322         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
62323
62324 2007-05-18  Bruno Haible  <bruno@clisp.org>
62325
62326         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
62327         for printing 64-bit integers. Needed for mingw.
62328
62329 2007-05-18  Bruno Haible  <bruno@clisp.org>
62330
62331         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
62332         gl_FUNC_FREXPL_WORKS.
62333         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
62334
62335 2007-05-18  Bruno Haible  <bruno@clisp.org>
62336
62337         * modules/frexpl-nolibm-tests: New file.
62338
62339         * modules/frexpl-nolibm: New file.
62340         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
62341
62342 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
62343
62344         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
62345         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
62346         GCC 4.2, which otherwise issues a lot of warnings.
62347         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
62348         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
62349         Likewise.
62350         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
62351         * modules/iconv_open (iconv.h): Likewise.
62352         * modules/locale (locale.h): Likewise.
62353         * modules/netinet_in (netinet/in.h): Likewise.
62354         * modules/sys_select (sys_select.h): Likewise.
62355         * modules/sys_socket (sys/socket.h): Likewise.
62356         * modules/sys_stat (sys/stat.h): Likewise.
62357         * modules/sysexits (sysexits.h): Likewise.
62358         * modules/unistd (unistd.h): Likewise.
62359
62360 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62361
62362         * modules/closein-tests (Makefile.am): Distribute
62363         `test-closein.sh'.
62364
62365 2007-05-17  Bruno Haible  <bruno@clisp.org>
62366
62367         * tests/test-printf-posix.output: Renamed from
62368         tests/test-fprintf-posix.out.
62369         * modules/fprintf-posix-tests: Update.
62370         * modules/printf-posix-tests: Update.
62371         * modules/vfprintf-posix-tests: Update.
62372         * modules/vprintf-posix-tests: Update.
62373         * tests/test-fprintf-posix.sh: Update.
62374         * tests/test-printf-posix.sh: Update.
62375         * tests/test-vfprintf-posix.sh: Update.
62376         * tests/test-vprintf-posix.sh: Update.
62377         Reported by Ralf Wildenhues.
62378
62379 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
62380
62381         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
62382         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
62383         GCC 4.2, which otherwise issues a lot of warnings.
62384         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
62385         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
62386         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
62387         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
62388         it should no longer be needed.
62389         * lib/string_.h: Likewise.
62390         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
62391         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
62392         * modules/inttypes (inttypes.h): Likewise.
62393         * modules/math (math.h): Likewise.
62394         * modules/search (search.h): Likewise.
62395         * modules/signal (signal.h): Likewise.
62396         * modules/stdint (stdint.h): Likewise.
62397         * modules/stdio (stdio.h): Likewise.
62398         * modules/stdlib (stdlib.h): Likewise.
62399         * modules/string (string.h): Likewise.
62400         * modules/sys_time (sys/time.h): Likewise.
62401         * modules/time (time.h): Likewise.
62402         * modules/wchar (wchar.h): Likewise.
62403         * modules/wctype (wtype.h): Likewise.
62404
62405 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62406
62407         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
62408
62409 2007-05-13  Bruno Haible  <bruno@clisp.org>
62410
62411         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
62412         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62413         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
62414         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
62415         (gl_PREREQ_STRTOK_R): Don't require it here.
62416
62417 2007-05-13  Bruno Haible  <bruno@clisp.org>
62418
62419         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
62420         when used in C++ mode.
62421
62422 2007-05-12  Bruno Haible  <bruno@clisp.org>
62423
62424         * lib/linebuffer.h: Tweak doc.
62425         * lib/linebuffer.c: Likewise.
62426
62427 2007-05-12  James Youngman  <jay@gnu.org>
62428
62429         * lib/linebuffer.c (readlinebuffer_delim): New function,
62430         like readlinebuffer, but use a caller-specified delimiter.
62431         (readlinebuffer): Just call readlinebuffer_delim with '\n'
62432         as the delimiter.
62433         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
62434
62435 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62436
62437         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
62438         * modules/openat (Files): Remove openat-die.c.
62439         (Depends-on): Add openat-die.
62440         * modules/openat-die: New module.
62441
62442 2007-05-06  Bruno Haible  <bruno@clisp.org>
62443
62444         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
62445         Update with info about Cygwin.
62446         * doc/functions/fprintf.texi: Update.
62447         * doc/functions/printf.texi: Update.
62448         * doc/functions/snprintf.texi: Update.
62449         * doc/functions/sprintf.texi: Update.
62450         * doc/functions/vfprintf.texi: Update.
62451         * doc/functions/vprintf.texi: Update.
62452         * doc/functions/vsnprintf.texi: Update.
62453         * doc/functions/vsprintf.texi: Update.
62454         Reported by Eric Blake.
62455
62456 2007-05-06  Bruno Haible  <bruno@clisp.org>
62457
62458         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
62459         padding ourselves for the floating-point directives.
62460         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
62461         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
62462         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62463         gl_PRINTF_FLAG_ZERO and test its result. Invoke
62464         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
62465         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62466         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
62467         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62468         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62469         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62470         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62471         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62472         * tests/test-snprintf-posix.h (test_function): Also check the width
62473         and some flags in the %f directive.
62474         * tests/test-sprintf-posix.h (test_function): Likewise.
62475         * tests/test-vasnprintf-posix.c (test_function): Likewise.
62476         * tests/test-vasprintf-posix.c (test_function): Likewise.
62477         * doc/functions/fprintf.texi: Update.
62478         * doc/functions/printf.texi: Update.
62479         * doc/functions/snprintf.texi: Update.
62480         * doc/functions/sprintf.texi: Update.
62481         * doc/functions/vfprintf.texi: Update.
62482         * doc/functions/vprintf.texi: Update.
62483         * doc/functions/vsnprintf.texi: Update.
62484         * doc/functions/vsprintf.texi: Update.
62485
62486 2007-05-06  Bruno Haible  <bruno@clisp.org>
62487
62488         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
62489         pass the ' flag character to sprintf or snprintf.
62490         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
62491         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
62492         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62493         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
62494         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
62495         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62496         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
62497         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62498         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62499         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62500         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62501         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62502         * tests/test-snprintf-posix.h (test_function): Also check the grouping
62503         flag.
62504         * tests/test-sprintf-posix.h (test_function): Likewise.
62505         * tests/test-vasnprintf-posix.c (test_function): Likewise.
62506         * tests/test-vasprintf-posix.c (test_function): Likewise.
62507         * doc/functions/fprintf.texi: Update.
62508         * doc/functions/printf.texi: Update.
62509         * doc/functions/snprintf.texi: Update.
62510         * doc/functions/sprintf.texi: Update.
62511         * doc/functions/vfprintf.texi: Update.
62512         * doc/functions/vprintf.texi: Update.
62513         * doc/functions/vsnprintf.texi: Update.
62514         * doc/functions/vsprintf.texi: Update.
62515
62516 2007-05-01  Bruno Haible  <bruno@clisp.org>
62517
62518         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
62519
62520 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
62521
62522         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
62523         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
62524
62525 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62526
62527         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
62528         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
62529         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
62530
62531 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
62532
62533         * lib/argp-help.c (struct hol_entry): New member `ord'.
62534         (HOL_ENTRY_PTRCMP): Use ord for comparison
62535         (hol_sort): Initialize ord.
62536
62537 2007-05-01  Bruno Haible  <bruno@clisp.org>
62538
62539         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
62540         Reported by Eric Blake.
62541         * doc/gnulib.texi (Function Substitutes): Update.
62542
62543 2007-05-01  Bruno Haible  <bruno@clisp.org>
62544
62545         * doc/functions.texi: Remove file, now redundant through
62546         doc/functions/*.texi.
62547
62548 2007-05-01  Bruno Haible  <bruno@clisp.org>
62549
62550         * modules/argp (Depends-on): Add sleep.
62551
62552 2007-05-01  Bruno Haible  <bruno@clisp.org>
62553
62554         * modules/sleep-tests: New file.
62555         * tests/test-sleep.c: New file.
62556
62557         * modules/sleep: New file.
62558         * lib/sleep.c: New file.
62559         * m4/sleep.m4: New file.
62560         * lib/unistd_.h (sleep): New declaration.
62561         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
62562         HAVE_SLEEP.
62563         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
62564         * doc/functions/sleep.texi: Document the sleep module.
62565
62566 2007-05-01  Bruno Haible  <bruno@clisp.org>
62567
62568         * lib/sigprocmask.h: Remove file.
62569         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
62570         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
62571         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
62572         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
62573         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
62574         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
62575         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
62576         HAVE_SIGSET_T as a shell variable.
62577         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
62578         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
62579         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
62580         (Depends-on): Add signal. Remove verify.
62581         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
62582         (Include): Mention <signal.h> instead of sigprocmask.h.
62583         * NEWS: Mention the change.
62584         * lib/fatal-signal.c: Don't include sigprocmask.h.
62585
62586 2007-05-01  Bruno Haible  <bruno@clisp.org>
62587
62588         * modules/signal: New file.
62589         * lib/signal_.h: New file.
62590         * m4/signal_h.m4: New file.
62591
62592 2007-05-01  Bruno Haible  <bruno@clisp.org>
62593
62594         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
62595         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
62596         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
62597         HAVE_WCTYPE_CTMP_BUG into wctype.h.
62598
62599 2007-05-01  Bruno Haible  <bruno@clisp.org>
62600
62601         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
62602         configure time.
62603         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
62604         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
62605         * modules/sys_stat (Makefile.am): Substitute their values into
62606         sys/stat.h.
62607
62608 2007-05-01  Bruno Haible  <bruno@clisp.org>
62609
62610         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
62611         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
62612         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
62613
62614 2007-05-01  Bruno Haible  <bruno@clisp.org>
62615
62616         * doc/header/assert.texi: Undo last change: don't mention the gnulib
62617         'assert' module here.
62618
62619 2007-05-01  Bruno Haible  <bruno@clisp.org>
62620
62621         * doc/functions/*.texi: New files.
62622         * doc/functions/google-ranking.txt: New file.
62623         * doc/gnulib.texi (Function Substitutes): New chapter.
62624         (ctime, inet_ntoa): Remove sections.
62625         * doc/ctime.texi: Remove file.
62626         * doc/inet_ntoa.texi: Remove file.
62627         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
62628         dependencies.
62629         (%.info): New rule, specifying a --reference-limit.
62630
62631 2007-05-01  Bruno Haible  <bruno@clisp.org>
62632
62633         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
62634
62635 2007-05-01  Bruno Haible  <bruno@clisp.org>
62636
62637         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
62638         the portability of 'mkdir' to mingw systems.
62639
62640 2007-05-01  Bruno Haible  <bruno@clisp.org>
62641
62642         * doc/headers/google-ranking.txt: New file.
62643
62644 2007-04-30  Eric Blake  <ebb9@byu.net>
62645
62646         Prefer fseeko to fseek.
62647         * modules/getpass (Depends-on): Add fseeko.
62648         * lib/getpass.c (getpass): Use fseeko, not fseek.
62649
62650 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
62651
62652         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
62653         assumes the sorting is stable, while most qsort implementations
62654         are not.  Use argument addresses to ensure they never compare as
62655         equal.
62656
62657         * tests/test-argp-2.sh (usage-indent test): Fix output
62658         (func_compare): Restore diff options
62659         * tests/test-argp.c: Restore #include "progname.h"
62660
62661 2007-04-29  Bruno Haible  <bruno@clisp.org>
62662
62663         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
62664         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62665         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
62666         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62667         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
62668         (configure.ac): Define CHECK_SNPRINTF_POSIX.
62669         (TESTS, check_PROGRAMS): Add test-snprintf.
62670         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
62671         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
62672         (TESTS, check_PROGRAMS): Add test-vsnprintf.
62673         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
62674         assertions that fail on HP-UX, OSF/1, or IRIX.
62675         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
62676
62677 2007-04-29  Bruno Haible  <bruno@clisp.org>
62678
62679         * MODULES.html.sh (posix_functions): Remove 'contents'.
62680
62681 2007-04-29  Karl Berry  <karl@gnu.org>
62682
62683         * config/srclist.txt (gendocs_template_min): new entry.
62684
62685 2007-04-29  Bruno Haible  <bruno@clisp.org>
62686
62687         Work around fpurge bug on BSD systems.
62688         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
62689         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
62690         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
62691         fpurge to rpl_fpurge if the system already has this function.
62692         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
62693         the case where the system already has this function. Correct invariants
62694         on BSD systems.
62695         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
62696         BSD systems.
62697
62698 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
62699
62700         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
62701         proposed by Sven Verdoolaege.
62702
62703         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
62704         options.
62705         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
62706         (usage and help tests): Update
62707
62708 2007-04-29  Bruno Haible  <bruno@clisp.org>
62709
62710         * tests/test-fflush.c (main): Use a file of size 17, not 10.
62711         Print more information in case of failure. Disable a test on BeOS.
62712
62713 2007-04-29  Bruno Haible  <bruno@clisp.org>
62714
62715         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
62716         This helps debugging on systems on which no gdb is available.
62717
62718 2007-04-29  Bruno Haible  <bruno@clisp.org>
62719
62720         * lib/freading.h: Improve comments.
62721         * lib/fwriting.h: Likewise.
62722         * tests/test-freading.c (main): Don't check freading immediately after
62723         repositioning. Needed for glibc.
62724
62725 2007-04-29  Bruno Haible  <bruno@clisp.org>
62726
62727         * lib/freading.c (freading): Trivial simplification.
62728
62729 2007-04-28  Bruno Haible  <bruno@clisp.org>
62730
62731         * tests/test-fwriting.c (main): Also test the interaction between
62732         fflush and fwriting.
62733         * modules/fwriting-tests (Depends-on): Add fflush.
62734
62735         * tests/test-freading.c (main): Also test the interaction between
62736         fflush and freading.
62737         * modules/freading-tests (Depends-on): Add fflush.
62738
62739 2007-04-28  Bruno Haible  <bruno@clisp.org>
62740
62741         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
62742         fseeko and ftello.
62743         Suggested by Eric Blake.
62744
62745 2007-04-28  Jim Meyering  <jim@meyering.net>
62746
62747         Avoid false-negative in gl_STDINT_H's C99 conformance test.
62748         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
62749         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
62750
62751 2007-04-27  Eric Blake  <ebb9@byu.net>
62752
62753         * doc/headers/assert.texi (assert.h): Document assert module use.
62754
62755 2007-04-27  Bruno Haible  <bruno@clisp.org>
62756
62757         * doc/headers/*.texi: New files.
62758         * doc/gnulib.texi (Header File Substitutes): New chapter.
62759         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
62760         dependencies.
62761         (standards.info ,standards.html, standards.dvi): Update dependencies.
62762         (mostlyclean, clean): New targets.
62763
62764 2007-04-27  Bruno Haible  <bruno@clisp.org>
62765
62766         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
62767         * modules/sysexits (Files, Makefile.am): Update.
62768
62769         * lib/sys_socket_.h: Renamed from lib/socket_.h.
62770         * modules/sys_socket (Files, Makefile.am): Update.
62771
62772         * lib/sys_stat_.h: Renamed from lib/stat_.h.
62773         * modules/sys_stat (Files, Makefile.am): Update.
62774
62775 2007-04-27  Eric Blake  <ebb9@byu.net>
62776
62777         * lib/freading.h: Improve comments.
62778         * lib/fwriting.h: Likewise.
62779         * lib/fflush.c: Likewise.
62780
62781         Fix closein for mingw.
62782         * modules/closein-tests: Add tests for closein.
62783         * tests/test-closein.c: New file.
62784         * tests/test-closein.sh: Likewise.
62785         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
62786         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
62787
62788 2007-04-27  Bruno Haible  <bruno@clisp.org>
62789
62790         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
62791         version is < 6.
62792         * lib/math_.h [__DECC]: Likewise.
62793         * lib/stdio_.h [__DECC]: Likewise.
62794         * lib/stdlib_.h [__DECC]: Likewise.
62795         * lib/string_.h [__DECC]: Likewise.
62796         * lib/time_.h [__DECC]: Likewise.
62797         * lib/wchar_.h [__DECC]: Likewise.
62798         * lib/wctype_.h [__DECC]: Likewise.
62799
62800 2007-04-27  Bruno Haible  <bruno@clisp.org>
62801
62802         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
62803
62804 2007-04-27  Bruno Haible  <bruno@clisp.org>
62805
62806         * lib/fflush.c: Add comments.
62807         * modules/fpurge-tests (Depends-on): Add fflush.
62808         * modules/freadable-tests (Depends-on): Likewise.
62809         * modules/fwritable-tests (Depends-on): Likewise.
62810
62811 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
62812
62813         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
62814         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
62815         Report by Bruno Haible <bruno@clisp.org>.
62816
62817 2007-04-26  Eric Blake  <ebb9@byu.net>
62818
62819         Fix fflush on mingw.
62820         * modules/fflush (Depends-on): Add freading.
62821         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
62822         but unread data.
62823
62824 2007-04-26  Eric Blake  <ebb9@byu.net>
62825         and Bruno Haible  <bruno@clisp.org>
62826
62827         Implement freading and fwriting.
62828         * lib/freading.c: New file.
62829         * lib/freading.h: Likewise.
62830         * m4/freading.m4: Likewise.
62831         * modules/freading: Likewise.
62832         * modules/freading-tests: Likewise.
62833         * tests/test-freading.c: Likewise.
62834         * lib/fwriting.c: New file.
62835         * lib/fwriting.h: Likewise.
62836         * m4/fwriting.m4: Likewise.
62837         * modules/fwriting: Likewise.
62838         * modules/fwriting-tests: Likewise.
62839         * tests/test-fwriting.c: Likewise.
62840         * MODULES.html.sh (File stream based Input/Output): Mention them.
62841
62842 2007-04-26  Bruno Haible  <bruno@clisp.org>
62843
62844         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
62845         'long' when we assume it.
62846         Suggested by Eric Blake.
62847
62848 2007-04-26  Bruno Haible  <bruno@clisp.org>
62849
62850         Ensure fseeko, ftello are declared on glibc systems.
62851         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
62852         * modules/fseeko (configure.ac-early): Likewise.
62853         * modules/ftello (configure.ac-early): Likewise.
62854         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
62855         AC_FUNC_FSEEKO for this.
62856         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
62857         (gl_CHECK_FSEEKO): Remove macro.
62858
62859 2007-04-26  Bruno Haible  <bruno@clisp.org>
62860
62861         * tests/test-fflush.c (main): Also check the ftell result after
62862         fflush and fseek/fseeko.
62863         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
62864         file descriptor position cache in the stream.
62865         * lib/fseeko.c (rpl_fseeko): Likewise.
62866
62867 2007-04-26  Bruno Haible  <bruno@clisp.org>
62868
62869         * modules/fflush-tests (Depends-on): Add fseeko.
62870
62871 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
62872             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62873
62874         * lib/argz_.h: ensure error_t definition is obtained in same
62875         mechanism system argz.h would have.
62876         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
62877         argz facilities are known bad.  Err on the side of caution if
62878         cross-compiling.
62879
62880 2007-04-25  Eric Blake  <ebb9@byu.net>
62881
62882         * lib/fpurge.c (includes): Use stdlib.h for free.
62883         * tests/test-fflush.c (main): Also test fflush-fseeko.
62884
62885 2007-04-25  Bruno Haible  <bruno@clisp.org>
62886
62887         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
62888         * lib/fseeko.c: New file.
62889         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
62890         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
62891         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
62892         gl_FUNC_FSEEKO.
62893         (gl_FUNC_FSEEKO): Invoke it.
62894         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
62895         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
62896         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
62897
62898 2007-04-25  Bruno Haible  <bruno@clisp.org>
62899
62900         * modules/fflush (Depends-on): Add ftello.
62901
62902 2007-04-25  Bruno Haible  <bruno@clisp.org>
62903
62904         * modules/ftello-tests: New file.
62905         * tests/test-ftello.c: New file.
62906
62907         * modules/ftello: New file.
62908         * m4/ftello.m4: New file.
62909         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
62910         HAVE_FTELLO.
62911         * lib/stdio_.h (ftello): New declaration.
62912         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
62913         HAVE_FTELLO.
62914
62915 2007-04-25  Bruno Haible  <bruno@clisp.org>
62916
62917         * modules/fseeko-tests: New file.
62918         * tests/test-fseeko.c: New file.
62919
62920         * modules/fseeko: New file.
62921         * m4/fseeko.m4: New file.
62922         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
62923         HAVE_FSEEKO.
62924         * lib/stdio_.h (fseeko): New declaration.
62925         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
62926         HAVE_FSEEKO.
62927
62928 2007-04-25  Bruno Haible  <bruno@clisp.org>
62929
62930         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
62931
62932 2007-04-25  Bruno Haible  <bruno@clisp.org>
62933
62934         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
62935         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
62936         * tests/test-unistd.c: Likewise.
62937         * tests/test-fcntl.c: Likewise.
62938
62939 2007-04-23  Eric Blake  <ebb9@byu.net>
62940
62941         * lib/fflush.c: Fix missing include.
62942         Reported by Bruno Haible.
62943
62944 2007-04-23  Bruno Haible  <bruno@clisp.org>
62945
62946         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
62947         Reported by Eric Blake.
62948
62949 2007-04-23  Bruno Haible  <bruno@clisp.org>
62950
62951         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
62952
62953 2007-04-23  Bruno Haible  <bruno@clisp.org>
62954
62955         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
62956
62957 2007-04-23  Bruno Haible  <bruno@clisp.org>
62958
62959         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
62960         Needed on HP-UX 11.
62961
62962 2007-04-16  Eric Blake  <ebb9@byu.net>
62963
62964         Make fflush rely on fpurge.
62965         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
62966         open coding all variants.
62967         * modules/fflush (Depends-on): Add fpurge and unistd.
62968         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
62969         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
62970
62971         Fix --with-tests compilation on cygwin.
62972         * modules/argmatch-tests (Makefile.am): List gnulib library first
62973         in LDADD.
62974         * modules/argp-tests (Makefile.am): Likewise.
62975         * modules/array-list-tests (Makefile.am): Likewise.
62976         * modules/array-oset-tests (Makefile.am): Likewise.
62977         * modules/avltree-list-tests (Makefile.am): Likewise.
62978         * modules/avltree-oset-tests (Makefile.am): Likewise.
62979         * modules/avltreehash-list-tests (Makefile.am): Likewise.
62980         * modules/carray-list-tests (Makefile.am): Likewise.
62981         * modules/dirname-tests (Makefile.am): Likewise.
62982         * modules/frexp-tests (Makefile.am): Likewise.
62983         * modules/isnanl-tests (Makefile.am): Likewise.
62984         * modules/linked-list-tests (Makefile.am): Likewise.
62985         * modules/linkedhash-list-tests (Makefile.am): Likewise.
62986         * modules/lock-tests (Makefile.am): Likewise.
62987         * modules/rbtree-list-tests (Makefile.am): Likewise.
62988         * modules/rbtree-oset-tests (Makefile.am): Likewise.
62989         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
62990         * modules/tls-tests (Makefile.am): Likewise.
62991         * modules/tsearch-tests (Makefile.am): Likewise.
62992         * modules/xvasprintf-tests (Makefile.am): Likewise.
62993
62994         Fix fpurge for cygwin.
62995         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
62996         value.
62997         * modules/fpurge-tests (Depends-on): Clean up trash.
62998
62999 2007-04-16  Simon Josefsson  <simon@josefsson.org>
63000
63001         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
63002
63003         * m4/autobuild.m4: Re-indent.
63004
63005 2007-04-13  Bruno Haible  <bruno@clisp.org>
63006
63007         * modules/fpurge-tests: New file.
63008         * tests/test-fpurge.c: New file.
63009
63010         * modules/fpurge: New file.
63011         * lib/fpurge.h: New file.
63012         * lib/fpurge.c: New file.
63013         * m4/fpurge.m4: New file.
63014
63015 2007-04-13  Bruno Haible  <bruno@clisp.org>
63016
63017         * modules/fbufmode-tests: New file.
63018         * tests/test-fbufmode.c: New file.
63019
63020         * modules/fbufmode: New file.
63021         * lib/fbufmode.h: New file.
63022         * lib/fbufmode.c: New file.
63023         * m4/fbufmode.m4: New file.
63024
63025 2007-04-13  Bruno Haible  <bruno@clisp.org>
63026
63027         * modules/fwritable-tests: New file.
63028         * tests/test-fwritable.c: New file.
63029
63030         * modules/fwritable: New file.
63031         * lib/fwritable.h: New file.
63032         * lib/fwritable.c: New file.
63033         * m4/fwritable.m4: New file.
63034
63035 2007-04-13  Bruno Haible  <bruno@clisp.org>
63036
63037         * modules/freadable-tests: New file.
63038         * tests/test-freadable.c: New file.
63039
63040         * modules/freadable: New file.
63041         * lib/freadable.h: New file.
63042         * lib/freadable.c: New file.
63043         * m4/freadable.m4: New file.
63044
63045 2007-04-13  Bruno Haible  <bruno@clisp.org>
63046
63047         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
63048         MOSTLYCLEANFILES.
63049
63050 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
63051
63052         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
63053         gzip bootstrap.conf to avoid dragging in i18n machinery.
63054         (gnulib_tool_option): Use it.
63055
63056 2007-04-13  Bruno Haible  <bruno@clisp.org>
63057
63058         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
63059         %F directives.
63060         * tests/test-vasprintf-posix.c (test_function): Likewise.
63061         * tests/test-snprintf-posix.h (test_function): Likewise.
63062         * tests/test-sprintf-posix.h (test_function): Likewise.
63063         * tests/test-fprintf-posix.h (test_function): Likewise.
63064         * tests/test-printf-posix.h (test_function): Likewise.
63065         * tests/test-fprintf-posix.out: Likewise.
63066
63067 2007-04-13  Bruno Haible  <bruno@clisp.org>
63068
63069         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
63070         * modules/tls-tests (configure.ac): Likewise.
63071         Reported by Arto C. Nirkko <anirkko@insel.ch>.
63072
63073 2007-04-13  Bruno Haible  <bruno@clisp.org>
63074
63075         * lib/tls.c (glthread_tls_get): Fix return type.
63076         Patch by Arto C. Nirkko <anirkko@insel.ch>.
63077
63078 2007-04-12  Eric Blake  <ebb9@byu.net>
63079
63080         * modules/gettime (Depends-on): Remove gettime.
63081         Reported by Dmitry V. Levin.
63082
63083 2007-04-12  Bruno Haible  <bruno@clisp.org>
63084
63085         * modules/fflush (Include): Mention <stdio.h>.
63086         * modules/strtoimax (Include): Mention <inttypes.h>.
63087         * modules/strtoumax (Include): Likewise.
63088
63089 2007-04-12  Eric Blake  <ebb9@byu.net>
63090
63091         * .cvsignore: New file.
63092         * .gitignore: Likewise.
63093
63094 2007-04-12  Bruno Haible  <bruno@clisp.org>
63095
63096         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
63097         not before, since $(LDADD) often contains libgnu.a.
63098         * modules/striconv-tests (test_striconv_LDADD): Likewise.
63099         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
63100         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
63101         Needed on Cygwin.
63102
63103 2007-04-12  Eric Blake  <ebb9@byu.net>
63104
63105         Work around glibc's failure to flush stdin on fclose.
63106         * lib/closein.c (close_stdin): Flush stdin before closing.
63107
63108         Work around glibc's failure to reset seekable stdin on exit.
63109         * modules/closein: New module.
63110         * lib/closein.c: New file.
63111         * lib/closein.h: Likewise.
63112         * m4/closein.m4: Likewise.
63113         * MODULES.html.sh (File stream based Input/Output): Document it.
63114
63115 2007-04-12  Simon Josefsson  <simon@josefsson.org>
63116
63117         * gnulib-tool: Rename generated 'autobuild' script to
63118         'do-autobuild' in --create-megatestdir output.
63119
63120         * doc/gnulib.texi (Build robot for gnulib): Fix.
63121
63122 2007-04-12  Simon Josefsson  <simon@josefsson.org>
63123
63124         * modules/sysexits (Depends-on): Add absolute-header.
63125
63126 2007-04-12  Eric Blake  <ebb9@byu.net>
63127
63128         No need to preserve errno on success.
63129         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
63130         Reported by Bruno Haible.
63131
63132 2007-04-12  Simon Josefsson  <simon@josefsson.org>
63133
63134         * MODULES.html.sh (Support for maintaining and releasing
63135         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
63136
63137 2007-04-12  Simon Josefsson  <simon@josefsson.org>
63138
63139         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
63140
63141 2007-04-12  Simon Josefsson  <simon@josefsson.org>
63142
63143         * modules/autobuild: New module.
63144
63145         * m4/autobuild.m4: New file.
63146
63147 2007-04-11  Bruno Haible  <bruno@clisp.org>
63148
63149         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
63150         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
63151         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
63152         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
63153         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63154         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63155         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63156         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
63157         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63158         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63159         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
63160         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63161         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63162         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
63163         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63164         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63165         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
63166         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63167         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63168         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
63169         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63170         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63171         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
63172         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63173         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63174         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
63175         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63176         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63177         Reported by Eric Blake.
63178
63179 2007-04-11  Bruno Haible  <bruno@clisp.org>
63180
63181         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
63182
63183 2007-04-10  Bruno Haible  <bruno@clisp.org>
63184
63185         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
63186         for NaN and Infinity. Needed on FreeBSD 6.1.
63187         * tests/test-vasnprintf-posix.c (test_function): Undo last change
63188         regarding results for "%010a" of Infinity and NaN.
63189         * tests/test-vasprintf-posix.c (test_function): Likewise.
63190         * tests/test-snprintf-posix.h (test_function): Likewise.
63191         * tests/test-sprintf-posix.h (test_function): Likewise.
63192         * tests/test-fprintf-posix.h (test_function): Likewise.
63193         * tests/test-printf-posix.h (test_function): Likewise.
63194         * tests/test-fprintf-posix.out: Likewise.
63195
63196 2007-04-10  Bruno Haible  <bruno@clisp.org>
63197
63198         * modules/locale-tests: New file.
63199         * tests/test-locale.c: New file.
63200
63201         * modules/locale: New file.
63202         * lib/locale_.h: New file.
63203         * m4/locale_h.m4: New file.
63204
63205 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
63206             Bruno Haible  <bruno@clisp.org>
63207
63208         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
63209         be determined, test for availability of the copysignf, copysign,
63210         copysignl functions.
63211         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
63212         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
63213         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
63214
63215 2007-04-09  Eric Blake  <ebb9@byu.net>
63216
63217         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
63218         * modules/stdio (Makefile.am): Support fflush.
63219         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
63220         * modules/fflush: New file.
63221         * lib/fflush.c: Likewise.
63222         * m4/fflush.m4: Likewise.
63223         * modules/fflush-tests: New test.
63224         * tests/test-fflush.c: Likewise.
63225         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
63226
63227 2007-04-06  Bruno Haible  <bruno@clisp.org>
63228
63229         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
63230         (VASNPRINTF): Use signbit for faster determination whether to print a
63231         minus sign.
63232         * modules/vasnprintf (Files): Remove lib/float+.h.
63233         * modules/fprintf-posix (Depends-on): Add signbit.
63234         * modules/snprintf-posix (Depends-on): Likewise.
63235         * modules/sprintf-posix (Depends-on): Likewise.
63236         * modules/vasnprintf-posix (Depends-on): Likewise.
63237         * modules/vasprintf-posix (Depends-on): Likewise.
63238         * modules/vfprintf-posix (Depends-on): Likewise.
63239         * modules/vsnprintf-posix (Depends-on): Likewise.
63240         * modules/vsprintf-posix (Depends-on): Likewise.
63241
63242 2007-04-06  Bruno Haible  <bruno@clisp.org>
63243
63244         * tests/test-frexp.c (main): Test also the sign bit of zero results.
63245         * tests/test-frexpl.c (main): Likewise.
63246         * tests/test-ldexpl.c (main): Likewise.
63247         * modules/frexp-tests (Depends-on): Add signbit.
63248         * modules/frexpl-tests (Depdends-on): Likewise.
63249         * modules/ldexpl-tests (Depdends-on): Likewise.
63250
63251 2007-04-06  Bruno Haible  <bruno@clisp.org>
63252
63253         * modules/signbit-tests: New file.
63254         * tests/test-signbit.c: New file.
63255
63256         * modules/signbit: New file.
63257         * lib/signbitf.c: New file.
63258         * lib/signbitd.c: New file.
63259         * lib/signbitl.c: New file.
63260         * m4/signbit.m4: New file.
63261         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
63262         (signbit): New macro.
63263         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
63264         REPLACE_SIGNBIT.
63265         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
63266         REPLACE_FREXPL into math.h.
63267
63268 2007-04-06  Bruno Haible  <bruno@clisp.org>
63269
63270         * modules/isnanf-nolibm-tests: New file.
63271         * tests/test-isnanf.c: New file.
63272
63273         * modules/isnanf-nolibm: New file.
63274         * lib/isnanf.h: New file.
63275         * lib/isnanf.c: New file.
63276         * lib/isnan.c: Consider the USE_FLOAT macro.
63277         * m4/isnanf.m4: New file.
63278
63279 2007-04-06  Bruno Haible  <bruno@clisp.org>
63280
63281         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
63282         (Link): New section.
63283
63284         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
63285
63286 2007-04-06  Bruno Haible  <bruno@clisp.org>
63287
63288         Assume the 'long double' type.
63289         * m4/longdouble.m4: Remove file.
63290         * config/srclist.txt: Don't mention longdouble.m4.
63291         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
63292         * lib/float+.h: Likewise.
63293         * lib/frexp.c: Likewise.
63294         * lib/printf-args.h: Likewise.
63295         * lib/printf-args.c: Likewise.
63296         * lib/printf-frexp.c: Likewise.
63297         * lib/printf-parse.c: Likewise.
63298         * lib/vasnprintf.c: Likewise.
63299         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
63300         * m4/intl.m4: Likewise.
63301         * m4/isnanl.m4: Likewise.
63302         * m4/printf.m4: Likewise.
63303         * m4/printf-frexpl.m4: Likewise.
63304         * m4/vasnprintf.m4: Likewise.
63305         * modules/allocsa (Files): Remove m4/longdouble.m4.
63306         * modules/gettext (Files): Likewise.
63307         * modules/relocatable-prog-wrapper (Files): Likewise.
63308         * modules/vasnprintf (Files): Likewise.
63309         * modules/isnanl (Files): Likewise.
63310         (Include): Simplify.
63311         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
63312         (Include): Simplify.
63313         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
63314         (Include): Simplify.
63315         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
63316         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63317         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
63318         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63319         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
63320         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63321         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
63322         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63323         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
63324         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63325         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
63326         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63327         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
63328         * tests/test-isnanl.c: Likewise.
63329         * tests/test-snprintf-posix.h: Likewise.
63330         * tests/test-sprintf-posix.h: Likewise.
63331         * tests/test-vasnprintf-posix.c: Likewise.
63332         * tests/test-vasnprintf-posix2.c: Likewise.
63333         * tests/test-vasprintf-posix.c: Likewise.
63334
63335 2007-04-06  Bruno Haible  <bruno@clisp.org>
63336
63337         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
63338         * lib/math_.h [__DECC]: Include the overridden include file through
63339         #include_next, outside the double-inclusion guard.
63340         * lib/stdio_.h [__DECC]: Likewise.
63341         * lib/stdlib_.h [__DECC]: Likewise.
63342         * lib/string_.h [__DECC]: Likewise.
63343         * lib/time_.h [__DECC]: Likewise.
63344         * lib/wchar_.h [__DECC]: Likewise.
63345         * lib/wctype_.h [__DECC]: Likewise.
63346         * lib/inttypes_.h [__DECC]: Likewise.
63347         Reported by Albert Chin <china@thewrittenword.com> in
63348         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
63349
63350 2007-04-04  Eric Blake  <ebb9@byu.net>
63351
63352         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
63353         1.5.x.
63354
63355 2007-04-04  Bruno Haible  <bruno@clisp.org>
63356
63357         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
63358         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
63359
63360 2007-04-04  Bruno Haible  <bruno@clisp.org>
63361
63362         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
63363         results for "%010a" of Infinity and NaN.
63364         * tests/test-vasprintf-posix.c (test_function): Likewise.
63365         * tests/test-snprintf-posix.h (test_function): Likewise.
63366         * tests/test-sprintf-posix.h (test_function): Likewise.
63367         * tests/test-fprintf-posix.h (test_function): Remove these tests.
63368         * tests/test-printf-posix.h (test_function): Likewise.
63369         * tests/test-fprintf-posix.out: Update.
63370         Needed for FreeBSD 6.1.
63371
63372 2007-04-04  Bruno Haible  <bruno@clisp.org>
63373
63374         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
63375         directly used by the gnulib modules nor by gnulib-tool.
63376
63377 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
63378
63379         * DEPENDENCIES: Give overall description of version dependency
63380         desirability.  Use more-typical names for apps.
63381         Add shell, coreutils, diffutils, grep, tar, gzip.
63382
63383 2007-04-04  Simon Josefsson  <simon@josefsson.org>
63384
63385         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
63386
63387 2007-04-04  Karl Berry  <karl@gnu.org>
63388
63389         * MODULES.html.sh (func_module): missing '.
63390
63391 2007-04-03  Bruno Haible  <bruno@clisp.org>
63392
63393         * modules/argmatch-tests (Makefile.am): New variable
63394         test_argmatch_LDADD.
63395         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
63396         * modules/array-list-tests (Makefile.am): New variable
63397         test_array_list_LDADD.
63398         * modules/array-oset-tests (Makefile.am): New variable
63399         test_array_oset_LDADD.
63400         * modules/avltree-list-tests (Makefile.am): New variable
63401         test_avltree_list_LDADD.
63402         * modules/avltree-oset-tests (Makefile.am): New variable
63403         test_avltree_oset_LDADD.
63404         * modules/avltreehash-list-tests (Makefile.am): New variable
63405         test_avltreehash_list_LDADD.
63406         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
63407         test_canonicalize_lgpl_LDADD.
63408         * modules/carray-list-tests (Makefile.am): New variable
63409         test_carray_list_LDADD.
63410         * modules/dirname-tests (Makefile.am): New variable
63411         test_dirname_LDADD.
63412         * modules/linked-list-tests (Makefile.am): New variable
63413         test_linked_list_LDADD.
63414         * modules/linkedhash-list-tests (Makefile.am): New variable
63415         test_linkedhash_list_LDADD.
63416         * modules/rbtree-list-tests (Makefile.am): New variable
63417         test_rbtree_list_LDADD.
63418         * modules/rbtree-oset-tests (Makefile.am): New variable
63419         test_rbtree_oset_LDADD.
63420         * modules/rbtreehash-list-tests (Makefile.am): New variable
63421         test_rbtreehash_list_LDADD.
63422         * modules/xvasprintf-tests (Makefile.am): New variable
63423         test_xvasprintf_LDADD.
63424         Reported by Eric Blake.
63425
63426 2007-04-03  Eric Blake  <ebb9@byu.net>
63427
63428         * DEPENDENCIES: Weaken m4 requirements.
63429
63430 2007-04-03  Bruno Haible  <bruno@clisp.org>
63431
63432         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
63433         * modules/isnanl-tests (configure.ac): Likewise.
63434
63435 2007-04-03  Ben Pfaff  <blp@gnu.org>
63436
63437         * modules/iconv_open: Add $(srcdir)/ to source directory
63438         references in Makefile fragments that call gperf, to fix VPATH
63439         builds.
63440
63441 2007-04-03  Bruno Haible  <bruno@clisp.org>
63442
63443         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
63444         * lib/ldexpl.c: Undo last change.
63445
63446 2007-04-03  Bruno Haible  <bruno@clisp.org>
63447
63448         * modules/printf-frexpl (Depends-on): Undo last change.
63449         (Files): Add m4/ldexpl.m4.
63450
63451 2007-04-03  Bruno Haible  <bruno@clisp.org>
63452
63453         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
63454         * modules/isnanl (Link): New section.
63455
63456         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
63457         * modules/frexp (Link): New section.
63458
63459         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
63460         * modules/frexpl (Link): New section.
63461
63462         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
63463         * modules/ldexpl (Link): New section.
63464
63465 2007-04-03  Bruno Haible  <bruno@clisp.org>
63466
63467         * modules/TEMPLATE-EXTENDED: New file.
63468         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
63469
63470 2007-04-03  Bruno Haible  <bruno@clisp.org>
63471
63472         * DEPENDENCIES: New file.
63473         Suggested by Simon Josefsson.
63474
63475 2007-04-03  Bruno Haible  <bruno@clisp.org>
63476
63477         * doc/gnulib.texi: Escape @.
63478
63479 2007-04-03  James Youngman  <jay@gnu.org>
63480         and Paul Eggert  <eggert@cs.ucla.edu>
63481
63482         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
63483         birthtime on all systems that have birthtime, not just those which
63484         use st_birthtimensec rather than st_birthtim.  Putting zero in
63485         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
63486         that the birth time is not available for files on an NFS mount.
63487
63488 2007-04-03  Simon Josefsson  <simon@josefsson.org>
63489
63490         * modules/memxor: Move back from crypto/, suggested by Bruno.
63491         * modules/crypto/hmac-sha1: Fix memxor dependency.
63492
63493         * modules/crypto/gc: Moved from ../.
63494
63495 2007-04-02  Eric Blake  <ebb9@byu.net>
63496
63497         * lib/ldexpl.c (includes): Avoid libm.
63498
63499         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
63500
63501 2007-04-02  Bruno Haible  <bruno@clisp.org>
63502
63503         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
63504         on IRIX.
63505
63506 2007-04-02  Bruno Haible  <bruno@clisp.org>
63507
63508         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
63509         x86 or x86_64 platforms running MacOS X.
63510         Reported by Ryan Schmidt <@ryandesign.com>.
63511
63512 2007-04-02  Bruno Haible  <bruno@clisp.org>
63513
63514         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
63515         i386.
63516
63517 2007-04-01  Simon Josefsson  <simon@josefsson.org>
63518
63519         * modules/crypto/arcfour: Moved from ../.
63520         * modules/crypto/arcfour-tests: Moved from ../.
63521         * modules/crypto/arctwo: Moved from ../.
63522         * modules/crypto/arctwo-tests: Moved from ../.
63523         * modules/crypto/des: Moved from ../.
63524         * modules/crypto/des-tests: Moved from ../.
63525         * modules/crypto/gc-arcfour: Moved from ../.
63526         * modules/crypto/gc-arcfour-tests: Moved from ../.
63527         * modules/crypto/gc-arctwo: Moved from ../.
63528         * modules/crypto/gc-arctwo-tests: Moved from ../.
63529         * modules/crypto/gc-des: Moved from ../.
63530         * modules/crypto/gc-des-tests: Moved from ../.
63531         * modules/crypto/gc-hmac-md5: Moved from ../.
63532         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
63533         * modules/crypto/gc-hmac-sha1: Moved from ../.
63534         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
63535         * modules/crypto/gc-md2: Moved from ../.
63536         * modules/crypto/gc-md2-tests: Moved from ../.
63537         * modules/crypto/gc-md4: Moved from ../.
63538         * modules/crypto/gc-md4-tests: Moved from ../.
63539         * modules/crypto/gc-md5: Moved from ../.
63540         * modules/crypto/gc-md5-tests: Moved from ../.
63541         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
63542         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
63543         * modules/crypto/gc-random: Moved from ../.
63544         * modules/crypto/gc-rijndael: Moved from ../.
63545         * modules/crypto/gc-rijndael-tests: Moved from ../.
63546         * modules/crypto/gc-sha1: Moved from ../.
63547         * modules/crypto/gc-sha1-tests: Moved from ../.
63548         * modules/crypto/gc-tests: Moved from ../.
63549         * modules/crypto/hmac-md5: Moved from ../.
63550         * modules/crypto/hmac-md5-tests: Moved from ../.
63551         * modules/crypto/hmac-sha1: Moved from ../.
63552         * modules/crypto/hmac-sha1-tests: Moved from ../.
63553         * modules/crypto/md2: Moved from ../.
63554         * modules/crypto/md2-tests: Moved from ../.
63555         * modules/crypto/md4: Moved from ../.
63556         * modules/crypto/md4-tests: Moved from ../.
63557         * modules/crypto/md5: Moved from ../.
63558         * modules/crypto/md5-tests: Moved from ../.
63559         * modules/crypto/memxor: Moved from ../.
63560         * modules/crypto/rijndael: Moved from ../.
63561         * modules/crypto/rijndael-tests: Moved from ../.
63562         * modules/crypto/sha1: Moved from ../.
63563
63564 2007-03-30  James Youngman  <jay@gnu.org>
63565
63566         * tests/test-stat-time.c (prepare_test): use chmod() rather than
63567         rename() to change the ctime of a file (because ctime is unaffected
63568         by rename on jfs2 on AIX 5.1).
63569         (main): Start by doing cleanup, in case a previous run failed leaving
63570         test files behind.
63571
63572 2007-03-31  Bruno Haible  <bruno@clisp.org>
63573
63574         Support old proprietary implementations of iconv.
63575         * modules/iconv_open: New file.
63576         * lib/iconv_.h: New file.
63577         * m4/iconv_h.m4: New file.
63578         * lib/iconv_open.c: New file.
63579         * lib/iconv_open-aix.gperf: New file.
63580         * lib/iconv_open-hpux.gperf: New file.
63581         * lib/iconv_open-irix.gperf: New file.
63582         * lib/iconv_open-osf.gperf: New file.
63583         * m4/iconv_open.m4: New file.
63584         * modules/linebreak (Depends-on): Add iconv_open.
63585         * modules/striconv (Depends-on): Likewise.
63586         * modules/striconveh (Depends-on): Likewise.
63587         * modules/unicodeio (Depends-on): Likewise.
63588         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
63589         (iconv_t)(-1).
63590         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
63591         conversion if cd is (iconv_t)(-1).
63592         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
63593         is not possible.
63594
63595 2007-03-31  Bruno Haible  <bruno@clisp.org>
63596
63597         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
63598         work on Solaris either. Protect also second use of "autodetect_jp".
63599
63600 2007-03-31  Bruno Haible  <bruno@clisp.org>
63601
63602         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
63603         the function is not present.
63604
63605 2007-03-31  Bruno Haible  <bruno@clisp.org>
63606
63607         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
63608         the function is not present.
63609
63610 2007-03-31  Bruno Haible  <bruno@clisp.org>
63611
63612         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
63613         a bug in HP-UX iconv_open().
63614
63615 2007-03-31  Bruno Haible  <bruno@clisp.org>
63616
63617         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
63618         (Mathematics <math.h>): New section, add fpieee.
63619         (Input/output <stdio.h>): Add fseterr.
63620         (Mathematics <math.h>): New section, add printf-frexp.
63621         (Container data structures): Add sublist.
63622         (Core language properties): Add fpucw, inline.
63623         (Functions for greatest-width integer types <inttypes.h>): Add
63624         imaxabs, imaxdiv, inttypes.
63625         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
63626         isnanl-nolibm, ldexp.
63627         (Mathematics <math.h>): New section, add printf-frexpl.
63628         (Support for systems lacking POSIX:2001): Add fprintf-posix,
63629         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
63630         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
63631         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
63632         (Unicode string functions): Add unistr/u*-mbtoucr.
63633         (Java): Add javacomp-script, javaexec-script.
63634         (C#): Add csharpcomp-script, csharpexec-script.
63635         (Support for building libraries and executables): Add havelib,
63636         relocatable-*.
63637         (Support for maintaining and releasing projects): Renamed from
63638         'Support for maintaining and release projects'. Add announce-gen.
63639
63640 2007-03-31  Bruno Haible  <bruno@clisp.org>
63641
63642         * README: Talk primarily about git.
63643         (git and CVS): Renamed from CVS.
63644         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
63645         gnulib is available through git.
63646         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
63647
63648 2007-03-30  Bruno Haible  <bruno@clisp.org>
63649
63650         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
63651         * lib/poll_.h: Likewise.
63652         * lib/stat_.h: Likewise.
63653         * lib/sys_time_.h: Likewise.
63654         * lib/sysexit_.h: Likewise.
63655         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
63656         * lib/stdbool_.h: Likewise.
63657         * lib/byteswap_.h: Add double-inclusion guard.
63658
63659 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
63660
63661         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
63662
63663 2007-03-30  Karl Berry  <karl@gnu.org>
63664
63665         * config/srclist-update: double space after USA in the license
63666         substitution, since that's how it's usually (?) written.
63667
63668 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
63669
63670         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
63671         reported by Bruno Haible.
63672
63673 2007-03-29  Bruno Haible  <bruno@clisp.org>
63674
63675         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
63676         a bug in AIX iconv().
63677
63678 2007-03-29  Bruno Haible  <bruno@clisp.org>
63679
63680         * modules/ldexpl-tests: New file.
63681         * tests/test-ldexpl.c: New file.
63682
63683 2007-03-29  Bruno Haible  <bruno@clisp.org>
63684
63685         * lib/ldexpl.c: Include fpucw.h.
63686         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
63687         multiplication.
63688         * modules/ldexpl (Depends-on): Add fpucw.
63689
63690 2007-03-29  Bruno Haible  <bruno@clisp.org>
63691
63692         * modules/ldexpl: New file.
63693         * m4/ldexpl.m4: New file.
63694         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
63695         set.
63696         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
63697         REPLACE_LDEXPL.
63698         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
63699         REPLACE_LDEXPL.
63700         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
63701         gl_FUNC_LDEXPL_WORKS.
63702         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
63703         * modules/mathl (Files): Remove lib/ldexpl.c.
63704         (Depends-on): Add ldexpl.
63705
63706 2007-03-29  Bruno Haible  <bruno@clisp.org>
63707
63708         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
63709
63710 2007-03-29  Bruno Haible  <bruno@clisp.org>
63711
63712         * tests/test-striconveh.c (main): Don't assume that a direct conversion
63713         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
63714         and possibly also HP-UX.
63715         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
63716         work on AIX, IRIX, HP-UX, OSF/1.
63717         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
63718         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
63719         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
63720         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
63721         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
63722         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
63723
63724 2007-03-29  Bruno Haible  <bruno@clisp.org>
63725
63726         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
63727
63728 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
63729
63730         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
63731         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
63732
63733 2007-03-29  Eric Blake  <ebb9@byu.net>
63734
63735         * lib/acl-internal.h: Remove redundant include.
63736         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
63737         Cygwin when a file is locked.
63738
63739 2007-03-29  Bruno Haible  <bruno@clisp.org>
63740
63741         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
63742         file.
63743         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
63744
63745 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
63746
63747         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
63748         try to remove a parent directory if the child couldn't be removed
63749         (except for the first rmdir, which could fail because the child
63750         doesn't exist).  Problem reported by Jeff Blaine in
63751         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
63752
63753 2007-03-28  Bruno Haible  <bruno@clisp.org>
63754
63755         * lib/striconveh.c (utf8conv_carefully): New function.
63756         (mem_cd_iconveh_internal): Invoke it.
63757
63758 2007-03-28  Bruno Haible  <bruno@clisp.org>
63759
63760         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
63761         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
63762         input.
63763         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
63764         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
63765         unistr/u8-uctomb.
63766
63767 2007-03-28  Bruno Haible  <bruno@clisp.org>
63768
63769         * modules/unistr/u8-mbtoucr: New file.
63770         * lib/unistr/u8-mbtoucr.c: New file.
63771         * modules/unistr/u16-mbtoucr: New file.
63772         * lib/unistr/u16-mbtoucr.c: New file.
63773         * modules/unistr/u16-mbtoucr: New file.
63774         * lib/unistr/u16-mbtoucr.c: New file.
63775         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
63776
63777 2007-03-27  Simon Josefsson  <simon@josefsson.org>
63778             Bruno Haible  <bruno@clisp.org>
63779
63780         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
63781         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
63782         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
63783
63784         * m4/stdio_h.m4: Add stubs for vasprintf too.
63785
63786         * modules/stdio: Support vasprintf in sed command.
63787
63788         * modules/vasprintf: Depend on stdio for prototypes.  Remove
63789         vasprintf.h.  Add stdio module indicator.
63790
63791         * lib/stdio_.h: Declare asprintf and vasprintf, based on
63792         vasprintf.h.
63793
63794         * lib/vasprintf.h: File removed.
63795
63796         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
63797         * lib/vasprintf.c: Ditto.
63798         * lib/xvasprintf.c: Ditto.
63799         * tests/test-vasprintf-posix.c: Ditto.
63800         * tests/test-vasprintf.c: Ditto.
63801
63802 2007-03-27  Bruno Haible  <bruno@clisp.org>
63803
63804         Make vasnprintf multithread-safe.
63805         * lib/vasnprintf.c (decimal_point_char): New function.
63806         (VASNPRINTF): Use it.
63807         Suggested by Simon Josefsson.
63808
63809 2007-03-27  Eric Blake  <ebb9@byu.net>
63810
63811         Support sub-second birthtime on cygwin.
63812         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
63813         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
63814         (get_stat_birthtime): Also work with st_birthtim.
63815
63816 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
63817
63818         * lib/stat-time.h (USE_BIRTHTIME): Remove.
63819         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
63820         (get_stat_birthtime_ns): Do not try to use "spare" fields.
63821         (get_stat_birthtime_ns): Simplify compile-time tests.
63822         (get_stat_birthtime): Change the API to look like
63823         get_stat_mtime etc., except return a negative tv_nsec on error.
63824         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
63825         Don't check for "spare" fields.
63826         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
63827         or for struct stat.st_birthtime, as these tests aren't used.
63828         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
63829
63830 2007-03-27  Bruno Haible  <bruno@clisp.org>
63831
63832         * lib/stat-time.h: Include <sys/stat.h>.
63833
63834 2007-03-27  James Youngman  <jay@gnu.org>
63835
63836         * lib/stat-time.h (get_stat_birthtime): New function for
63837           retrieving st_birthtime as provided by UFS2 (hence *BSD).
63838         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
63839           and its variants.
63840         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
63841         * modules/stat-time-test: New file.
63842         * tests/test-stat-time.c: New test, devised by Bruno Haible.
63843
63844 2007-03-26  Bruno Haible  <bruno@clisp.org>
63845
63846         Better support of signalling NaNs.
63847         * lib/atanl.c: Include isnanl.h.
63848         (atanl): Perform test for NaN at the beginning of the function and
63849         through a call to isnanl.
63850         * lib/cosl.c: Include isnanl.h.
63851         (cosl): Perform test for NaN at the beginning of the function and
63852         through a call to isnanl.
63853         * lib/ldexpl.c: Include isnanl.h.
63854         (ldexpl): Perform test for NaN through a call to isnanl.
63855         * lib/logl.c: Include isnanl.h.
63856         (logl): Perform test for NaN at the beginning of the function and
63857         through a call to isnanl.
63858         * lib/sinl.c: Include isnanl.h.
63859         (sinl): Perform test for NaN at the beginning of the function and
63860         through a call to isnanl.
63861         * lib/sqrtl.c: Include isnanl.h.
63862         (sqrtl): Perform test for NaN at the beginning of the function and
63863         through a call to isnanl.
63864         * lib/tanl.c: Include isnanl.h.
63865         (tanl): Perform test for NaN at the beginning of the function and
63866         through a call to isnanl.
63867         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
63868         * modules/mathl (Depends-on): Add isnanl.
63869
63870 2007-03-26  Eric Blake  <ebb9@byu.net>
63871
63872         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
63873         regression in logic sense of previous patch.
63874
63875 2007-03-26  Bruno Haible  <bruno@clisp.org>
63876
63877         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
63878         unportable shell command "if ! ...".
63879         Reported by Ralf Wildenhues.
63880
63881 2007-03-25  Bruno Haible  <bruno@clisp.org>
63882
63883         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
63884         <sysexits.h> file, and only add EX_CONFIG.
63885         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
63886         absolute file name and whether it is sufficient. Substitute also
63887         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
63888         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
63889         ABSOLUTE_SYSEXITS_H into sysexits.h.
63890
63891 2007-03-25  Bruno Haible  <bruno@clisp.org>
63892
63893         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
63894         hints is NULL.
63895
63896 2007-03-25  Bruno Haible  <bruno@clisp.org>
63897
63898         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
63899         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
63900
63901 2007-03-25  Bruno Haible  <bruno@clisp.org>
63902
63903         * lib/vasnprintf.c: Include langinfo.h.
63904         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
63905         multithread-safe.
63906         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
63907         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
63908         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63909         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63910         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63911         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63912         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63913         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
63914         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63915         Reported by Simon Josefsson.
63916
63917 2007-03-25  Bruno Haible  <bruno@clisp.org>
63918
63919         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
63920         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
63921         * modules/vasnprintf (Depends-on): Add stdint.
63922
63923 2007-03-25  Bruno Haible  <bruno@clisp.org>
63924
63925         * modules/fpieee: New file.
63926         * m4/fpieee.m4: New file.
63927         * modules/isnan-nolibm (Depends-on): Add fpieee.
63928         * modules/isnanl-nolibm (Depends-on): Add fpieee.
63929         * modules/isnanl (Depends-on): Add fpieee.
63930
63931 2007-03-25  Bruno Haible  <bruno@clisp.org>
63932
63933         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
63934
63935 2007-03-25  Bruno Haible  <bruno@clisp.org>
63936
63937         Avoid test failures on IRIX 6.5.
63938         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
63939         (main): Use it.
63940         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
63941         macros.
63942         (main): Use them.
63943
63944 2007-03-25  Bruno Haible  <bruno@clisp.org>
63945
63946         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
63947         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
63948         exists but doesn't work.
63949         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
63950         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
63951         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
63952         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
63953         math.h.
63954
63955 2007-03-25  Bruno Haible  <bruno@clisp.org>
63956
63957         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
63958         returns inf. Needed on IRIX 6.5.
63959
63960 2007-03-25  Bruno Haible  <bruno@clisp.org>
63961
63962         * tests/test-frexpl.c: Include isnanl-nolibm.h.
63963         (main): Use isnanl instead of x != x idiom.
63964         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
63965
63966         * tests/test-frexp.c: Include isnan.h.
63967         (main): Use isnan instead of x != x idiom.
63968         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
63969
63970 2007-03-25  Bruno Haible  <bruno@clisp.org>
63971
63972         * tests/test-frexp.c (NaN): New function/macro.
63973         (main): Use it instead of 0.0 / 0.0.
63974         * tests/test-isnan.c (NaN): New function/macro.
63975         (main): Use it instead of 0.0 / 0.0.
63976         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
63977         (test_function): Use it instead of 0.0 / 0.0.
63978         * tests/test-vasprintf-posix.c (NaN): New function/macro.
63979         (test_function): Use it instead of 0.0 / 0.0.
63980         * tests/test-snprintf-posix.h (NaN): New function/macro.
63981         (test_function): Use it instead of 0.0 / 0.0.
63982         * tests/test-sprintf-posix.h (NaN): New function/macro.
63983         (test_function): Use it instead of 0.0 / 0.0.
63984         * tests/test-fprintf-posix.h (NaN): New function/macro.
63985         (test_function): Use it instead of 0.0 / 0.0.
63986         * tests/test-printf-posix.h (NaN): New function/macro.
63987         (test_function): Use it instead of 0.0 / 0.0.
63988
63989         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
63990
63991 2007-03-25  Bruno Haible  <bruno@clisp.org>
63992
63993         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
63994
63995 2007-03-25  Bruno Haible  <bruno@clisp.org>
63996
63997         * lib/regexec.c (merge_state_with_log): Make static.
63998
63999 2007-03-25  Bruno Haible  <bruno@clisp.org>
64000
64001         * lib/trigl.c (kernel_rem_pio2): Make static.
64002
64003 2007-03-25  Bruno Haible  <bruno@clisp.org>
64004
64005         * lib/sincosl.c (sincosl_table): Make static.
64006
64007 2007-03-25  Bruno Haible  <bruno@clisp.org>
64008
64009         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
64010         if the compiler does not support C99.
64011
64012 2007-03-25  Bruno Haible  <bruno@clisp.org>
64013
64014         * modules/time (Makefile.am): Ensure all rule action lines start with a
64015         tab.
64016
64017 2007-03-24  Bruno Haible  <bruno@clisp.org>
64018
64019         * modules/tsearch-tests: New file.
64020         * tests/test-tsearch.sh: New file.
64021         * tests/test-tsearch.c: New file, mostly copied from glibc.
64022
64023         * modules/search-tests: New file.
64024         * tests/test-search.c: New file.
64025
64026         * modules/search: New file.
64027         * lib/search_.h: New file, incorporating lib/tsearch.h.
64028         * m4/search_h.m4: New file.
64029         * lib/tsearch.h: Remove file.
64030         * lib/tsearch.c: Include search.h instead of tsearch.h.
64031         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
64032         HAVE_TSEARCH.
64033         * modules/tsearch (Files): Remove lib/tsearch.h.
64034         (Depends-on): Add search.
64035         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
64036         (Include): Change tsearch.h into search.h.
64037
64038 2007-03-24  Bruno Haible  <bruno@clisp.org>
64039
64040         * modules/fpucw: New file.
64041         * lib/fpucw.h: New file.
64042         * lib/frexp.c: Include fpucw.h.
64043         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
64044         (FUNC): Use them.
64045         * lib/printf-frexp.c: Include fpucw.h.
64046         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
64047         (FUNC): Use them.
64048         * lib/vasnprintf.c: Include fpucw.h.
64049         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
64050         'long double' calculations.
64051         * tests/test-frexpl.c: Include fpucw.h.
64052         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
64053         * tests/test-printf-frexpl.c: Include fpucw.h.
64054         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
64055         * modules/frexpl (Depends-on): Add fpucw.
64056         * modules/printf-frexpl (Depends-on): Likewise.
64057         * modules/fprintf-posix (Depends-on): Likewise.
64058         * modules/snprintf-posix (Depends-on): Likewise.
64059         * modules/sprintf-posix (Depends-on): Likewise.
64060         * modules/vasnprintf-posix (Depends-on): Likewise.
64061         * modules/vasprintf-posix (Depends-on): Likewise.
64062         * modules/vfprintf-posix (Depends-on): Likewise.
64063         * modules/vsnprintf-posix (Depends-on): Likewise.
64064         * modules/vsprintf-posix (Depends-on): Likewise.
64065         * modules/frexpl-tests (Depends-on): Likewise.
64066         * modules/printf-frexpl-tests (Depends-on): Likewise.
64067
64068 2007-03-24  Bruno Haible  <bruno@clisp.org>
64069
64070         * lib/float+.h: New file.
64071         * lib/isnan.c: Include float+.h.
64072         (SIZE): New macro.
64073         (FUNC): Compare only SIZE bytes of the value.
64074         * lib/vasnprintf.c: Include float+.h.
64075         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
64076         SIZEOF_LDBL or SIZEOF_DBL bytes.
64077         * modules/isnan-nolibm (Files): Add lib/float+.h.
64078         * modules/isnanl-nolibm (Files): Add lib/float+.h.
64079         * modules/isnanl (Files): Add lib/float+.h.
64080         * modules/vasnprintf (Files): Add lib/float+.h.
64081
64082 2007-03-24  Bruno Haible  <bruno@clisp.org>
64083
64084         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
64085         include isnanl-nolibm.h.
64086
64087 2007-03-24  Bruno Haible  <bruno@clisp.org>
64088
64089         * tests/test-read-file.c (main): Don't produce spurious output for
64090         expected situations. Make the test fail if it encountered unexpected
64091         results.
64092
64093 2007-03-24  Bruno Haible  <bruno@clisp.org>
64094
64095         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
64096         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
64097
64098 2007-03-24  Bruno Haible  <bruno@clisp.org>
64099
64100         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
64101
64102 2007-03-24  Bruno Haible  <bruno@clisp.org>
64103
64104         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
64105         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
64106
64107         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
64108         * modules/utf8-ucs4: Turn into a symbolic link to module
64109         unistr/u8-mbtouc.
64110
64111         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
64112         utf8-ucs4-unsafe.
64113         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
64114         unistr/u8-mbtouc-unsafe.
64115
64116         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
64117         * modules/utf16-ucs4: Turn into a symbolic link to module
64118         unistr/u16-mbtouc.
64119
64120         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
64121         utf16-ucs4-unsafe.
64122         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
64123         unistr/u16-mbtouc-unsafe.
64124
64125         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
64126         * modules/ucs4-utf8: Turn into a symbolic link to module
64127         unistr/u8-ubtomb.
64128
64129         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
64130         * modules/ucs4-utf16: Turn into a symbolic link to module
64131         unistr/u16-ubtomb.
64132
64133 2007-03-24  Bruno Haible  <bruno@clisp.org>
64134
64135         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
64136         Enable the function only if HAVE_INLINE.
64137         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
64138         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
64139         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
64140         Enable the function only if HAVE_INLINE.
64141         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
64142         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
64143         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
64144         Enable the function only if HAVE_INLINE.
64145         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
64146         Enable the function only if HAVE_INLINE.
64147         * modules/utf8-ucs4: Update.
64148         * modules/utf8-ucs4-unsafe: Update.
64149         * modules/utf16-ucs4: Update.
64150         * modules/utf16-ucs4-unsafe: Update.
64151         * modules/ucs4-utf8: Update.
64152         * modules/ucs4-utf16: Update.
64153
64154 2007-03-24  Bruno Haible  <bruno@clisp.org>
64155
64156         * lib/utf8-ucs4.h: Remove file.
64157         * lib/utf8-ucs4-unsafe.h: Remove file.
64158         * lib/utf16-ucs4.h: Remove file.
64159         * lib/utf16-ucs4-unsafe.h: Remove file.
64160         * lib/ucs4-utf8.h: Remove file.
64161         * lib/ucs4-utf16.h: Remove file.
64162         * lib/unistr.h: Include their previous contents.
64163         * m4/utf-ucs4.m4: Remove file.
64164         * m4/ucs4-utf.m4: Remove file.
64165         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
64166         (Depends-on): Add unistr/base.
64167         (configure.ac): Remove gl_UTF_UCS4.
64168         (Makefile.am): Update.
64169         (Include): Change to unistr.h.
64170         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
64171         (Depends-on): Add unistr/base.
64172         (configure.ac): Remove gl_UTF_UCS4.
64173         (Makefile.am): Update.
64174         (Include): Change to unistr.h.
64175         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
64176         (Depends-on): Add unistr/base.
64177         (configure.ac): Remove gl_UTF_UCS4.
64178         (Makefile.am): Update.
64179         (Include): Change to unistr.h.
64180         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
64181         (Depends-on): Add unistr/base.
64182         (configure.ac): Remove gl_UTF_UCS4.
64183         (Makefile.am): Update.
64184         (Include): Change to unistr.h.
64185         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
64186         (Depends-on): Add unistr/base.
64187         (configure.ac): Remove gl_UCS4_UTF.
64188         (Makefile.am): Update.
64189         (Include): Change to unistr.h.
64190         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
64191         (Depends-on): Add unistr/base.
64192         (configure.ac): Remove gl_UCS4_UTF.
64193         (Makefile.am): Update.
64194         (Include): Change to unistr.h.
64195         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
64196         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
64197         utf8-ucs4-unsafe.h.
64198         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
64199         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
64200         utf16-ucs4-unsafe.h.
64201         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
64202         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
64203         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
64204         * lib/unistr/u8-strchr.c: Likewise.
64205         * lib/unistr/u8-strrchr.c: Likewise.
64206         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
64207         * lib/unistr/u16-strchr.c: Likewise.
64208         * lib/unistr/u16-strrchr.c: Likewise.
64209         * lib/striconveh.c: Update.
64210         * lib/linebreak.c: Update.
64211
64212 2007-03-24  Bruno Haible  <bruno@clisp.org>
64213
64214         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
64215         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
64216
64217 2007-03-22  Bruno Haible  <bruno@clisp.org>
64218
64219         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
64220
64221 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
64222
64223         * MODULES.html.sh (File system functions): New module write-any-file.
64224         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
64225         * m4/write-any-file.m4: New files.
64226
64227 2007-03-23  Eric Blake  <ebb9@byu.net>
64228
64229         * gnulib-tool: Rearrange space-tab sequences, since some editors
64230         like to eat them.
64231
64232 2007-03-23  Eric Blake  <ebb9@byu.net>
64233
64234         * lib/version-etc.c (version_etc_va): Update license wording to
64235         be more concise.  Recommended by Richard Stallman.
64236
64237 2007-03-22  Bruno Haible  <bruno@clisp.org>
64238
64239         * lib/poll.c (MSG_PEEK): New fallback definition.
64240
64241 2007-03-22  Bruno Haible  <bruno@clisp.org>
64242
64243         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
64244         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
64245         (main): Update.
64246         Fixes a compilation error on BeOS.
64247
64248 2007-03-22  Bruno Haible  <bruno@clisp.org>
64249
64250         * modules/frexpl-tests: New file.
64251         * tests/test-frexpl.c: New file.
64252
64253         * modules/frexpl: New file.
64254         * m4/frexpl.m4: New file.
64255         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
64256         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
64257         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
64258         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
64259         (Depends-on): Add frexpl. Remove isnanl-nolibm.
64260         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
64261
64262 2007-03-22  Bruno Haible  <bruno@clisp.org>
64263
64264         * lib/frexpl.c: Share code with lib/frexp.c.
64265         * modules/mathl (Files): Add lib/frexp.c.
64266         (Depends-on): Add isnanl-nolibm.
64267
64268 2007-03-22  Bruno Haible  <bruno@clisp.org>
64269
64270         * modules/printf-frexp (Files): Add m4/frexp.m4.
64271         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
64272         only if the found frexp function actually works.
64273
64274 2007-03-22  Bruno Haible  <bruno@clisp.org>
64275
64276         * lib/frexp.c: Remove older implementation that uses divisions.
64277
64278 2007-03-21  Bruno Haible  <bruno@clisp.org>
64279
64280         * modules/frexp-tests: New file.
64281         * tests/test-frexp.c: New file.
64282
64283         * modules/frexp: New file.
64284         * lib/frexp.c: New file.
64285         * m4/frexp.m4: New file.
64286         * lib/math_.h (frexp): New declaration.
64287         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
64288         REPLACE_FREXP.
64289         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
64290
64291 2007-03-21  Bruno Haible  <bruno@clisp.org>
64292
64293         * modules/isnanl-tests: New file.
64294         * tests/test-isnanl.c: New file.
64295
64296         * modules/isnanl: New file.
64297         * lib/isnanl.h: New file.
64298         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
64299         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
64300         gl_FUNC_ISNANL_WORKS.
64301         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
64302         New macros.
64303
64304 2007-03-21  Bruno Haible  <bruno@clisp.org>
64305
64306         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
64307         lib/isnanl.h.
64308         (Include): Update.
64309         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
64310         * lib/vasnprintf.c: Update.
64311         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
64312         tests/test-isnanl.h, remove tests/test-isnanl.c.
64313         (Makefile.am): Update.
64314         * tests/test-isnanl-nolibm.c: New file.
64315         * tests/test-isnanl.h: New file.
64316         * tests/test-isnanl.c: Remove file.
64317
64318 2007-03-21  Jim Meyering  <jim@meyering.net>
64319
64320         When trying to open ".", treat ESTALE like EACCES.
64321         * lib/savewd.c (savewd_save): Resort to forking not just upon
64322         failure with EACCES, but also when errno is ESTALE.
64323
64324 2007-03-20  Bruno Haible  <bruno@clisp.org>
64325
64326         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
64327         Needed on AIX 5.1. Reported by Matthew Woehlke.
64328
64329 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
64330
64331         Suggestions by Bruno Haible:
64332         * lib/acl-internal.h: Include "gettext.h" rather than rolling
64333         our own.
64334         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
64335         * modules/acl (Depends-on): Add gettext.
64336
64337 2007-03-19  Bruno Haible  <bruno@clisp.org>
64338
64339         * modules/iconvme: Remove file.
64340         * lib/iconvme.h: Remove file.
64341         * lib/iconvme.c: Remove file.
64342         * m4/iconvme.m4: Remove file.
64343
64344 2007-03-19  Bruno Haible  <bruno@clisp.org>
64345
64346         * doc/relocatable-maint.texi: Break long shell script line.
64347         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
64348
64349 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
64350
64351         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
64352         handle file_has_acl.
64353         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
64354         * lib/acl.c: Move header inclusions and related macro defns into
64355         lib/acl-internal.h.
64356         (S_ISLNK): Remove defn, since that's now done for us.
64357         (file_has_acl): Move to lib/file-has-acl.c.
64358         Call acl_trivial if available.  This is the crucial part of the fix.
64359         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
64360         shared within the library.  Rewrite a bit, partly to make it compatible
64361         with the GNU coding style.
64362         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
64363         Remove unnecessary double-quotes.
64364         Don't test for acl_to_text; the build will catch that.
64365         Replace acl_entries if it doesn't exist and it is needed.
64366         Check for -lsec and acl_trivial (as used on Solaris 10).
64367         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
64368         lib/file-has-acl.c.
64369         (Depends-on): Add sys_stat, for S_ISLNK.
64370
64371 2007-03-19  Ben Pfaff  <blp@gnu.org>
64372
64373         * doc/gnulib.texi: Fix typos.
64374         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
64375
64376 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
64377
64378         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
64379         If size is zero here, buf must be zero.
64380
64381 2007-03-19  Simon Josefsson  <simon@josefsson.org>
64382
64383         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
64384         <bruno@clisp.org>.
64385
64386 2007-03-18  Bruno Haible  <bruno@clisp.org>
64387
64388         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
64389         Suggested by Eric Blake.
64390
64391 2007-03-18  Ben Pfaff  <blp@gnu.org>
64392
64393         * doc/relocatable.texi: Recommend using as prefix a directory
64394         that does not exist and will never be created.  Based on
64395         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
64396         and others.
64397
64398 2007-03-17  Bruno Haible  <bruno@clisp.org>
64399
64400         * lib/fchownat.c: Include lchown.h.
64401
64402 2007-03-17  Bruno Haible  <bruno@clisp.org>
64403
64404         Fix endless loop when the given allocated size was > INT_MAX.
64405         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
64406         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
64407         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
64408         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
64409         * lib/sprintf.c (sprintf): Likewise.
64410
64411 2007-03-17  Bruno Haible  <bruno@clisp.org>
64412
64413         * tests/test-argp-2.sh (func_compare): Output a context diff.
64414
64415 2007-03-17  Bruno Haible  <bruno@clisp.org>
64416
64417         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
64418         locale's decimal-point character.
64419
64420 2007-03-17  Bruno Haible  <bruno@clisp.org>
64421
64422         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
64423         before comparing it. Needed because on some platforms (e.g. x86) a
64424         'long double' occupies less bytes than sizeof (long double).
64425
64426 2007-03-17  Bruno Haible  <bruno@clisp.org>
64427
64428         * tests/test-crc.c (main): Make printf statements 64-bit clean.
64429         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
64430         * tests/test-getaddrinfo.c (simple): Likewise.
64431         * tests/test-read-file.c (main): Likewise.
64432
64433 2007-03-17  Bruno Haible  <bruno@clisp.org>
64434
64435         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
64436
64437 2007-03-17  Bruno Haible  <bruno@clisp.org>
64438
64439         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
64440         unused variable.
64441
64442 2007-03-17  Bruno Haible  <bruno@clisp.org>
64443
64444         * tests/test-c-strcasecmp.c: Include c-strcase.h.
64445         * tests/test-c-strncasecmp.c: Likewise.
64446
64447 2007-03-17  Bruno Haible  <bruno@clisp.org>
64448
64449         * modules/stdlib (Depends-on): Add unistd.
64450         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
64451         Needed for MacOS X 10.3.
64452
64453 2007-03-17  Bruno Haible  <bruno@clisp.org>
64454
64455         * lib/unistr/u-strdup.h: Include <stdlib.h>.
64456
64457 2007-03-17  Bruno Haible  <bruno@clisp.org>
64458
64459         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
64460
64461 2007-03-17  Bruno Haible  <bruno@clisp.org>
64462
64463         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
64464         to reflect files copied from gnulib (with or without modifications).
64465         Suggested by Jim Meyering.
64466
64467 2007-03-17  Eric Blake  <ebb9@byu.net>
64468
64469         * NEWS: Document stdlib change from 2007-02-18.
64470
64471 2007-03-17  Jim Meyering  <jim@meyering.net>
64472
64473         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
64474         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
64475         someone uses a name containing shell meta-characters.
64476         Reported by Alfred M. Szmidt.
64477
64478         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
64479
64480 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
64481
64482         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
64483         and copy gettext configuration files only if configure.ac contains
64484         a use of AM_GNU_GETTEXT_VERSION.
64485
64486 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
64487
64488         * build-aux/bootstrap (gnulib_name): New variable.
64489         (gnulib_tool_options): Use it.
64490
64491 2007-03-13  Simon Josefsson  <simon@josefsson.org>
64492
64493         * tests/test-des.c: Use new namespace.
64494
64495 2007-03-15  Bruno Haible  <bruno@clisp.org>
64496
64497         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
64498         Reported by James Youngman <jay@gnu.org>.
64499
64500 2007-03-15  Bruno Haible  <bruno@clisp.org>
64501
64502         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
64503         declared prototype. Needed with cc on OSF/1 5.1.
64504
64505 2007-03-15  Bruno Haible  <bruno@clisp.org>
64506
64507         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
64508         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
64509         (struct gl_list_implementation): Add dispose_fn argument to the
64510         'create_empty', 'create' methods.
64511         (struct gl_list_impl_base): Add field 'dispose_fn'.
64512         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
64513         argument.
64514         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
64515         dispose_fn argument.
64516         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
64517         dispose_fn on the dropped values.
64518         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
64519         dispose_fn argument.
64520         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
64521         dropped values.
64522         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
64523         (gl_tree_remove_node): Call dispose_fn on the dropped value.
64524         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
64525         (gl_tree_remove_node): Call dispose_fn on the dropped value.
64526         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
64527         argument.
64528         (gl_tree_list_free): Call dispose_fn on the dropped values.
64529         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
64530         the dropped values.
64531         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
64532         Add dispose_fn argument.
64533         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
64534         Call dispose_fn on the dropped values.
64535         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
64536         Add dispose_fn argument.
64537         (gl_sublist_create): Initialize the 'dispose_fn' field.
64538         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
64539         * tests/test-array_list.c (main): Update.
64540         * tests/test-carray_list.c (main): Update.
64541         * tests/test-avltree_list.c (main): Update.
64542         * tests/test-rbtree_list.c (main): Update.
64543         * tests/test-avltreehash_list.c (main): Update.
64544         * tests/test-rbtreehash_list.c (main): Update.
64545         * tests/test-linked_list.c (main): Update.
64546         * tests/test-linkedhash_list.c (main): Update.
64547         * tests/test-array_oset.c (main): Update.
64548
64549 2007-03-15  Bruno Haible  <bruno@clisp.org>
64550
64551         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
64552         (gl_oset_create_empty): Add dispose_fn argument.
64553         (struct gl_oset_implementation): Add dispose_fn argument to
64554         'create_empty' method.
64555         (struct gl_oset_impl_base): Add dispose_fn field.
64556         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
64557         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
64558         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
64559         values.
64560         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
64561         (gl_tree_oset_free): Call dispose_fn on the dropped values.
64562         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
64563         dropped value.
64564         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
64565         dropped value.
64566         * tests/test-array_oset.c (main): Update.
64567         * tests/test-avltree_oset.c (main): Update.
64568         * tests/test-rbtree_oset.c (main): Update.
64569         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
64570
64571 2007-03-13  Bruno Haible  <bruno@clisp.org>
64572
64573         * tests/test-stdbool.c (i): Update after last patch.
64574
64575 2007-03-12  Bruno Haible  <bruno@clisp.org>
64576
64577         * lib/quotearg.c: Include <wctype.h> early, before the definition of
64578         the iswprint macro. Needed on Solaris 2.5.1.
64579
64580 2007-03-12  Bruno Haible  <bruno@clisp.org>
64581
64582         * tests/test-printf-frexp.c (main): Declare x as volatile.
64583
64584 2007-03-12  Simon Josefsson  <simon@josefsson.org>
64585
64586         * doc/gnulib.texi (Build robot for gnulib): New section.
64587
64588 2007-03-12  Jim Meyering  <jim@meyering.net>
64589
64590         * build-aux/bootstrap: New file.
64591         * build-aux/bootstrap.conf: New file, from coreutils.
64592
64593 2007-03-11  Bruno Haible  <bruno@clisp.org>
64594
64595         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
64596
64597 2007-03-12  Simon Josefsson  <simon@josefsson.org>
64598
64599         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
64600         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
64601         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
64602
64603 2007-03-11  Bruno Haible  <bruno@clisp.org>
64604
64605         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
64606         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
64607
64608 2007-03-11  Bruno Haible  <bruno@clisp.org>
64609
64610         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
64611         formula. Needed for SunPRO C 5.0.
64612
64613 2007-03-11  Bruno Haible  <bruno@clisp.org>
64614
64615         * modules/long-options (Depends-on): Add getopt.
64616
64617 2007-03-11  Bruno Haible  <bruno@clisp.org>
64618
64619         * modules/modechange (Depends-on): Add stdbool.
64620
64621 2007-03-11  Bruno Haible  <bruno@clisp.org>
64622
64623         * modules/i-ring (Depends-on): Add stdbool.
64624
64625 2007-03-11  Bruno Haible  <bruno@clisp.org>
64626
64627         * modules/gc-des (Depends-on): Add stdbool.
64628
64629 2007-03-11  Bruno Haible  <bruno@clisp.org>
64630
64631         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
64632
64633 2007-03-11  Bruno Haible  <bruno@clisp.org>
64634
64635         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
64636
64637 2007-03-11  Bruno Haible  <bruno@clisp.org>
64638
64639         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
64640
64641 2007-03-11  Bruno Haible  <bruno@clisp.org>
64642
64643         * lib/vasnprintf.c (sprintf): Undefine.
64644
64645 2007-03-11  Bruno Haible  <bruno@clisp.org>
64646
64647         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
64648         initializers in SunPRO C and Compaq C compilers.
64649
64650 2007-03-11  Bruno Haible  <bruno@clisp.org>
64651
64652         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
64653         decrementing code ANSI C compliant.
64654
64655 2007-03-11  Bruno Haible  <bruno@clisp.org>
64656
64657         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
64658         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
64659
64660 2007-03-11  Bruno Haible  <bruno@clisp.org>
64661
64662         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
64663         <stdbool.h> substitute doesn't pass.
64664
64665 2007-03-11  Bruno Haible  <bruno@clisp.org>
64666
64667         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
64668
64669 2007-03-11  Bruno Haible  <bruno@clisp.org>
64670
64671         * gnulib-tool (func_create_megatestdir): Create also an autobuild
64672         script, for submission to autobuild.josefsson.org.
64673
64674 2007-03-10  Bruno Haible  <bruno@clisp.org>
64675
64676         * modules/canonicalize-lgpl-tests: New file.
64677         * tests/test-canonicalize-lgpl.sh: New file.
64678         * tests/test-canonicalize-lgpl.c: New file.
64679
64680         * modules/c-strcase-tests: New file.
64681         * tests/test-c-strcase.sh: New file.
64682         * tests/test-c-strcasecmp.c: New file.
64683         * tests/test-c-strncasecmp.c: New file.
64684
64685         * modules/atexit-tests: New file.
64686         * tests/test-atexit.sh: New file.
64687         * tests/test-atexit.c: New file.
64688
64689 2007-03-10  Bruno Haible  <bruno@clisp.org>
64690
64691         * tests/test-binary-io.sh: Use temporary filenames that are not so
64692         likely to clash with those of other tests (in a parallel make).
64693         * tests/test-binary-io.c: Likewise.
64694
64695 2007-03-10  Bruno Haible  <bruno@clisp.org>
64696
64697         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
64698         fallback; use #error instead.
64699         Suggested by Simon Josefsson.
64700
64701 2007-03-10  Bruno Haible  <bruno@clisp.org>
64702
64703         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
64704         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
64705         first and the last.
64706
64707 2007-03-10  Bruno Haible  <bruno@clisp.org>
64708
64709         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
64710
64711 2007-03-10  Bruno Haible  <bruno@clisp.org>
64712
64713         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
64714         "make distcheck".
64715         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
64716         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
64717         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
64718
64719 2007-03-10  Bruno Haible  <bruno@clisp.org>
64720
64721         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
64722         variable.
64723         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
64724         variable.
64725
64726 2007-03-09  Eric Blake  <ebb9@byu.net>
64727         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
64728
64729         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
64730         types are not being provided by gnulib.
64731         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
64732         types are supported.
64733
64734 2007-03-10  Bruno Haible  <bruno@clisp.org>
64735
64736         * lib/stdio_.h (__attribute__): New macro.
64737         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
64738         vsprintf): Specify __attribute__ __format__ for GCC.
64739         Suggested by Eric Blake.
64740
64741 2007-03-09  Bruno Haible  <bruno@clisp.org>
64742
64743         * modules/printf-posix-tests: New file.
64744         * tests/test-printf-posix.sh: New file.
64745         * tests/test-printf-posix.c: New file.
64746
64747         * modules/printf-posix: New file.
64748         * lib/printf.c: New file.
64749         * m4/printf-posix-rpl.m4: New file.
64750         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
64751         REPLACE_PRINTF.
64752         * lib/stdio_.h (printf): New declaration.
64753         (format, __format__, ____printf____, ____scanf____, ____strftime____,
64754         ____strfmon____): New macros.
64755         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
64756         REPLACE_PRINTF.
64757
64758 2007-03-09  Bruno Haible  <bruno@clisp.org>
64759
64760         * tests/test-vasnprintf-posix2.sh: New file.
64761         * tests/test-vasnprintf-posix2.c: New file.
64762         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
64763         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
64764         (Makefile.am): Activate test-vasnprintf-posix2.sh.
64765
64766         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
64767         a locale dependent decimal point, rather than always '.'.
64768
64769 2007-03-09  Eric Blake  <ebb9@byu.net>
64770
64771         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
64772         spite of platforms like Tandem/NSK that define it to -1.
64773
64774 2007-03-08  Bruno Haible  <bruno@clisp.org>
64775
64776         * modules/vprintf-posix-tests: New file.
64777         * tests/test-vprintf-posix.sh: New file.
64778         * tests/test-vprintf-posix.c: New file.
64779         * tests/test-printf-posix.h: New file.
64780
64781         * modules/vprintf-posix: New file.
64782         * lib/vprintf.c: New file.
64783         * m4/vprintf-posix.m4: New file.
64784         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
64785         REPLACE_VPRINTF.
64786         * lib/stdio_.h (vprintf): New declaration.
64787         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
64788         REPLACE_VPRINTF.
64789
64790 2007-03-08  Bruno Haible  <bruno@clisp.org>
64791
64792         * modules/fprintf-posix-tests: New file.
64793         * tests/test-fprintf-posix.sh: New file.
64794         * tests/test-fprintf-posix.c: New file.
64795
64796         * modules/fprintf-posix: New file.
64797         * lib/fprintf.c: New file.
64798         * m4/fprintf-posix.m4: New file.
64799         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
64800         REPLACE_FPRINTF.
64801         * lib/stdio_.h (fprintf): New declaration.
64802         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
64803         REPLACE_FPRINTF.
64804
64805 2007-03-08  Bruno Haible  <bruno@clisp.org>
64806
64807         * modules/vfprintf-posix-tests: New file.
64808         * tests/test-vfprintf-posix.sh: New file.
64809         * tests/test-vfprintf-posix.c: New file.
64810         * tests/test-fprintf-posix.h: New file.
64811         * tests/test-fprintf-posix.out: New file.
64812
64813         * modules/vfprintf-posix: New file.
64814         * lib/vfprintf.c: New file.
64815         * m4/vfprintf-posix.m4: New file.
64816         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
64817         REPLACE_VFPRINTF.
64818         * lib/stdio_.h (vfprintf): New declaration.
64819         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
64820         REPLACE_VFPRINTF.
64821
64822 2007-03-08  Bruno Haible  <bruno@clisp.org>
64823
64824         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
64825
64826 2007-03-08  Bruno Haible  <bruno@clisp.org>
64827
64828         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
64829         instead of 'expr' invocations.
64830         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64831         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64832         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64833         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64834         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64835         Suggested by Paul Eggert.
64836
64837 2007-03-08  Bruno Haible  <bruno@clisp.org>
64838
64839         * modules/fseterr-tests: New file.
64840         * tests/test-fseterr.c: New file.
64841
64842         * modules/fseterr: New file.
64843         * lib/fseterr.h: New file.
64844         * lib/fseterr.c: New file.
64845
64846 2007-03-08  Bruno Haible  <bruno@clisp.org>
64847
64848         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
64849         * lib/getopt_.h: Likewise.
64850         * lib/mbswidth.h: Likewise.
64851         * lib/setenv.h: Likewise.
64852         * lib/vasnprintf.h: Likewise.
64853         * lib/vasprintf.h: Likewise.
64854         * lib/verror.h: Likewise.
64855         * lib/xsetenv.h: Likewise.
64856         * lib/xvasprintf.h: Likewise.
64857
64858 2007-03-08  Jim Meyering  <jim@meyering.net>
64859
64860         * users.txt: Add parted.
64861
64862         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
64863
64864 2007-03-07  Bruno Haible  <bruno@clisp.org>
64865
64866         * m4/printf.m4: Make the shell script snippets copy&pastable.
64867
64868 2007-03-02  Bruno Haible  <bruno@clisp.org>
64869
64870         * lib/netinet_in_.h: New file.
64871         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
64872         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
64873         * modules/netinet_in (Files): Add lib/netinet_in_.h.
64874         (Depends-on): Add absolute-header.
64875         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
64876         into netinet/in.h.
64877
64878 2007-03-03  Bruno Haible  <bruno@clisp.org>
64879
64880         * lib/sys_select_.h: New file.
64881         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
64882         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
64883         * modules/sys_select (Files): Add lib/sys_select_.h.
64884         (Depends-on): Add absolute-header.
64885         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
64886         into sys/select.h.
64887
64888 2007-03-02  Bruno Haible  <bruno@clisp.org>
64889
64890         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
64891         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
64892         values.
64893         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
64894         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
64895         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
64896         * modules/sys_socket (Depends-on): Add absolute-header.
64897         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
64898         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
64899         (Include): Remove requirement of inclusion of <sys/types.h>.
64900
64901 2007-03-02  Bruno Haible  <bruno@clisp.org>
64902
64903         * lib/byteswap_.h (bswap_32): Fix formula.
64904
64905 2007-03-06  Bruno Haible  <bruno@clisp.org>
64906
64907         * modules/sprintf-posix-tests: New file.
64908         * tests/test-sprintf-posix.c: New file.
64909
64910         * modules/sprintf-posix: New file.
64911         * lib/sprintf.c: New file.
64912         * m4/sprintf-posix.m4: New file.
64913         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
64914         REPLACE_SPRINTF.
64915         * lib/stdio_.h (sprintf): New declaration.
64916         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
64917         REPLACE_SPRINTF.
64918
64919 2007-03-06  Bruno Haible  <bruno@clisp.org>
64920
64921         * modules/vsprintf-posix-tests: New file.
64922         * tests/test-vsprintf-posix.c: New file.
64923         * tests/test-sprintf-posix.h: New file.
64924
64925         * modules/vsprintf-posix: New file.
64926         * lib/vsprintf.c: New file.
64927         * m4/vsprintf-posix.m4: New file.
64928         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
64929         REPLACE_VSPRINTF.
64930         * lib/stdio_.h (vsprintf): New declaration.
64931         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
64932         REPLACE_VSPRINTF.
64933
64934 2007-03-06  Bruno Haible  <bruno@clisp.org>
64935
64936         * modules/vsnprintf (Depend-on): Remove minmax.
64937
64938 2007-03-06  Bruno Haible  <bruno@clisp.org>
64939
64940         * modules/snprintf-posix-tests: New file.
64941         * tests/test-snprintf-posix.c: New file.
64942
64943         * modules/snprintf-posix: New file.
64944         * m4/snprintf-posix.m4: New file.
64945         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
64946         gl_FUNC_SNPRINTF.
64947         (gl_FUNC_SNPRINTF): Invoke it.
64948         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
64949         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
64950         is set.
64951         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
64952
64953 2007-03-06  Bruno Haible  <bruno@clisp.org>
64954
64955         * modules/vsnprintf-posix-tests: New file.
64956         * tests/test-vsnprintf-posix.c: New file.
64957         * tests/test-snprintf-posix.h: New file.
64958
64959         * modules/vsnprintf-posix: New file.
64960         * m4/vsnprintf-posix.m4: New file.
64961         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
64962         gl_FUNC_VSNPRINTF.
64963         (gl_FUNC_VSNPRINTF): Invoke it.
64964         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
64965         * lib/stdio_.h (vsnprintf): Define as a replacement if
64966         REPLACE_VSNPRINTF is set.
64967         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
64968
64969 2007-03-06  Bruno Haible  <bruno@clisp.org>
64970
64971         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
64972         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
64973
64974 2007-03-06  Bruno Haible  <bruno@clisp.org>
64975
64976         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
64977         (asinl): Declare also if HAVE_DECL_ASINL is set.
64978         (atanl): Declare also if HAVE_DECL_ATANL is set.
64979         (ceill): Declare also if HAVE_DECL_CEILL is set.
64980         (cosl): Declare also if HAVE_DECL_COSL is set.
64981         (expl): Declare also if HAVE_DECL_EXPL is set.
64982         (floorl): Declare also if HAVE_DECL_FLOORL is set.
64983         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
64984         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
64985         (logl): Declare also if HAVE_DECL_LOGL is set.
64986         (sinl): Declare also if HAVE_DECL_SINL is set.
64987         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
64988         (tanl): Declare also if HAVE_DECL_TANL is set.
64989         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
64990         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
64991         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
64992         declaration of frexpl, ldexpl.
64993         * modules/printf-frexpl (Depends-on): Add math.
64994         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
64995
64996 2007-03-05  Bruno Haible  <bruno@clisp.org>
64997
64998         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
64999         frexpl and ldexpl are declared.
65000         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
65001
65002 2007-03-05  Bruno Haible  <bruno@clisp.org>
65003
65004         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
65005         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
65006
65007 2007-03-05  Bruno Haible  <bruno@clisp.org>
65008
65009         * lib/stdio_.h: Include <stddef.h>.
65010
65011 2007-03-05  Bruno Haible  <bruno@clisp.org>
65012
65013         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
65014
65015 2007-03-05  Bruno Haible  <bruno@clisp.org>
65016
65017         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
65018         NetBSD 4, from Ralf Wildenhues.
65019
65020 2007-03-04  Bruno Haible  <bruno@clisp.org>
65021
65022         * lib/vasprintf.h: Update #if logic for the case when the functions
65023         exist but are overridden.
65024
65025 2007-03-04  Bruno Haible  <bruno@clisp.org>
65026
65027         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
65028         implementations: glibc-2.4 and MacOS X 10.3.
65029         * tests/test-vasnprintf-posix.c (test_function): Test also the case
65030         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
65031         * tests/test-vasprintf-posix.c (test_function): Likewise.
65032
65033 2007-03-04  Bruno Haible  <bruno@clisp.org>
65034
65035         * modules/vasprintf-posix-tests: New file.
65036         * tests/test-vasprintf-posix.c: New file.
65037
65038         * modules/vasprintf-posix: New file.
65039         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
65040         defined.
65041         * m4/vasprintf-posix.m4: New file.
65042         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
65043         gl_FUNC_VASPRINTF.
65044         (gl_FUNC_VASPRINTF): Invoke it.
65045         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
65046         here.
65047         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
65048
65049 2007-03-04  Bruno Haible  <bruno@clisp.org>
65050
65051         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
65052         REPLACE_GETTIMEOFDAY.
65053         * modules/sys_time (Makefile.am): Likewise.
65054         * m4/sys_time_h.m4: Likewise.
65055         * m4/gettimeofday.m4: Likewise.
65056
65057 2007-03-04  Bruno Haible  <bruno@clisp.org>
65058
65059         * modules/vasnprintf-posix-tests: New file.
65060         * tests/test-vasnprintf-posix.c: New file.
65061
65062         * modules/vasnprintf-posix: New file.
65063         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
65064         printf-frexpl.h.
65065         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
65066         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
65067         REPLACE_VASNPRINTF is defined.
65068         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
65069         gl_FUNC_VASNPRINTF.
65070         (gl_FUNC_VASNPRINTF): Invoke it.
65071         * m4/vasnprintf-posix.m4: New file.
65072         * m4/printf.m4: New file.
65073
65074 2007-03-04  Bruno Haible  <bruno@clisp.org>
65075
65076         Compile progreloc.c only if --enable-relocatable is specified.
65077         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
65078         if --enable-relocatable was specified.
65079         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
65080         lib_SOURCES.
65081
65082 2007-03-04  Jim Meyering  <jim@meyering.net>
65083
65084         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
65085         Use it consistently, rather than enumerating errno constants.
65086
65087 2007-03-04  Bruno Haible  <bruno@clisp.org>
65088
65089         * modules/xvasprintf-tests: New file.
65090         * tests/test-xvasprintf.c: New file.
65091
65092         * modules/vasprintf-tests: New file.
65093         * tests/test-vasprintf.c: New file.
65094
65095         * modules/vasnprintf-tests: New file.
65096         * tests/test-vasnprintf.c: New file.
65097
65098         * modules/vsnprintf-tests: New file.
65099         * tests/test-vsnprintf.c: New file.
65100
65101         * modules/snprintf-tests: New file.
65102         * tests/test-snprintf.c: New file.
65103
65104 2007-03-04  Bruno Haible  <bruno@clisp.org>
65105
65106         Compile relocatable.c only if --enable-relocatable is specified.
65107         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
65108         gl_RELOCATABLE_LIBRARY.
65109         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
65110         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
65111         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
65112         gl_RELOCATABLE_LIBRARY.
65113         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
65114         (Makefile.am): Remove lib_SOURCES.
65115         * modules/relocatable-lib-lgpl (configure.ac): Invoke
65116         gl_RELOCATABLE_LIBRARY.
65117         (Makefile.am): Remove lib_SOURCES.
65118         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
65119         always.
65120         * modules/relocatable-prog-wrapper (configure.ac): Invoke
65121         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
65122
65123 2007-03-04  Bruno Haible  <bruno@clisp.org>
65124
65125         * modules/argmatch-tests: New file.
65126         * tests/test-argmatch.c: New file.
65127
65128         * tests/test-allocsa.c (main): Halve the number of loop runs.
65129
65130         * modules/alloca-opt-tests: New file.
65131         * tests/test-alloca-opt.c: New file.
65132
65133 2007-03-04  Jim Meyering  <jim@meyering.net>
65134
65135         Work around difference between Linux ACLs and Solaris 10 ZFS.
65136         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
65137         for EINVAL.
65138
65139 2007-03-03  Bruno Haible  <bruno@clisp.org>
65140
65141         * modules/relocatable-prog (Depends-on): Add back progreloc's
65142         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
65143
65144 2007-03-03  Bruno Haible  <bruno@clisp.org>
65145
65146         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
65147         * modules/relocatable-lib: New file.
65148
65149 2007-03-03  Bruno Haible  <bruno@clisp.org>
65150
65151         * modules/relocatable-prog: Renamed from modules/relocatable.
65152         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
65153
65154 2007-03-03  Bruno Haible  <bruno@clisp.org>
65155
65156         * modules/relocatable-script (Files): Add doc/relocatable.texi,
65157         m4/relocatable-lib.m4.
65158         (Depends-on): Remove 'relocatable'.
65159         (configure.ac): Add gl_RELOCATABLE_NOP.
65160
65161 2007-03-03  Bruno Haible  <bruno@clisp.org>
65162
65163         * modules/relocatable-prog-wrapper: New file.
65164         * modules/relocatable (Depends-on): Add it. Remove all other
65165         dependencies except progname.
65166         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
65167
65168         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
65169         (gl_FUNC_STRERROR): Nop.
65170         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
65171
65172         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
65173         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
65174
65175         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
65176         (gl_FUNC_READLINK): Update.
65177
65178         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
65179
65180 2007-03-03  Bruno Haible  <bruno@clisp.org>
65181
65182         * lib/xreadlink.c: Include <unistd.h> unconditionally.
65183         * modules/xreadlink (Depends-on): Add unistd.
65184         * modules/xreadlink-with-size (Depends-on): Likewise.
65185
65186 2007-03-03  Bruno Haible  <bruno@clisp.org>
65187
65188         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
65189         extracted from gt_FUNC_SETENV.
65190         (gt_FUNC_SETENV): Remove macro.
65191         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
65192         remove gt_FUNC_SETENV.
65193
65194 2007-03-03  Bruno Haible  <bruno@clisp.org>
65195
65196         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
65197         ENABLE_RELOCATABLE here.
65198         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
65199
65200 2007-03-03  Bruno Haible  <bruno@clisp.org>
65201
65202         * modules/rbtreehash-list-tests (Depends-on): Add progname.
65203         * tests/test-rbtreehash_list.c: Include progname.h.
65204         (main): Call set_program_name.
65205
65206         * modules/rbtree-oset-tests (Depends-on): Add progname.
65207         * tests/test-rbtree_oset.c: Include progname.h.
65208         (main): Call set_program_name.
65209
65210         * modules/rbtree-list-tests (Depends-on): Add progname.
65211         * tests/test-rbtree_list.c: Include progname.h.
65212         (main): Call set_program_name.
65213
65214         * modules/linked-list-tests (Depends-on): Add progname.
65215         * tests/test-linked_list.c: Include progname.h.
65216         (main): Call set_program_name.
65217
65218 2007-03-03  Bruno Haible  <bruno@clisp.org>
65219
65220         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
65221         All uses of __restrict changed to _Restrict_.
65222         * lib/glob_.h (__restrict): Remove macro.
65223
65224 2007-03-02  Bruno Haible  <bruno@clisp.org>
65225
65226         * modules/gettext (configure.ac): Require gettext infrastructure
65227         from version 0.16.1.
65228
65229 2007-03-02  Bruno Haible  <bruno@clisp.org>
65230
65231         * modules/linkedhash-list-tests (Depends-on): Add progname.
65232         * tests/test-linkedhash_list.c: Include progname.h.
65233         (main): Call set_program_name.
65234
65235         * modules/carray-list-tests (Depends-on): Add progname.
65236         * tests/test-carray_list.c: Include progname.h.
65237         (main): Call set_program_name.
65238
65239         * modules/avltreehash-list-tests (Depends-on): Add progname.
65240         * tests/test-avltreehash_list.c: Include progname.h.
65241         (main): Call set_program_name.
65242
65243         * modules/avltree-oset-tests (Depends-on): Add progname.
65244         * tests/test-avltree_oset.c: Include progname.h.
65245         (main): Call set_program_name.
65246
65247         * modules/avltree-list-tests (Depends-on): Add progname.
65248         * tests/test-avltree_list.c: Include progname.h.
65249         (main): Call set_program_name.
65250
65251         * modules/array-oset-tests (Depends-on): Add progname.
65252         * tests/test-array_oset.c: Include progname.h.
65253         (main): Call set_program_name.
65254
65255         * modules/array-list-tests (Depends-on): Add progname.
65256         * tests/test-array_list.c: Include progname.h.
65257         (main): Call set_program_name.
65258
65259         * modules/argp-tests (Depends-on): Add progname.
65260         * tests/test-argp.c: Include argp.h first. Include progname.h.
65261         (main): Call set_program_name.
65262
65263 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
65264
65265         * doc/gnulib-tool.texi (Initial import): Reword description of
65266         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
65267         limited effect even if defined after the first system include.
65268
65269 2007-03-01  Bruno Haible  <bruno@clisp.org>
65270
65271         * build-aux/config.libpath: Update to libtool-1.5.22.
65272         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
65273
65274 2007-03-01  Bruno Haible  <bruno@clisp.org>
65275
65276         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
65277         foo_CFLAGS.
65278         Reported by Ralf Wildenhues.
65279
65280 2007-03-01  Bruno Haible  <bruno@clisp.org>
65281
65282         * build-aux/install-reloc: Remove object files left over by some
65283         compilers.
65284         Reported by Ralf Wildenhues.
65285
65286 2007-03-01  Bruno Haible  <bruno@clisp.org>
65287
65288         * build-aux/install-reloc: Break long lines.
65289
65290 2007-03-01  Bruno Haible  <bruno@clisp.org>
65291
65292         * doc/relocatable.texi: Document that it may not work on OpenBSD.
65293         Reported by Ralf Wildenhues.
65294
65295 2007-03-01  Bruno Haible  <bruno@clisp.org>
65296
65297         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
65298         include ordering constraints.
65299
65300 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65301
65302         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
65303         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
65304         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
65305         as another example.
65306         * lib/time_.h: Fix misspelling.
65307         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65308         Require gl_HEADER_TIME_H_DEFAULTS.
65309         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
65310         * m4/time_r.m4 (gl_TIME_R): Likewise.
65311         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
65312
65313 2007-03-01  Bruno Haible  <bruno@clisp.org>
65314
65315         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
65316         * m4/utimens.m4 (gl_UTIMENS): Likewise.
65317
65318 2007-03-01  Jim Meyering  <jim@meyering.net>
65319
65320         * modules/xreadlink (Maintainer): Add my name.
65321         * modules/xreadlink-with-size (Depends-on): Alphabetize.
65322
65323 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
65324             Bruno Haible  <bruno@clisp.org>
65325
65326         * build-aux/install-reloc: Compile also c-ctype.c.
65327         * build-aux/relocatable.sh.in: New file.
65328         * doc/relocatable.texi: New file.
65329         * doc/relocatable-maint.texi: New file.
65330         * doc/gnulib.texi: Include relocatable-maint.texi.
65331         * lib/progreloc.c: Include unistd.h unconditionally.
65332         * lib/relocwrapper.c: Include unistd.h unconditionally.
65333         Include c-ctype.h.
65334         (add_dotbin): Use c_tolower.
65335         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
65336         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
65337         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
65338         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
65339         to m4/relocatable-lib.m4.
65340         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
65341         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
65342         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
65343         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
65344         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
65345         * modules/relocatable: New file.
65346         * modules/relocatable-lib: New file.
65347         * modules/relocatable-script: New file.
65348
65349 2007-02-28  Bruno Haible  <bruno@clisp.org>
65350
65351         Import --enable-relocatable infrastructure.
65352         * build-aux/config.libpath: New file, from GNU gettext.
65353         * build-aux/install-reloc: New file, from GNU gettext.
65354         * build-aux/reloc-ldflags: New file, from GNU gettext.
65355         * lib/relocatable.h: New file, from GNU gettext.
65356         * lib/relocatable.c: New file, from GNU gettext.
65357         * lib/relocwrapper.c: New file, from GNU gettext.
65358         * m4/relocatable.m4: New file, from GNU gettext.
65359
65360 2007-02-28  Bruno Haible  <bruno@clisp.org>
65361
65362         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
65363
65364         * modules/xreadlink: New file, from GNU gettext with modifications.
65365         * lib/xreadlink.c: New file, from GNU gettext.
65366         * lib/xreadlink.h: Add comments.
65367         (xreadlink): New declaration.
65368
65369         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
65370         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
65371         lib/xreadlink-with-size.c.
65372         (configure.ac): Remove gl_XREADLINK invocation.
65373         (Makefile.am): Augment lib_SOURCES.
65374         * m4/xreadlink.m4: Remove file.
65375         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
65376         (xreadlink_with_size): Renamed from xreadink.
65377         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
65378         * modules/canonicalize (Depends-on): Replace xreadlink with
65379         xreadlink-with-size.
65380         * lib/canonicalize.c (canonicalize_filename_mode): Update.
65381
65382 2007-02-25  Jim Meyering  <jim@meyering.net>
65383
65384         * build-aux/announce-gen: When complaining about excess arguments,
65385         list them.
65386
65387 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
65388
65389         * README: Document signed integer overflow situation more
65390         accurately.
65391
65392 2007-02-25  Bruno Haible  <bruno@clisp.org>
65393
65394         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
65395         'a' or 'A' conversion.
65396
65397 2007-02-25  Bruno Haible  <bruno@clisp.org>
65398
65399         * modules/filename: Renamed from modules/pathname.
65400         (Files): Replace lib/pathname.h with lib/filename.h. Replace
65401         lib/concatpath.c with lib/concat-filename.c.
65402         (Makefile.am): Update.
65403         (Include): Replace pathname.h with filename.h.
65404         * lib/filename.h: Renamed from lib/pathname.h.
65405         (concatenated_filename): Renamed from concatenated_pathname.
65406         * lib/concat-filename.c: Renamed from lib/concatpath.c.
65407         (concatenated_filename): Renamed from concatenated_pathname.
65408         * lib/findprog.c: Include filename.h instead of pathname.h.
65409         (find_in_path): Update.
65410         * lib/javacomp.c: Include filename.h instead of pathname.h.
65411         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
65412         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
65413         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
65414         is_oldgcj_14_13_usable, is_javac_usable): Update.
65415         * lib/javaexec.c: Include filename.h instead of pathname.h.
65416         (execute_java_class): Update.
65417         * modules/findprog: Update.
65418         * modules/javacomp: Update.
65419         * modules/javaexec: Update.
65420         * MODULES.html.sh (File system functions): Add 'filename', remove
65421         'pathname'.
65422
65423 2007-02-25  Bruno Haible  <bruno@clisp.org>
65424
65425         * modules/printf-frexpl-tests: New file.
65426         * tests/test-printf-frexpl.c: New file.
65427
65428         * modules/printf-frexpl: New file.
65429         * lib/printf-frexpl.h: New file.
65430         * lib/printf-frexpl.c: New file.
65431         * m4/printf-frexpl.m4: New file.
65432
65433 2007-02-25  Bruno Haible  <bruno@clisp.org>
65434
65435         * modules/printf-frexp-tests: New file.
65436         * tests/test-printf-frexp.c: New file.
65437
65438         * modules/printf-frexp: New file.
65439         * lib/printf-frexp.h: New file.
65440         * lib/printf-frexp.c: New file.
65441         * m4/printf-frexp.m4: New file.
65442
65443 2007-02-25  Bruno Haible  <bruno@clisp.org>
65444
65445         Assume automake >= 1.10 for the tests.
65446         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
65447         * modules/arctwo-tests: Likewise.
65448         * modules/argp-tests: Likewise.
65449         * modules/avltree-list-tests: Likewise.
65450         * modules/avltree-oset-tests: Likewise.
65451         * modules/avltreehash-list-tests: Likewise.
65452         * modules/carray-list-tests: Likewise.
65453         * modules/crc-tests: Likewise.
65454         * modules/des-tests: Likewise.
65455         * modules/gc-arcfour-tests: Likewise.
65456         * modules/gc-arctwo-tests: Likewise.
65457         * modules/gc-des-tests: Likewise.
65458         * modules/gc-hmac-md5-tests: Likewise.
65459         * modules/gc-hmac-sha1-tests: Likewise.
65460         * modules/gc-md2-tests: Likewise.
65461         * modules/gc-md4-tests: Likewise.
65462         * modules/gc-md5-tests: Likewise.
65463         * modules/gc-pbkdf2-sha1-tests: Likewise.
65464         * modules/gc-rijndael-tests: Likewise.
65465         * modules/gc-sha1-tests: Likewise.
65466         * modules/gc-tests: Likewise.
65467         * modules/getaddrinfo-tests: Likewise.
65468         * modules/hmac-md5-tests: Likewise.
65469         * modules/hmac-sha1-tests: Likewise.
65470         * modules/linked-list-tests: Likewise.
65471         * modules/linkedhash-list-tests: Likewise.
65472         * modules/lock-tests: Likewise.
65473         * modules/md2-tests: Likewise.
65474         * modules/md4-tests: Likewise.
65475         * modules/md5-tests: Likewise.
65476         * modules/rbtree-list-tests: Likewise.
65477         * modules/rbtree-oset-tests: Likewise.
65478         * modules/rbtreehash-list-tests: Likewise.
65479         * modules/read-file-tests: Likewise.
65480         * modules/rijndael-tests: Likewise.
65481         * modules/stdint-tests: Likewise.
65482         * modules/tls-tests: Likewise.
65483
65484 2007-02-24  Bruno Haible  <bruno@clisp.org>
65485
65486         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
65487         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
65488         function; instead check whether isnan with a double argument links.
65489         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
65490         function; instead check whether isnan with a 'long double' argument
65491         links.
65492         Reported by Eric Blake <ebb9@byu.net>.
65493
65494 2007-02-24  Bruno Haible  <bruno@clisp.org>
65495
65496         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
65497         defined.
65498         * lib/isnanl.c: Remove all code. Just include isnan.c.
65499         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
65500
65501 2007-02-25  Jim Meyering  <jim@meyering.net>
65502
65503         Avoid conflicting types for 'unsetenv' on FreeBSD.
65504         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
65505         conflicting with FreeBSD's (5.0 and 6.1) function declaration
65506         in stdlib.h.
65507
65508 2007-02-24  Bruno Haible  <bruno@clisp.org>
65509
65510         * modules/isnanl-nolibm-tests: New file.
65511         * tests/test-isnanl.c: New file.
65512
65513         * modules/isnanl-nolibm: New file.
65514         * lib/isnanl.h: New file.
65515         * lib/isnanl.c: New file.
65516         * m4/isnanl.m4: New file.
65517
65518 2007-02-24  Bruno Haible  <bruno@clisp.org>
65519
65520         * modules/isnan-nolibm-tests: New file.
65521         * tests/test-isnan.c: New file.
65522
65523         * modules/isnan-nolibm: New file.
65524         * lib/isnan.h: New file.
65525         * lib/isnan.c: New file.
65526         * m4/isnan.m4: New file.
65527
65528 2007-02-24  Bruno Haible  <bruno@clisp.org>
65529
65530         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
65531         assume that an exponent fits in 20 bits.
65532
65533 2007-02-24  Jim Meyering  <jim@meyering.net>
65534
65535         * m4/regex.m4: Update the description of the configure-time option,
65536         --without-included-regex, to state accurately what the defaults are,
65537         and perhaps to give people an idea why using this option is risky.
65538
65539 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
65540
65541         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
65542         loops on small arguments.  This attempts to avoid the problem
65543         Bruno Haible reported for AIX 4.3.2 in
65544         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
65545
65546 2007-02-23  Bruno Haible  <bruno@clisp.org>
65547
65548         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
65549         Needed for help2man.
65550
65551 2007-02-23  Karl Berry  <karl@gnu.org>
65552
65553         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
65554         exists, foo.h should be cvs-ignored, not committed.
65555
65556 2007-02-23  Eric Blake  <ebb9@byu.net>
65557
65558         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
65559         * lib/stat-time.h (includes): Likewise.
65560         * lib/utimecmp.c (includes): Likewise.
65561         * lib/utimens.h (includes): Likewise.
65562         * lib/getdate.y (includes): Also include "timespec.h" for use
65563         internal to the module.
65564         * modules/utimens (Depends-on): Revert yesterday's patch.
65565         * modules/nanosleep (Depends-on): Add missing dependency.
65566
65567 2007-02-22  Bruno Haible  <bruno@clisp.org>
65568
65569         * lib/glob.c: Don't include getlogin_r.h.
65570
65571 2007-02-22  Jim Meyering  <jim@meyering.net>
65572
65573         * modules/utimens (Depends-on): Add timespec, required for
65574         utimens.h's inclusion of timespec.h.
65575
65576 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
65577
65578         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
65579         long unreadable paths in GNU/Linux.  Problem reported by Andreas
65580         Schwab in
65581         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
65582         I'll try to think of a better way to fix the Solaris problem.
65583
65584         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
65585         like glibc; on Solaris 10, it fails with errno == EINVAL.
65586         POSIX says the behavior is unspecified if the first argument is NULL,
65587         so play it safe and never pass NULL to the system getcwd.
65588
65589 2007-02-21  Jim Meyering  <jim@meyering.net>
65590
65591         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
65592         of gettimeofday.  It would conflict with the one now always
65593         provided via sys_time_.h.  Reported by Matthew Woehlke, as
65594         an IRIX 6.5 build failure.
65595
65596 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
65597
65598         Minor fixups to port to Solaris 10 with Sun C 5.8.
65599         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
65600         * modules/getcwd (Depends-on): Add dirfd.
65601         * lib/putenv.c (putenv): #undef it.
65602         (rpl_putenv): New decl.
65603         (malloc, free): Include <stdlib.h> rather than prototyping separately.
65604
65605 2007-02-20  Bruno Haible  <bruno@clisp.org>
65606
65607         * modules/stdio-tests: New file.
65608         * tests/test-stdio.c: New file.
65609
65610         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
65611         (Depends-on): Add stdio.
65612         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
65613         (Include): Use <stdio.h> instead of vsnprintf.h.
65614         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
65615         HAVE_DECL_VSNPRINTF.
65616         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
65617
65618         * modules/snprintf (Files): Remove lib/snprintf.h.
65619         (Depends-on): Add stdio.
65620         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
65621         (Include): Use <stdio.h> instead of snprintf.h.
65622         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
65623         HAVE_DECL_SNPRINTF.
65624         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
65625         * lib/getaddrinfo.c: Likewise.
65626
65627         * modules/stdio: New file.
65628         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
65629         * lib/snprintf.h: Remove file.
65630         * lib/vsnprintf.h: Remove file.
65631         * lib/.cppi-disable: Remove snprintf.h.
65632         * m4/stdio_h.m4: New file.
65633         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
65634
65635 2007-02-20  Jim Meyering  <jim@meyering.net>
65636
65637         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
65638         used by e.g., mingw.  From Bruno Haible.
65639
65640 2007-02-19  Bruno Haible  <bruno@clisp.org>
65641
65642         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
65643         warnings.
65644         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65645
65646 2007-02-19  Bruno Haible  <bruno@clisp.org>
65647
65648         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
65649         from mingw users.
65650
65651 2007-02-19  Bruno Haible  <bruno@clisp.org>
65652
65653         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
65654         warnings.
65655         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
65656
65657 2007-02-19  Jim Meyering  <jim@meyering.net>
65658
65659         Don't use FD after a successful "fdopendir (fd)".
65660         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
65661         Reset it by calling dirfd on the just-obtained DIR*.
65662
65663         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
65664         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
65665
65666 2007-02-18  Bruno Haible  <bruno@clisp.org>
65667
65668         * lib/readlink.c: Include <unistd.h>.
65669         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
65670         HAVE_READLINK.
65671         * modules/readlink (Depends-on): Add unistd.
65672         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65673         (Include): Add <unistd.h>.
65674
65675         * lib/getlogin_r.h: Remove file.
65676         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
65677         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
65678         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
65679         HAVE_DECL_GETLOGIN_R.
65680         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
65681         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65682         (Include): Use <unistd.h> instead of getlogin_r.h.
65683
65684         * lib/getcwd.h: Remove file.
65685         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
65686         * lib/xgetcwd.c: Likewise.
65687         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
65688         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
65689         * modules/getcwd (Files): Remove lib/getcwd.h.
65690         (Depends-on): Add unistd.
65691         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65692         (Include): Use <unistd.h> instad of getcwd.h.
65693
65694         * lib/ftruncate.c: Include <unistd.h> first.
65695         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
65696         Set HAVE_FTRUNCATE.
65697         * modules/ftruncate (Depends-on): Add unistd.
65698         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65699
65700         * lib/fchdir.c: Include <unistd.h> first.
65701         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
65702         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
65703         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
65704         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65705         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
65706
65707         * lib/dup2.c: Include <unistd.h> first.
65708         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
65709         HAVE_DUP2.
65710         * modules/dup2 (Depends-on): Add unistd.
65711         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65712
65713         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
65714         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
65715         REPLACE_CHOWN. Don't define chown as a macro here.
65716         * modules/chown (Depends-on): Add unistd.
65717         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65718
65719         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
65720         Add definition for GL_LINK_WARNING.
65721         (chown, dup2): New declarations.
65722         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
65723         link warning.
65724         (ftruncate): New declaration.
65725         (getcwd): New declaration, taken from old getcwd.h.
65726         (getlogin_r): New declaration, taken from old getlogin_r.h.
65727         (readlink): New declaration.
65728         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
65729         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
65730         (gl_PREREQ_UNISTD): Remove macro.
65731         (gl_UNISTD_MODULE_INDICATOR): New macro.
65732         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
65733         many new variables. Don't set UNISTD_H.
65734         * modules/unistd (Description): Change.
65735         (Depends-on): Add link-warning.
65736         (configure.ac): Update.
65737         (Makefile.am): Create unistd.h always. Substitute many new variables
65738         into it.
65739
65740 2007-02-18  Bruno Haible  <bruno@clisp.org>
65741
65742         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
65743         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
65744         HAVE_GETSUBOPT.
65745         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
65746         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
65747         * lib/getsubopt.h: Remove file.
65748         * modules/getsubopt (Files): Remove lib/getsubopt.h.
65749         (Depends-on): Add stdlib.
65750         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65751         (Includes): Use <stdlib.h> instead of getsubopt.h.
65752         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
65753         Set HAVE_GETSUBOPT.
65754         * lib/getsubopt.c: Don't include getsubopt.h.
65755
65756 2007-02-18  Bruno Haible  <bruno@clisp.org>
65757
65758         * modules/fchdir (Depends-on): Add dup2.
65759
65760 2007-02-18  Bruno Haible  <bruno@clisp.org>
65761
65762         * lib/stdlib_.h: Handle glibc's special invocation convention
65763         specially.
65764
65765 2007-02-18  Bruno Haible  <bruno@clisp.org>
65766
65767         * modules/stdlib-tests: New file.
65768         * tests/test-stdlib.c: New file.
65769
65770         * modules/mkstemp (Files): Remove lib/mkstemp.h.
65771         (Depends-on): Add stdlib.
65772         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65773         (Includes): Use <stdlib.h> instead of mkstemp.h.
65774         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
65775         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
65776         * lib/mkstemp.c: Don't include mkstemp.h.
65777         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
65778         * lib/stdlib--.h: Don't include mkstemp.h.
65779
65780         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
65781         (Depends-on): Add stdlib.
65782         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65783         (Includes): Use <stdlib.h> instead of mkdtemp.h.
65784         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
65785         HAVE_MKDTEMP.
65786         * lib/mkdtemp.c: Don't include mkdtemp.h.
65787         * lib/clean-temp.c: Don't include mkdtemp.h.
65788
65789         * modules/exit (Files): Remove lib/exit.h.
65790         (Depends-on): Add stdlib.
65791         (Makefile.am): Remove lib_SOURCES.
65792         (Include): Use <stdlib.h> instead of exit.h.
65793         * lib/argmatch.c: Don't include exit.h.
65794         * lib/execute.c: Likewise.
65795         * lib/pagealign_alloc.c: Likewise.
65796         * lib/pipe.c: Likewise.
65797         * lib/wait-process.c: Likewise.
65798         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
65799         * lib/exitfail.c: Likewise.
65800         * lib/savewd.c: Likewise.
65801         * lib/xsetenv.c: Likewise.
65802
65803         * modules/stdlib: New file.
65804         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
65805         and extra comments about mkstemp().
65806         * lib/exit.h: Remove file.
65807         * lib/mkdtemp.h: Remove file.
65808         * lib/mkstemp.h: Remove file.
65809         * m4/stdlib_h.m4: New file.
65810         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
65811
65812 2007-02-18  Bruno Haible  <bruno@clisp.org>
65813
65814         * modules/math-tests: New file.
65815         * tests/test-math.c: New file.
65816
65817         * modules/math: New file.
65818         * modules/mathl (Files): Remove lib/mathl.h.
65819         (Depends-on): Add math.
65820         (Makefile.am): Don't mention mathl.h.
65821         (Include): Use <math.h> instead of mathl.h.
65822         * lib/math_.h: New file.
65823         * lib/mathl.h: Remove file.
65824         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
65825         mathl.h.
65826         * lib/asinl.c: Likewise.
65827         * lib/atanl.c: Likewise.
65828         * lib/ceill.c: Likewise.
65829         * lib/cosl.c: Likewise.
65830         * lib/expl.c: Likewise.
65831         * lib/floorl.c: Likewise.
65832         * lib/frexpl.c: Likewise.
65833         * lib/ldexpl.c: Likewise.
65834         * lib/logl.c: Likewise.
65835         * lib/sincosl.c: Likewise.
65836         * lib/sinl.c: Likewise.
65837         * lib/sqrtl.c: Likewise.
65838         * lib/tanl.c: Likewise.
65839         * lib/trigl.c: Likewise.
65840         * m4/math_h.m4: New file.
65841         * MODULES.html.sh (Mathematics): Add math.
65842
65843 2007-02-17  Bruno Haible  <bruno@clisp.org>
65844
65845         * modules/wctype-tests: New file.
65846         * tests/test-wctype.c: New file.
65847
65848         * modules/wchar-tests: New file.
65849         * tests/test-wchar.c: New file.
65850
65851         * modules/unistd-tests: New file.
65852         * tests/test-unistd.c: New file.
65853
65854         * modules/time-tests: New file.
65855         * tests/test-time.c: New file.
65856
65857         * modules/sysexits-tests: New file.
65858         * tests/test-sysexits.c: New file.
65859
65860         * modules/sys_time-tests: New file.
65861         * tests/test-sys_time.c: New file.
65862
65863         * modules/sys_stat-tests: New file.
65864         * tests/test-sys_stat.c: New file.
65865
65866         * modules/sys_socket-tests: New file.
65867         * tests/test-sys_socket.c: New file.
65868
65869         * modules/sys_select-tests: New file.
65870         * tests/test-sys_select.c: New file.
65871
65872         * modules/string-tests: New file.
65873         * tests/test-string.c: New file.
65874
65875         * modules/stdbool-tests: New file.
65876         * tests/test-stdbool.c: New file.
65877
65878         * modules/netinet_in-tests: New file.
65879         * tests/test-netinet_in.c: New file.
65880
65881         * modules/inttypes-tests: New file.
65882         * tests/test-inttypes.c: New file.
65883
65884         * modules/fcntl-tests: New file.
65885         * tests/test-fcntl.c: New file.
65886
65887         * modules/byteswap-tests: New file.
65888         * tests/test-byteswap.c: New file.
65889
65890         * modules/arpa_inet-tests: New file.
65891         * tests/test-arpa_inet.c: New file.
65892
65893 2007-02-17  Bruno Haible  <bruno@clisp.org>
65894
65895         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
65896         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
65897         if the corresponding module is not enabled. Emit link warnings if
65898         the function is used nevertheless.
65899         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
65900         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
65901         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
65902         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
65903         * modules/inttypes (Depends-on): Add link-warning.
65904         (Makefile.am): Copy the contents of build-aux/link-warning.h into
65905         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
65906         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
65907         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
65908         * modules/imaxdiv (configure.ac): Likewise.
65909         * modules/strtoimax (configure.ac): Likewise.
65910         * modules/strtoumax (configure.ac): Likewise.
65911
65912 2007-02-17  Bruno Haible  <bruno@clisp.org>
65913
65914         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
65915         gl_STRING_MODULE_INDICATOR_DEFAULTS.
65916         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
65917         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
65918
65919 2007-02-17  Bruno Haible  <bruno@clisp.org>
65920
65921         * modules/link-warning: New file.
65922         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
65923         * lib/string_.h (GL_LINK_WARNING): Remove definition.
65924         * modules/string (Depends-on): Add link-warning.
65925         (Makefile.am): Copy the contents of build-aux/link-warning.h into
65926         string.h.
65927         * MODULES.html.sh (Support for building libraries and executables): Add
65928         link-warning.
65929
65930 2007-02-17  Bruno Haible  <bruno@clisp.org>
65931
65932         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
65933         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
65934         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
65935         long lines.
65936
65937 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
65938             Bruno Haible  <bruno@clisp.org>
65939
65940         * modules/tmpfile: New file.
65941         * lib/tmpfile.c: New file.
65942         * m4/tmpfile.m4: New file.
65943         * MODULES.html.sh (func_all_modules): New section "Input/output".
65944
65945 2007-02-15  Bruno Haible  <bruno@clisp.org>
65946
65947         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
65948         (supports_delete_on_close): New function.
65949         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
65950
65951 2007-02-14  Bruno Haible  <bruno@clisp.org>
65952
65953         * modules/mbspcasecmp-tests: New file.
65954         * tests/test-mbspcasecmp.sh: New file.
65955         * tests/test-mbspcasecmp.c: New file.
65956
65957         New module mbspcasecmp.
65958         * modules/mbspcasecmp: New file.
65959         * lib/mbspcasecmp.c: New file.
65960         * lib/string_.h (strncasecmp): Change warning message.
65961         (mbspcasecmp): New declaration.
65962         * m4/mbspcasecmp.m4: New file.
65963         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65964         GNULIB_MBSPCASECMP.
65965         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
65966         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
65967
65968 2007-02-14  Bruno Haible  <bruno@clisp.org>
65969
65970         * modules/mbsncasecmp-tests: New file.
65971         * tests/test-mbsncasecmp.sh: New file.
65972         * tests/test-mbsncasecmp.c: New file.
65973
65974         New module mbsncasecmp.
65975         * modules/mbsncasecmp: New file.
65976         * lib/mbsncasecmp.c: New file.
65977         * lib/string_.h (mbsncasecmp): New declaration.
65978         * m4/mbsncasecmp.m4: New file.
65979         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65980         GNULIB_MBSNCASECMP.
65981         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
65982         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
65983
65984 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
65985
65986         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
65987         Verify that it doesn't overlap with our flags.
65988         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
65989         do not have the desired effect in multibyte locales; instead, use
65990         mbscasecmp.
65991         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
65992         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
65993         we don't require GNU fnmatch ourselves (if our users require it, they
65994         should do so explicitly).
65995
65996         Fix regex code so it doesn't rely on strcasecmp.
65997         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
65998         Otherwise, include gnulib's langinfo.h.
65999         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
66000         undesirable behavior in non-C locales.  Instead, rely on localecharset.
66001         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
66002         * modules/regex (FILES): Remove m4/codeset.m4.
66003         (Depends-on): Add localcharset.  Remove strcase.
66004
66005 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66006
66007         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
66008         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
66009
66010 2007-02-13  Bruno Haible  <bruno@clisp.org>
66011
66012         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
66013         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66014
66015 2007-02-12  Bruno Haible  <bruno@clisp.org>
66016
66017         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
66018         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
66019         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
66020         time warning rather than a link error.
66021
66022 2007-02-12  Bruno Haible  <bruno@clisp.org>
66023
66024         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
66025         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
66026         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66027
66028 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
66029
66030         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
66031         args, not 2.
66032
66033 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
66034
66035         New module 'time', so that apps can include <time.h> as per
66036         POSIX and GNU instead of separate include files like time_r.h
66037         and timegm.h.  This implementation tries out a simpler approach
66038         for replacing decls in standard include files (as compared to
66039         the string module), somewhat as an experiment.
66040
66041         * config/srclist.txt: Comment out mktime.c for now.
66042         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
66043         since it doesn't apply any more.  Use generic wording instead.
66044         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
66045         'time'.
66046         * lib/time_.h, m4/time_h.m4, modules/time: New files.
66047         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
66048         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
66049         Don't include <sys/types.h>; no longer needed since we assume C89.
66050         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
66051         * lib/strftime.c: Likewise.
66052         * lib/time_r.c: Likewise.
66053         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
66054         * lib/nanosleep.c: Include <time.h> first, to check interface.
66055         * lib/strptime.c: Likewise.
66056         * lib/time_r.c: Likewise.
66057         * lib/timegm.c: Likewise.
66058         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
66059         needed.
66060         * lib/timegm.c: Don't include timegm.h; no longer needed.
66061         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
66062         time.h now handles any problems in that area.
66063         (struct timespec, nanosleep): Remove; time.h now arranges for these.
66064         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
66065         that time.h defines struct timespec.
66066         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
66067         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
66068         handles that.
66069         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
66070         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
66071         needed.  Set REPLACE_LOCALTIME.
66072         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
66073         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
66074         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
66075         nanosleep; time_h.m4 now does that.  Don't require
66076         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
66077         module handles this now.
66078         * modules/getdate (Depends-on): Remove timespec.  Add time.
66079         * modules/nanosleep (Depends-on): Likewise.
66080         * modules/stat-time (Depends-on): Likewise.
66081         * modules/nanosleep (Include): Include time.h, not timespec.h.
66082         * modules/strptime (Files): Remove lib/strptime.h.
66083         (Depends-on): Add extensions, time.
66084         (Include): Include time.h, not strptime.h.
66085         * modules/time_r (Files): Remove lib/time_r.h.
66086         (Depends-on): Add time.
66087         (Include): Include time.h, not time_r.h.
66088         * modules/timegm: Likewise.
66089         * modules/timespec (Description): Now does timespec-related decls
66090         of our own, instead of struct timespec itself.
66091         (Depends-on): Add time; remove extensions.
66092         (Maintainer): Add self.
66093         * modules/utimecmp (Depends-on): Add time; remove timespec.
66094         * modules/utimens (Depends-on): Likewise.
66095         * modules/xnanosleep (Depends-on): Likewise.
66096
66097 2007-02-11  Bruno Haible  <bruno@clisp.org>
66098
66099         * lib/c-strstr.c: Include allocsa.h.
66100         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
66101         * lib/c-strcasestr.c: Include allocsa.h.
66102         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
66103         * lib/strcasestr.c: Include allocsa.h.
66104         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
66105         * lib/mbsstr.c: Include allocsa.h.
66106         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
66107         allocsa/freesa instead of malloc/free.
66108         * lib/mbscasestr.c: Include allocsa.h.
66109         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
66110         allocsa/freesa instead of malloc/free.
66111         * modules/c-strstr (Depends-on): Add allocsa.
66112         * modules/c-strcasestr (Depends-on): Likewise.
66113         * modules/strcasestr (Depends-on): Likewise.
66114         * modules/mbsstr (Depends-on): Likewise.
66115         * modules/mbscasestr (Depends-on): Likewise.
66116
66117 2007-02-11  Bruno Haible  <bruno@clisp.org>
66118
66119         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
66120
66121         * modules/mbsspn-tests: New file.
66122         * tests/test-mbsspn.sh: New file.
66123         * tests/test-mbsspn.c: New file.
66124
66125 2007-02-11  Bruno Haible  <bruno@clisp.org>
66126
66127         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
66128
66129         * modules/mbspbrk-tests: New file.
66130         * tests/test-mbspbrk.sh: New file.
66131         * tests/test-mbspbrk.c: New file.
66132
66133 2007-02-11  Bruno Haible  <bruno@clisp.org>
66134
66135         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
66136         unneeded cast.
66137
66138         * modules/mbscspn-tests: New file.
66139         * tests/test-mbscspn.sh: New file.
66140         * tests/test-mbscspn.c: New file.
66141
66142 2007-02-11  Bruno Haible  <bruno@clisp.org>
66143
66144         * modules/mbscasecmp-tests: New file.
66145         * tests/test-mbscasecmp.sh: New file.
66146         * tests/test-mbscasecmp.c: New file.
66147
66148 2007-02-11  Bruno Haible  <bruno@clisp.org>
66149
66150         Ensure O(n) worst-case complexity of mbscasestr.
66151         * lib/mbscasestr.c: Include stdbool.h.
66152         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
66153         functions.
66154         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
66155         the bookkeeping indicates that it's worth it.
66156         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
66157
66158         * modules/mbscasestr-tests: New file.
66159         * tests/test-mbscasestr1.c: New file.
66160         * tests/test-mbscasestr2.sh: New file.
66161         * tests/test-mbscasestr2.c: New file.
66162         * tests/test-mbscasestr3.sh: New file.
66163         * tests/test-mbscasestr3.c: New file.
66164         * tests/test-mbscasestr4.sh: New file.
66165         * tests/test-mbscasestr4.c: New file.
66166         * m4/locale-tr.m4: New file.
66167
66168 2007-02-11  Bruno Haible  <bruno@clisp.org>
66169
66170         Ensure O(n) worst-case complexity of mbsstr.
66171         * lib/mbsstr.c: Include stdbool.h.
66172         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
66173         functions.
66174         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
66175         bookkeeping indicates that it's worth it.
66176         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
66177
66178         * modules/mbsstr-tests: New file.
66179         * tests/test-mbsstr1.c: New file.
66180         * tests/test-mbsstr2.sh: New file.
66181         * tests/test-mbsstr2.c: New file.
66182         * tests/test-mbsstr3.sh: New file.
66183         * tests/test-mbsstr3.c: New file.
66184         * m4/locale-fr.m4: New file.
66185
66186 2007-02-11  Bruno Haible  <bruno@clisp.org>
66187
66188         * lib/mbsrchr.c (mbsrchr): Fix bug.
66189
66190         * modules/mbsrchr-tests: New file.
66191         * tests/test-mbsrchr.sh: New file.
66192         * tests/test-mbsrchr.c: New file.
66193
66194 2007-02-11  Bruno Haible  <bruno@clisp.org>
66195
66196         * lib/mbschr.c (mbschr): Fix bug.
66197
66198         * modules/mbschr-tests: New file.
66199         * tests/test-mbschr.sh: New file.
66200         * tests/test-mbschr.c: New file.
66201         * m4/locale-zh.m4: New file.
66202
66203 2007-02-11  Bruno Haible  <bruno@clisp.org>
66204
66205         Support for copying multibyte string iterators.
66206         * lib/mbiter.h: Include <string.h>.
66207         (mbiter_multi_copy): New function.
66208         (mbi_copy): New macro.
66209         * lib/mbuiter.h: Include <string.h>.
66210         (mbuiter_multi_copy): New function.
66211         (mbui_copy): New macro.
66212
66213 2007-02-11  Bruno Haible  <bruno@clisp.org>
66214
66215         New module mbslen.
66216         * modules/mbslen: New file.
66217         * lib/mbslen.c: New file.
66218         * lib/string_.h (mbslen): New declaration.
66219         * m4/mbslen.m4: New file.
66220         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66221         GNULIB_MBSLEN.
66222         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
66223         * MODULES.html.sh (Internationalization functions): Add mbslen.
66224
66225 2007-02-11  Bruno Haible  <bruno@clisp.org>
66226
66227         Ensure O(n) worst-case complexity of strcasestr substitute.
66228         * lib/strcasestr.c: Include stdbool.h.
66229         (knuth_morris_pratt): New function.
66230         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
66231         bookkeeping indicates that it's worth it.
66232         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
66233
66234         * modules/strcasestr-tests: New file.
66235         * tests/test-strcasestr.c: New file.
66236
66237 2007-02-11  Bruno Haible  <bruno@clisp.org>
66238
66239         Ensure O(n) worst-case complexity of c_strcasestr.
66240         * lib/c-strcasestr.c: Include stdbool.h, string.h.
66241         (knuth_morris_pratt): New function.
66242         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
66243         the bookkeeping indicates that it's worth it.
66244         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
66245
66246         * modules/c-strcasestr-tests: New file.
66247         * tests/test-c-strcasestr.c: New file.
66248
66249 2007-02-11  Bruno Haible  <bruno@clisp.org>
66250
66251         Ensure O(n) worst-case complexity of c_strstr.
66252         * lib/c-strstr.c: Include stdbool.h, string.h.
66253         (knuth_morris_pratt): New function.
66254         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
66255         bookkeeping indicates that it's worth it.
66256         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
66257
66258         * lib/c-strstr.c: Complete rewrite for maintainability.
66259
66260         * modules/c-strstr-tests: New file.
66261         * tests/test-c-strstr.c: New file.
66262
66263 2007-02-11  Bruno Haible  <bruno@clisp.org>
66264
66265         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
66266         5.2.1 and earlier, whereby \055 was treated just like the range
66267         delimiter '-'.
66268         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
66269
66270 2007-02-08  Bruno Haible  <bruno@clisp.org>
66271
66272         * modules/regex (Depends-on): Add stdbool.
66273         Reported by Dalibor Topic <robilad@kaffe.org>.
66274
66275 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
66276
66277         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
66278         Prefer returning from main to exiting from it.
66279         Remove unnecessary parens after sizeof.
66280
66281 2007-02-05  Bruno Haible  <bruno@clisp.org>
66282
66283         New module mbssep.
66284         * modules/mbssep: New file.
66285         * lib/mbssep.c: New file.
66286         * lib/string_.h (strsep): Add a conditional link warning.
66287         (mbssep): New declaration.
66288         * m4/mbssep.m4: New file.
66289         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66290         GNULIB_MBSSEP.
66291         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
66292         * MODULES.html.sh (Internationalization functions): Add mbssep.
66293
66294 2007-02-05  Bruno Haible  <bruno@clisp.org>
66295
66296         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
66297         Optimize search in case of 1 delimiter.
66298
66299 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
66300
66301         * lib/acl.h: Include sys/types.h before sys/acl.h.
66302
66303 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
66304
66305         Merge upstream fix for glibc bugzilla #3957:
66306
66307         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
66308
66309         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
66310         bit for RE_HAT_LISTS_NOT_NEWLINE.
66311         (build_charclass_op): Remove bogus comment.
66312
66313 2007-02-05  Simon Josefsson  <simon@josefsson.org>
66314
66315         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
66316
66317 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
66318
66319         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
66320         * lib/memmem.c [!defined _LIBC]: Include config.h.
66321
66322 2007-02-04  Bruno Haible  <bruno@clisp.org>
66323
66324         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
66325         warning message.
66326
66327 2007-02-04  Bruno Haible  <bruno@clisp.org>
66328
66329         New module mbstok_r.
66330         * modules/mbstok_r: New file.
66331         * lib/mbstok_r.c: New file.
66332         * lib/string_.h (strtok_r): Change argument names to match the
66333         comments. Add a conditional link warning.
66334         (mbstok_r): New declaration.
66335         * m4/mbstok_r.m4: New file.
66336         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66337         GNULIB_MBSTOK_R.
66338         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
66339         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
66340
66341 2007-02-04  Bruno Haible  <bruno@clisp.org>
66342
66343         New module mbsspn.
66344         * modules/mbsspn: New file.
66345         * lib/mbsspn.c: New file.
66346         * lib/string_.h (strspn): Add a conditional link warning.
66347         (mbsspn): New declaration.
66348         * m4/mbsspn.m4: New file.
66349         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66350         GNULIB_MBSSPN.
66351         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
66352         * MODULES.html.sh (Internationalization functions): Add mbsspn.
66353
66354 2007-02-04  Bruno Haible  <bruno@clisp.org>
66355
66356         New module mbspbrk.
66357         * modules/mbspbrk: New file.
66358         * lib/mbspbrk.c: New file.
66359         * lib/string_.h (strpbrk): Add a conditional link warning.
66360         (mbspbrk): New declaration.
66361         * m4/mbspbrk.m4: New file.
66362         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66363         GNULIB_MBSPBRK.
66364         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
66365         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
66366
66367 2007-02-04  Bruno Haible  <bruno@clisp.org>
66368
66369         New module mbscspn.
66370         * modules/mbscspn: New file.
66371         * lib/mbscspn.c: New file.
66372         * lib/string_.h (strcspn): Add a conditional link warning.
66373         (mbscspn): New declaration.
66374         * m4/mbscspn.m4: New file.
66375         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66376         GNULIB_MBSCSPN.
66377         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
66378         * MODULES.html.sh (Internationalization functions): Add mbscspn.
66379
66380 2007-02-04  Bruno Haible  <bruno@clisp.org>
66381
66382         New module mbscasestr, reduced goal of strcasestr.
66383         * modules/mbscasestr: New file.
66384         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
66385         (mbscasestr): Renamed from strcasestr.
66386         * lib/strcasestr.c: Don't include mbuiter.h.
66387         (strcasestr): Remove support for multibyte locales.
66388         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
66389         Change the conditional link warning.
66390         (mbscasestr): New declaration.
66391         * m4/mbscasestr.m4: New file.
66392         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
66393         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
66394         REPLACE_STRCASESTR.
66395         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
66396         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
66397         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
66398         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
66399         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
66400         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
66401         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
66402         (Depends-on): Remove mbuiter.
66403         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
66404
66405 2007-02-04  Bruno Haible  <bruno@clisp.org>
66406
66407         Simplify handling of strncasecmp.
66408         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
66409         the conditional link warning.
66410         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
66411         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
66412         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
66413         * modules/strcase (configure.ac): Don't invoke
66414         gl_STRING_MODULE_INDICATOR.
66415         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
66416
66417 2007-02-04  Bruno Haible  <bruno@clisp.org>
66418
66419         New module mbscasecmp, reduced goal of strcasecmp.
66420         * modules/mbscasecmp: New file.
66421         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
66422         (mbscasecmp): Renamed from strcasecmp.
66423         * lib/strcasecmp.c: Don't include mbuiter.h.
66424         (strcasecmp): Remove support for multibyte locales.
66425         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
66426         Change the conditional link warning.
66427         (mbscasecmp): New declaration.
66428         * m4/mbscasecmp.m4: New file.
66429         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
66430         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
66431         REPLACE_STRCASECMP.
66432         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
66433         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66434         GNULIB_MBSCASECMP.
66435         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
66436         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
66437         * modules/strcase (Files): Remove m4/mbrtowc.m4.
66438         (Depends-on): Remove mbuiter.
66439         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
66440
66441 2007-02-04  Bruno Haible  <bruno@clisp.org>
66442
66443         New module mbsstr. Remove module strstr.
66444         * modules/mbsstr: New file.
66445         * modules/strstr: Remove file.
66446         * lib/mbsstr.c: Renamed from lib/strstr.c.
66447         (mbsstr): Renamed from strstr.
66448         * lib/string_.h (strstr): Remove declaration. Change the conditional
66449         link warning.
66450         (mbsstr): New declaration.
66451         * m4/mbsstr.m4: New file.
66452         * m4/strstr.m4: Remove file.
66453         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
66454         REPLACE_STRSTR.
66455         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
66456         Don't initialize GNULIB_STRSTR.
66457         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
66458         substitute GNULIB_STRSTR and REPLACE_STRSTR.
66459         * MODULES.html.sh (Internationalization functions): Add mbsstr.
66460         (Support for systems lacking ANSI C 89): Remove strstr.
66461
66462 2007-02-04  Bruno Haible  <bruno@clisp.org>
66463
66464         New module mbsrchr.
66465         * modules/mbsrchr: New file.
66466         * lib/mbsrchr.c: New file.
66467         * lib/string_.h (strrchr): Add a conditional link warning.
66468         (mbsrchr): New declaration.
66469         * m4/mbsrchr.m4: New file.
66470         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66471         GNULIB_MBSRCHR.
66472         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
66473         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
66474
66475 2007-02-04  Bruno Haible  <bruno@clisp.org>
66476
66477         New module mbschr.
66478         * modules/mbschr: New file.
66479         * lib/mbschr.c: New file.
66480         * lib/string_.h (strchr): Add a conditional link warning.
66481         (mbschr): New declaration.
66482         * m4/mbschr.m4: New file.
66483         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66484         GNULIB_MBSCHR.
66485         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
66486         * MODULES.html.sh (Internationalization functions): Add mbschr.
66487
66488 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
66489
66490         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
66491
66492         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
66493
66494 2007-02-04  Bruno Haible  <bruno@clisp.org>
66495
66496         New module description section 'configure.ac-early'.
66497         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
66498         (func_get_autoconf_early_snippet): New function.
66499         (func_import, func_create_testdir): Use it. Remove special cases for
66500         modules 'extensions' and 'lock'.
66501         * modules/extensions (configure.ac-early): Require
66502         gl_USE_SYSTEM_EXTENSIONS.
66503         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
66504
66505 2007-02-04  Bruno Haible  <bruno@clisp.org>
66506
66507         Make use of gcj-4.3's -fsource and -ftarget option.
66508         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
66509         and if so try the options -fsource and -ftarget.
66510         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
66511         source_version, ftarget_option, target_version arguments.
66512         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
66513         (is_envjavac_oldgcj_14_14_usable): Renamed from
66514         is_envjavac_gcj_14_14_usable.
66515         (is_envjavac_oldgcj_14_13_usable): Renamed from
66516         is_envjavac_gcj_14_13_usable.
66517         (is_gcj_present): Update.
66518         (is_gcj_43, is_gcj43_usable): New functions.
66519         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
66520         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
66521         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
66522         try the options -fsource and -ftarget.
66523
66524 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
66525
66526         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
66527         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
66528         larger value.
66529
66530 2007-02-03  Jim Meyering  <jim@meyering.net>
66531
66532         Give tools a better chance to allocate space for very large buffers.
66533         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
66534
66535         Make pwd and readlink work also when run with an unreadable parent dir
66536         on systems with openat support.
66537         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
66538         provided getcwd function, even when we have openat support.
66539         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
66540
66541 2007-02-02  Bruno Haible  <bruno@clisp.org>
66542
66543         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
66544         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
66545         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
66546         portability problems if one of these functions is only used on specific
66547         platforms.
66548         Reported by Paul Eggert.
66549
66550 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
66551
66552         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
66553         is causing more trouble than it's curing.
66554         * lib/regex_internal.h (__mempcpy): Remove.
66555         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
66556         (and make the code a tad smaller to boot).
66557         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
66558
66559 2007-02-02  Jim Meyering  <jim@meyering.net>
66560
66561         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
66562         section, not in the Makefile.am: one.
66563
66564 2007-02-02  Eric Blake  <ebb9@byu.net>
66565
66566         * lib/strchrnul.c: Always include config.h first.
66567
66568         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
66569         gnulib strstr is not necessary here.
66570
66571 2007-02-02  Simon Josefsson  <simon@josefsson.org>
66572
66573         * m4/socklen.m4: Fix typo.
66574
66575 2007-02-02  Eric Blake  <ebb9@byu.net>
66576
66577         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
66578         * modules/netinet_in (Makefile.am): Likewise.
66579
66580 2007-02-01  Bruno Haible  <bruno@clisp.org>
66581
66582         * lib/string_.h (GL_LINK_WARNING): New macro.
66583         (strcasecmp, strstr, strcasestr): If provided by the system,
66584         conditionally define as a macro that leads to a warning instead of to
66585         an error.
66586         (strncasecmp): Conditionally define as a macro that leads to a warning.
66587
66588 2007-02-01  Karl Berry  <karl@gnu.org>
66589
66590         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
66591
66592 2007-02-01  Bruno Haible  <bruno@clisp.org>
66593
66594         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
66595         renamings.
66596
66597 2007-02-01  Eric Blake  <ebb9@byu.net>
66598
66599         * modules/regex (Depends-on): Revert dependence on mempcpy.
66600         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
66601         module's definition of mempcpy.
66602         Reported by Paul Eggert.
66603
66604 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
66605
66606         * lib/string_.h: If the gnulib module XYZ is not present, undefine
66607         the symbol XYZ before redefining it.  This fixes a problem with
66608         programs that don't use XYZ, when compiled on systems that define
66609         XYZ to something else.
66610
66611 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
66612
66613         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
66614         occurs when "mkdir -m foo" creates a setgid directory that is (1)
66615         writeable to group or other and (2) is intended to have a special
66616         mode bit that is set or cleared.  In such a case, the directory
66617         should be neither group- nor other-writeable until the special
66618         mode bits are right.
66619
66620 2007-01-31  Eric Blake  <ebb9@byu.net>
66621
66622         * modules/mountlist (Depends-on): Add strstr.
66623
66624         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
66625         bug.
66626         * modules/string (Makefile.am): Remove redundant replacement.
66627         * modules/regex (Depends-on): Add mempcpy.
66628
66629 2007-01-31  Bruno Haible  <bruno@clisp.org>
66630
66631         New module description field 'Link'.
66632         * gnulib-tool (func_usage): Document --extract-link-directive.
66633         (sed_extract_prog): Recognize 'Link' directive.
66634         (func_get_link_directive): New function.
66635         (func_import): Show summary of link directives.
66636         Handle --extract-link-directive option.
66637         * modules/acl (Link): New section.
66638         * modules/clock-time (Link): New section.
66639         * modules/euidaccess (Link): New section.
66640         * modules/gettext (Link): New section.
66641         * modules/iconv (Link): New section.
66642         * modules/lock (Link): New section.
66643         * modules/nanosleep (Link): New section.
66644         * modules/readline (Link): New section.
66645
66646 2007-01-27  Bruno Haible  <bruno@clisp.org>
66647
66648         Enforce the use of gnulib modules for unportable <string.h> functions.
66649         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
66650         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
66651         (gl_HEADER_STRING_H_BODY): Require it.
66652         * lib/string_.h: If the gnulib module XYZ is not present, redefine
66653         the symbol XYZ to one that gives a link error.
66654         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
66655         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
66656         * modules/mempcpy (configure.ac): Likewise.
66657         * modules/memrchr (configure.ac): Likewise.
66658         * modules/stpcpy (configure.ac): Likewise.
66659         * modules/stpncpy (configure.ac): Likewise.
66660         * modules/strcase (configure.ac): Likewise.
66661         * modules/strcasestr (configure.ac): Likewise.
66662         * modules/strchrnul (configure.ac): Likewise.
66663         * modules/strdup (configure.ac): Likewise.
66664         * modules/strndup (configure.ac): Likewise.
66665         * modules/strnlen (configure.ac): Likewise.
66666         * modules/strpbrk (configure.ac): Likewise.
66667         * modules/strsep (configure.ac): Likewise.
66668         * modules/strstr (configure.ac): Likewise.
66669         * modules/strtok_r (configure.ac): Likewise.
66670
66671 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
66672
66673         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
66674
66675 2007-01-30  Jim Meyering  <jim@meyering.net>
66676
66677         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
66678
66679 2007-01-29  Bruno Haible  <bruno@clisp.org>
66680
66681         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
66682         * lib/execute.c: Likewise.
66683         * lib/pipe.c: Likewise.
66684         * lib/printf-args.h: Likewise.
66685         * lib/printf-args.c: Likewise.
66686         * lib/printf-parse.c: Likewise.
66687         * lib/vasnprintf.c: Likewise.
66688
66689 2007-01-29  Eric Blake  <ebb9@byu.net>
66690
66691         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
66692         declaration.
66693
66694 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
66695
66696         * lib/strptime.h (strptime): Use 'restrict' for args where
66697         POSIX requires this.
66698         * lib/strptime.c (strptime): Likewise.
66699         Change license notice from LGPL to GPL, since gnulib-tool will
66700         change this as needed.
66701         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
66702         defined.
66703         Include "strptime.h" first, to check interface.
66704         Do not #undef _LIBC and _NL_CURRENT.
66705         Do not include <stdlib.h>; no longer needed.
66706         Include "time_r.h" and declare ptime_locale_status
66707         only if _LIBC is not defined.
66708         (__P): Remove unused macro.
66709         (match_string): Bring back glibc version, but use it only if _LIBC
66710         is defined.
66711         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
66712         Remove unnecessary assertion and abort() call.
66713         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
66714         * m4/strptime.m4: Fix serial number comment.
66715         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
66716         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
66717         (Depends-on): Add time_r.
66718
66719 2007-01-29  Bruno Haible  <bruno@clisp.org>
66720
66721         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66722         strptime.
66723         * modules/strptime (Depends-on): Add stdbool.
66724         * lib/strptime.h: Include <time.h> always. Add comments.
66725
66726 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66727
66728         * modules/strptime: New file.
66729         * lib/strptime.h: New file.
66730         * lib/strptime.c: New file.
66731         * m4/strptime.m4: New file.
66732
66733 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
66734
66735         * MODULES.html.sh: New module mpsort.
66736         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
66737
66738         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
66739         a circularity problem with HP-UX ia64 reported by Bob Proulx in
66740         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
66741         All uses changed.
66742         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
66743         All uses changed.
66744         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
66745         to _Restrict_.
66746         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
66747         the parameter matches the prototype.
66748
66749 2007-01-28  Jim Meyering  <jim@meyering.net>
66750
66751         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
66752         sys/time.h here, reverting that part of the previous patch:
66753         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
66754
66755 2007-01-28  Bruno Haible  <bruno@clisp.org>
66756
66757         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
66758         value of $(SYS_TIME_H).
66759         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
66760         remove it conditionally, too. [added by Jim Meyering]
66761         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
66762         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
66763         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
66764         GETTIMEOFDAY_REPLACEMENT to 1.
66765
66766 2007-01-28  Bruno Haible  <bruno@clisp.org>
66767
66768         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
66769         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
66770         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
66771         Set UNISTD_H instead of UNISTD_H2.
66772         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
66773
66774 2007-01-28  Bruno Haible  <bruno@clisp.org>
66775
66776         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
66777         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
66778
66779 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66780
66781         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
66782         (func_create_testdir): Ensure C locale for `grep' and `tr'
66783         character ranges.
66784         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
66785         ACLOCAL_AMFLAGS parsing state machine.
66786
66787 2007-01-27  Bruno Haible  <bruno@clisp.org>
66788
66789         * modules/unistr/base: Update.
66790
66791 2007-01-27  Bruno Haible  <bruno@clisp.org>
66792
66793         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
66794         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
66795         * modules/unistr/u32-mbtouc-unsafe: Renamed from
66796         modules/unistr/u32-mbtouc.
66797         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
66798         * lib/unistr.h: Update.
66799         * lib/linebreak.c: Update.
66800         * modules/unistr/u32-mbtouc: Renamed from
66801         modules/unistr/u32-mbtouc-safe.
66802         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
66803         * lib/unistr.h: Update.
66804         * lib/unistr/u32-to-u8.c: Update.
66805         * lib/unistr/u32-to-u16.c: Update.
66806
66807 2007-01-27  Bruno Haible  <bruno@clisp.org>
66808
66809         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
66810         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
66811         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
66812         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
66813         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
66814         * modules/unistr/u16-mbtouc-unsafe: Renamed from
66815         modules/unistr/u16-mbtouc.
66816         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
66817         * lib/unistr.h: Update.
66818         * lib/linebreak.c: Update.
66819         * modules/linebreak: Update.
66820         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
66821         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
66822         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
66823         * modules/unistr/u16-mbtouc: Renamed from
66824         modules/unistr/u16-mbtouc-safe.
66825         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
66826         * lib/unistr.h: Update.
66827         * lib/unistr/u16-to-u8.c: Update.
66828         * modules/unistr/u16-to-u8: Update.
66829         * lib/unistr/u16-to-u32.c: Update.
66830         * modules/unistr/u16-to-u32: Update.
66831
66832 2007-01-27  Bruno Haible  <bruno@clisp.org>
66833
66834         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
66835         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
66836         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
66837         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
66838         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
66839         * modules/unistr/u8-mbtouc-unsafe: Renamed from
66840         modules/unistr/u8-mbtouc.
66841         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
66842         * lib/unistr.h: Update.
66843         * lib/striconveh.c: Update.
66844         * modules/striconveh: Update.
66845         * lib/linebreak.c: Update.
66846         * modules/linebreak: Update.
66847         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
66848         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
66849         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
66850         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
66851         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
66852         * lib/unistr.h: Update.
66853         * lib/striconveh.c: Update.
66854         * modules/striconveh: Update.
66855         * lib/unistr/u8-to-u16.c: Update.
66856         * modules/unistr/u8-to-u16: Update.
66857         * lib/unistr/u8-to-u32.c: Update.
66858         * modules/unistr/u8-to-u32: Update.
66859
66860 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66861
66862         Sync from Libtool.
66863         * lib/argz.c: Do not include strings.h nor memory.h, include
66864         string.h unconditionally.  Patch by Simon Josefsson.
66865
66866 2007-01-27  Bruno Haible  <bruno@clisp.org>
66867
66868         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
66869         from gl_HEADER_STRING_H_BODY.
66870         (gl_HEADER_STRING_H_BODY): Require it.
66871         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
66872         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
66873         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
66874         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
66875         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66876         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
66877         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
66878         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
66879         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
66880         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
66881         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
66882         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
66883         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
66884         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
66885         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66886
66887 2007-01-27  Bruno Haible  <bruno@clisp.org>
66888
66889         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
66890         check_PROGRAMS into noinst_PROGRAMS.
66891         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
66892         check_PROGRAMS in this case.
66893         (func_import): Set for_test to false.
66894         (func_create_testdir): Set for_test to true.
66895
66896 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
66897             Bruno Haible  <bruno@clisp.org>
66898
66899         * modules/strcasestr (Files): Remove lib/strcasestr.h.
66900         (Depends-on): Add string.
66901         (Includes): Use <string.h> instead of strcasestr.h.
66902         * modules/string (Makefile.am): Also substitute the value of
66903         REPLACE_STRCASESTR.
66904         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
66905         assume strcasestr is declared in <string.h> not <strings.h>. Also
66906         set REPLACE_STRCASESTR.
66907         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
66908         REPLACE_STRCASESTR.
66909         * lib/strcasestr.h: Remove file.
66910         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
66911         * lib/string_.h (strcasestr): New declaration.
66912
66913 2007-01-27  Bruno Haible  <bruno@clisp.org>
66914
66915         * lib/string_.h: Use 'extern'.
66916
66917 2007-01-27  Jim Meyering  <jim@meyering.net>
66918
66919         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
66920         of set-but-not-used local, "q".
66921
66922         * lib/mempcpy.c: Include <config.h> before <string.h>.
66923         This fixes a compilation error on HP-UX, due to the system's
66924         "restrict"-using mempcpy prototype.
66925
66926 2007-01-26  Bruno Haible  <bruno@clisp.org>
66927
66928         Small optimization.
66929         * lib/javacomp.c: Include c-strstr.h.
66930          (is_envjavac_gcj): Use c_strstr instead of strstr.
66931         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
66932
66933 2007-01-26  Bruno Haible  <bruno@clisp.org>
66934
66935         * MODULES.html.sh (Unicode string functions): Add the new modules.
66936
66937         * modules/uniconv/u32-strconv-to-locale: New file.
66938         * lib/uniconv/u32-strconv-to-locale.c: New file.
66939
66940         * modules/uniconv/u16-strconv-to-locale: New file.
66941         * lib/uniconv/u16-strconv-to-locale.c: New file.
66942
66943         * modules/uniconv/u8-strconv-to-locale: New file.
66944         * lib/uniconv/u8-strconv-to-locale.c: New file.
66945
66946         * modules/uniconv/u32-strconv-from-locale: New file.
66947         * lib/uniconv/u32-strconv-from-locale.c: New file.
66948
66949         * modules/uniconv/u16-strconv-from-locale: New file.
66950         * lib/uniconv/u16-strconv-from-locale.c: New file.
66951
66952         * modules/uniconv/u8-strconv-from-locale: New file.
66953         * lib/uniconv/u8-strconv-from-locale.c: New file.
66954
66955         * modules/uniconv/u32-strconv-to-enc: New file.
66956         * lib/uniconv/u32-strconv-to-enc.c: New file.
66957         * modules/uniconv/u32-strconv-to-enc-tests: New file.
66958         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
66959
66960         * modules/uniconv/u16-strconv-to-enc: New file.
66961         * lib/uniconv/u16-strconv-to-enc.c: New file.
66962         * lib/uniconv/u-strconv-to-enc.h: New file.
66963         * modules/uniconv/u16-strconv-to-enc-tests: New file.
66964         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
66965
66966         * modules/uniconv/u8-strconv-to-enc: New file.
66967         * lib/uniconv/u8-strconv-to-enc.c: New file.
66968         * modules/uniconv/u8-strconv-to-enc-tests: New file.
66969         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
66970
66971         * modules/uniconv/u32-strconv-from-enc: New file.
66972         * lib/uniconv/u32-strconv-from-enc.c: New file.
66973         * modules/uniconv/u32-strconv-from-enc-tests: New file.
66974         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
66975
66976         * modules/uniconv/u16-strconv-from-enc: New file.
66977         * lib/uniconv/u16-strconv-from-enc.c: New file.
66978         * modules/uniconv/u16-strconv-from-enc-tests: New file.
66979         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
66980
66981         * modules/uniconv/u8-strconv-from-enc: New file.
66982         * lib/uniconv/u8-strconv-from-enc.c: New file.
66983         * lib/uniconv/u-strconv-from-enc.h: New file.
66984         * modules/uniconv/u8-strconv-from-enc-tests: New file.
66985         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
66986
66987         * modules/uniconv/u32-conv-from-enc: New file.
66988         * lib/uniconv/u32-conv-from-enc.c: New file.
66989         * modules/uniconv/u32-conv-from-enc-tests: New file.
66990         * tests/uniconv/test-u32-conv-from-enc.c: New file.
66991
66992         * modules/uniconv/u16-conv-from-enc: New file.
66993         * lib/uniconv/u16-conv-from-enc.c: New file.
66994         * lib/uniconv/u-conv-from-enc.h: New file.
66995         * modules/uniconv/u16-conv-from-enc-tests: New file.
66996         * tests/uniconv/test-u16-conv-from-enc.c: New file.
66997
66998         * modules/uniconv/u8-conv-from-enc: New file.
66999         * lib/uniconv/u8-conv-from-enc.c: New file.
67000         * modules/uniconv/u8-conv-from-enc-tests: New file.
67001         * tests/uniconv/test-u8-conv-from-enc.c: New file.
67002
67003         * modules/uniconv/base: New file.
67004         * lib/uniconv.h: New file.
67005
67006 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
67007
67008         * doc/gnulib-tool.texi (Initial import): Update to match current
67009         behavior with strdup module.
67010         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
67011         * lib/memmem.h: Remove; all uses removed.  This is now done
67012         by <string.h>.
67013         * lib/mempcpy.h: Likewise.
67014         * lib/memrchr.h: Likewise.
67015         * lib/stpcpy.h: Likewise.
67016         * lib/stpncpy.h: Likewise.
67017         * lib/strcase.h: Likewise.
67018         * lib/strchrnul.h: Likewise.
67019         * lib/strdup.h: Likewise.
67020         * lib/strndup.h: Likewise.
67021         * lib/strnlen.h: Likewise.
67022         * lib/strpbrk.h: Likewise.
67023         * lib/strsep.h: Likewise.
67024         * lib/strstr.h: Likewise.
67025         * lib/strtok_r.h: Likewise.
67026         * lib/string_.h: New file.
67027         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
67028         Rely on <string.h> instead.
67029         * lib/canon-host.c: Likewise.
67030         * lib/chdir-long.c: Likewise.
67031         * lib/concatpath.c: Likewise.
67032         * lib/exclude.c: Likewise.
67033         * lib/fchdir.c: Likewise.
67034         * lib/getaddrinfo.c: Likewise.
67035         * lib/getcwd.c: Likewise.
67036         * lib/getsubopt.c: Likewise.
67037         * lib/glob.c: Likewise.
67038         * lib/hard-locale.c: Likewise.
67039         * lib/iconvme.c: Likewise.
67040         * lib/javacomp.c: Likewise.
67041         * lib/mempcpy.c: Likewise.
67042         * lib/memrchr.c: Likewise.
67043         * lib/regex_internal.h: Likewise.
67044         * lib/stpncpy.c: Likewise.
67045         * lib/strcasecmp.c: Likewise.
67046         * lib/strchrnul.c: Likewise.
67047         * lib/strdup.c: Likewise.
67048         * lib/striconv.c: Likewise.
67049         * lib/striconveh.c: Likewise.
67050         * lib/striconveha.c: Likewise.
67051         * lib/strncasecmp.c: Likewise.
67052         * lib/strndup.c: Likewise.
67053         * lib/strnlen.c: Likewise.
67054         * lib/strsep.c: Likewise.
67055         * lib/strstr.c: Likewise.
67056         * lib/strtok_r.c: Likewise.
67057         * lib/userspec.c: Likewise.
67058         * lib/w32spawn.h: Likewise.
67059         * lib/xstrndup.c: Likewise.
67060         * lib/mountlist.c (strstr): Remove decl.
67061         * m4/string_h.m4: New file.
67062         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
67063         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
67064         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
67065         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
67066         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
67067         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
67068         Set REPLACE_STRCASECMP if necessary.
67069         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
67070         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
67071         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
67072         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
67073         HAVE_DECL_STRDUP if necessary.
67074         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
67075         since gl_FUNC_STRNDUP does that now.
67076         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
67077         Check for decl here...
67078         (gl_PREREQ_STRNLEN): ... not here.
67079         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
67080         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
67081         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
67082         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
67083         necessary.
67084         * modules/string: New file.
67085         * modules/memmem (Files): Remove special-purpose include file.
67086         (Depends-on): Add string.
67087         (Include): Include <string.h>, not the removed file.
67088         * modules/mempcpy: Likewise.
67089         * modules/memrchr: Likewise.
67090         * modules/stpcpy: Likewise.
67091         * modules/stpncpy: Likewise.
67092         * modules/strcase: Likewise.
67093         * modules/strchrnul: Likewise.
67094         * modules/strdup: Likewise.
67095         * modules/strndup: Likewise.
67096         * modules/strnlen: Likewise.
67097         * modules/strpbrk: Likewise.
67098         * modules/strsep: Likewise.
67099         * modules/strstr: Likewise.
67100         * modules/strtok_r: Likewise.
67101         * tests/test-dirname.c: Don't include "strdup.h", since
67102         <string.h> now suffices.
67103         * tests/test-memmem.c: Don't include "memmem.h", since
67104         <string.h> now suffices.
67105
67106 2007-01-25  Bruno Haible  <bruno@clisp.org>
67107
67108         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
67109         *resultp is 0.
67110
67111         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
67112         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
67113         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
67114         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
67115
67116         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
67117         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
67118         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
67119         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
67120         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
67121         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
67122
67123 2007-01-24  Bruno Haible  <bruno@clisp.org>
67124
67125         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
67126         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
67127         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
67128         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
67129         gl_FUNC_FTS_CORE.
67130         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
67131         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
67132         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67133         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
67134         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
67135         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
67136         gl_FUNC_FCHOWNAT.
67137         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
67138         gl_FUNC_STRFTIME.
67139         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
67140         Reported by Ralf Wildenhues.
67141
67142 2007-01-24  Bruno Haible  <bruno@clisp.org>
67143
67144         Drop AC_REQUIRE calls that are redundant with the module dependencies.
67145         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
67146         gl_GETADDRINFO.
67147         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
67148         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
67149         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
67150
67151 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
67152
67153         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
67154         Don't use 'exit'; just return from 'main'.
67155         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
67156
67157         * lib/fnmatch_.h: Readjust white space and comments to match
67158         glibc, to avoid spurious diffs.
67159
67160 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67161
67162         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
67163         2004-12-01 change by Jakub Jelinek, since this code won't compile
67164         if !LIBC.  Problem reported by Bob Proulx.
67165
67166 2007-01-23  Bruno Haible  <bruno@clisp.org>
67167
67168         * lib/striconveh.c: Include c-strcaseeq.h.
67169         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
67170         * modules/striconveh (Depends-on): Add c-strcaseeq.
67171
67172 2007-01-23  Bruno Haible  <bruno@clisp.org>
67173
67174         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
67175
67176         * modules/c-strcaseeq: New file.
67177         * lib/c-strcaseeq.h: New file.
67178
67179         * modules/streq: New file.
67180         * lib/streq.h: New file.
67181
67182 2007-01-23  Bruno Haible  <bruno@clisp.org>
67183
67184         * modules/striconveha-tests: New file.
67185         * tests/test-striconveha.c: New file.
67186
67187         * lib/striconveha.h: Include <stdbool.h>.
67188         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
67189         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
67190         (mem_iconveha_notranslit): Renamed from mem_iconveha.
67191         (mem_iconveha): New function.
67192         (str_iconveha_notranslit): Renamed from str_iconveha.
67193         (str_iconveha): New function.
67194         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
67195         c-strcase.
67196
67197 2007-01-23  Bruno Haible  <bruno@clisp.org>
67198
67199         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
67200         encodings without forgiving before trying any encoding with handler.
67201         (str_iconveha): Try all encodings without forgiving before trying any
67202         encoding with handler.
67203
67204 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67205
67206         Import the following changes from libc.
67207
67208         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
67209
67210         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
67211
67212         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
67213
67214         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
67215         normal_bracket label.
67216
67217         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
67218
67219         [BZ #361]
67220         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
67221         to normal_bracket after fetching the next character.
67222
67223 2007-01-22  Bruno Haible  <bruno@clisp.org>
67224
67225         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
67226         argument.
67227         * lib/striconveh.c (iconv_carefully_1): New function.
67228         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
67229         argument.
67230         (str_cd_iconveh): Update.
67231         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
67232         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
67233         * tests/test-striconveh.c (MAGIC): New macro.
67234         (new_offsets): New function.
67235         (main): Test call with and without offsets.
67236
67237 2007-01-22  Bruno Haible  <bruno@clisp.org>
67238
67239         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
67240         * modules/sys_select (Makefile.am): Likewise.
67241         * modules/sys_socket (Makefile.am): Likewise.
67242         * modules/sys_time (Makefile.am): Likewise.
67243
67244 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
67245
67246         * modules/gettimeofday (License): Change from GPL to LGPL, since
67247         gettimeofday is a library function.
67248
67249 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67250
67251         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
67252
67253 2007-01-21  Bruno Haible  <bruno@clisp.org>
67254
67255         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
67256
67257 2007-01-21  Bruno Haible  <bruno@clisp.org>
67258
67259         * modules/striconveha: New file.
67260         * lib/striconveha.h: New file.
67261         * lib/striconveha.c: New file.
67262         * MODULES.html.sh (Internationalization functions): Add striconveha.
67263         * lib/striconv.c (str_iconv): Optimize the case of an empty input
67264         string.
67265         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
67266
67267 2007-01-21  Bruno Haible  <bruno@clisp.org>
67268
67269         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
67270         * lib/striconveh.c (str_iconveh): Likewise.
67271
67272 2007-01-21  Bruno Haible  <bruno@clisp.org>
67273
67274         * lib/striconveh.h (mem_iconveh): New declaration.
67275         * lib/striconveh.c (mem_iconveh): New function.
67276         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
67277
67278 2007-01-21  Bruno Haible  <bruno@clisp.org>
67279
67280         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
67281
67282         * lib/striconveh.h (mem_cd_iconveh): Change specification.
67283         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
67284         original result buffer.
67285         (str_cd_iconveh): Update.
67286         * tests/test-striconveh.c (main): Update.
67287
67288         * lib/striconv.h (mem_cd_iconv): Change specification.
67289         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
67290         result buffer.
67291         (str_cd_iconv): Update.
67292         * tests/test-striconv.c (main): Update.
67293
67294 2007-01-21  Bruno Haible  <bruno@clisp.org>
67295
67296         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
67297
67298 2007-01-20  Jim Meyering  <jim@meyering.net>
67299
67300         * lib/userspec.c (parse_with_separator): If a user or group string
67301         starts with "+", skip the corresponding name-to-ID look-up, since
67302         such a look-up must fail: user and group names may not include "+".
67303
67304 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
67305
67306         * lib/poll.c: Include sys/time.h and time.h unconditionally,
67307         since we now assume the sys_time module.
67308         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
67309         check for sys/time.h; no longer needed.
67310         * modules/poll (Depends-on): Depend on sys_time.
67311
67312 2007-01-18  Bruno Haible  <bruno@clisp.org>
67313
67314         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
67315         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
67316
67317         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
67318         gettimeofday.
67319
67320         * tests/test-gettimeofday.c: Include <time.h>.
67321         (dummy): Remove variable.
67322
67323         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
67324         gl_HEADER_SYS_TIME_H.
67325         (gl_HEADER_SYS_TIME_H): New macro.
67326
67327         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
67328         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67329         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
67330         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
67331         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67332         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
67333         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
67334         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67335         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
67336         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
67337         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67338
67339         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
67340         last change; it caused a compilation error when cross-compiling to
67341         Cygwin.
67342
67343 2007-01-18  Jim Meyering  <jim@meyering.net>
67344
67345         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
67346         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
67347         than the race-prone "test -d sys || mkdir sys".
67348         (configure.ac): Use AC_PROG_MKDIR_P.
67349         * modules/sys_select: Likewise.
67350         * modules/sys_socket: Likewise.
67351         * modules/sys_time: Likewise.
67352
67353 2007-01-18  Eric Blake  <ebb9@byu.net>
67354
67355         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
67356         replace gettimeofday.
67357         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
67358         name, to avoid infinite recursion.
67359
67360 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
67361
67362         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
67363         module sys_time.
67364         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
67365         assume timespec.h defines struct timeval.
67366         * lib/settime.c: Likewise.
67367         * lib/utimens.c: Likewise.
67368         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
67369         since we now assume the gettimeofday module.
67370         * lib/tempname.c (__gen_tempname): Likewise.
67371         * lib/gettimeofday.h: Remove.
67372         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
67373         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
67374         Include <time.h>, for 'time()'.
67375         (localtime_buffer_addr): Also use this workaround if
67376         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
67377         to simplify the uses.  All uses changed.
67378         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
67379         that #undef is inside {}, and 'const' follows type name consistently.
67380         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
67381         (gettimeofday): Do not use the maximum possible value for
67382         tv->tv_usec, since that might break usages other than ls.c.
67383         Instead, we'll leave ls.c alone.  This undoes today's patch
67384         by Bruno.  Add a compile-time warning for 1s-clock resolution;
67385         we've never observed the problem but might as well keep the
67386         canary.
67387         * lib/nanosleep.c: Include timespec.h first, for interface check.
67388         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
67389         now assume the sys_time module.
67390         * lib/tempname.c: Likewise.
67391         * lib/timespec.h: Likewise.
67392         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
67393         needed.
67394         * lib/strftime.c: Likewise.
67395         * lib/timespec.h: Likewise.
67396         * lib/posixtm.c: Include posixtm.h first, for interface check.
67397         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
67398         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
67399         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
67400         * lib/sys_time_.h: New file.
67401         * lib/timespec.h (struct timespec): Use long int, not long.
67402         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
67403         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
67404         Remove obsolescent call to AC_HEADER_TIME.
67405         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
67406         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
67407         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
67408         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
67409         Likewise.
67410         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
67411         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
67412         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
67413         into the sys_time module.  Check for gettimeofday just once.
67414         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
67415         for gettimeofday signature to just check the signature.  Merely
67416         compile it, since linking doesn't test signature.  Improve test for
67417         whether gettimeofday.o is actually needed.
67418         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
67419         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
67420         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
67421         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67422         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
67423         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
67424         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
67425         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
67426         than worrying about sys/time.h.
67427         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67428         Don't bother worrying about TIME_WITH_SYS_TIME.
67429         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
67430         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
67431         * m4/sys_time_h.m4: New file.
67432         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
67433         Don't include sys/time.h.  Return from main rather than exiting.
67434         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
67435         all uses changed.
67436         * modules/gethrxtime (Depends-on): Add sys_time.
67437         * modules/gettime (Depends-on): Likewise.
67438         * modules/gettimeofday (Depends-on): Likewise.
67439         * modules/nanosleep (Depends-on): Likewise.
67440         * modules/settime (Depends-on): Likewise.
67441         * modules/tempname (Depends-on): Likewise.
67442         * modules/utimens (Depends-on): Likewise.
67443         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
67444         (Include): Change back to <sys/time.h>.
67445         (Maintainer): Add self.
67446         * modules/sys_time: New file.
67447         * modules/tempname (Depends-on): Add gettimeofday.
67448         * tests/test-gettimeofday.c: Include <sys/time.h>
67449         rather than gettimeofday.h.
67450
67451 2007-01-17  Bruno Haible  <bruno@clisp.org>
67452
67453         * gnulib-tool (func_get_license): Revert last patch. Instead, let
67454         the license default to GPL.
67455         (func_create_testdir): Don't complain if a module is LGPL and its
67456         tests module depends on GPLed modules.
67457
67458 2007-01-17  Bruno Haible  <bruno@clisp.org>
67459
67460         * lib/gettimeofday.c (gettimeofday): Add code for the case
67461         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
67462         maximum possible value for tv->tv_usec, rather than the minimum one.
67463
67464 2005-10-08  Martin Lambers  <marlam@marlam.de>
67465 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67466 2007-01-16  Bruno Haible  <bruno@clisp.org>
67467
67468         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
67469         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
67470         gl_FUNC_GETTIMEOFDAY.
67471         (Include): Add gettimeofday.h.
67472         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
67473         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
67474         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
67475         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
67476         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
67477         * lib/gettimeofday.h: New file.
67478         * lib/gettimeofday.c: Include <sys/timeb.h>.
67479         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
67480         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67481         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
67482         fall back on time().
67483
67484         * tests/test-gettimeofday.c: New file.
67485         * modules/gettimeofday-tests: New file.
67486
67487 2007-01-16  Eric Blake  <ebb9@byu.net>
67488
67489         * modules/fnmatch (Depends-on): Depend on wchar.
67490         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
67491         * m4/fnmatch.m4: Likewise.
67492         * modules/mbchar (Makefile.am): Assume <wchar.h>.
67493         * m4/mbchar.m4: Likewise.
67494         * modules/mbswidth (Depends-on): Depend on wchar.
67495         * lib/mbswidth.c: Assume <wchar.h>.
67496         * m4/mbswidth.m4: Likewise.
67497         * modules/quotearg (Depends-on): Depend on wchar.
67498         * lib/quotearg.c: Assume <wchar.h>.
67499         * m4/quotearg.m4: Likewise.
67500         * modules/regex (Depends-on): Depend on wchar.
67501         * lib/regex_internal.h: Assume <wchar.h>.
67502         * m4/regex.m4: Likewise.
67503         * modules/stdint (Depends-on): Depend on wchar.
67504         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
67505         * m4/stdint.m4: Likewise.
67506         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
67507         * modules/strftime (Depends-on): Depend on wchar.
67508         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
67509         * modules/strtol (Depends-on): Depend on wchar.
67510         * lib/strtol.c: Assume <wchar.h>.
67511         * modules/wcwidth (Depends-on): Depend on wchar.
67512         * lib/wcwidth.h: Assume <wchar.h>.
67513         * m4/wcwidth.m4: Likewise.
67514
67515 2007-01-16  Bruno Haible  <bruno@clisp.org>
67516
67517         * modules/csharpexec-script: New, created from...
67518         * modules/csharpexec: ... this.
67519
67520 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
67521
67522         * modules/javaexec-script: New, created from...
67523         * modules/javaexec: ... this.
67524
67525 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67526
67527         * modules/poll (Dependencies): Add sys_select.
67528
67529 2007-01-15  Jim Meyering  <jim@meyering.net>
67530
67531         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
67532         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
67533         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
67534         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
67535
67536 2007-01-15  Bruno Haible  <bruno@clisp.org>
67537
67538         * modules/striconveh: New file.
67539         * lib/striconveh.h: New file.
67540         * lib/striconveh.c: New file.
67541         * MODULES.html.sh (Internationalization functions): Add striconveh.
67542
67543         * modules/striconveh-tests: New file.
67544         * tests/test-striconveh.c: New file.
67545
67546 2007-01-15  Bruno Haible  <bruno@clisp.org>
67547
67548         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
67549         not from GNU libiconv or GNU libc.
67550
67551 2007-01-15  Bruno Haible  <bruno@clisp.org>
67552
67553         * doc/gnulib-intro.texi (Copyright): Explain the different license
67554         terms for module descriptions, autoconf macros, tests, documentation.
67555
67556 2007-01-14  Bruno Haible  <bruno@clisp.org>
67557
67558         * modules/striconv-tests: New file.
67559         * tests/test-striconv.c: New file.
67560
67561 2007-01-14  Bruno Haible  <bruno@clisp.org>
67562
67563         * modules/iconv-tests: New file.
67564         * tests/test-iconv.c: New file.
67565
67566 2007-01-14  Bruno Haible  <bruno@clisp.org>
67567
67568         * gnulib-tool (func_get_license): For test modules, use the license of
67569         the main module.
67570
67571 2007-01-14  Bruno Haible  <bruno@clisp.org>
67572
67573         * modules/iconv (Include): Clarify that <iconv.h> can only be included
67574         if iconv is found to exist.
67575
67576 2007-01-14  Bruno Haible  <bruno@clisp.org>
67577
67578         * modules/c-ctype-tests: New file.
67579         * tests/test-c-ctype.c: New file.
67580
67581 2007-01-14  Bruno Haible  <bruno@clisp.org>
67582
67583         * modules/binary-io-tests: New file.
67584         * tests/test-binary-io.sh: New file.
67585         * tests/test-binary-io.c: New file.
67586
67587 2007-01-14  Bruno Haible  <bruno@clisp.org>
67588
67589         * modules/array-oset-tests: New file.
67590         * tests/test-array_oset.c: New file.
67591
67592 2007-01-14  Bruno Haible  <bruno@clisp.org>
67593
67594         * modules/array-list-tests: New file.
67595         * tests/test-array_list.c: New file.
67596
67597 2007-01-14  Bruno Haible  <bruno@clisp.org>
67598
67599         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
67600         and make.
67601         Reported by Simon Josefsson in
67602         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
67603
67604 2007-01-14  Bruno Haible  <bruno@clisp.org>
67605
67606         * modules/allocsa-tests: New file.
67607         * tests/test-allocsa.c: New file.
67608
67609 2007-01-14  Bruno Haible  <bruno@clisp.org>
67610
67611         * modules/fchdir (Depends-on): Add absolute-header.
67612         * modules/unistd (Depends-on): Likewise.
67613
67614 2006-12-30  Bruno Haible  <bruno@clisp.org>
67615
67616         * modules/fchdir: New file.
67617         * modules/unistd (Files): Add lib/unistd_.h.
67618         (Makefile.am): Generate unistd.h from unistd_.h.
67619         * lib/fchdir.c: New file.
67620         * lib/dirent_.h: New file.
67621         * lib/unistd_.h: New file.
67622         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
67623         * m4/fchdir.m4: New file.
67624         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
67625         (gl_HEADER_UNISTD): Invoke it.
67626         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
67627         function.
67628         * lib/backupfile.c (opendir, closedir): Undefine.
67629         * lib/chown.c (open, close): Undefine.
67630         * lib/clean-temp.c (open, close): Undefine.
67631         * lib/copy-file.c (open, close): Undefine.
67632         * lib/execute.c (open, close): Undefine.
67633         * lib/fsusage.c (open, close): Undefine.
67634         * lib/gc-gnulib.c (open, close): Undefine.
67635         * lib/getcwd.c (opendir, closedir): Undefine.
67636         * lib/glob.c (opendir, closedir): Undefine.
67637         * lib/javacomp.c (open, close): Undefine.
67638         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
67639         * lib/openat-proc.c (open, close): Undefine.
67640         * lib/pagealign_alloc.c (open, close): Undefine.
67641         * lib/pipe.c (open, close): Undefine.
67642         * lib/progreloc.c (open, close): Undefine.
67643         * lib/savedir.c (opendir, closedir): Undefine.
67644         * lib/utime.c (open, close): Undefine.
67645         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
67646
67647 2007-01-10  Bruno Haible  <bruno@clisp.org>
67648
67649         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
67650
67651 2007-01-12  Eric Blake  <ebb9@byu.net>
67652
67653         Provide a robust <wchar.h>.  Further simplifications are now
67654         possible in other modules, but not included here.
67655         * modules/wchar: New module.
67656         * m4/wchar.m4: New file.
67657         * lib/wchar_.h: Likewise.
67658         * modules/mbchar (Depends-on): Depend on wchar, as the first use
67659         of the new module.
67660         * MODULES.html.sh (Extended multibyte and wide character utilities):
67661         New section.
67662
67663 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
67664
67665         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
67666         to a reasonable default for memory allocation.
67667         (xreadlink): Don't allocate a huge buffer, to work around a buggy
67668         file system that reports garbage st_size values for symlinks.
67669         Problem reported by Liyang Hu.
67670
67671 2007-01-11  Simon Josefsson  <simon@josefsson.org>
67672
67673         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
67674         Emacs .#* auto-save files).
67675
67676 2007-01-11  Bruno Haible  <bruno@clisp.org>
67677
67678         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
67679         directory.
67680
67681 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67682
67683         Use @...@ consistently in lib/wctype_.h.
67684         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
67685         on it being set to 1 or 0.
67686         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
67687         go back to AC_SUBSTing it.
67688         * modules/wctype (Makefile.am): Undo previous change.
67689
67690 2007-01-10  Eric Blake  <ebb9@byu.net>
67691
67692         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
67693         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
67694         * modules/wctype (Makefile.am): Likewise.
67695         Reported by Chris McGuire.
67696
67697 2007-01-10  Jim Meyering  <jim@meyering.net>
67698
67699         fts.c: a small readability/maintainability improvement
67700         * lib/fts.c (fts_read): Make this code slightly more readable and
67701         maintainable by hoisting the "sp->fts_cur = p" assignments to
67702         immediately follow the statements that set P.  Derived from
67703         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
67704
67705 2007-01-10  Eric Blake  <ebb9@byu.net>
67706
67707         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
67708         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
67709         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
67710         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
67711         Reported by Chris McGuire.
67712
67713 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67714
67715         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
67716         in sed script.
67717
67718 2007-01-09  Bruno Haible  <bruno@clisp.org>
67719
67720         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
67721         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
67722         variables.
67723         (func_module): Use them.
67724
67725 2007-01-09  Bruno Haible  <bruno@clisp.org>
67726
67727         * modules/unistr/base: New file.
67728         * lib/unistr.h: New file.
67729
67730         * modules/unistr/u8-to-u16: New file.
67731         * lib/unistr/u8-to-u16.c: New file.
67732
67733         * modules/unistr/u8-to-u32: New file.
67734         * lib/unistr/u8-to-u32.c: New file.
67735
67736         * modules/unistr/u16-to-u8: New file.
67737         * lib/unistr/u16-to-u8.c: New file.
67738
67739         * modules/unistr/u16-to-u32: New file.
67740         * lib/unistr/u16-to-u32.c: New file.
67741
67742         * modules/unistr/u32-to-u8: New file.
67743         * lib/unistr/u32-to-u8.c: New file.
67744
67745         * modules/unistr/u32-to-u16: New file.
67746         * lib/unistr/u32-to-u16.c: New file.
67747
67748         * modules/unistr/u8-check: New file.
67749         * modules/unistr/u16-check: New file.
67750         * modules/unistr/u32-check: New file.
67751         * lib/unistr/u8-check.c: New file.
67752         * lib/unistr/u16-check.c: New file.
67753         * lib/unistr/u32-check.c: New file.
67754
67755         * modules/unistr/u8-chr: New file.
67756         * modules/unistr/u16-chr: New file.
67757         * modules/unistr/u32-chr: New file.
67758         * lib/unistr/u8-chr.c: New file.
67759         * lib/unistr/u16-chr.c: New file.
67760         * lib/unistr/u32-chr.c: New file.
67761
67762         * modules/unistr/u8-cmp: New file.
67763         * modules/unistr/u16-cmp: New file.
67764         * modules/unistr/u32-cmp: New file.
67765         * lib/unistr/u8-cmp.c: New file.
67766         * lib/unistr/u16-cmp.c: New file.
67767         * lib/unistr/u32-cmp.c: New file.
67768
67769         * modules/unistr/u8-cpy: New file.
67770         * modules/unistr/u16-cpy: New file.
67771         * modules/unistr/u32-cpy: New file.
67772         * lib/unistr/u8-cpy.c: New file.
67773         * lib/unistr/u16-cpy.c: New file.
67774         * lib/unistr/u32-cpy.c: New file.
67775         * lib/unistr/u-cpy.h: New file.
67776
67777         * modules/unistr/u8-cpy-alloc: New file.
67778         * modules/unistr/u16-cpy-alloc: New file.
67779         * modules/unistr/u32-cpy-alloc: New file.
67780         * lib/unistr/u8-cpy-alloc.c: New file.
67781         * lib/unistr/u16-cpy-alloc.c: New file.
67782         * lib/unistr/u32-cpy-alloc.c: New file.
67783         * lib/unistr/u-cpy-alloc.h: New file.
67784
67785         * modules/unistr/u8-endswith: New file.
67786         * modules/unistr/u16-endswith: New file.
67787         * modules/unistr/u32-endswith: New file.
67788         * lib/unistr/u8-endswith.c: New file.
67789         * lib/unistr/u16-endswith.c: New file.
67790         * lib/unistr/u32-endswith.c: New file.
67791         * lib/unistr/u-endswith.h: New file.
67792
67793         * modules/unistr/u8-mblen: New file.
67794         * modules/unistr/u16-mblen: New file.
67795         * modules/unistr/u32-mblen: New file.
67796         * lib/unistr/u8-mblen.c: New file.
67797         * lib/unistr/u16-mblen.c: New file.
67798         * lib/unistr/u32-mblen.c: New file.
67799
67800         * modules/unistr/u8-mbtouc: New file.
67801         * modules/unistr/u16-mbtouc: New file.
67802         * modules/unistr/u32-mbtouc: New file.
67803         * lib/unistr/u8-mbtouc.c: New file.
67804         * lib/unistr/u16-mbtouc.c: New file.
67805         * lib/unistr/u32-mbtouc.c: New file.
67806
67807         * modules/unistr/u8-mbtouc-safe: New file.
67808         * modules/unistr/u16-mbtouc-safe: New file.
67809         * modules/unistr/u32-mbtouc-safe: New file.
67810         * lib/unistr/u8-mbtouc-safe.c: New file.
67811         * lib/unistr/u16-mbtouc-safe.c: New file.
67812         * lib/unistr/u32-mbtouc-safe.c: New file.
67813
67814         * modules/unistr/u8-move: New file.
67815         * modules/unistr/u16-move: New file.
67816         * modules/unistr/u32-move: New file.
67817         * lib/unistr/u8-move.c: New file.
67818         * lib/unistr/u16-move.c: New file.
67819         * lib/unistr/u32-move.c: New file.
67820         * lib/unistr/u-move.h: New file.
67821
67822         * modules/unistr/u8-next: New file.
67823         * modules/unistr/u16-next: New file.
67824         * modules/unistr/u32-next: New file.
67825         * lib/unistr/u8-next.c: New file.
67826         * lib/unistr/u16-next.c: New file.
67827         * lib/unistr/u32-next.c: New file.
67828
67829         * modules/unistr/u8-prev: New file.
67830         * modules/unistr/u16-prev: New file.
67831         * modules/unistr/u32-prev: New file.
67832         * lib/unistr/u8-prev.c: New file.
67833         * lib/unistr/u16-prev.c: New file.
67834         * lib/unistr/u32-prev.c: New file.
67835
67836         * modules/unistr/u8-set: New file.
67837         * modules/unistr/u16-set: New file.
67838         * modules/unistr/u32-set: New file.
67839         * lib/unistr/u8-set.c: New file.
67840         * lib/unistr/u16-set.c: New file.
67841         * lib/unistr/u32-set.c: New file.
67842         * lib/unistr/u-set.h: New file.
67843
67844         * modules/unistr/u8-startswith: New file.
67845         * modules/unistr/u16-startswith: New file.
67846         * modules/unistr/u32-startswith: New file.
67847         * lib/unistr/u8-startswith.c: New file.
67848         * lib/unistr/u16-startswith.c: New file.
67849         * lib/unistr/u32-startswith.c: New file.
67850         * lib/unistr/u-startswith.h: New file.
67851
67852         * modules/unistr/u8-stpcpy: New file.
67853         * modules/unistr/u16-stpcpy: New file.
67854         * modules/unistr/u32-stpcpy: New file.
67855         * lib/unistr/u8-stpcpy.c: New file.
67856         * lib/unistr/u16-stpcpy.c: New file.
67857         * lib/unistr/u32-stpcpy.c: New file.
67858         * lib/unistr/u-stpcpy.h: New file.
67859
67860         * modules/unistr/u8-stpncpy: New file.
67861         * modules/unistr/u16-stpncpy: New file.
67862         * modules/unistr/u32-stpncpy: New file.
67863         * lib/unistr/u8-stpncpy.c: New file.
67864         * lib/unistr/u16-stpncpy.c: New file.
67865         * lib/unistr/u32-stpncpy.c: New file.
67866         * lib/unistr/u-stpncpy.h: New file.
67867
67868         * modules/unistr/u8-strcat: New file.
67869         * modules/unistr/u16-strcat: New file.
67870         * modules/unistr/u32-strcat: New file.
67871         * lib/unistr/u8-strcat.c: New file.
67872         * lib/unistr/u16-strcat.c: New file.
67873         * lib/unistr/u32-strcat.c: New file.
67874         * lib/unistr/u-strcat.h: New file.
67875
67876         * modules/unistr/u8-strchr: New file.
67877         * modules/unistr/u16-strchr: New file.
67878         * modules/unistr/u32-strchr: New file.
67879         * lib/unistr/u8-strchr.c: New file.
67880         * lib/unistr/u16-strchr.c: New file.
67881         * lib/unistr/u32-strchr.c: New file.
67882
67883         * modules/unistr/u8-strcmp: New file.
67884         * modules/unistr/u16-strcmp: New file.
67885         * modules/unistr/u32-strcmp: New file.
67886         * lib/unistr/u8-strcmp.c: New file.
67887         * lib/unistr/u16-strcmp.c: New file.
67888         * lib/unistr/u32-strcmp.c: New file.
67889
67890         * modules/unistr/u8-strcpy: New file.
67891         * modules/unistr/u16-strcpy: New file.
67892         * modules/unistr/u32-strcpy: New file.
67893         * lib/unistr/u8-strcpy.c: New file.
67894         * lib/unistr/u16-strcpy.c: New file.
67895         * lib/unistr/u32-strcpy.c: New file.
67896         * lib/unistr/u-strcpy.h: New file.
67897
67898         * modules/unistr/u8-strcspn: New file.
67899         * modules/unistr/u16-strcspn: New file.
67900         * modules/unistr/u32-strcspn: New file.
67901         * lib/unistr/u8-strcspn.c: New file.
67902         * lib/unistr/u16-strcspn.c: New file.
67903         * lib/unistr/u32-strcspn.c: New file.
67904         * lib/unistr/u-strcspn.h: New file.
67905
67906         * modules/unistr/u8-strdup: New file.
67907         * modules/unistr/u16-strdup: New file.
67908         * modules/unistr/u32-strdup: New file.
67909         * lib/unistr/u8-strdup.c: New file.
67910         * lib/unistr/u16-strdup.c: New file.
67911         * lib/unistr/u32-strdup.c: New file.
67912         * lib/unistr/u-strdup.h: New file.
67913
67914         * modules/unistr/u8-strlen: New file.
67915         * modules/unistr/u16-strlen: New file.
67916         * modules/unistr/u32-strlen: New file.
67917         * lib/unistr/u8-strlen.c: New file.
67918         * lib/unistr/u16-strlen.c: New file.
67919         * lib/unistr/u32-strlen.c: New file.
67920         * lib/unistr/u-strlen.h: New file.
67921
67922         * modules/unistr/u8-strmblen: New file.
67923         * modules/unistr/u16-strmblen: New file.
67924         * modules/unistr/u32-strmblen: New file.
67925         * lib/unistr/u8-strmblen.c: New file.
67926         * lib/unistr/u16-strmblen.c: New file.
67927         * lib/unistr/u32-strmblen.c: New file.
67928
67929         * modules/unistr/u8-strmbtouc: New file.
67930         * modules/unistr/u16-strmbtouc: New file.
67931         * modules/unistr/u32-strmbtouc: New file.
67932         * lib/unistr/u8-strmbtouc.c: New file.
67933         * lib/unistr/u16-strmbtouc.c: New file.
67934         * lib/unistr/u32-strmbtouc.c: New file.
67935
67936         * modules/unistr/u8-strncat: New file.
67937         * modules/unistr/u16-strncat: New file.
67938         * modules/unistr/u32-strncat: New file.
67939         * lib/unistr/u8-strncat.c: New file.
67940         * lib/unistr/u16-strncat.c: New file.
67941         * lib/unistr/u32-strncat.c: New file.
67942         * lib/unistr/u-strncat.h: New file.
67943
67944         * modules/unistr/u8-strncmp: New file.
67945         * modules/unistr/u16-strncmp: New file.
67946         * modules/unistr/u32-strncmp: New file.
67947         * lib/unistr/u8-strncmp.c: New file.
67948         * lib/unistr/u16-strncmp.c: New file.
67949         * lib/unistr/u32-strncmp.c: New file.
67950
67951         * modules/unistr/u8-strncpy: New file.
67952         * modules/unistr/u16-strncpy: New file.
67953         * modules/unistr/u32-strncpy: New file.
67954         * lib/unistr/u8-strncpy.c: New file.
67955         * lib/unistr/u16-strncpy.c: New file.
67956         * lib/unistr/u32-strncpy.c: New file.
67957         * lib/unistr/u-strncpy.h: New file.
67958
67959         * modules/unistr/u8-strnlen: New file.
67960         * modules/unistr/u16-strnlen: New file.
67961         * modules/unistr/u32-strnlen: New file.
67962         * lib/unistr/u8-strnlen.c: New file.
67963         * lib/unistr/u16-strnlen.c: New file.
67964         * lib/unistr/u32-strnlen.c: New file.
67965         * lib/unistr/u-strnlen.h: New file.
67966
67967         * modules/unistr/u8-strpbrk: New file.
67968         * modules/unistr/u16-strpbrk: New file.
67969         * modules/unistr/u32-strpbrk: New file.
67970         * lib/unistr/u8-strpbrk.c: New file.
67971         * lib/unistr/u16-strpbrk.c: New file.
67972         * lib/unistr/u32-strpbrk.c: New file.
67973         * lib/unistr/u-strpbrk.h: New file.
67974
67975         * modules/unistr/u8-strrchr: New file.
67976         * modules/unistr/u16-strrchr: New file.
67977         * modules/unistr/u32-strrchr: New file.
67978         * lib/unistr/u8-strrchr.c: New file.
67979         * lib/unistr/u16-strrchr.c: New file.
67980         * lib/unistr/u32-strrchr.c: New file.
67981
67982         * modules/unistr/u8-strspn: New file.
67983         * modules/unistr/u16-strspn: New file.
67984         * modules/unistr/u32-strspn: New file.
67985         * lib/unistr/u8-strspn.c: New file.
67986         * lib/unistr/u16-strspn.c: New file.
67987         * lib/unistr/u32-strspn.c: New file.
67988         * lib/unistr/u-strspn.h: New file.
67989
67990         * modules/unistr/u8-strstr: New file.
67991         * modules/unistr/u16-strstr: New file.
67992         * modules/unistr/u32-strstr: New file.
67993         * lib/unistr/u8-strstr.c: New file.
67994         * lib/unistr/u16-strstr.c: New file.
67995         * lib/unistr/u32-strstr.c: New file.
67996         * lib/unistr/u-strstr.h: New file.
67997
67998         * modules/unistr/u8-strtok: New file.
67999         * modules/unistr/u16-strtok: New file.
68000         * modules/unistr/u32-strtok: New file.
68001         * lib/unistr/u8-strtok.c: New file.
68002         * lib/unistr/u16-strtok.c: New file.
68003         * lib/unistr/u32-strtok.c: New file.
68004         * lib/unistr/u-strtok.h: New file.
68005
68006         * modules/unistr/u8-uctomb: New file.
68007         * modules/unistr/u16-uctomb: New file.
68008         * modules/unistr/u32-uctomb: New file.
68009         * lib/unistr/u8-uctomb.c: New file.
68010         * lib/unistr/u16-uctomb.c: New file.
68011         * lib/unistr/u32-uctomb.c: New file.
68012
68013         * MODULES.html.sh (Unicode string functions): Add the new modules.
68014
68015 2007-01-08  Bruno Haible  <bruno@clisp.org>
68016
68017         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
68018         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
68019         subdirectories.
68020
68021 2007-01-08  Karl Berry  <karl@gnu.org>
68022
68023         * doc/error.texi: mention that main() fns must set program_name
68024         when progname is used.
68025
68026 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
68027
68028         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
68029         WCTYPE_H is empty, for the benefit of builds from non-distclean
68030         directories.  Problem reported by Eric Blake in
68031         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
68032
68033 2007-01-08  Bruno Haible  <bruno@clisp.org>
68034
68035         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
68036         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
68037         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
68038         PROVIDE_CANONICALIZE_FILENAME_MODE.
68039         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
68040
68041 2007-01-08  Bruno Haible  <bruno@clisp.org>
68042
68043         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
68044         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
68045         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
68046         * lib/fts.c: Likewise.
68047         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
68048
68049 2006-12-25  Bruno Haible  <bruno@clisp.org>
68050
68051         * modules/utf8-ucs4-safe: New file.
68052         * lib/utf8-ucs4-safe.h: New file.
68053         * lib/unistr/utf8-ucs4-safe.c: New file.
68054
68055         * modules/utf16-ucs4-safe: New file.
68056         * lib/utf16-ucs4-safe.h: New file.
68057         * lib/unistr/utf16-ucs4-safe.c: New file.
68058
68059         * MODULES.html.sh (Unicode string functions): Add the new modules.
68060
68061 2007-01-08  Bruno Haible  <bruno@clisp.org>
68062
68063         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
68064         (Depends-on): Add unitypes.
68065         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
68066         (u8_mbtouc_aux): Move out to separate file.
68067         (u8_mbtouc): Use ucs4_t, uint8_t types.
68068         * lib/unistr/utf8-ucs4.c: New file.
68069
68070         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
68071         (Depends-on): Add unitypes.
68072         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
68073         (u16_mbtouc_aux): Move out to separate file.
68074         (u16_mbtouc): Use ucs4_t, uint16_t types.
68075         * lib/unistr/utf16-ucs4.c: New file.
68076
68077         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
68078         (Depends-on): Add unitypes.
68079         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
68080         (u8_uctomb_aux): Move out to separate file.
68081         (u8_uctomb): Use ucs4_t, uint8_t types.
68082         * lib/unistr/ucs4-utf8.c: New file.
68083
68084         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
68085         (Depends-on): Add unitypes.
68086         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
68087         (u16_uctomb_aux): Move out to separate file.
68088         (u16_uctomb): Use ucs4_t, uint16_t types.
68089         * lib/unistr/ucs4-utf16.c: New file.
68090
68091 2006-12-25  Bruno Haible  <bruno@clisp.org>
68092
68093         * modules/unitypes: New file.
68094         * lib/unitypes.h: New file.
68095         * MODULES.html.sh (func_all_modules): New section "Unicode string
68096         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
68097         this section. Add unitypes.
68098
68099 2007-01-08  Bruno Haible  <bruno@clisp.org>
68100
68101         Avoid variable names that conflict with those from libtool.
68102         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
68103         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
68104         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
68105         library_names_spec to acl_library_names_spec, hardcode_* to
68106         acl_hardcode_*.
68107         Reported by Ralf Wildenhues.
68108
68109 2007-01-08  Bruno Haible  <bruno@clisp.org>
68110
68111         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
68112         definition.
68113         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
68114         definition.
68115         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
68116         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
68117         definition.
68118         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
68119         definition.
68120         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
68121         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
68122         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
68123         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
68124         definition.
68125         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
68126         definition.
68127         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
68128         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
68129         GC_USE_<algorithm>.
68130         * lib/gc-libgcrypt.c: Likewise.
68131         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
68132         * modules/gc-arctwo (configure.ac): Likewise.
68133         * modules/gc-des (configure.ac): Likewise.
68134         * modules/gc-hmac-md5 (configure.ac): Likewise.
68135         * modules/gc-hmac-sha1 (configure.ac): Likewise.
68136         * modules/gc-md2 (configure.ac): Likewise.
68137         * modules/gc-md4 (configure.ac): Likewise.
68138         * modules/gc-md5 (configure.ac): Likewise.
68139         * modules/gc-random (configure.ac): Likewise.
68140         * modules/gc-rijndael (configure.ac): Likewise.
68141         * modules/gc-sha1 (configure.ac): Likewise.
68142
68143 2007-01-08  Bruno Haible  <bruno@clisp.org>
68144
68145         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
68146         macro definition.
68147         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
68148         definition.
68149         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
68150         definition.
68151         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
68152         * modules/fcntl-safer (configure.ac): Likewise.
68153         * modules/fopen-safer (configure.ac): Likewise.
68154         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
68155         GNULIB_FWRITEERROR macro definition.
68156
68157 2007-01-08  Bruno Haible  <bruno@clisp.org>
68158
68159         * m4/gnulib-common.m4: New file.
68160         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
68161         (func_get_filelist): Add m4/gnulib-common.m4.
68162
68163 2007-01-08  Bruno Haible  <bruno@clisp.org>
68164
68165         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
68166         command.
68167
68168 2007-01-08  Jim Meyering  <jim@meyering.net>
68169
68170         Use a more robust test for a "can't happen" condition.
68171         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
68172         narrowed the st_size value.  Presuming the "can't happen" condition
68173         is true, that narrowing could conceivably convert an invalid st_size
68174         value into a valid one.  Instead, use a change based on Matthew
68175         Woehlke's original patch.
68176
68177         Slight readability improvement: use an assert-like macro
68178         in place of literal "abort ()" uses.
68179         * lib/fts.c (fts_assert): Define.
68180         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
68181         Use this macro instead of a bare 'abort'.
68182
68183 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
68184
68185         Don't worry about using IRIX 5.3's wctype.h broken definitions;
68186         simply work around them.
68187         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
68188         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
68189         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
68190         declaring.
68191         Don't bother to define as macros, since the standard doesn't require it.
68192         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
68193         longer worry about IRIX 5.3.
68194         (HAVE_WCTYPE_CTMP_BUG): Remove.
68195
68196 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
68197
68198         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
68199         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
68200         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
68201         Problems reported by Georg Schwarz for IRIX 5.3.
68202
68203         * gnulib-tool (autoconf_minversion): Take the maximum version number
68204         found, not the minimum.  Problem reported by James Youngman.
68205
68206 2007-01-03  Karl Berry  <karl@gnu.org>
68207
68208         * doc/error.texi: new file, explaining interaction with progname.
68209         * doc/gnulib.texi: include it.  Update copyright.
68210
68211 2007-01-03  Simon Josefsson  <simon@josefsson.org>
68212
68213         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
68214         AC_CANONICAL_HOST, to improve autobuild outputs.
68215
68216 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
68217             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
68218
68219         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
68220         sockets, server sockets, and other file descriptors.  Count errors
68221         to compute the return value.  Reorder the code a bit to be easier
68222         to follow.  Don't set event bits that were not requested (except
68223         POLLERR and POLLHUP).
68224
68225 2007-01-01  Bruno Haible  <bruno@clisp.org>
68226
68227         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
68228
68229 2007-01-03  Jim Meyering  <jim@meyering.net>
68230
68231         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
68232
68233 2007-01-02  Bruno Haible  <bruno@clisp.org>
68234
68235         * modules/settime (Include): Require timespec.h.
68236         * modules/nanosleep (Include): Likewise.
68237
68238 2007-01-01  Bruno Haible  <bruno@clisp.org>
68239
68240         * gnulib-tool (func_emit_copyright_notice): Bump year.
68241         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
68242
68243 2007-01-01  Bruno Haible  <bruno@clisp.org>
68244
68245         Improve support for OpenBSD.
68246         * build-aux/config.rpath (libname_spec): Export.
68247         (library_names_spec): New variable. Export.
68248         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
68249         library_names_spec from the config.rpath output. Locate shared library
68250         through the name pattern in library_names_spec.
68251
68252 2007-01-01  Eric Blake  <ebb9@byu.net>
68253
68254         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
68255
68256 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
68257
68258         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
68259         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
68260         assume the C locale, and avoid an "eval" that could cause trouble.
68261         Problem with SORT reported by Bob Proulx.
68262
68263         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
68264         Define.  Trivial patch from Henning Nielsen Lund, originally
68265         sent to bug-grep@gnu.org today.
68266
68267 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
68268
68269         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
68270         struct stat.  Problem reported by Henning Nielsen Lund.
68271         * lib/acl.c: Include acl.h first, to check interface.  Don't
68272         bother to include sys/types.h and sys/stat.h again.
68273
68274 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
68275
68276         Import the following change from libc; problem reported by
68277         Sven Verdoolaege.
68278
68279         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
68280
68281         [BZ #1373]
68282         * lib/argp.h: Remove __NTH for __argp_usage inline function.
68283
68284 2006-12-28  Jim Meyering  <jim@meyering.net>
68285
68286         * build-aux/announce-gen: Do not assume that the package
68287         builds any of tar.gz, tar.bz2, and .xdelta files.
68288         Suggestion from Simon Josefsson.
68289
68290 2006-12-28  Simon Josefsson  <simon@josefsson.org>
68291
68292         * modules/announce-gen: New file.
68293
68294 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
68295
68296         * lib/mbchar.h: Just include <wctype.h>; the wctype module
68297         handles its gotchas now.
68298         * lib/mbswidth.c: Likewise.
68299         * lib/wcwidth.h: Likewise.
68300         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
68301         and iswcntrl; the wctype module does this stuff now.
68302         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
68303         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
68304         * modules/mbchar (Depends-on): Add wctype.
68305         * modules/mbswidth (Depends-on): Likewise.
68306         * modules/wcwidth (Depends-on): Likewise.
68307
68308 2006-12-27  Eric Blake  <ebb9@byu.net>
68309
68310         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
68311         module uses more than what <wctype.h> is required to provide.
68312
68313 2006-12-26  Eric Blake  <ebb9@byu.net>
68314
68315         * gnulib-tool (sed_extract_prog): Avoid space-tab.
68316
68317 2006-12-26  Eric Blake  <ebb9@byu.net>
68318
68319         * modules/absolute-header: New module.
68320         * modules/fcntl (Depends-on): Depend on it.
68321         * modules/inttypes (Depends-on): Likewise.
68322         * modules/stdint (Depends-on): Likewise.
68323         * modules/sys_stat (Depends-on): Likewise.
68324         * modules/wctype (Depends-on): Likewise.
68325         * MODULES.html.sh (Support for building libraries and
68326         executables): Document it.
68327
68328 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
68329
68330         * gnulib-tool (SED): Remove, undoing previous change.
68331         The problem was that it broke coreutils on Solaris, because
68332         "sed --posix" leaked into a makefile.
68333         (sed): New alias, if 'alias' and GNU sed.
68334
68335 2006-12-24  Jim Meyering  <jim@meyering.net>
68336
68337         Work around an fchownat bug in glibc-2.4:
68338         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
68339         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
68340         in spite of the -P option.
68341         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
68342         New macros.
68343         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
68344         * modules/openat (Files): Add lib/fchownat.c.
68345         * lib/openat.c (fchownat): Don't define here.  Move to...
68346         * lib/fchownat.c: ...this new file.
68347
68348 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68349
68350         Fix bug reported by Bruno Haible in
68351         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
68352         where quotearg.c didn't compile on Mac OS X 10.2 because it
68353         lacks <wchar.h> and wint_t.
68354         * lib/wctype_.h (__wctype_wint_t): New type.
68355         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
68356         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
68357         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
68358         Arg is now of type __wctype_wint_t, not wint_t.
68359         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
68360         substitute HAVE_WINT_T.
68361         * modules/wctype (Files): Add m4/wint_t.m4.
68362         (wctype.h): Substitute HAVE_WINT_T.
68363
68364 2006-12-23  Bruno Haible  <bruno@clisp.org>
68365
68366         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
68367
68368 2006-12-23  Bruno Haible  <bruno@clisp.org>
68369
68370         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
68371         S_ISLNK.
68372         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
68373         mingw.
68374
68375 2006-12-22  Bruno Haible  <bruno@clisp.org>
68376
68377         * lib/copy-file.c: Include acl.h.
68378         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
68379         Close the file descriptors only after being done with copy_acl.
68380         * modules/copy-file (Depends-on): Add acl.
68381
68382 2006-12-22  Bruno Haible  <bruno@clisp.org>
68383
68384         * gnulib-tool (SED): New variable.
68385         Use $SED instead of sed everywhere.
68386
68387 2006-12-22  Bruno Haible  <bruno@clisp.org>
68388
68389         * modules/no-c++: New file.
68390         * m4/no-c++.m4: New file.
68391         * MODULES.html.sh (Support for building libraries and executables):
68392         Add no-c++.
68393
68394 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
68395
68396         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68397         Include <limits.h>, and use its INT_MAX to rewrite the
68398         j loop so that it does not overflow 'int'.  Problem reported by
68399         Ralf Wildenhues in
68400         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
68401         Play it safe by shifting left by 1 rather than multiplying by 2,
68402         as GCC is less likely to optimize this away when the value
68403         is signed (when it assumes overflow leads to undefined behavior).
68404         Also, don't assume time_t uses two's complement.
68405
68406 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
68407
68408         * MODULES.html.sh: New module wctype.
68409         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
68410         * lib/fnmatch.c: Don't bother to include <wchar.h> before
68411         <wctype.h>, since the new wctype module should fix this.
68412         * lib/quotearg.c: Include <wctype.h> unconditionally, since
68413         the wctype module should arrange for it.
68414         * lib/regex_internal.h: Likewise.
68415         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
68416         since the wctype module should handle this now.
68417         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
68418         * modules/fnmatch (Depends-on): Add wctype.
68419         * modules/quotearg (Depends-on): Likewise.
68420         * modules/regex (Depends-on): Likewise.
68421
68422 2006-12-19  Bruno Haible  <bruno@clisp.org>
68423
68424         * lib/strdup.h [C++]: Wrap definitions in extern "C".
68425         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
68426
68427 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68428
68429         * modules/savewd (Depends-on): Fix dependency on fcntl.
68430
68431 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
68432
68433         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
68434         conforms to C99, rather than relying on the user's environment
68435         setting of STDINT_H.
68436
68437 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
68438         and Eric Blake  <ebb9@byu.net>
68439
68440         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
68441         This is more consistent with the other defines here.
68442         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
68443         Port to z/OS.  Problem reported by Paul Gilmartin.
68444         Change local vars to use gl_ prefix rather than ac_.
68445         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
68446         with other defines.
68447         * modules/double-slash-root: New module.
68448         * modules/dirname (Files): Remove m4/double-slash-root.m4.
68449         (Depends-on): Add double-slash-root.
68450         * MODULES.html.sh (File system functions): Mention new module.
68451
68452 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
68453
68454         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
68455         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
68456         This is for the benefit of gzip, which doesn't do i18n.
68457
68458 2006-12-12  Jim Meyering  <jim@meyering.net>
68459
68460         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
68461         Reported by Andreas Schwab <schwab@suse.de>.
68462
68463 2006-12-12  Bruno Haible  <bruno@clisp.org>
68464
68465         Merge these changes.
68466         2006-09-05  Bruno Haible  <bruno@clisp.org>
68467         * lib/iconvme.c (iconv_string): No need to save and restore errno when
68468         iconv_alloc succeeded.
68469         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
68470         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
68471         test for " && dest " at the end - dest is always != NULL there. Call
68472         iconv with 4xNULL arguments initially, to reset the state. Call iconv
68473         with 2xNULL arguments, also to flush the state storage. Handle the
68474         IRIX iconv behaviour. Realloc the final result, to throw away unused
68475         memory.
68476
68477 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
68478
68479         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
68480         and fchmodat unconditionally, since glibc 2.4 has them.
68481         Problem reported by Arkadiusz Miskiewicz.
68482
68483 2006-12-10  Bruno Haible  <bruno@clisp.org>
68484
68485         * gnulib-tool (func_import): Show the include files only for those
68486         modules that are copied and specified.
68487         Reported by Karl Berry.
68488
68489 2006-12-08  Jim Meyering  <jim@meyering.net>
68490
68491         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
68492         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
68493
68494         * build-aux/announce-gen: Add two new options, both optional:
68495         --bootstrap-tools=TOOL_LIST
68496               a comma-separated list of tools, e.g.,
68497               autoconf,automake,bison,gnulib
68498         --gnulib-snapshot-date=DATE
68499               if gnulib is in the bootstrap tool list,
68500               then report this as the snapshot date.
68501               If not specified, use the current date/time.
68502               If you specify a date here, be sure it's UTC.
68503
68504 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68505
68506         * tests/test-argp-2.sh: Fix test to match actual output.
68507         (func_compare): Fix sed script to be portable.
68508
68509 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
68510
68511         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
68512         workaround for this case.  It is not autoconfigured now; offhand
68513         it's hard to see how to autoconfigure it.
68514
68515 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
68516
68517         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
68518         a directory that is about to be chowned.  Such a directory's
68519         initial file permissions should permit the owner only and this
68520         should not be changed until after the chown, since the group and
68521         other bits would be incorrect if they granted permission before
68522         the chown.
68523
68524         Fix porting problem for iswctype reported by Georg Schwarz in:
68525         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
68526         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
68527         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
68528         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
68529         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
68530
68531 2006-12-03  Jim Meyering  <jim@meyering.net>
68532
68533         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
68534         p->fts_statp may not yet be defined.
68535         (fts_read): Instead, set it in the caller, once p->fts_statp is
68536         sure to be defined, and corresponds to a top-level directory.
68537         This bug made du -x fail.  Here's the coreutils test case:
68538         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
68539         Reported by Mike Frysinger.
68540
68541 2006-12-01  Jim Meyering  <jim@meyering.net>
68542
68543         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
68544         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
68545         Reported by Simon Josefsson.
68546
68547 2006-11-30  Jim Meyering  <jim@meyering.net>
68548
68549         * m4/warning.m4: Use the all-permissive copyright notice
68550         recommended by RMS (rather than LGPL).
68551         * m4/vararrays.m4: Likewise.
68552         * m4/flexmember.m4: Likewise.
68553
68554 2006-11-29  Bruno Haible  <bruno@clisp.org>
68555
68556         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68557         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
68558         using +=.
68559         Reported by Simon Josefsson <simon@josefsson.org>.
68560
68561 2006-11-28  James Youngman <jay@gnu.org>
68562
68563         * README: Advise users that they might find the bug-gnulib@gnu.org
68564         and autotools-announce@gnu.org mailing lists useful.
68565
68566 2006-11-28  Bruno Haible  <bruno@clisp.org>
68567
68568         * m4/ptrdiff_max.m4: Remove file.
68569
68570 2006-11-21  Bruno Haible  <bruno@clisp.org>
68571
68572         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
68573         _AC_COMPUTE_INT.
68574         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68575         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
68576         _AC_COMPUTE_INT.
68577         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68578         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
68579         _AC_COMPUTE_INT.
68580         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68581
68582 2006-11-28  Jim Meyering  <jim@meyering.net>
68583
68584         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
68585         warning from "gcc -Wshadow" about shadowing the builtin.
68586
68587 2006-11-27  Bruno Haible  <bruno@clisp.org>
68588
68589         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
68590         _AC_COMPUTE_INT.
68591         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68592
68593 2006-11-27  Bruno Haible  <bruno@clisp.org>
68594             Paul Eggert  <eggert@cs.ucla.edu>
68595
68596         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
68597
68598 2006-11-26  Bruno Haible  <bruno@clisp.org>
68599
68600         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68601         noinst_LTLIBRARIES.
68602
68603 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
68604             Bruno Haible  <bruno@clisp.org>
68605
68606         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
68607         if compiling with "gcc -ansi".
68608
68609 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
68610
68611         Fix some incompatibilities with gcc -ansi -pedantic.
68612         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
68613         if compiling pedantically with GCC, unless it's C99 or later.
68614         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
68615         it mishandles gcc -ansi -pedantic as well.
68616         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
68617         if gcc -pedantic.
68618         * lib/regexec.c (check_node_accept_bytes): Don't use auto
68619         initializers for struct if -pedantic, unless it's C99 or later.
68620
68621 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
68622
68623         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
68624         Don't close an fd more than once. Identical atimes indicate
68625         success, not failure.
68626
68627 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
68628
68629         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
68630
68631 2006-11-23  Jim Meyering  <jim@meyering.net>
68632
68633         * build-aux/announce-gen: New file.  From coreutils.
68634
68635 2006-11-22  Jim Meyering  <jim@meyering.net>
68636
68637         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
68638         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
68639         (fts_read): Use a temporary to narrow the overused st_size member
68640         before using it in a switch statement.  Reported by Matthew Woehlke.
68641
68642         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
68643         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
68644
68645 2006-11-20  Bruno Haible  <bruno@clisp.org>
68646
68647         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
68648         changequote instead of pairs of brackets.
68649         Reported by Andreas Schwab <schwab@suse.de>.
68650
68651 2006-11-21  Jim Meyering  <jim@meyering.net>
68652
68653         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
68654         so as to remain compatible with older compilers.
68655         Patch from Michael Deutschmann.
68656
68657 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
68658
68659         * MODULES.html.sh (File system functions): Add openat.
68660
68661         * lib/openat.h (rpl_fstatat): New macro, if
68662         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
68663         (fstatat): Define to rpl_fstatat under the same conditions,
68664         unless COMPILING_FSTATAT.
68665         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
68666         seems to have the bug.
68667         * lib/fstatat.c: New file.
68668         * modules/openat (Files): Add it.
68669
68670 2006-11-20  Bruno Haible  <bruno@clisp.org>
68671
68672         * Makefile: New file.
68673
68674 2006-11-20  Jim Meyering  <jim@meyering.net>
68675
68676         The beginnings of syntax-related checks for gnulib.
68677         * lib/Makefile: New file.
68678         * lib/t-idcache: New script.  Ensure that the two halves of
68679         idcache.c stay in sync.
68680
68681         * lib/idcache.c: Adjust comments in user- and group- portions to
68682         be more accurate, and to be consistent with one another.
68683
68684 2006-11-20  Jim Meyering  <jim@meyering.net>
68685
68686         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
68687         continue using the flexible array member (thus, this module performs
68688         half as many malloc calls), with the addition that...
68689         (getgroup, getuser): Consistently record a non-match via an empty
68690         "name" string, and map an empty string match to a NULL return value.
68691         * modules/idcache (Depends-on): Re-add flexmember.
68692
68693         * lib/idcache.c (getuser): Remove all uses of the register keyword.
68694         (getuidbyname, getgroup, getgidbyname): Likewise.
68695
68696         Use cleaner syntax: NULL rather than 0.
68697         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
68698
68699 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
68700
68701         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
68702         It mishandled the case where the group was missing.
68703         Problem reported by Greg Schafer.
68704         * modules/idcache: Likewise.
68705
68706 2006-11-18  Jim Meyering  <jim@meyering.net>
68707
68708         * check-module (%exempt_header): Add exception for some
68709         conditionally-included headers.
68710
68711         * modules/i-ring (Depends-on): Add verify.
68712         (License): Change to LGPL.
68713
68714 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68715
68716         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
68717         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
68718         and inttostr.h.  Use snprintf rather than uinttostr, so that
68719         LGPLed code doesn't depend on GPLed.
68720
68721 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
68722
68723         * modules/inline (License): Change from GPL to LGPL.
68724
68725 2006-11-17  Jim Meyering  <jim@meyering.net>
68726
68727         * modules/d-type (License): Switch to LGPL.
68728
68729 2006-11-15  Bruno Haible  <bruno@clisp.org>
68730
68731         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
68732
68733 2006-11-15  Eric Blake  <ebb9@byu.net>
68734
68735         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
68736         the module dependency.
68737
68738 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68739             Bruno Haible  <bruno@clisp.org>
68740
68741         * gnulib-tool (func_create_testdir): Add license consistency check.
68742
68743 2006-11-15  Eric Blake  <ebb9@byu.net>
68744
68745         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
68746         random "(cached)" in configure output.
68747
68748 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68749
68750         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
68751         test for conforming inttypes.h is both announced and cached.
68752
68753         * MODULES.html.sh (seen_modules, seen_files): New variables.
68754         (func_module): Rewrite to use a few less gnulib-tool and sed
68755         invocations.  Avoid a couple of quadratic algorithms for ...
68756         (missed_modules, missed_files): ... these, with ...
68757         (func_append, func_tmpdir): ... these new functions, from
68758         gnulib-tool.  Analogously, install traps for cleanup.
68759
68760         * tests/test-gc.c (main): Remove unused variables.
68761         * tests/test-read-file.c: Include stdlib.h, for 'free'.
68762
68763 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
68764
68765         * modules/inttostr (License): Change to LGPL.
68766
68767 2006-11-14  Eric Blake  <ebb9@byu.net>
68768
68769         * modules/tempname (License): Change to LGPL.
68770
68771 2006-11-14  Eric Blake  <ebb9@byu.net>
68772
68773         * doc/functions.texi (Function Portability): *printf functions on
68774         Cygwin now understand all POSIX size specifiers.
68775
68776 2006-11-14  Bruno Haible  <bruno@clisp.org>
68777
68778         * modules/c-ctype (License): Change to LGPL.
68779
68780 2006-11-12  Bruno Haible  <bruno@clisp.org>
68781
68782         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
68783         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
68784         for GNOME libraries, for which the include files are installed in
68785         subdirectories of $prefix/include.
68786
68787 2006-11-12  Bruno Haible  <bruno@clisp.org>
68788
68789         * m4/lib-link.m4: Require at least autoconf-2.54.
68790         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
68791         name to underscores for the --with option.
68792
68793 2006-11-13  Bruno Haible  <bruno@clisp.org>
68794
68795         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
68796         the tests directory.
68797         Reported by Ralf Wildenhues.
68798
68799 2006-11-13  Bruno Haible  <bruno@clisp.org>
68800
68801         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
68802         (func_emit_initmacro_end): Undo the override here.
68803         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
68804         Works around the famous automake error in coreutils.
68805
68806 2006-11-13  Eric Blake  <ebb9@byu.net>
68807
68808         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
68809         element, not its node.
68810
68811 2006-11-12  Bruno Haible  <bruno@clisp.org>
68812
68813         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
68814         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
68815
68816 2006-11-12  Bruno Haible  <bruno@clisp.org>
68817
68818         * gnulib-tool: New option --local-symlink.
68819         (func_usage): Document it.
68820         (lsymbolic): New variable.
68821         (func_import, func_create_testdir): If --symlink was not specified,
68822         test whether --local-symlink was specified and the file comes from
68823         the local_gnulib_dir.
68824
68825 2006-11-12  Bruno Haible  <bruno@clisp.org>
68826
68827         * gnulib-tool (func_ln): New function.
68828         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
68829
68830 2006-11-12  Bruno Haible  <bruno@clisp.org>
68831
68832         Finish support for source files in subdirectories.
68833         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
68834         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
68835         AUTOMAKE_OPTIONS.
68836         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
68837
68838 2006-11-12  Bruno Haible  <bruno@clisp.org>
68839
68840         * gnulib-tool (func_get_automake_snippet): Synthesize also an
68841         EXTRA_lib_SOURCES augmentation.
68842         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
68843
68844 2006-11-12  Jim Meyering  <jim@meyering.net>
68845
68846         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
68847         file descriptors.  This also averts a failure on systems with
68848         native openat support when a traversed directory lacks "x" access.
68849         * lib/fts_.h: Include "i-ring.h"
68850         (struct FTS) [fts_fd_ring]: New member.
68851         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
68852         (FCHDIR): Add parentheses.
68853         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
68854         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
68855         When descending, rather than simply closing the previous
68856         fts_cwd_fd value, push that file descriptor onto the ring.
68857         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
68858         (fts_open): Initialize the new fd_ring member.
68859         (fts_close): Clear the ring.
68860         (fts_safe_changedir): When possible, use our new fd_ring to skip
68861         the diropen and fstat and dev/ino comparison that would normally
68862         accompany a virtual `chdir ("..")'.
68863
68864         * modules/fts (Depends-on): Add i-ring.
68865         * modules/i-ring: New module.
68866         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
68867         * m4/i-ring.m4: New file.
68868
68869 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68870
68871         * gnulib-tool (func_create_testdir): Fix replacement of
68872         `build-aux' in configure.ac.  Run autotools in gltests
68873         subdirectory.
68874         (func_create_testdir, func_create_megatestdir, test): There is
68875         no need for '--force' in most autotool invocations in a new
68876         tree.  Actually fail the whole test if any of the tools, or the
68877         configure or make stages fail.
68878
68879         Sync from Automake.
68880         * build-aux/gnupload: Revert last change.  Add pointer to upload
68881         instructions of the GNU Maintenance Instructions.
68882         Suggestion by Karl Berry.
68883
68884 2006-11-10  Jim Meyering  <jim@meyering.net>
68885
68886         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
68887
68888 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68889
68890         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
68891         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
68892         (bind_textdomain_codeset) [! ENABLE_NLS]:
68893         Evaluate all the arguments.  That way, callers get compatible behavior
68894         if the arguments have side effects.  Also, it avoids some GCC
68895         diagnostics in some cases; Joel E. Denny reported problems when Bison
68896         was configured with --enable-gcc-warnigs.
68897
68898 2006-11-10  Jim Meyering  <jim@meyering.net>
68899
68900         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
68901         relevant options in CFLAGS (like -O, -fno-inline) are taken into
68902         account.
68903
68904 2006-11-10  Jim Meyering  <jim@meyering.net>
68905
68906         * modules/inline: New file/module.
68907         * modules/xalloc (Files): Remove m4/inline.m4.
68908         (Depends-on): Add inline, instead.
68909         * modules/oset: Likewise.
68910         * modules/list: Likewise.
68911
68912 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68913
68914         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
68915         Problem reported by Matthew Woehlke.
68916
68917 2006-11-09  Bruno Haible  <bruno@clisp.org>
68918
68919         * lib/tempname.c (gen_tempname): Remove variant that invokes
68920         __gen_tempname.
68921         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
68922         __gen_tempname.
68923
68924 2006-11-08  Bruno Haible  <bruno@clisp.org>
68925
68926         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
68927         to 'yes' instead of 'cross-compiling'.
68928
68929 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
68930
68931         * lib/quotearg.h (quotearg_free): New decl.
68932         * lib/quotearg.c (quotearg_free): New function.
68933         (slot0, nslots, slotvec0, slotvec):
68934         Now file-scope so that quotearg_free can get at them.
68935
68936 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68937
68938         Sync from Automake.
68939         * build-aux/gnupload: Add missing 'gnu' to example URL.
68940         Report by Karl Berry.
68941
68942 2006-11-08  Bruno Haible  <bruno@clisp.org>
68943
68944         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
68945         Suggested by Paul Eggert.
68946
68947 2006-11-08  Jim Meyering  <jim@meyering.net>
68948
68949         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
68950         It's already included if !_LIBC.
68951         (fts_safe_changedir): Add a comment.
68952
68953 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
68954
68955         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
68956         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
68957         Matthew Woehlke.
68958
68959         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
68960         definitions up, to avoid colliding with change below.
68961         (static_inline) [HAVE_INLINE]: New macro.
68962         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
68963         Provide extern decls when !HAVE_INLINE.  Do not define unless
68964         static_inline is defined, either by us or by xmalloc.c.  Use
68965         static_inline rather than static inline.
68966         (XCALLOC): Optimize sizeof(T) = 1 case.
68967         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
68968
68969 2006-11-07  Bruno Haible  <bruno@clisp.org>
68970
68971         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
68972         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
68973         AC_C_INLINE.
68974         * modules/xalloc (Files): Add m4/inline.m4.
68975
68976 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68977
68978         * README: Fix typo.
68979         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
68980         (Miscellanous Notes): ...from this.
68981
68982 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
68983
68984         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
68985         Mention that offsetof should be used instead of sizeof.
68986         From Bruno Haible.
68987
68988 2006-11-07  Bruno Haible  <bruno@clisp.org>
68989
68990         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
68991
68992 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
68993
68994         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
68995         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
68996         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
68997         (gl_tree_add_before, gl_tree_add_after):
68998         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
68999         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
69000         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
69001         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
69002         (gl_linked_add_after, gl_linked_add_at): Likewise.
69003         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
69004         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
69005         (gl_tree_add_before, gl_tree_add_after): Likewise.
69006         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
69007         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
69008         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
69009
69010 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69011
69012         * lib/gl_oset.h: Use C comment style, not C++ comment style.
69013
69014 2006-11-06  Bruno Haible  <bruno@clisp.org>
69015
69016         * m4/inline.m4: New file.
69017         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
69018         * modules/list (Files): Add m4/inline.m4.
69019         * modules/oset (Files): Likewise.
69020
69021 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
69022
69023         * lib/idcache.c: Include <stddef.h>, for offsetof.
69024         (struct userid.name): Change from char * to a flexible array member.
69025         All uses changed.
69026         * modules/idcache (Depends-on): Add flexmember.
69027
69028         * MODULES.html.sh (Core language properties): New module flexmember.
69029         * modules/flexmember, m4/flexmember.m4: New files.
69030
69031         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
69032         inline functions that are identical with the old xnmalloc_inline,
69033         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
69034         that we can avoid some unnecessary integer multiplications and
69035         divisions in the common case where the element size is known at
69036         compile time.
69037         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
69038         needed.
69039         (xnboundedmalloc): Remove.
69040         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
69041         arguments, for consistency with rest of this header.
69042         (xcharalloc): Rewrite using XNMALLOC.
69043         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
69044         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
69045         versions have been moved to lib/xalloc.h and renamed to be the
69046         non-*_inline versions.
69047         (xmalloc, xrealloc): Implement without reference to the xnmalloc
69048         and xnrealloc functions, since those functions are now inline and
69049         now call us.
69050         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
69051         renaming described above.
69052         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
69053         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
69054         captures the dependency in AC_C_INLINE.
69055
69056         New module canonicalize-lgpl, proposed by Charles Wilson in
69057         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
69058         with a few small changes afterwards.
69059         * MODULES.html.sh (File system functions): New module
69060         canonicalize-lgpl.
69061         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
69062         and canonicalize_file_name.
69063         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
69064         * modules/canonicalize-lgpl: New files.
69065
69066 2006-11-05  Bruno Haible  <bruno@clisp.org>
69067
69068         * gnulib-tool (func_import, func_create_testdir): Create directories
69069         also for files in subdirectories of lib/.
69070
69071 2006-11-05  Bruno Haible  <bruno@clisp.org>
69072
69073         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
69074         ANSI C compliant.
69075
69076 2006-11-03  Bruno Haible  <bruno@clisp.org>
69077
69078         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
69079         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
69080         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
69081         (xnboundedmalloc): New inline function.
69082         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
69083         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
69084         xmalloc.
69085         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
69086         xmalloc.
69087         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
69088         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
69089         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
69090         xmalloc.
69091         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
69092         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
69093         xmalloc.
69094         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
69095         gl_tree_add_after): Use XMALLOC instead of xmalloc.
69096         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
69097         xmalloc.
69098         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
69099         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
69100         gl_tree_add_after): Use XMALLOC instead of xmalloc.
69101         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
69102         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
69103         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
69104         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
69105
69106 2006-11-03  Bruno Haible  <bruno@clisp.org>
69107
69108         * lib/c-ctype.h [C++]: Define functions without name mangling.
69109         * lib/fwriteerror.h [C++]: Likewise.
69110         * lib/gcd.h [C++]: Likewise.
69111         * lib/linebreak.h [C++]: Likewise.
69112
69113 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
69114
69115         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
69116         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
69117         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
69118         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
69119         Check for functions and headers just once.
69120         Check for declaration of canonicalize_file_name.
69121         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
69122
69123 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
69124
69125         * gnulib-tool (func_import): Fix typo in actioncmd.
69126
69127 2006-11-02  Bruno Haible  <bruno@clisp.org>
69128
69129         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
69130         newline sequence in the Makefile.am snippet as a space, like "make"
69131         does.
69132         Reported by Roger Persson <perrog@gmail.com>.
69133
69134 2006-11-01  Bruno Haible  <bruno@clisp.org>
69135
69136         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
69137         already declared in <string.h>.
69138         * lib/strcase.h (strncasecmp): Don't declare it if yes.
69139
69140 2006-11-01  Bruno Haible  <bruno@clisp.org>
69141
69142         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
69143         * lib/strcase.h: Include <string.h>.
69144         (strcasecmp): Define to rpl_strcasecmp here.
69145
69146 2006-11-01  Bruno Haible  <bruno@clisp.org>
69147
69148         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
69149
69150 2006-11-01  Eric Blake  <ebb9@byu.net>
69151
69152         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
69153
69154         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
69155
69156 2006-10-29  Bruno Haible  <bruno@clisp.org>
69157
69158         Make it compile in C++ mode.
69159         * lib/full-write.c (full_rw): Add a cast.
69160
69161 2006-11-01  Bruno Haible  <bruno@clisp.org>
69162
69163         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
69164         be POSIX compliant.
69165         Reported by Roger Persson <perrog@gmail.com>.
69166
69167 2006-11-01  Eric Blake  <ebb9@byu.net>
69168
69169         * lib/getopt_.h: Fix comments.
69170
69171 2006-10-31  Eric Blake  <ebb9@byu.net>
69172
69173         * modules/tmpdir (Depends-on): Add sys_stat.
69174         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
69175         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
69176         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
69177         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
69178         tempname.
69179
69180 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
69181
69182         Avoid some C++ diagnostics reported by Bruno Haible.
69183         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
69184         xmalloc.
69185         (quotearg_alloc): Use xcharalloc rather than xmalloc.
69186         (struct slotvec): Move to top level.
69187         (quotearg_n_options): Rewrite to avoid xmalloc.
69188         * lib/xalloc.h (xcharalloc): New function.
69189         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
69190         [defined __cplusplus]: Add function template that provides result
69191         type propagation.  This part of the change is from Bruno Haible.
69192
69193 2006-10-29  Bruno Haible  <bruno@clisp.org>
69194
69195         Make it compile in C++ mode.
69196         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
69197         * lib/strnlen1.c (strnlen1): Cast memchr result.
69198         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
69199         * lib/clean-temp.c (string_equals, string_hash): Add casts.
69200         (create_temp_dir): Rename local variable 'template'.
69201         (compile_csharp_using_sscli): Add cast.
69202         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
69203         * lib/findprog.c (find_in_path): Likewise.
69204         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
69205         * lib/wait-process.c (register_slave_subprocess): Likewise.
69206
69207 2006-10-22  Bruno Haible  <bruno@clisp.org>
69208
69209         * modules/tsearch: New file.
69210         * lib/tsearch.h: New file.
69211         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
69212         * m4/tsearch.m4: New file.
69213         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
69214
69215 2006-10-29  Eric Blake  <ebb9@byu.net>
69216
69217         * lib/arcfour.c: Assume config.h.
69218         * lib/arctwo.c: Likewise.
69219         * lib/base64.c: Likewise.
69220         * lib/check-version.c: Likewise.
69221         * lib/crc.c: Likewise.
69222         * lib/des.c: Likewise.
69223         * lib/gc-gnulib.c: Likewise.
69224         * lib/gc-libgcrypt.c: Likewise.
69225         * lib/gc-pbkdf2-sha1.c: Likewise.
69226         * lib/getaddrinfo.c: Likewise.
69227         * lib/getdelim.c: Likewise.
69228         * lib/getline.c: Likewise.
69229         * lib/hmac-md5.c: Likewise.
69230         * lib/hmac-sha1.c: Likewise.
69231         * lib/iconvme.c: Likewise.
69232         * lib/md2.c: Likewise.
69233         * lib/md4.c: Likewise.
69234         * lib/memxor.c: Likewise.
69235         * lib/read-file.c: Likewise.
69236         * lib/readline.c: Likewise.
69237         * lib/rijndael-alg-fst.c: Likewise.
69238         * lib/rijndael-api-fst.c: Likewise.
69239         * lib/xgetdomainname.c: Likewise.
69240
69241 2006-10-28  Eric Blake  <ebb9@byu.net>
69242
69243         * lib/xstrndup.c: Assume config.h.
69244
69245 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
69246
69247         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
69248         stat-macros.h is now for our own macros, whereas stat_h is for
69249         macros in the <sys/stat.h> name space.
69250         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
69251         (STAT_MACROS_H): Remove.
69252         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
69253         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
69254         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
69255         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
69256         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
69257         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
69258         Move these macros to ...
69259         * lib/stat_.h: here.  Don't include stat-macros.h.
69260         * lib/canonicalize.c: Don't include stat-macros.h.
69261         * lib/chown.c: Likewise.
69262         * lib/euidaccess.c: Likewise.
69263         * lib/file-type.c: Likewise.
69264         * lib/filemode.c: Likewise.
69265         * lib/glob.c: Likewise.
69266         * lib/isapipe.c: Likewise.
69267         * lib/lchown.c: Likewise.
69268         * lib/lstat.c: Likewise.
69269         * lib/mkdir-p.c: Likewise.
69270         * lib/rmdir.c: Likewise.
69271         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
69272         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
69273         unless mkdir isn't declared, to speed up 'configure'.
69274         Always create sys/stat.h, since it's unlikely any real sys/stat.h
69275         would define all the S_* symbols.
69276         * modules/canonicalize (Depends-on):
69277         Depend on sys_stat, not stat-macros.
69278         * modules/chown: Likewise.
69279         * modules/euidaccess: Likewise.
69280         * modules/filemode: Likewise.
69281         * modules/file-type: Likewise.
69282         * modules/glob: Likewise.
69283         * modules/isapipe: Likewise.
69284         * modules/lchown: Likewise.
69285         * modules/lstat: Likewise.
69286         * modules/mkancesdirs: Likewise.
69287         * modules/rmdir: Likewise.
69288         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
69289         * modules/modechange: Likewise.
69290         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
69291         (configure.ac): Remove gl_STAT_MACROS.
69292         * modules/sys_stat (Depends-on): Remove stat-macros.
69293
69294 2006-10-27  Bruno Haible  <bruno@clisp.org>
69295
69296         * m4/signed.m4: Remove file.
69297         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
69298         invocation.
69299         * modules/vasnprintf (Files): Remove m4/signed.m4.
69300
69301 2006-10-27  Bruno Haible  <bruno@clisp.org>
69302
69303         Update to GNU gettext 0.16.
69304         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
69305         m4/inttypes-h.m4, m4/signed.m4.
69306         * m4/gettext.m4: Update to GNU gettext 0.16.
69307         * m4/intl.m4: New file, from GNU gettext.
69308         * m4/intldir.m4: New file, from GNU gettext.
69309         * config/srclist.txt: Update
69310
69311 2006-10-27  Eric Blake  <ebb9@byu.net>
69312
69313         * MODULES.html.sh: Document tempname.
69314         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
69315         dependencies.
69316         (Files): Move lib/tempname.c...
69317         * modules/tempname: ...to this new module.
69318         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
69319         (gl_PREREQ_TEMPNAME): Move...
69320         * m4/tempname.m4: ...to this new file.
69321         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
69322         * modules/sys_stat (Depends-on): Add stat-macros.
69323         * lib/stat_.h (includes): Pick up stat macros.
69324         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
69325         if stat macros are broken.
69326         * lib/tempname.c (includes): No need to include "stat-macros.h".
69327         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
69328         (direxists, __path_search) [!_LIBC]: Don't compile these in
69329         gnulib; the tmpdir module covers that.
69330         * lib/tempname.h: New file.
69331
69332 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
69333
69334         * COPYING: Explain how gnulib-tool converts licence headers.
69335         Almost all wording by Eric Blake.
69336
69337 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
69338
69339         * lib/mbchar.h (is_basic_table): Make read-only.
69340         * lib/mbchar.c (is_basic_table): Likewise.
69341         Reported by John Darrington.
69342
69343 2006-10-25  Bruno Haible  <bruno@clisp.org>
69344
69345         * lib/progname.h (set_program_name): Undefine before defining.
69346
69347 2006-10-25  Bruno Haible  <bruno@clisp.org>
69348
69349         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
69350         false for non-gcc C++ compilers.
69351         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
69352
69353 2006-10-24  Bruno Haible  <bruno@clisp.org>
69354
69355         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
69356         iconv implementations like Irix iconv.
69357
69358 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69359
69360         * modules/vararrays: New file.
69361         * m4/vararrays.m4: New file, taken from diffutils.
69362         * MODULES.html.sh: New module vararrays.
69363
69364 2006-10-24  Karl Berry  <karl@gnu.org>
69365
69366         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
69367         Don't call GNU Unix.
69368
69369 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69370
69371         * users.txt: Add Libtool.
69372
69373         Sync from Libtool:
69374
69375         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69376
69377         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
69378         to gnulib's policy of including config.h unconditionally.
69379
69380 2006-10-24  Bruno Haible  <bruno@clisp.org>
69381
69382         * modules/wcwidth (Files): Add m4/wint_t.m4.
69383         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
69384         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
69385
69386 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69387
69388         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
69389         to pacify GCC with some -W flags enabled.  Problem reported by
69390         Bruno Haible.
69391
69392 2006-10-24  Jim Meyering  <jim@meyering.net>
69393
69394         * MODULES.html.sh: Remove uinttostr.  It's not a module.
69395         Reported by Karl Berry.
69396
69397 2006-10-23  Bruno Haible  <bruno@clisp.org>
69398
69399         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
69400
69401 2006-10-24  Bruno Haible  <bruno@clisp.org>
69402
69403         * lib/gl_list.h: Use C comment style, not C++ comment style.
69404
69405 2006-10-23  Eric Blake  <ebb9@byu.net>
69406
69407         * lib/getaddrinfo.c (includes): Add missing include.
69408
69409 2006-10-23  Bruno Haible  <bruno@clisp.org>
69410             Paul Eggert  <eggert@cs.ucla.edu>
69411
69412         Ability to rename obstack_free.
69413         * lib/obstack.h (__obstack_free): New macro. Declare instead of
69414         obstack_free.
69415         (obstack_free): Invoke the __obstack_free macro.
69416         * lib/obstack.c (obstack_free): Use __obstack_free macro.
69417
69418 2006-10-23  Bruno Haible  <bruno@clisp.org>
69419             Paul Eggert  <eggert@cs.ucla.edu>
69420
69421         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
69422         __argc, __argv from the declaration. (They are defined as macros on
69423         mingw.)
69424
69425 2006-10-22  Bruno Haible  <bruno@clisp.org>
69426
69427         * doc/gnulib-intro.texi: New file.
69428         * doc/gnulib.texi: Include it.
69429
69430 2006-10-21  Bruno Haible  <bruno@clisp.org>
69431
69432         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
69433         "Introduction", "Miscellanous Notes", "Particular Modules".
69434
69435 2006-10-21  Bruno Haible  <bruno@clisp.org>
69436
69437         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69438         Change mostlyclean-local rule to avoid sh syntax error from bash
69439         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
69440
69441 2006-10-23  Jim Meyering  <jim@meyering.net>
69442
69443         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
69444         in place of snprintf.
69445
69446         * modules/inttostr (Files): Add lib/uinttostr.c.
69447         * lib/uinttostr.c (inttostr): New file/function.
69448         * lib/inttostr.h (uinttostr): Declare.
69449         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
69450         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
69451         Add uinttostr.
69452         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
69453
69454 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
69455
69456         * lib/canonicalize.c (ELOOP): Define if not already defined.
69457         Problem reported by Bruno Haible in
69458         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
69459
69460 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
69461
69462         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
69463         Problem reported by Perry Smith and Ville Laurikari.
69464
69465         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
69466         uses.
69467
69468 2006-10-19  Bruno Haible  <bruno@clisp.org>
69469
69470         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
69471         for mingw.
69472
69473 2006-10-19  Bruno Haible  <bruno@clisp.org>
69474
69475         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
69476         Needed for mingw.
69477
69478 2006-10-19  Bruno Haible  <bruno@clisp.org>
69479
69480         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
69481
69482 2006-10-19  Bruno Haible  <bruno@clisp.org>
69483
69484         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
69485         it.
69486
69487 2006-10-19  Bruno Haible  <bruno@clisp.org>
69488
69489         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
69490         invocation.
69491
69492 2006-10-19  Bruno Haible  <bruno@clisp.org>
69493
69494         * gnulib-tool (func_create_testdir): Don't include ftruncate and
69495         mountlist by default.
69496
69497 2006-10-16  Bruno Haible  <bruno@clisp.org>
69498
69499         * lib/c-strstr.c: Include c-strstr.h.
69500
69501 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
69502
69503         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
69504         in a slash.
69505
69506 2006-10-18  Bruno Haible  <bruno@clisp.org>
69507
69508         * lib/lock.h [C++]: Wrap definitions in extern "C".
69509
69510 2006-10-18  Bruno Haible  <bruno@clisp.org>
69511
69512         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
69513         gl_LIBOBJS list.
69514
69515 2006-10-18  Bruno Haible  <bruno@clisp.org>
69516
69517         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
69518
69519 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
69520
69521         * lib/xstrtol.h: Include gettext.h.
69522         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
69523         Problem reported by Eric Blake.
69524         * modules/xstrtol (Depends-on): Add gettext-h.
69525
69526 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
69527
69528         * lib/strftime.c (advance): New macro.
69529         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
69530         incomplete type, so you can't add 0 to it.  Problem and patch
69531         reported by Eelco Dolstra for dietlibc.
69532
69533 2006-10-18  Jim Meyering  <jim@meyering.net>
69534
69535         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
69536         type for a local, and rename it: s/up/user_proc/.
69537
69538 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
69539
69540         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
69541         READ_UTMP_USER_PROCESS.
69542         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
69543
69544 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
69545
69546         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
69547         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
69548
69549 2006-10-17  Eric Blake  <ebb9@byu.net>
69550
69551         * lib/sigprocmask.c (sigprocmask): Fix typo.
69552
69553         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
69554
69555         * modules/clean-temp (Makefile.am): Don't add to make output...
69556         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
69557         config.h.
69558
69559 2006-10-17  Bruno Haible  <bruno@clisp.org>
69560
69561         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
69562         differently if DEFAULT_TEXT_DOMAIN is set.
69563
69564 2006-10-16  Bruno Haible  <bruno@clisp.org>
69565
69566         * lib/clean-temp.c: Include fwriteerror.h.
69567
69568 2006-10-16  Bruno Haible  <bruno@clisp.org>
69569
69570         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
69571
69572 2006-10-16  Bruno Haible  <bruno@clisp.org>
69573
69574         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
69575         * lib/sigprocmask.h: Include <sys/types.h>.
69576         (sigset_t): Use the system's definition if present.
69577
69578 2006-10-17  Eric Blake  <ebb9@byu.net>
69579
69580         * lib/xvasprintf.c (includes): Assume config.h.
69581         * lib/xasprintf.c (includes): Likewise.
69582
69583 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
69584
69585         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
69586         at least as wide as intmax_t.
69587
69588 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
69589
69590         (Imported from Automake.)
69591         * build-aux/gnupload: Update to version 1.1 of directive file.
69592
69593 2006-10-16  Eric Blake  <ebb9@byu.net>
69594
69595         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
69596         match Automake 1.10a.
69597
69598 2006-10-14  Bruno Haible  <bruno@clisp.org>
69599
69600         * modules/sigprocmask: New file.
69601         * lib/sigprocmask.h: New file.
69602         * lib/sigprocmask.c: New file.
69603         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
69604         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
69605         request sigprocmask.o.
69606         (gl_PREREQ_SIGPROCMASK): New macro.
69607         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
69608         (Depends-on): Add sigprocmask.
69609         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
69610         gt_SIGNALBLOCKING. Test for 'raise' only once.
69611         * lib/fatal-signal.c: Include sigprocmask.h.
69612         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
69613         unblock_fatal_signals): Define always.
69614         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69615         sigprocmask.
69616
69617 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
69618
69619         Sync from Automake.
69620         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
69621         which incorrectly sets the mode of an existing destination
69622         directory.  In some cases the unpatched install-sh could do the
69623         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
69624         system.  We hope this is rare in practice, but it's clearly worth
69625         fixing.  Problem reported by Alex Unleashed in
69626         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
69627         Also, don't bother to check for -m bugs unless we're using -m;
69628         suggested by Stepan Kasal.
69629
69630 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69631
69632         Sync from Automake.
69633         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
69634         `-c' flag, so they appear at the same position as in %FASTDEP%
69635         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
69636         which ignores unknown options only after the first non-option.
69637         Bug report against M4 by Nelson H. F. Beebe.
69638
69639 2006-10-13  Jim Meyering  <jim@meyering.net>
69640
69641         Fix a bug in yesterday's change.
69642         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
69643         p->fts_statp->st_dev would be used uninitialized.
69644         Ensures that we always call fts_stat on the very first entry.
69645         Miklos Szeredi reported that find -xdev stopped working.
69646
69647 2006-10-12  Bruno Haible  <bruno@clisp.org>
69648
69649         * gnulib-tool (func_get_automake_snippet): Append an automatically
69650         computed EXTRA_DIST augmentation.
69651         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
69652         * modules/alloca-opt (Makefile.am): Likewise.
69653         * modules/allocsa (Makefile.am): Likewise.
69654         * modules/arcfour (Makefile.am): Likewise.
69655         * modules/arctwo (Makefile.am): Likewise.
69656         * modules/argmatch (Makefile.am): Likewise.
69657         * modules/argz (Makefile.am): Likewise.
69658         * modules/atexit (Makefile.am): Likewise.
69659         * modules/backupfile (Makefile.am): Likewise.
69660         * modules/byteswap (Makefile.am): Likewise.
69661         * modules/c-strtod (Makefile.am): Likewise.
69662         * modules/c-strtold (Makefile.am): Likewise.
69663         * modules/calloc (Makefile.am): Likewise.
69664         * modules/canon-host (Makefile.am): Likewise.
69665         * modules/canonicalize (Makefile.am): Likewise.
69666         * modules/chdir-long (Makefile.am): Likewise.
69667         * modules/chdir-safer (Makefile.am): Likewise.
69668         * modules/check-version (Makefile.am): Likewise.
69669         * modules/chown (Makefile.am): Likewise.
69670         * modules/cloexec (Makefile.am): Likewise.
69671         * modules/close-stream (Makefile.am): Likewise.
69672         * modules/closeout (Makefile.am): Likewise.
69673         * modules/crc (Makefile.am): Likewise.
69674         * modules/csharpexec (Makefile.am): Likewise.
69675         * modules/cycle-check (Makefile.am): Likewise.
69676         * modules/des (Makefile.am): Likewise.
69677         * modules/dev-ino (Makefile.am): Likewise.
69678         * modules/dirfd (Makefile.am): Likewise.
69679         * modules/dirname (Makefile.am): Likewise.
69680         * modules/dup2 (Makefile.am): Likewise.
69681         * modules/eealloc (Makefile.am): Likewise.
69682         * modules/error (Makefile.am): Likewise.
69683         * modules/euidaccess (Makefile.am): Likewise.
69684         * modules/exclude (Makefile.am): Likewise.
69685         * modules/exitfail (Makefile.am): Likewise.
69686         * modules/fcntl-safer (Makefile.am): Likewise.
69687         * modules/fcntl (Makefile.am): Likewise.
69688         * modules/file-type (Makefile.am): Likewise.
69689         * modules/fileblocks (Makefile.am): Likewise.
69690         * modules/filemode (Makefile.am): Likewise.
69691         * modules/filenamecat (Makefile.am): Likewise.
69692         * modules/fnmatch (Makefile.am): Likewise.
69693         * modules/fopen-safer (Makefile.am): Likewise.
69694         * modules/fpending (Makefile.am): Likewise.
69695         * modules/fprintftime (Makefile.am): Likewise.
69696         * modules/free (Makefile.am): Likewise.
69697         * modules/fsusage (Makefile.am): Likewise.
69698         * modules/ftruncate (Makefile.am): Likewise.
69699         * modules/fts (Makefile.am): Likewise.
69700         * modules/gc-arcfour (Makefile.am): Likewise.
69701         * modules/gc-des (Makefile.am): Likewise.
69702         * modules/gc-hmac-md5 (Makefile.am): Likewise.
69703         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
69704         * modules/gc-md4 (Makefile.am): Likewise.
69705         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
69706         * modules/gc-sha1 (Makefile.am): Likewise.
69707         * modules/gc (Makefile.am): Likewise.
69708         * modules/getaddrinfo (Makefile.am): Likewise.
69709         * modules/getcwd (Makefile.am): Likewise.
69710         * modules/getdelim (Makefile.am): Likewise.
69711         * modules/getdomainname (Makefile.am): Likewise.
69712         * modules/getgroups (Makefile.am): Likewise.
69713         * modules/gethostname (Makefile.am): Likewise.
69714         * modules/gethrxtime (Makefile.am): Likewise.
69715         * modules/getline (Makefile.am): Likewise.
69716         * modules/getloadavg (Makefile.am): Likewise.
69717         * modules/getlogin_r (Makefile.am): Likewise.
69718         * modules/getndelim2 (Makefile.am): Likewise.
69719         * modules/getopt (Makefile.am): Likewise.
69720         * modules/getpagesize (Makefile.am): Likewise.
69721         * modules/getpass-gnu (Makefile.am): Likewise.
69722         * modules/getpass (Makefile.am): Likewise.
69723         * modules/getsubopt (Makefile.am): Likewise.
69724         * modules/gettime (Makefile.am): Likewise.
69725         * modules/gettimeofday (Makefile.am): Likewise.
69726         * modules/getugroups (Makefile.am): Likewise.
69727         * modules/getusershell (Makefile.am): Likewise.
69728         * modules/glob (Makefile.am): Likewise.
69729         * modules/group-member (Makefile.am): Likewise.
69730         * modules/hard-locale (Makefile.am): Likewise.
69731         * modules/hash (Makefile.am): Likewise.
69732         * modules/hmac-md5 (Makefile.am): Likewise.
69733         * modules/hmac-sha1 (Makefile.am): Likewise.
69734         * modules/human (Makefile.am): Likewise.
69735         * modules/idcache (Makefile.am): Likewise.
69736         * modules/imaxabs (Makefile.am): Likewise.
69737         * modules/imaxdiv (Makefile.am): Likewise.
69738         * modules/inet_ntop (Makefile.am): Likewise.
69739         * modules/inet_pton (Makefile.am): Likewise.
69740         * modules/intprops (Makefile.am): Likewise.
69741         * modules/inttostr (Makefile.am): Likewise.
69742         * modules/inttypes (Makefile.am): Likewise.
69743         * modules/isapipe (Makefile.am): Likewise.
69744         * modules/javaversion (Makefile.am): Likewise.
69745         * modules/lchmod (Makefile.am): Likewise.
69746         * modules/lchown (Makefile.am): Likewise.
69747         * modules/localcharset (Makefile.am): Likewise.
69748         * modules/long-options (Makefile.am): Likewise.
69749         * modules/lstat (Makefile.am): Likewise.
69750         * modules/malloc (Makefile.am): Likewise.
69751         * modules/mathl (Makefile.am): Likewise.
69752         * modules/mbchar (Makefile.am): Likewise.
69753         * modules/md2 (Makefile.am): Likewise.
69754         * modules/md4 (Makefile.am): Likewise.
69755         * modules/md5 (Makefile.am): Likewise.
69756         * modules/memcasecmp (Makefile.am): Likewise.
69757         * modules/memchr (Makefile.am): Likewise.
69758         * modules/memcmp (Makefile.am): Likewise.
69759         * modules/memcoll (Makefile.am): Likewise.
69760         * modules/memcpy (Makefile.am): Likewise.
69761         * modules/memmem (Makefile.am): Likewise.
69762         * modules/memmove (Makefile.am): Likewise.
69763         * modules/mempcpy (Makefile.am): Likewise.
69764         * modules/memrchr (Makefile.am): Likewise.
69765         * modules/memset (Makefile.am): Likewise.
69766         * modules/memxor (Makefile.am): Likewise.
69767         * modules/mkancesdirs (Makefile.am): Likewise.
69768         * modules/mkdir-p (Makefile.am): Likewise.
69769         * modules/mkdir (Makefile.am): Likewise.
69770         * modules/mkdtemp (Makefile.am): Likewise.
69771         * modules/mkstemp (Makefile.am): Likewise.
69772         * modules/mktime (Makefile.am): Likewise.
69773         * modules/modechange (Makefile.am): Likewise.
69774         * modules/mountlist (Makefile.am): Likewise.
69775         * modules/nanosleep (Makefile.am): Likewise.
69776         * modules/obstack (Makefile.am): Likewise.
69777         * modules/openat (Makefile.am): Likewise.
69778         * modules/pagealign_alloc (Makefile.am): Likewise.
69779         * modules/pathmax (Makefile.am): Likewise.
69780         * modules/physmem (Makefile.am): Likewise.
69781         * modules/poll (Makefile.am): Likewise.
69782         * modules/posixtm (Makefile.am): Likewise.
69783         * modules/posixver (Makefile.am): Likewise.
69784         * modules/putenv (Makefile.am): Likewise.
69785         * modules/quote (Makefile.am): Likewise.
69786         * modules/quotearg (Makefile.am): Likewise.
69787         * modules/raise (Makefile.am): Likewise.
69788         * modules/read-file (Makefile.am): Likewise.
69789         * modules/readline (Makefile.am): Likewise.
69790         * modules/readlink (Makefile.am): Likewise.
69791         * modules/readtokens (Makefile.am): Likewise.
69792         * modules/readutmp (Makefile.am): Likewise.
69793         * modules/realloc (Makefile.am): Likewise.
69794         * modules/regex (Makefile.am): Likewise.
69795         * modules/rename-dest-slash (Makefile.am): Likewise.
69796         * modules/rename (Makefile.am): Likewise.
69797         * modules/rijndael (Makefile.am): Likewise.
69798         * modules/rmdir (Makefile.am): Likewise.
69799         * modules/rpmatch (Makefile.am): Likewise.
69800         * modules/safe-read (Makefile.am): Likewise.
69801         * modules/safe-write (Makefile.am): Likewise.
69802         * modules/same-inode (Makefile.am): Likewise.
69803         * modules/same (Makefile.am): Likewise.
69804         * modules/save-cwd (Makefile.am): Likewise.
69805         * modules/savedir (Makefile.am): Likewise.
69806         * modules/setenv (Makefile.am): Likewise.
69807         * modules/settime (Makefile.am): Likewise.
69808         * modules/sha1 (Makefile.am): Likewise.
69809         * modules/sig2str (Makefile.am): Likewise.
69810         * modules/snprintf (Makefile.am): Likewise.
69811         * modules/stat-macros (Makefile.am): Likewise.
69812         * modules/stat-time (Makefile.am): Likewise.
69813         * modules/stdbool (Makefile.am): Likewise.
69814         * modules/stdint (Makefile.am): Likewise.
69815         * modules/stdlib-safer (Makefile.am): Likewise.
69816         * modules/stpcpy (Makefile.am): Likewise.
69817         * modules/stpncpy (Makefile.am): Likewise.
69818         * modules/strcase (Makefile.am): Likewise.
69819         * modules/strcasestr (Makefile.am): Likewise.
69820         * modules/strchrnul (Makefile.am): Likewise.
69821         * modules/strcspn (Makefile.am): Likewise.
69822         * modules/strdup (Makefile.am): Likewise.
69823         * modules/strerror (Makefile.am): Likewise.
69824         * modules/strftime (Makefile.am): Likewise.
69825         * modules/strndup (Makefile.am): Likewise.
69826         * modules/strnlen (Makefile.am): Likewise.
69827         * modules/strpbrk (Makefile.am): Likewise.
69828         * modules/strsep (Makefile.am): Likewise.
69829         * modules/strstr (Makefile.am): Likewise.
69830         * modules/strtod (Makefile.am): Likewise.
69831         * modules/strtoimax (Makefile.am): Likewise.
69832         * modules/strtok_r (Makefile.am): Likewise.
69833         * modules/strtol (Makefile.am): Likewise.
69834         * modules/strtoll (Makefile.am): Likewise.
69835         * modules/strtoul (Makefile.am): Likewise.
69836         * modules/strtoull (Makefile.am): Likewise.
69837         * modules/strtoumax (Makefile.am): Likewise.
69838         * modules/strverscmp (Makefile.am): Likewise.
69839         * modules/sys_socket (Makefile.am): Likewise.
69840         * modules/sys_stat (Makefile.am): Likewise.
69841         * modules/sysexits (Makefile.am): Likewise.
69842         * modules/time_r (Makefile.am): Likewise.
69843         * modules/timegm (Makefile.am): Likewise.
69844         * modules/timespec (Makefile.am): Likewise.
69845         * modules/tmpfile-safer (Makefile.am): Likewise.
69846         * modules/trim (Makefile.am): Likewise.
69847         * modules/unistd-safer (Makefile.am): Likewise.
69848         * modules/unlinkdir (Makefile.am): Likewise.
69849         * modules/unlocked-io (Makefile.am): Likewise.
69850         * modules/userspec (Makefile.am): Likewise.
69851         * modules/utime (Makefile.am): Likewise.
69852         * modules/utimecmp (Makefile.am): Likewise.
69853         * modules/utimens (Makefile.am): Likewise.
69854         * modules/vasnprintf (Makefile.am): Likewise.
69855         * modules/vasprintf (Makefile.am): Likewise.
69856         * modules/vsnprintf (Makefile.am): Likewise.
69857         * modules/xalloc (Makefile.am): Likewise.
69858         * modules/xgetcwd (Makefile.am): Likewise.
69859         * modules/xnanosleep (Makefile.am): Likewise.
69860         * modules/xreadlink (Makefile.am): Likewise.
69861         * modules/xstrtod (Makefile.am): Likewise.
69862         * modules/xstrtol (Makefile.am): Likewise.
69863         * modules/xstrtold (Makefile.am): Likewise.
69864         * modules/yesno (Makefile.am): Likewise.
69865         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
69866
69867 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
69868
69869         * modules/error (Makefile.am): Distribute files through
69870         EXTRA_DIST, not lib_SOURCES.
69871
69872 2006-10-12  Eric Blake  <ebb9@byu.net>
69873
69874         * modules/error (Makefile.am): Distribute files in /lib.
69875         * modules/obstack (Makefile.am): Likewise.
69876
69877 2006-10-12  Bruno Haible  <bruno@clisp.org>
69878
69879         * modules/acl (Makefile.am): Distribute all files in lib/ through
69880         EXTRA_DIST.
69881         * modules/arcfour (Makefile.am): Likewise.
69882         * modules/arctwo (Makefile.am): Likewise.
69883         * modules/argmatch (Makefile.am): Likewise.
69884         * modules/argz (Makefile.am): Likewise.
69885         * modules/atexit (Makefile.am): Likewise.
69886         * modules/backupfile (Makefile.am): Likewise.
69887         * modules/c-strtod (Makefile.am): Likewise.
69888         * modules/c-strtold (Makefile.am): Likewise.
69889         * modules/calloc (Makefile.am): Likewise.
69890         * modules/canon-host (Makefile.am): Likewise.
69891         * modules/canonicalize (Makefile.am): Likewise.
69892         * modules/chdir-long (Makefile.am): Likewise.
69893         * modules/chdir-safer (Makefile.am): Likewise.
69894         * modules/check-version (Makefile.am): Likewise.
69895         * modules/chown (Makefile.am): Likewise.
69896         * modules/cloexec (Makefile.am): Likewise.
69897         * modules/close-stream (Makefile.am): Likewise.
69898         * modules/closeout (Makefile.am): Likewise.
69899         * modules/crc (Makefile.am): Likewise.
69900         * modules/cycle-check (Makefile.am): Likewise.
69901         * modules/des (Makefile.am): Likewise.
69902         * modules/dirfd (Makefile.am): Likewise.
69903         * modules/dirname (Makefile.am): Likewise.
69904         * modules/dup2 (Makefile.am): Likewise.
69905         * modules/euidaccess (Makefile.am): Likewise.
69906         * modules/exclude (Makefile.am): Likewise.
69907         * modules/exitfail (Makefile.am): Likewise.
69908         * modules/fcntl-safer (Makefile.am): Likewise.
69909         * modules/file-type (Makefile.am): Likewise.
69910         * modules/fileblocks (Makefile.am): Likewise.
69911         * modules/filemode (Makefile.am): Likewise.
69912         * modules/filenamecat (Makefile.am): Likewise.
69913         * modules/fnmatch (Makefile.am): Likewise.
69914         * modules/fopen-safer (Makefile.am): Likewise.
69915         * modules/fpending (Makefile.am): Likewise.
69916         * modules/fprintftime (Makefile.am): Likewise.
69917         * modules/free (Makefile.am): Likewise.
69918         * modules/fsusage (Makefile.am): Likewise.
69919         * modules/ftruncate (Makefile.am): Likewise.
69920         * modules/fts (Makefile.am): Likewise.
69921         * modules/gc (Makefile.am): Likewise.
69922         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
69923         * modules/getaddrinfo (Makefile.am): Likewise.
69924         * modules/getcwd (Makefile.am): Likewise.
69925         * modules/getdelim (Makefile.am): Likewise.
69926         * modules/getdomainname (Makefile.am): Likewise.
69927         * modules/getgroups (Makefile.am): Likewise.
69928         * modules/gethostname (Makefile.am): Likewise.
69929         * modules/gethrxtime (Makefile.am): Likewise.
69930         * modules/getline (Makefile.am): Likewise.
69931         * modules/getloadavg (Makefile.am): Likewise.
69932         * modules/getlogin_r (Makefile.am): Likewise.
69933         * modules/getopt (Makefile.am): Likewise.
69934         * modules/getpass (Makefile.am): Likewise.
69935         * modules/getpass-gnu (Makefile.am): Likewise.
69936         * modules/getsubopt (Makefile.am): Likewise.
69937         * modules/gettime (Makefile.am): Likewise.
69938         * modules/gettimeofday (Makefile.am): Likewise.
69939         * modules/getugroups (Makefile.am): Likewise.
69940         * modules/getusershell (Makefile.am): Likewise.
69941         * modules/glob (Makefile.am): Likewise.
69942         * modules/group-member (Makefile.am): Likewise.
69943         * modules/hard-locale (Makefile.am): Likewise.
69944         * modules/hash (Makefile.am): Likewise.
69945         * modules/hmac-md5 (Makefile.am): Likewise.
69946         * modules/hmac-sha1 (Makefile.am): Likewise.
69947         * modules/human (Makefile.am): Likewise.
69948         * modules/idcache (Makefile.am): Likewise.
69949         * modules/imaxabs (Makefile.am): Likewise.
69950         * modules/imaxdiv (Makefile.am): Likewise.
69951         * modules/inet_ntop (Makefile.am): Likewise.
69952         * modules/inet_pton (Makefile.am): Likewise.
69953         * modules/inttostr (Makefile.am): Likewise.
69954         * modules/isapipe (Makefile.am): Likewise.
69955         * modules/lchown (Makefile.am): Likewise.
69956         * modules/long-options (Makefile.am): Likewise.
69957         * modules/lstat (Makefile.am): Likewise.
69958         * modules/malloc (Makefile.am): Likewise.
69959         * modules/mathl (Makefile.am): Likewise.
69960         * modules/mbchar (Makefile.am): Likewise.
69961         * modules/md2 (Makefile.am): Likewise.
69962         * modules/md4 (Makefile.am): Likewise.
69963         * modules/md5 (Makefile.am): Likewise.
69964         * modules/memcasecmp (Makefile.am): Likewise.
69965         * modules/memchr (Makefile.am): Likewise.
69966         * modules/memcmp (Makefile.am): Likewise.
69967         * modules/memcoll (Makefile.am): Likewise.
69968         * modules/memcpy (Makefile.am): Likewise.
69969         * modules/memmem (Makefile.am): Likewise.
69970         * modules/memmove (Makefile.am): Likewise.
69971         * modules/mempcpy (Makefile.am): Likewise.
69972         * modules/memrchr (Makefile.am): Likewise.
69973         * modules/memset (Makefile.am): Likewise.
69974         * modules/memxor (Makefile.am): Likewise.
69975         * modules/mkancesdirs (Makefile.am): Likewise.
69976         * modules/mkdir (Makefile.am): Likewise.
69977         * modules/mkdir-p (Makefile.am): Likewise.
69978         * modules/mkdtemp (Makefile.am): Likewise.
69979         * modules/mkstemp (Makefile.am): Likewise.
69980         * modules/mktime (Makefile.am): Likewise.
69981         * modules/modechange (Makefile.am): Likewise.
69982         * modules/mountlist (Makefile.am): Likewise.
69983         * modules/nanosleep (Makefile.am): Likewise.
69984         * modules/openat (Makefile.am): Likewise.
69985         * modules/pagealign_alloc (Makefile.am): Likewise.
69986         * modules/physmem (Makefile.am): Likewise.
69987         * modules/poll (Makefile.am): Likewise.
69988         * modules/posixtm (Makefile.am): Likewise.
69989         * modules/posixver (Makefile.am): Likewise.
69990         * modules/putenv (Makefile.am): Likewise.
69991         * modules/quote (Makefile.am): Likewise.
69992         * modules/quotearg (Makefile.am): Likewise.
69993         * modules/raise (Makefile.am): Likewise.
69994         * modules/read-file (Makefile.am): Likewise.
69995         * modules/readline (Makefile.am): Likewise.
69996         * modules/readlink (Makefile.am): Likewise.
69997         * modules/readtokens (Makefile.am): Likewise.
69998         * modules/readutmp (Makefile.am): Likewise.
69999         * modules/realloc (Makefile.am): Likewise.
70000         * modules/regex (Makefile.am): Likewise.
70001         * modules/rename (Makefile.am): Likewise.
70002         * modules/rename-dest-slash (Makefile.am): Likewise.
70003         * modules/rijndael (Makefile.am): Likewise.
70004         * modules/rmdir (Makefile.am): Likewise.
70005         * modules/rpmatch (Makefile.am): Likewise.
70006         * modules/safe-read (Makefile.am): Likewise.
70007         * modules/safe-write (Makefile.am): Likewise.
70008         * modules/same (Makefile.am): Likewise.
70009         * modules/save-cwd (Makefile.am): Likewise.
70010         * modules/savedir (Makefile.am): Likewise.
70011         * modules/setenv (Makefile.am): Likewise.
70012         * modules/settime (Makefile.am): Likewise.
70013         * modules/sha1 (Makefile.am): Likewise.
70014         * modules/sig2str (Makefile.am): Likewise.
70015         * modules/snprintf (Makefile.am): Likewise.
70016         * modules/stdlib-safer (Makefile.am): Likewise.
70017         * modules/stpcpy (Makefile.am): Likewise.
70018         * modules/stpncpy (Makefile.am): Likewise.
70019         * modules/strcase (Makefile.am): Likewise.
70020         * modules/strcasestr (Makefile.am): Likewise.
70021         * modules/strchrnul (Makefile.am): Likewise.
70022         * modules/strcspn (Makefile.am): Likewise.
70023         * modules/strdup (Makefile.am): Likewise.
70024         * modules/strerror (Makefile.am): Likewise.
70025         * modules/strftime (Makefile.am): Likewise.
70026         * modules/strndup (Makefile.am): Likewise.
70027         * modules/strnlen (Makefile.am): Likewise.
70028         * modules/strpbrk (Makefile.am): Likewise.
70029         * modules/strsep (Makefile.am): Likewise.
70030         * modules/strstr (Makefile.am): Likewise.
70031         * modules/strtod (Makefile.am): Likewise.
70032         * modules/strtoimax (Makefile.am): Likewise.
70033         * modules/strtok_r (Makefile.am): Likewise.
70034         * modules/strtol (Makefile.am): Likewise.
70035         * modules/strtoll (Makefile.am): Likewise.
70036         * modules/strtoul (Makefile.am): Likewise.
70037         * modules/strtoull (Makefile.am): Likewise.
70038         * modules/strtoumax (Makefile.am): Likewise.
70039         * modules/strverscmp (Makefile.am): Likewise.
70040         * modules/time_r (Makefile.am): Likewise.
70041         * modules/timegm (Makefile.am): Likewise.
70042         * modules/tmpfile-safer (Makefile.am): Likewise.
70043         * modules/unistd-safer (Makefile.am): Likewise.
70044         * modules/unlinkdir (Makefile.am): Likewise.
70045         * modules/userspec (Makefile.am): Likewise.
70046         * modules/utime (Makefile.am): Likewise.
70047         * modules/utimecmp (Makefile.am): Likewise.
70048         * modules/utimens (Makefile.am): Likewise.
70049         * modules/vasnprintf (Makefile.am): Likewise.
70050         * modules/vasprintf (Makefile.am): Likewise.
70051         * modules/vsnprintf (Makefile.am): Likewise.
70052         * modules/xalloc (Makefile.am): Likewise.
70053         * modules/xgetcwd (Makefile.am): Likewise.
70054         * modules/xnanosleep (Makefile.am): Likewise.
70055         * modules/xreadlink (Makefile.am): Likewise.
70056         * modules/xstrtod (Makefile.am): Likewise.
70057         * modules/xstrtol (Makefile.am): Likewise.
70058         * modules/xstrtold (Makefile.am): Likewise.
70059         * modules/yesno (Makefile.am): Likewise.
70060
70061 2006-10-12  Jim Meyering  <jim@meyering.net>
70062
70063         * m4/getloadavg.m4: Revert the change below.
70064
70065         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
70066         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
70067         fail with a symlink, which is what coreutils' ./bootstrap now
70068         creates by default.
70069
70070 2006-10-12  Bruno Haible  <bruno@clisp.org>
70071
70072         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
70073         mingw.
70074         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
70075         MSVC and mingw explicitly.
70076
70077 2006-10-11  Simon Josefsson  <jas@extundo.com>
70078             Bruno Haible  <bruno@clisp.org>
70079
70080         Add support for multiple gnulib-tool invocations in the scope of a
70081         single configure.ac file.
70082         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
70083         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
70084         with the same contents as the _LIBADD variable.
70085         (func_emit_initmacro_start, func_emit_initmacro_end,
70086         func_emit_initmacro_done): New functions.
70087         (func_import, func_create_testdir): Invoke them. Allow the identifiers
70088         gl_LIBOBJS and gl_LTLIBOBJS.
70089
70090 2006-10-11  Bruno Haible  <bruno@clisp.org>
70091
70092         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
70093         (func_create_testdir): Don't create po/Makefile.am, don't invoke
70094         autoreconf. Instead, invoke autopoint explicitly but move back the
70095         *.m4 files from gnulib.
70096
70097 2006-10-11  Bruno Haible  <bruno@clisp.org>
70098
70099         * gnulib-tool (func_usage): Make module names after --create-testdir
70100         optional.
70101         (func_create_testdir): If no module was specified, use nearly all
70102         modules.
70103
70104 2006-10-12  Jim Meyering  <jim@meyering.net>
70105
70106         Big performance improvement for fts-based tools that use FTS_NOSTAT.
70107         Avoid spurious inode-mismatch problems on non-POSIX file systems.
70108         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
70109         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
70110         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
70111         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
70112         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
70113         (fts_set_stat_required): New function.
70114         (fts_open): Defer the calls to fts_stat, if possible or requested.
70115         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
70116         into fts_stat itself.
70117         (fts_read): Perform any required (deferred) fts_stat call.
70118         (fts_build): Likewise, for the directory we're about to open and read.
70119         In the readdir loop, carefully decide whether each entry will require
70120         an eventual call to fts_stat, using dirent.d_type info if available.
70121         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
70122         a command line argument into this function.  Update all callers.
70123         Map a return value of FTS_DOT to FTS_D for a command line argument.
70124         * modules/fts (Depends-on): Add d-type.  Alphabetize.
70125         Thanks to Miklos Szeredi for his tenacity and for the initial
70126         bug report about "find" failing on a FUSE-based file system.
70127
70128         * lib/fts.c (fts_open): Use consistent indentation.
70129
70130 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
70131
70132         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
70133         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
70134         reported by Jim Meyering.  All uses of cache variables renamed
70135         to match Autoconf's.
70136         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
70137         the other one.
70138
70139         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
70140         Fix misspelling in diagnostic.
70141
70142 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
70143
70144         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
70145         defined.  Problem reported by Matthew Woehlke.
70146
70147         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
70148         Add support for Tandem NonStop R series.
70149         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
70150         Use new macro.
70151
70152         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
70153         (has_trailing_slash): Omit size arg; all callers changed.
70154         Omit 'inline', since it doesn't help performance and we'd
70155         need to configure it.
70156         Don't count //, ///, etc. as having a trailing slash.
70157         As a side effect, this removes a C99ism reported by Matthew Woehlke.
70158         (rpl_rename_dest_slash): On failure, use rename's errno rather
70159         than (in some cases) an incorrect or junk errno.
70160         Simplify code by removing need to compute length; this does
70161         cause it to make two passes instead of one over the file name,
70162         but it's worth it.
70163
70164         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
70165         change, since Autoconf's version may no longer be appropriate now
70166         that we are using CVS Autoconf's version.  Add support for Tandem.
70167
70168 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
70169             Bruno Haible  <bruno@clisp.org>
70170
70171         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
70172         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
70173         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
70174         gl_AC_TYPE_LONG_LONG.
70175
70176         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
70177         instead of HAVE_LONG_LONG.
70178         * lib/printf-args.c (printf_fetchargs): Likewise.
70179         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
70180         * lib/vasnprintf.c (VASNPRINTF): Likewise.
70181         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
70182         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
70183         gl_AC_TYPE_LONG_LONG.
70184
70185 2006-10-11  Bruno Haible  <bruno@clisp.org>
70186
70187         * m4/longlong.m4: Add comments.
70188         * m4/ulonglong.m4: Likewise.
70189
70190 2006-10-10  Bruno Haible  <bruno@clisp.org>
70191
70192         Make it possible to #define stpcpy, strdup to aliases.
70193         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
70194         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
70195
70196 2006-10-10  Bruno Haible  <bruno@clisp.org>
70197
70198         Make it possible to #define gcd to an alias.
70199         * lib/gcd.c: Include config.h.
70200
70201 2006-10-10  Bruno Haible  <bruno@clisp.org>
70202
70203         Make it possible to #define c_isascii to an alias.
70204         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
70205         defined. Undefine the macros before defining them, to avoid gcc
70206         warnings.
70207         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
70208         define NO_C_CTYPE_MACROS early.
70209
70210 2006-10-10  Bruno Haible  <bruno@clisp.org>
70211
70212         Make it possible to #define set_program_name to an alias.
70213         * lib/progname.c: Don't undefine set_program_name; instead, undefine
70214         ENABLE_RELOCATABLE early.
70215
70216 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70217
70218         Port to Tandem NSK OSS, which has 64-bit signed int but at most
70219         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
70220         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
70221         More generally, don't assume that 64-bit signed int is available
70222         if unsigned int is, and vice versa.
70223         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
70224         unsigned symbols, not on their signed counterparts.
70225         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
70226         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
70227         (UINT64_C, UINTMAX_C):
70228         Likewise.
70229         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
70230         unsigned counterparts.
70231         (Have_long_long, Unsigned): New macros.
70232         (Int): Renamed from INT.
70233         (strtoimax): Use the new macros.
70234         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
70235         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
70236         * modules/inttypes (inttypes.h): Substitute
70237         HAVE_UNSIGNED_LONG_LONG_INT.
70238         * modules/stdint (stdint.h): Likewise.
70239         (Files): Add m4/ulonglong.m4.
70240
70241 2006-10-10  Bruno Haible  <bruno@clisp.org>
70242
70243         Fix a gcc -Wshadow warning.
70244         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
70245         to 'bucket'.
70246         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
70247         gl_linked_indexof_from_to): Likewise.
70248         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
70249         Likewise.
70250         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
70251         Likewise.
70252         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
70253         Reported by Eric Blake.
70254
70255 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
70256
70257         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
70258         for NetBSD.  Problem reported by Bruno Haible.
70259
70260 2006-10-09  Jim Meyering  <jim@meyering.net>
70261
70262         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
70263         Patch from Bruno Haible.
70264
70265 2006-10-09  Jim Meyering  <jim@meyering.net>
70266
70267         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
70268         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
70269         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
70270
70271 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
70272
70273         Don't include <config.h> twice; this doesn't work in some cases,
70274         e.g., when config.h has "#define intmax_t long long int" and
70275         we include <config.h>, <inttypes.h>, <config.h> in that order.
70276         Problem reported by Matthew Woehlke in:
70277         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
70278         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
70279         * lib/fts-cycle.c: Don't include config.h.
70280         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
70281         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
70282         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
70283         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
70284         inttypes.h.
70285         * lib/xstrtoumax.c: Likewise.
70286         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
70287         __strtol and the like, so that this module is more like its siblings.
70288         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
70289         Remove; no longer needed now that we assume gnulib inttypes.h.
70290
70291 2006-10-08  Bruno Haible  <bruno@clisp.org>
70292
70293         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
70294         option.
70295
70296 2006-10-07  Jim Meyering  <jim@meyering.net>
70297
70298         * modules/inttypes (inttypes.h): Revert what seems to have been
70299         an inadvertent part of today's change: use "|", not "/" in the
70300         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
70301
70302 2006-10-07  Bruno Haible  <bruno@clisp.org>
70303
70304         * modules/sublist: New file.
70305
70306 2006-10-07  Bruno Haible  <bruno@clisp.org>
70307
70308         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
70309         * modules/argz (argz.h): Likewise.
70310         * modules/arpa_inet (arpa/inet.h): Likewise.
70311         * modules/byteswap (byteswap.h): Likewise.
70312         * modules/configmake (configmake.h): Likewise.
70313         * modules/fcntl (fcntl.h): Likewise.
70314         * modules/fnmatch (fnmatch.h): Likewise.
70315         * modules/getopt (getopt.h): Likewise.
70316         * modules/glob (glob.h): Likewise.
70317         * modules/inttypes (inttypes.h): Likewise.
70318         * modules/netinet_in (netinet/in.h): Likewise.
70319         * modules/poll (poll.h): Likewise.
70320         * modules/stdbool (stdbool.h): Likewise.
70321         * modules/stdint (stdint.h): Likewise.
70322         * modules/sys_select (sys/select.h): Likewise.
70323         * modules/sys_socket (sys/socket.h): Likewise.
70324         * modules/sys_stat (sys/stat.h): Likewise.
70325         * modules/sysexits (sysexits.h): Likewise.
70326         * modules/unistd (unistd.h): Likewise.
70327         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70328         Add a "DO NOT EDIT" comment to the generated file.
70329         (func_import): Likewise for gnulib-comp.m4.
70330
70331 2006-10-07  Bruno Haible  <bruno@clisp.org>
70332
70333         * lib/gl_sublist.h: New file.
70334         * lib/gl_sublist.c: New file.
70335
70336 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70337
70338         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
70339         name (relative to the original working directory) and the file
70340         name component (relative to the temporary working directory).  All
70341         callers changed.
70342         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
70343         * lib/mkdir-p.c (make_dir_parents): Likewise.
70344         * lib/mkdir-p.h (make_dir_parents): Likewise.
70345
70346 2006-10-06  Eric Blake  <ebb9@byu.net>
70347
70348         Define several macros for use by the clean-temp module.
70349         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
70350         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
70351         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
70352
70353         * lib/clean-temp.h (close_stream_temp): New declaration.
70354         * lib/clean-temp.c (includes): Pull in headers according to what
70355         other modules are in use.
70356         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
70357
70358 2006-10-06  Bruno Haible  <bruno@clisp.org>
70359
70360         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
70361         instead of fopen, fwriteerror.
70362
70363 2006-10-06  Bruno Haible  <bruno@clisp.org>
70364
70365         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
70366         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
70367         int.
70368         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
70369         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
70370         Return an error indicator.
70371         Suggested by Eric Blake.
70372
70373 2006-10-06  Bruno Haible  <bruno@clisp.org>
70374
70375         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
70376         Reported by Eric Blake.
70377
70378 2006-10-06  Bruno Haible  <bruno@clisp.org>
70379
70380         * modules/closeout (Description): Mention stderr too.
70381
70382 2006-10-06  Bruno Haible  <bruno@clisp.org>
70383         and Paul Eggert  <eggert@cs.ucla.edu>
70384
70385         * lib/closeout.c (close_stdout): Also close stderr.
70386         * lib/closeout.h: Update comment.
70387
70388 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
70389
70390         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
70391         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
70392         * lib/dirchownmod.c: Include lchown.h.
70393         * lib/lchown.c: Don't include files that lchown.h now includes.
70394         Don't declare chown, since lchown.h now does that.
70395         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
70396         (lchown): Define to rpl_chown if lchown is declared but
70397         does not exist.  Declare using a prototype if lchown is not
70398         declared.  Add a copyright notice.
70399         * lib/mkstemp.h: Include <unistd.h>.
70400         * lib/openat.c: Include lchown.h.
70401
70402         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
70403         we now test for that separately.
70404         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
70405         rather than O_NOFOLLOW, when testing whether it's possible to
70406         avoid a race condition reliably.
70407         * lib/savewd.c (savewd_chdir): Likewise.
70408
70409         Remove macros that are no longer needed now that stdint.h is
70410         reliable.
70411         * lib/fsusage.c (UINTMAX_MAX): Remove.
70412         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
70413         * lib/utimecmp.c (SIZE_MAX): Remove.
70414
70415         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
70416
70417         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
70418         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
70419         O_NOATIME works.
70420
70421 2006-10-05  Bruno Haible  <bruno@clisp.org>
70422
70423         * lib/gl_list.h (gl_sortedlist_search_from_to,
70424         gl_sortedlist_indexof_from_to): New declarations.
70425         (gl_list_implementation): New fields sortedlist_search_from_to,
70426         sortedlist_indexof_from_to.
70427         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
70428         inline functions.
70429         * lib/gl_list.c (gl_sortedlist_search_from_to,
70430         gl_sortedlist_indexof_from_to): New functions.
70431         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
70432         function.
70433         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
70434         (gl_array_sortedlist_search_from_to): New function.
70435         (gl_array_list_implementation): Update.
70436         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
70437         function.
70438         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
70439         (gl_carray_sortedlist_search_from_to): New function.
70440         (gl_carray_list_implementation): Update.
70441         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
70442         gl_linked_sortedlist_indexof_from_to): New functions.
70443         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
70444         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
70445         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
70446         gl_tree_sortedlist_indexof_from_to): New functions.
70447         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
70448         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
70449         Update.
70450         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
70451         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
70452         Update.
70453
70454 2006-10-05  Bruno Haible  <bruno@clisp.org>
70455
70456         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
70457         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
70458         (struct gl_list_implementation): Add fields search_from_to,
70459         indexof_from_to. Remove fields search, indexof.
70460         (gl_list_search): Use the search_from_to method.
70461         (gl_list_search_from, gl_list_search_from_to): New functions.
70462         (gl_list_indexof): Use the indexof_from_to method.
70463         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
70464         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
70465         (gl_list_search_from, gl_list_search_from_to): New functions.
70466         (gl_list_indexof): Use the indexof_from_to method.
70467         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
70468         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
70469         gl_array_indexof. Add start_index, end_index arguments.
70470         (gl_array_search_from_to): Renamed from gl_array_search. Add
70471         start_index, end_index arguments.
70472         (gl_array_remove, gl_array_list_implementation): Update.
70473         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
70474         gl_carray_indexof. Add start_index, end_index arguments.
70475         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
70476         start_index, end_index arguments.
70477         (gl_carray_remove, gl_carray_list_implementation): Update.
70478         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
70479         gl_linked_search. Add start_index, end_index arguments.
70480         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
70481         start_index, end_index arguments.
70482         (gl_linked_remove): Update.
70483         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
70484         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
70485         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
70486         field to 'size_t'.
70487         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
70488         gl_tree_search. Add start_index, end_index arguments.
70489         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
70490         start_index, end_index arguments.
70491         (gl_tree_remove): Update.
70492         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
70493         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
70494         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
70495         function.
70496         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
70497         gl_tree_search. Add start_index, end_index arguments.
70498         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
70499         start_index, end_index arguments.
70500         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
70501         Update.
70502         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
70503
70504 2006-10-05  Bruno Haible  <bruno@clisp.org>
70505
70506         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
70507
70508         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
70509         fwriteerror_temp): New declarations.
70510         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
70511         (descriptors): New variable.
70512         (cleanup): First, close the descriptors.
70513         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
70514         fclose_temp, fwriteerror_temp): New functions.
70515
70516 2006-10-04  Jim Meyering  <jim@meyering.net>
70517
70518         * lib/fts.c (fts_open): Tiny comment change.
70519
70520 2006-10-04  Bruno Haible  <bruno@clisp.org>
70521
70522         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
70523         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
70524         gl_LOCK_BODY.
70525         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
70526         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
70527         gl_LOCK_EARLY_BODY.
70528         (gl_LOCK): Require gl_LOCK_BODY.
70529
70530 2006-10-04  Bruno Haible  <bruno@clisp.org>
70531
70532         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
70533         (gl_oset_search_atleast): New declaration.
70534         (struct gl_oset_implementation): Add field 'search_atleast'.
70535         (gl_oset_search_atleast): New inline function.
70536         * lib/gl_oset.c (gl_oset_search_atleast): New function.
70537         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
70538         (gl_array_oset_implementation): Update.
70539         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
70540         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
70541         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
70542
70543 2006-10-04  Bruno Haible  <bruno@clisp.org>
70544
70545         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
70546
70547 2006-10-03  Bruno Haible  <bruno@clisp.org>
70548
70549         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
70550         from gl_avltreehash_list_implementation.
70551
70552 2006-10-03  Bruno Haible  <bruno@clisp.org>
70553
70554         * lib/gl_oset.c (gl_oset_add): Fix return type.
70555
70556 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
70557
70558         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
70559
70560 2006-10-02  Eric Blake  <ebb9@byu.net>
70561
70562         * modules/strnlen (Depends-on): Add extensions.
70563
70564 2006-10-02  Eric Blake  <ebb9@byu.net>
70565
70566         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
70567         definition in 2.60+.
70568
70569 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
70570
70571         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
70572         checks.
70573
70574 2006-10-02  Bruno Haible  <bruno@clisp.org>
70575
70576         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
70577         to the AUTOMAKE_OPTIONS.
70578         Reported by Jim Meyering.
70579
70580 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
70581
70582         Work around bug in Solaris 10 /proc file system:
70583         /proc/self/fd/NNN/.. isn't the parent directory of
70584         the directory whose file descriptor is NNN.  This needs to
70585         be worked around at run time, not compile time, since a
70586         program might be built on Solaris 8, where things work, and
70587         run on Solaris 10.
70588         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
70589         to use the following interface instead:
70590         (OPENAT_BUFFER_SIZE): New macro.
70591         (openat_proc_name): New function.
70592         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
70593         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
70594         Likewise.
70595         * lib/openat-proc.c: New file.
70596         * modules/openat (Files): Add lib/openat-proc.c.
70597         (Depends-on): Add same-inode, stdbool.
70598         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
70599
70600 2006-09-29  Bruno Haible  <bruno@clisp.org>
70601
70602         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
70603         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
70604         argument. Set stdout_closed before testing for ferror, not after.
70605         (fwriteerror, fwriteerror_no_ebadf): New functions.
70606
70607 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70608
70609         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
70610
70611 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
70612
70613         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
70614         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
70615
70616 2006-09-28  Jim Meyering  <jim@meyering.net>
70617
70618         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
70619         Include <unistd.h>.
70620
70621 2006-09-28  Bruno Haible  <bruno@clisp.org>
70622
70623         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
70624         * modules/linkedhash-list (Depends-on): Likewise.
70625         * modules/rbtreehash-list (Depends-on): Likewise.
70626
70627 2006-09-28  Bruno Haible  <bruno@clisp.org>
70628
70629         * lib/strndup.h: Simplify the redefinition of strndup.
70630         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
70631         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
70632
70633 2006-09-28  Bruno Haible  <bruno@clisp.org>
70634
70635         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
70636         * lib/gl_linkedhash_list.c: Likewise.
70637         * lib/gl_rbtreehash_list.c: Likewise.
70638
70639 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
70640
70641         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
70642         getaddrinfo.
70643
70644         * lib/__fpending.h: Don't include <stdio_ext.h> unless
70645         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
70646         it causes <stdio_ext.h> to cause a compile-time error.
70647         Problem reported by Nelson H. F. Beebe.
70648         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
70649         of HAVE_DECL___PENDING.
70650
70651         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
70652         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
70653         declaration.
70654
70655 2006-09-27  Jim Meyering  <jim@meyering.net>
70656
70657         This file could end up with a definition for a function
70658         named __strndup, rather than rpl_strndup on a system with
70659         incomplete weak_alias support.
70660         * lib/strndup.c (strndup): Rename from __strndup.
70661         Remove #defines that used to map __strndup to strndup.
70662         Don't use K&R prototypes.
70663         Remove LIBC-related code, since this file is not sync'd with glibc.
70664         * lib/strndup.h: Revamp, accordingly.
70665         * m4/strndup.m4: Modernize.
70666
70667 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
70668
70669         * modules/savewd (Depends-on): Add 'raise'.
70670         * lib/savewd.c: Include <signal.h>, for 'raise'.
70671
70672 2006-09-26  Jim Meyering  <jim@meyering.net>
70673
70674         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
70675         when we detect Darwin 8.7.0's acl_get_file bug.
70676         Rearrange to perform the new (below) run-test while $LIBS
70677         contains any acl-related library.  Set USE_ACL at the end.
70678         (gl_ACL_GET_FILE): New function.
70679
70680 2006-09-26  Eric Blake  <ebb9@byu.net>
70681
70682         * lib/verror.c: Include <config.h> unconditionally.
70683
70684 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
70685
70686         * modules/clock-time (Maintainer): Add self.
70687         * modules/getlogin_r (Depends-on): Add extensions.
70688
70689 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70690
70691         * modules/clock-time: New module.
70692         * modules/nanosleep (Depends-on): Add clock-time.
70693         * modules/gethrxtime (Depends-on): Likewise.
70694         * modules/gettime (Depends-on): Likewise.
70695         * modules/settime (Depends-on): Likewise.
70696
70697         * modules/fts-lgpl: Depend on openat.
70698         * modules/mkancesdirs: Depend on savewd.
70699         * modules/mkdir-p: Likewise.
70700
70701 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70702
70703         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
70704
70705         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
70706         `gl_have_arbitrary_file_name_length_limit' to
70707         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
70708         actually works between configure runs.
70709
70710 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70711             Bruno Haible  <bruno@clisp.org>
70712
70713         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
70714
70715 2006-09-25  Jim Meyering  <jim@meyering.net>
70716
70717         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
70718         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
70719
70720 2006-09-25  Eric Blake  <ebb9@byu.net>
70721
70722         * gnulib-tool (func_import, func_create_testdir): Fix typos in
70723         exec's in 2006-09-18 patch when shuffling fds.
70724
70725 2006-09-25  Bruno Haible  <bruno@clisp.org>
70726
70727         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
70728         Reported by Jim Meyering.
70729
70730 2006-09-24  Jim Meyering  <jim@meyering.net>
70731
70732         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
70733         compare a pointer against a literal "0".  That caused failures with
70734         at least HP-UX's hpcc.
70735
70736 2006-09-22  Simon Josefsson  <jas@extundo.com>
70737
70738         * modules/gc-sha1:
70739         * modules/gc-md4:
70740         * modules/gc-hmac-sha1:
70741         * modules/gc-hmac-md5:
70742         * modules/gc-des:
70743         * modules/gc-arcfour: Distribute more files.
70744
70745 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70746
70747         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
70748         (gl_linked_iterator_from_to): Initialize struct completely.
70749         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
70750         (gl_tree_iterator_from_to): Likewise
70751         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
70752         * lib/gl_array_list.c [lint] (gl_array_iterator)
70753         (gl_array_iterator_from_to): Likewise.
70754         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
70755         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
70756         (gl_carray_iterator_from_to): Likewise.
70757
70758         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
70759         * lib/md4.c (md4_process_block): Remove unused variable.
70760         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
70761         parentheses for clarity.
70762
70763 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70764
70765         * modules/bison-i18n (Depends-on): Add gettext.
70766
70767 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70768
70769         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
70770         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
70771         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
70772         also add missing comma that caused broken test.
70773         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
70774         stdlib.h, for `abort'.
70775         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
70776         variables.
70777         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
70778         include unistd.h if present, for `rmdir'.
70779         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
70780         variables.
70781         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
70782         in the process include standard headers for prototypes.
70783         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
70784         gets declared on GNU/Linux.
70785         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
70786         unistd.h, for `rmdir'.
70787         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
70788
70789         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
70790         always true.
70791         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
70792
70793         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
70794
70795 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70796
70797         * gnulib-tool (func_version): Create output all at once.  This
70798         may help avoid triggering unnecessary SIGPIPEs, and at any
70799         rate it doesn't hurt.
70800
70801 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70802             Bruno Haible  <bruno@clisp.org>
70803
70804         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
70805         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
70806         * m4/signed.m4 (bh_C_SIGNED): Likewise.
70807
70808         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
70809         (gl_FUNC_VASPRINTF): Invoke it.
70810
70811 2006-09-22  Bruno Haible  <bruno@clisp.org>
70812
70813         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
70814         getloadavg.c as first argument.
70815
70816 2006-09-22  Bruno Haible  <bruno@clisp.org>
70817
70818         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
70819         at the beginning of the gl_INIT macro.
70820         * modules/getloadavg (configure.ac): Pass $gl_source_base to
70821         gl_GETLOADAVG.
70822
70823 2006-09-22  Bruno Haible  <bruno@clisp.org>
70824
70825         * gnulib-tool (func_create_megatestdir): Don't include the config-h
70826         module.
70827         Suggested by Ralf Wildenhues.
70828
70829 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70830
70831         Import this patch from libc:
70832
70833         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
70834
70835         * lib/regex_internal.c (re_string_reconstruct): Handle
70836         offset < pstr->valid_raw_len && pstr->offsets_needed case.
70837         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
70838         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
70839         re_string_context_at.
70840
70841         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
70842         now requires it.
70843         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
70844         gl_REGEX now does it for us.
70845         (gl_REGEX): Add test taken from
70846         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
70847
70848         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
70849         Check that large offsets work.  Modernize Autoconf usages.
70850         Prefer "yes" to mean a good thing rather than a bad.
70851         Don't put "#define mkstemp" in config.h, as this might interfere
70852         with standard system headers that "#define mkstemp mkstemp64".
70853
70854         * modules/mkstemp (Depends-on): Add extensions, so that
70855         mkstemp is visible on some platforms.
70856         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
70857         (Include): Change to "mkstemp.h" from <stdlib.h>.
70858         (Files): Add mkstemp.h.
70859
70860         * lib/mkstemp.h: New file, since some standard headers
70861         #define mkstemp.
70862         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
70863         Include "mkstemp.h".
70864         Make the _LIBC code resemble glibc original more,
70865         e.g., use K&R style.
70866         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
70867         (mkstemp): Remove, since mkstemp.h does this for us.
70868         * lib/stdlib--.h: Include mkstemp.h.
70869
70870         Import this patch from libc:
70871
70872         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
70873
70874         * lib/tempname.c (__gen_tempname): Change attempts_min
70875         into a macro.  Use preprocessor to decide how to initialize
70876         attempts [Coverity CID 67].
70877
70878 2006-09-20  Bruno Haible  <bruno@clisp.org>
70879
70880         * lib/mkdtemp.c: Import from libc.
70881         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
70882                 * sysdeps/posix/tempname.c (__gen_tempname): Change
70883                 attempts_min into a macro.  Use preprocessor to decide how to
70884                 initialize attempts [Coverity CID 67].
70885         2001-11-27  Paul Eggert  <eggert@twinsun.com>
70886                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
70887                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
70888
70889 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70890
70891         * gnulib-tool (func_exit): New function, to allow to pass the
70892         exit status portably through the trap.  Use everywhere.
70893         (--help, --version): Signal a write error.
70894         (trap): catch SIGPIPE, for write errors.
70895         Exit at the end of the trap, with the correct exit status.
70896
70897 2006-09-19  Karl Berry  <karl@gnu.org>
70898
70899         * doc/gnulib.texi: note about the license texinfo files.
70900
70901 2006-09-19  Eric Blake  <ebb9@byu.net>
70902
70903         * gnulib-tool: Avoid space-tab.
70904
70905 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
70906
70907         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
70908         that prevented coreutils 6.1 from building.  Problem reported
70909         by Petter Reinholdtsen.
70910
70911 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
70912
70913         * gnulib-tool (avoidlist): Fix typo that broke options like
70914         --avoid=lock that are used by coreutils bootstrap.
70915
70916 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
70917
70918         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
70919         more systematically.
70920
70921 2006-09-18  Jim Meyering  <jim@meyering.net>
70922
70923         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
70924
70925 2006-09-18  Bruno Haible  <bruno@clisp.org>
70926
70927         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
70928
70929 2006-09-18  Bruno Haible  <bruno@clisp.org>
70930
70931         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
70932         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
70933         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
70934         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
70935         * m4/gettext.m4: Require autoconf >= 2.52.
70936         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
70937         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
70938         of gl_cv_header_inttypes_h.
70939
70940 2006-09-18  Bruno Haible  <bruno@clisp.org>
70941
70942         * lib/javaversion.c: Include configmake.h.
70943
70944 2006-09-18  Bruno Haible  <bruno@clisp.org>
70945
70946         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
70947         avoid that the while loops be executed in a subshell.
70948
70949 2006-09-18  Bruno Haible  <bruno@clisp.org>
70950
70951         * MODULES.html.sh (func_module): Break long lines.
70952         Suggested by Bruce Korb <bkorb@gnu.org>.
70953
70954 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70955
70956         Speed up by a factor of 1.12.
70957         * gnulib-tool (nl): New variable.
70958         (func_import): Rewrite include directive extraction to only read each
70959         directive once.
70960
70961 2006-09-17  Bruno Haible  <bruno@clisp.org>
70962
70963         * modules/javaversion (Makefile.am): Remove DEFS setting.
70964         (Depends-on): Add configmake, for PKGDATADIR definition.
70965
70966 2006-09-17  Bruno Haible  <bruno@clisp.org>
70967
70968         * gnulib-tool (func_create_testdir): Rewrite all files at once.
70969
70970 2006-09-17  Bruno Haible  <bruno@clisp.org>
70971
70972         * gnulib-tool (func_append): New function, stolen from libtool.m4.
70973         (func_modules_transitive_closure, func_modules_add_dummy,
70974         func_modules_to_filelist, func_import, func_create_testdir,
70975         func_create_megatestdir, ...): Use it wherever possible.
70976         Suggested by Ralf Wildenhues.
70977
70978 2006-09-16  Karl Berry  <karl@gnu.org>
70979
70980         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
70981         to avoid sectioning errors.
70982         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
70983         [ifinfo]: blank line after @center-ed titles.
70984         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
70985         Spell FSF address consistently with others.
70986         (These changes approved by rms.)
70987
70988 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70989
70990         Speed up by a factor of 1.61.
70991         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
70992         already checked module names again.
70993
70994 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70995
70996         Speed up by a factor of 1.13.
70997         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
70998         for new_files, and the input to func_add_or_update.
70999
71000 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71001
71002         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
71003         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
71004
71005 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
71006
71007         * modules/mkancesdirs (Depends-on): Add fcntl.
71008         * modules/savewd: New file.
71009         * MODULES.html.sh (File system functions): Add savewd.
71010
71011         * modules/configmake (Makefile.am): Add support for the
71012         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
71013
71014 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
71015
71016         * m4/savewd.m4: New file.
71017
71018 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
71019
71020         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
71021         (dirchownmod): New arg FD.  All callers changed.
71022         Use FD rather than opening the directory ourself, as opening is
71023         now the caller's responsibility.
71024         * lib/dirchownmod.h: Likewise.
71025         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
71026         hosts that require <sys/types.h> before <sys/stat.h>.  Include
71027         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
71028         (test_dir): Remove.
71029         (mkancesdirs): Return length of prefix of FILE that has already
71030         been made, or -2 if there is a child doing the work.  Redo
71031         algorithm so that it is O(N) rather than O(N**2).  Optimize away
71032         ".", and treat ".." specially since it might stray back into
71033         already-created areas.  Use a subprocess if necessary.  New arg
71034         WD; all users changed.  MAKE_DIR function should now return 1
71035         if it creates a directory that is not readable.  Return -2 if
71036         a child process is spun off.
71037         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
71038         Adjust signature to match code.
71039         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
71040         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
71041         all users changed.
71042         * lib/savewd.c, lib/savewd.h: New files.
71043
71044 2006-09-15  Jim Meyering  <jim@meyering.net>
71045
71046         * modules/rename-dest-slash: New module.
71047         * MODULES.html.sh (posix_compat): Add it here.
71048
71049         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
71050
71051 2006-09-15  Jim Meyering  <jim@meyering.net>
71052
71053         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
71054         file.
71055
71056         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
71057
71058 2006-09-15  Jim Meyering  <jim@meyering.net>
71059
71060         * lib/rename-dest-slash.c (has_trailing_slash): Use
71061         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
71062         (rpl_rename_dest_slash): Perform the cheaper trailing slash
71063         test before testing whether SRC is a directory.
71064         Suggestions from Bruno Haible.
71065
71066         Avoid a warning about an unused variable.
71067         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
71068         into the #ifdef block where it's used.
71069
71070         * lib/rename-dest-slash.c: New file.
71071
71072 2006-09-14  Bruno Haible  <bruno@clisp.org>
71073
71074         * lib/allocsa.c: Include <config.h> unconditionally.
71075         * lib/asnprintf.c: Likewise.
71076         * lib/asprintf.c: Likewise.
71077         * lib/c-strcasecmp.c: Likewise.
71078         * lib/c-strcasestr.c: Likewise.
71079         * lib/c-strncasecmp.c: Likewise.
71080         * lib/c-strstr.c: Likewise.
71081         * lib/classpath.c: Likewise.
71082         * lib/clean-temp.c: Likewise.
71083         * lib/concatpath.c: Likewise.
71084         * lib/copy-file.c: Likewise.
71085         * lib/csharpcomp.c: Likewise.
71086         * lib/csharpexec.c: Likewise.
71087         * lib/execute.c: Likewise.
71088         * lib/fatal-signal.c: Likewise.
71089         * lib/findprog.c: Likewise.
71090         * lib/fwriteerror.c: Likewise.
71091         * lib/gl_array_list.c: Likewise.
71092         * lib/gl_array_oset.c: Likewise.
71093         * lib/gl_avltree_list.c: Likewise.
71094         * lib/gl_avltree_oset.c: Likewise.
71095         * lib/gl_avltreehash_list.c: Likewise.
71096         * lib/gl_carray_list.c: Likewise.
71097         * lib/gl_linked_list.c: Likewise.
71098         * lib/gl_linkedhash_list.c: Likewise.
71099         * lib/gl_list.c: Likewise.
71100         * lib/gl_oset.c: Likewise.
71101         * lib/gl_rbtree_list.c: Likewise.
71102         * lib/gl_rbtree_oset.c: Likewise.
71103         * lib/gl_rbtreehash_list.c: Likewise.
71104         * lib/imaxabs.c: Likewise.
71105         * lib/imaxdiv.c: Likewise.
71106         * lib/javacomp.c: Likewise.
71107         * lib/javaexec.c: Likewise.
71108         * lib/javaversion.c: Likewise.
71109         * lib/linebreak.c: Likewise.
71110         * lib/localcharset.c: Likewise.
71111         * lib/lock.c: Likewise.
71112         * lib/mbchar.c: Likewise.
71113         * lib/mbswidth.c: Likewise.
71114         * lib/mkdtemp.c: Likewise.
71115         * lib/pipe.c: Likewise.
71116         * lib/printf-args.c: Likewise.
71117         * lib/printf-parse.c: Likewise.
71118         * lib/progname.c: Likewise.
71119         * lib/progreloc.c: Likewise.
71120         * lib/readlink.c: Likewise.
71121         * lib/sh-quote.c: Likewise.
71122         * lib/stpcpy.c: Likewise.
71123         * lib/stpncpy.c: Likewise.
71124         * lib/strcasecmp.c: Likewise.
71125         * lib/strcasestr.c: Likewise.
71126         * lib/strcspn.c: Likewise.
71127         * lib/striconv.c: Likewise.
71128         * lib/strncasecmp.c: Likewise.
71129         * lib/strnlen1.c: Likewise.
71130         * lib/strstr.c: Likewise.
71131         * lib/strtok_r.c: Likewise.
71132         * lib/tls.c: Likewise.
71133         * lib/tmpdir.c: Likewise.
71134         * lib/unicodeio.c: Likewise.
71135         * lib/unsetenv.c: Likewise.
71136         * lib/vasnprintf.c: Likewise.
71137         * lib/vasprintf.c: Likewise.
71138         * lib/wait-process.c: Likewise.
71139         * lib/xallocsa.c: Likewise.
71140         * lib/xsetenv.c: Likewise.
71141         * lib/xstriconv.c: Likewise.
71142
71143 2006-09-13  Simon Josefsson  <jas@extundo.com>
71144
71145         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
71146         that internally, suggested by Ralf Wildenhues
71147         <Ralf.Wildenhues@gmx.de>.
71148
71149 2006-09-13  Simon Josefsson  <jas@extundo.com>
71150
71151         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
71152         @LIBOBJS@.
71153         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71154
71155 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
71156
71157         * lib/_fpending.c: Include <config.h> unconditionally, since we no
71158         longer worry about uses that don't define HAVE_CONFIG_H.
71159         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
71160         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
71161         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
71162         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
71163         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
71164         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
71165         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
71166         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
71167         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
71168         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
71169         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
71170         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
71171         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
71172         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
71173         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
71174         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
71175         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
71176         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
71177         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
71178         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
71179         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
71180         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
71181         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
71182         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
71183         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
71184         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
71185         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
71186         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
71187         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
71188         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
71189         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
71190         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
71191         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
71192         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
71193         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
71194         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
71195         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
71196         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
71197         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
71198         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
71199         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
71200         Likewise.
71201
71202 2006-09-13  Eric Blake  <ebb9@byu.net>
71203
71204         * lib/getopt.c: Fix typo in last commit.
71205
71206 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
71207
71208         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
71209         dgettext.
71210
71211 2006-09-12  Jim Meyering  <jim@meyering.net>
71212
71213         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
71214         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
71215         Reported by Nelson H. F. Beebe.
71216
71217 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
71218
71219         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
71220         program_invocation_name and program_invocation_short_name are
71221         initialized.
71222         * lib/argp-namefrob.h: Move declarations of program_invocation_name
71223         and program_invocation_short_name to argp.h, so they are visible
71224         to user programs.
71225         * lib/argp.h: Likewise
71226
71227 2006-09-10  Bruno Haible  <bruno@clisp.org>
71228
71229         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
71230         m4/inttypes_h.m4, m4/uintmax_t.m4.
71231
71232 2006-09-10  Bruno Haible  <bruno@clisp.org>
71233
71234         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
71235         gl_AC_TYPE_UINTMAX_T.
71236
71237 2006-09-10  Bruno Haible  <bruno@clisp.org>
71238
71239         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
71240
71241 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71242
71243         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
71244         convention.  Text proposed by Bruno Haible.
71245         (struct argp_option): Document the use of N_() wrappers.
71246
71247         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
71248         '\v', and translate the two parts separately, instead of feeding
71249         the whole string to gettext.  This allows to exclude
71250         '\v' from the strings visible to the translator by writing doc
71251         strings as N_("..") "\v" N_("..").
71252
71253 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
71254
71255         * config/srclist.txt: Undo latest change; the bug was fixed.
71256
71257 2006-09-09  Bruno Haible  <bruno@clisp.org>
71258
71259         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
71260         assignments if building a library without libtool.
71261         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
71262         in func_emit_lib_Makefile_am.
71263         (func_import): When building a static library libfoo.a, arrange to
71264         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
71265         (func_create_testdir): Likewise.
71266         * modules/gc (configure.ac, Makefile.am): If building statically,
71267         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
71268         * modules/iconvme (configure.ac, Makefile.am): Likewise.
71269         * modules/striconv (configure.ac, Makefile.am): Likewise.
71270         Based on a suggestion by Ralf Wildenhues.
71271
71272 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71273
71274         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
71275         Check for unistd.h too, since Autoconf doesn't assume POSIX.
71276         Also:
71277
71278         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71279         Add year_2050_test to catch glibc bug 2821
71280         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
71281
71282         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71283         Prefer #ifdef to #if.
71284
71285         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
71286         Return from 'main' instead of calling 'exit'.
71287
71288 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71289
71290         * lib/mktime.c (guess_time_tm): Fix bug where mktime
71291         returned the maximum time_t value rather than (time_t) -1.
71292         Problem originally reported by William Bardwell
71293         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
71294
71295         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
71296         Moved to here ...
71297         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
71298         ... from here.
71299
71300 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71301
71302         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
71303         2821 is fixed.
71304
71305 2006-09-08  Jim Meyering  <jim@meyering.net>
71306
71307         Don't make generated files read-only.  That would bother too many
71308         people.  However, do retain the ability to work when targets are
71309         read-only: remove the destination and temporary files before writing
71310         them (when generated via sed or echo), or by using the -f option for
71311         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
71312         * modules/alloca-opt, modules/argz, modules/arpa_inet:
71313         * modules/byteswap, modules/configmake, modules/fcntl:
71314         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
71315         * modules/localcharset, modules/netinet_in, modules/poll:
71316         * modules/stdbool, modules/stdint, modules/sys_select:
71317         * modules/sys_socket, modules/sys_stat, modules/sysexits:
71318
71319 2006-09-08  Jim Meyering  <jim@meyering.net>
71320
71321         Avoid new build failure on FreeBSD 6.0.
71322         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
71323         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
71324         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
71325
71326 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71327
71328         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
71329
71330 2006-09-07  Jim Meyering  <jim@meyering.net>
71331
71332         Fix global typo in last change: use chmod u-w, not chmod u-x.
71333         Spotted by Paul Eggert and Bruce Korb.
71334         * modules/alloca-opt, modules/argz, modules/arpa_inet:
71335         * modules/byteswap, modules/configmake, modules/fcntl:
71336         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
71337         * modules/localcharset, modules/netinet_in, modules/poll:
71338         * modules/stdbool, modules/stdint, modules/sys_select:
71339         * modules/sys_socket, modules/sys_stat, modules/sysexits:
71340
71341 2006-09-06  Jim Meyering  <jim@meyering.net>
71342
71343         Make generated files be read-only.
71344         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
71345         Ensure that each generated file is now read-only.
71346         * modules/argz: Likewise.
71347         * modules/arpa_inet: Likewise.
71348         * modules/byteswap: Likewise.
71349         * modules/configmake: Likewise.
71350         * modules/fcntl: Likewise.
71351         * modules/fnmatch: Likewise.
71352         * modules/getopt: Likewise.
71353         * modules/glob: Likewise.
71354         * modules/inttypes: Likewise.
71355         * modules/netinet_in: Likewise.
71356         * modules/poll: Likewise.
71357         * modules/stdbool: Likewise.
71358         * modules/stdint: Likewise.
71359         * modules/sys_select: Likewise.
71360         * modules/sys_socket: Likewise.
71361         * modules/sys_stat: Likewise.
71362         * modules/sysexits: Likewise.
71363         * modules/localcharset: Same as above, but continue using temporary
71364         file named "t-$@" (why different?) rather than the "$@-t" used
71365         everywhere else.
71366
71367         * modules/sysexits (Makefile.am): Replace literal occurrences
71368         of "sysexit.h" more readable, and more consistent, "$@".
71369
71370 2006-09-06  Bruno Haible  <bruno@clisp.org>
71371
71372         * modules/striconv: New file.
71373         * modules/xstriconv: New file.
71374         * MODULES.html.sh (Internationalization functions): Add striconv,
71375         xstriconv.
71376
71377 2006-09-06  Bruno Haible  <bruno@clisp.org>
71378
71379         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
71380         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
71381         not using libtool correctly.
71382
71383 2006-09-06  Bruno Haible  <bruno@clisp.org>
71384
71385         * lib/striconv.h: New file.
71386         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
71387         iconvstring.c.
71388         * lib/xstriconv.h: New file.
71389         * lib/xstriconv.c: New file.
71390
71391 2006-09-06  Bruno Haible  <bruno@clisp.org>
71392
71393         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71394         lib_..._LDFLAGS.
71395
71396 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71397
71398         * lib/argz_.h: Sync from Libtool.
71399
71400         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
71401                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
71402
71403         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
71404
71405 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
71406
71407         * modules/trim: New file.
71408
71409 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
71410
71411         * lib/trim.h: New file.
71412         * lib/trim.c: New file.
71413
71414 2006-09-05  Bruno Haible  <bruno@clisp.org>
71415
71416         * MODULES.html.sh (String handling): Add trim.
71417
71418 2006-09-04  Karl Berry  <karl@gnu.org>
71419
71420         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
71421         until next release.
71422
71423 2006-09-03  Bruno Haible  <bruno@clisp.org>
71424
71425         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
71426         correctly.
71427
71428 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71429
71430         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
71431         not gl_GETLOADAVG.  Omit unneeded semicolons.
71432         Problems reported by Ralf Wildenhues in
71433         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
71434         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
71435         at the end, which is the usual gnulib style.
71436
71437         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
71438         of doing all the work ourselves.
71439         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
71440         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
71441
71442 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71443
71444         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
71445         Problem reported by Ralf Wildenhues in
71446         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
71447
71448         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
71449         HAVE_STRUCT_STATFS_F_FSTYPENAME.
71450
71451 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71452
71453         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
71454         yesterday's patch by changing test -n to test -z.
71455
71456 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71457
71458         * modules/getloadavg (Files): Add m4/getloadavg.m4.
71459         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
71460         the former is now obsolescent.
71461
71462         * modules/chdir-long (Depends-on): Add fcntl.
71463
71464 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71465
71466         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
71467         obsolescent, and programs should use gnulib instead.
71468         * m4/getloadavg.m4: New file, with contents taken from Autoconf
71469         but with prefixes changed.
71470
71471 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71472
71473         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
71474         or stdbool.h, because they might not exist while configuring.
71475
71476         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
71477         Don't include unistd.h or limits.h; not needed, since chdir-long.h
71478         does that for us.
71479         (O_DIRECTORY): Remove.
71480
71481 2006-08-31  Eric Blake  <ebb9@byu.net>
71482
71483         * gnulib-tool: Don't let emacs change spaces to TAB.
71484
71485 2006-08-31  Bruno Haible  <bruno@clisp.org>
71486
71487         * gnulib-tool: When calling func_import more than once, do it in a
71488         subshell.
71489         Reported by Eric Blake <ebb9@byu.net>.
71490
71491 2006-08-31  Bruno Haible  <bruno@clisp.org>
71492
71493         * gnulib-tool (nl): Remove variable.
71494         (sed_transform_lib_file): Use more robust test for config-h module.
71495         (func_import): Fix typo in 2006-08-25 patch.
71496
71497 2006-08-31  Bruno Haible  <bruno@clisp.org>
71498
71499         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
71500         specified, augment Makefile.am variables instead of assigning them.
71501
71502 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71503
71504         Work around a bug in both the Linux and SunOS 64-bit kernels:
71505         nanosleep mishandles sleeps for longer than 2**31 seconds.
71506         Problem reported by Frank v Waveren in
71507         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
71508         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
71509         Check for nanosleep bug.
71510         (LIB_NANOSLEEP): Append clock_gettime library if needed.
71511
71512 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71513
71514         Work around a bug in both the Linux and SunOS 64-bit kernels:
71515         nanosleep mishandles sleeps for longer than 2**31 seconds.
71516         Problem reported by Frank v Waveren in
71517         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
71518         * lib/nanosleep.c (BILLION): New constant.
71519         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
71520         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
71521         implementation.
71522
71523 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71524
71525         * modules/nanosleep (Depends-on): Add gettime.
71526
71527 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71528         and Simon Josefsson  <jas@extundo.com>
71529         and Oskar Liljeblad  <oskar@osk.mine.nu>
71530
71531         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
71532         * gnulib-tool (func_import): New license type 'unmodifiable license
71533         text'.
71534         * modules/fdl: Use it.  Longer description.
71535         * module/gpl, module/lgpl: New files.
71536
71537 2006-08-30  Jim Meyering  <jim@meyering.net>
71538
71539         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
71540         shadowing the parameter.
71541
71542 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71543
71544         Sync from Libtool:
71545
71546         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71547
71548         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
71549         sharing with gnulib.  Report by Eric Blake.
71550
71551 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71552
71553         * modules/isapipe: New file.
71554         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
71555
71556 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71557
71558         * modules/configmake (Makefile.am): Add a comment, and omit
71559         the CONFIGMAKE_ prefix from generated macro names.  Suggested
71560         by Bruno Haible.
71561
71562 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71563
71564         * m4/isapipe.m4: New file.
71565
71566 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71567
71568         * lib/isapipe.c, lib/isapipe.h: New files.
71569
71570 2006-08-29  Jim Meyering  <jim@meyering.net>
71571
71572         * modules/configmake (Makefile.am): Make configmake.h depend on
71573         Makefile.  Otherwise, a stale configmake.h could hang around.
71574
71575 2006-08-29  Eric Blake  <ebb9@byu.net>
71576
71577         * lib/error.c (error_at_line, print_errno_message): Match libc, after
71578         resolution of upstream bug 3044.
71579
71580 2006-08-29  Bruno Haible  <bruno@clisp.org>
71581
71582         * modules/localcharset (Depends-on): Add configmake.
71583         (Makefile.am): Remove setting of LIBDIR through DEFS.
71584
71585 2006-08-29  Bruno Haible  <bruno@clisp.org>
71586
71587         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
71588         defined.
71589
71590 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71591
71592         * modules/fcntl: New file.
71593         * modules/chdir-safer (Depends-on): Add fcntl.
71594         * modules/fts: Likewise.
71595         * modules/mkdir-p: Likewise.
71596
71597         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
71598         This undoes the most recent change, since we're now addressing the
71599         problem in a different way.
71600
71601         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
71602         into output, since the output might be called Makefile.am even
71603         if $makefile_name is something different.
71604         (func_import): Use $makefile_am rather than
71605         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
71606         empty.
71607
71608         * modules/inttypes (Files): Add m4/inttypes-h.m4.
71609
71610 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71611
71612         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
71613         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
71614         recent change to stdint.m4, since we're now addressing the problem in a
71615         different way.
71616
71617 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71618
71619         * m4/fcntl_h.m4: New file.
71620
71621 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71622
71623         * lib/fcntl_.h: New file.
71624         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
71625         the fcntl module.
71626         * lib/dirchownmod.c: Likewise.
71627         * lib/fts.c: Likewise.
71628
71629         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
71630         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
71631         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
71632         just before including <inttypes.h>, to avoid circular inclusion.
71633
71634 2006-08-28  Jim Meyering  <jim@meyering.net>
71635
71636         * doc/visibility.texi: Actually read and correct the grammar of the
71637         sentence affected by yesterday's change.
71638
71639 2006-08-28  Eric Blake  <ebb9@byu.net>
71640
71641         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
71642         needs wrapper.
71643
71644 2006-08-28  Eric Blake  <ebb9@byu.net>
71645
71646         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
71647
71648 2006-08-28  Eric Blake  <ebb9@byu.net>
71649
71650         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
71651
71652 2006-08-28  Bruno Haible  <bruno@clisp.org>
71653
71654         * modules/c-strstr: New file, from GNU gettext.
71655         * MODULES.html.sh (String handling): Add c-strstr.
71656
71657 2006-08-28  Bruno Haible  <bruno@clisp.org>
71658
71659         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
71660         macros.
71661         Reported by Eric Blake.
71662
71663 2006-08-28  Bruno Haible  <bruno@clisp.org>
71664
71665         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
71666         (VASNPRINTF): Return a string of length > INT_MAX without failing.
71667         * lib/vasprintf.c: Include errno.h, limits.h.
71668         (EOVERFLOW): New fallback definition.
71669         (vasprintf): Test here whether the string length is > INT_MAX.
71670         * lib/vsnprintf.c: Include errno.h, limits.h.
71671         (EOVERFLOW): New fallback definition.
71672         (vsnprintf): Fix bug when generated string was too long for the buffer.
71673         Test here whether the string length is > INT_MAX.
71674
71675 2006-08-28  Bruno Haible  <bruno@clisp.org>
71676
71677         * lib/inttypes_.h (SCNX*): Remove definitions.
71678         Reported by Eric Blake.
71679
71680 2006-08-28  Bruno Haible  <bruno@clisp.org>
71681
71682         * lib/c-strstr.h: New file, from GNU gettext.
71683         * lib/c-strstr.c: New file, from GNU gettext.
71684
71685 2006-08-28  Bruno Haible  <bruno@clisp.org>
71686
71687         * gnulib-tool: Reorder some statements.
71688
71689 2006-08-28  Bruno Haible  <bruno@clisp.org>
71690
71691         * gnulib-tool: New option --makefile-name.
71692         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
71693         $makefile_name.
71694         (func_import): Write $makefile_name to the cache file, and read it from
71695         there unless explicitly specified. Use $makefile_name as file name
71696         instead of Makefile.am. Adjust the recommendations accordingly.
71697
71698 2006-08-28  Bruno Haible  <bruno@clisp.org>
71699
71700         * gnulib-tool (func_verify_module): Check against misapplying patch.
71701
71702 2006-08-28  Bruno Haible  <bruno@clisp.org>
71703
71704         * gnulib-tool (func_relativize, func_relconcat): New functions.
71705         Give an error if --local-dir is given with --update.
71706         Remove trailing slashes from $local_gnulib_dir.
71707         (func_import): Store the relativized $local_gnulib_dir in
71708         gnulib-cache.m4, and read it from there if not specified explicitly.
71709
71710 2006-08-28  Bruno Haible  <bruno@clisp.org>
71711
71712         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
71713         is the current directory. Respect also $local_gnulib_dir.
71714
71715 2006-08-28  Bruno Haible  <bruno@clisp.org>
71716             Simon Josefsson  <jas@extundo.com>
71717
71718         BeOS portability.
71719         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
71720
71721 2006-08-27  Jim Meyering  <jim@meyering.net>
71722
71723         * doc/visibility.texi: Remove duplicate word: "pointer".
71724
71725 2006-08-26  Bruno Haible  <bruno@clisp.org>
71726
71727         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
71728         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
71729         (Makefile.am): Create inttypes.h from inttypes_.h.
71730         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
71731
71732         * modules/imaxabs: New file.
71733
71734         * modules/imaxdiv: New file.
71735
71736 2006-08-26  Bruno Haible  <bruno@clisp.org>
71737
71738         * m4/inttypes.m4: New file.
71739         * m4/_inttypes_h.m4: Remove file.
71740         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
71741         PRI_MACROS_BROKEN.
71742         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
71743
71744         * m4/imaxabs.m4: New file.
71745
71746         * m4/imaxdiv.m4: New file.
71747
71748 2006-08-26  Bruno Haible  <bruno@clisp.org>
71749
71750         * lib/inttypes_.h: New file.
71751         * lib/inttypes.h: Remove file.
71752         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
71753
71754         * lib/imaxabs.c: New file.
71755
71756         * lib/imaxdiv.c: New file.
71757
71758 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71759
71760         New config-h module, so that "make" output needn't be cluttered
71761         by -DHAVE_CONFIG_H.
71762         * MODULES.html.sh (Support for building libraries and executables):
71763         Add config-h.
71764         * modules/config-h: New file.
71765         * gnulib-tool (nl, sed_transform_lib_file): New vars.
71766         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
71767         the config-h module is used.
71768
71769         New configmake module, so that "make" output needn't be cluttered
71770         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
71771         * MODULES.html.sh (Support for building libraries and executables):
71772         Add configmake.
71773         * modules/configmake: New file.
71774
71775 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71776
71777         * m4/config-h.m4: New file.
71778
71779 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71780
71781         * config/srclist.txt: Add elisp-comp.
71782
71783 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71784
71785         * MODULES.html.sh (Support for building libraries and executables):
71786         Add elisp-comp.
71787         * build-aux/elisp-comp: New file.
71788         * modules/elisp-comp: New file.
71789
71790 2006-08-24  Bruno Haible  <bruno@clisp.org>
71791
71792         * gnulib-tool (func_create_testdir): Use non-default values of
71793         sourcebase and m4base.
71794
71795 2006-08-24  Bruno Haible  <bruno@clisp.org>
71796
71797         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
71798         HTML structure.
71799
71800 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71801
71802         * modules/openat (Depends-on): Add lchown.
71803
71804 2006-08-23  Bruno Haible  <bruno@clisp.org>
71805
71806         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
71807         of gl_LOCK_EARLY instead of gl_LOCK.
71808
71809 2006-08-23  Bruno Haible  <bruno@clisp.org>
71810
71811         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
71812         on OSF/1 to no.
71813         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
71814
71815 2006-08-23  Bruno Haible  <bruno@clisp.org>
71816
71817         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
71818         as unusable.
71819
71820         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
71821         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
71822         (gl_LOCK): New macro.
71823
71824 2006-08-22  Simon Josefsson  <jas@extundo.com>
71825
71826         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
71827         to md5 module.
71828
71829 2006-08-22  Simon Josefsson  <jas@extundo.com>
71830
71831         * MODULES.html.sh: Add "Support for maintaining and release
71832         projects".
71833
71834         * build-aux/gnupload: New file, from coreutils.
71835
71836 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
71837
71838         Avoid the need for AC_LIBSOURCES in m4 macros.
71839         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
71840         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
71841         * modules/check-version (EXTRA_DIST): Add check-version.h.
71842         * modules/crc (EXTRA_DIST): Add crc.h.
71843         * modules/des (EXTRA_DIST): Add des.h.
71844         * modules/gc (EXTRA_DIST): Add gc.h.
71845         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
71846         * modules/getline (EXTRA_DIST): Add getline.h.
71847         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
71848         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
71849         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
71850         * modules/md2 (EXTRA_DIST): Add md2.h.
71851         * modules/md4 (EXTRA_DIST): Add md4.h.
71852         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
71853         * modules/read-file (EXTRA_DIST): Add read-file.h.
71854         * modules/readline (EXTRA_DIST): Add readline.h.
71855         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
71856         rijndael-api-fst.h.
71857
71858 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
71859
71860         * m4/rijndael.m4 (gl_ARCFOUR):
71861         * m4/arctwo.m4 (gl_ARCTWO):
71862         * m4/check-version.m4 (gl_CHECK_VERSION):
71863         * m4/crc.m4 (gl_CRC):
71864         * m4/des.m4 (gl_DES):
71865         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
71866         * m4/gc.m4 (gl_GC):
71867         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
71868         * m4/getline.m4 (gl_FUNC_GETLINE):
71869         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
71870         * m4/hmac-md5.m4 (gl_HMAC_MD5):
71871         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
71872         * m4/md2.m4 (gl_MD2):
71873         * m4/md4.m4 (gl_MD4):
71874         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
71875         * m4/read-file.m4 (gl_FUNC_READ_FILE):
71876         * m4/readline.m4 (gl_FUNC_READLINE):
71877         * m4/rijndael.m4 (gl_RIJNDAEL):
71878         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
71879         to get the necessary .h files and whatnot.
71880
71881 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
71882
71883         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
71884         gnulib rather than the other way around.
71885         * config/srclistvars.sh (COREUTILS): Remove.
71886
71887 2006-08-22  Jim Meyering  <jim@meyering.net>
71888
71889         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
71890
71891         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
71892
71893 2006-08-22  Eric Blake  <ebb9@byu.net>
71894
71895         * modules/regexprops-generic: New file.
71896         * MODULES.html.sh (Support for building documentation): List it.
71897
71898 2006-08-22  Eric Blake  <ebb9@byu.net>
71899
71900         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
71901         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
71902         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
71903         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
71904
71905 2006-08-22  Bruno Haible  <bruno@clisp.org>
71906
71907         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
71908         and lib_LTLIBRARIES like the other lib_* variables.
71909
71910 2006-08-22  Bruno Haible  <bruno@clisp.org>
71911
71912         * build-aux/x-to-1.in: New file, from GNU gettext.
71913
71914 2006-08-22  Bruno Haible  <bruno@clisp.org>
71915
71916         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
71917         <utmpx.h> exists.
71918
71919 2006-08-22  Bruno Haible  <bruno@clisp.org>
71920
71921         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
71922         <utmpx.h> exists.
71923
71924 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
71925
71926         BeOS portability.
71927         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
71928         exist.
71929         Problem reported by Bruno Haible.
71930
71931 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
71932
71933         Avoid the need for AC_LIBSOURCES in m4 macros.
71934         * modules/acl (EXTRA_DIST): Add acl.h.
71935         * modules/argmatch (Files): Add m4/argmatch.m4.
71936         (configure.ac): Add gl_ARGMATCH.
71937         (EXTRA_DIST): Renamed from lib_SOURCES, for
71938         consistency with the other modules.  Remove argmatch.c.
71939         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
71940         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
71941         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
71942         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
71943         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
71944         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
71945         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
71946         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
71947         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
71948         * modules/closeout (EXTRA_DIST): Add closeout.h.
71949         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
71950         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
71951         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
71952         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
71953         dirname.h; remove basename.c and stripslash.c.
71954         * modules/exclude (EXTRA_DIST): Add exclude.h.
71955         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
71956         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
71957         * modules/file-type (EXTRA_DIST): Add file-type.h.
71958         * modules/filemode (EXTRA_DIST): Add filemode.h.
71959         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
71960         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
71961         * modules/fpending (EXTRA_DIST): Add __fpending.h.
71962         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
71963         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
71964         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
71965         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
71966         * modules/getdate (EXTRA_DIST): Add getdate.c.
71967         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
71968         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
71969         * modules/getpass (EXTRA_DIST): Add getpass.h.
71970         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
71971         * modules/group-member (EXTRA_DIST): Add group-member.h.
71972         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
71973         * modules/hash (EXTRA_DIST): Add hash.h.
71974         * modules/human (EXTRA_DIST): Add human.h.
71975         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
71976         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
71977         * modules/lchown (EXTRA_DIST): Add lchown.h.
71978         * modules/long-options (EXTRA_DIST): Add long-options.h.
71979         * modules/lstat (EXTRA_DIST): Add lstat.h.
71980         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
71981         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
71982         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
71983         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
71984         * modules/memxor (EXTRA_DIST): Add memxor.h.
71985         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
71986         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
71987         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
71988         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
71989         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
71990         * modules/physmem (EXTRA_DIST): Add physmem.h.
71991         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
71992         * modules/posixver (EXTRA_DIST): Add posixver.h.
71993         * modules/quote (EXTRA_DIST): Add quote.h.
71994         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
71995         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
71996         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
71997         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
71998         regex_internal.h regexec.c.
71999         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
72000         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
72001         * modules/same (EXTRA_DIST): Add same.h.
72002         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
72003         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
72004         * modules/savedir (EXTRA_DIST): Add savedir.h.
72005         * modules/sha1 (EXTRA_DIST): Add sha1.h.
72006         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
72007         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
72008         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
72009         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
72010         * modules/strdup (EXTRA_DIST): Add strdup.h.
72011         * modules/strftime (EXTRA_DIST): Add strftime.h.
72012         * modules/strndup (EXTRA_DIST): Add strndup.h.
72013         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
72014         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
72015         * modules/time_r (EXTRA_DIST): Add time_r.h.
72016         * modules/timespec (EXTRA_DIST): Add timespec.h.
72017         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
72018         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
72019         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
72020         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
72021         * modules/userspec (EXTRA_DIST): Add userspec.h.
72022         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
72023         * modules/utimens (EXTRA_DIST): Add utimens.h.
72024         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
72025         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
72026         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
72027         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
72028         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
72029         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
72030         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
72031         * modules/yesno (EXTRA_DIST): Add yesno.h.
72032
72033 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
72034
72035         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
72036
72037         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
72038         * m4/dev-ino.m4, same-inode.m4: Remove.
72039
72040         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
72041         * m4/acl.m4 (AC_FUNC_ACL):
72042         * m4/backupfile.m4 (gl_BACKUPFILE):
72043         * m4/c-strtod.m4 (gl_C99_STRTOLD):
72044         * m4/canon-host.m4 (gl_CANON_HOST):
72045         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
72046         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
72047         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
72048         * m4/cloexec.m4 (gl_CLOEXEC):
72049         * m4/close-stream.m4 (gl_CLOSE_STREAM):
72050         * m4/closeout.m4 (gl_CLOSEOUT):
72051         * m4/dirfd.m4 (gl_FUNC_DIRFD):
72052         * m4/dirname.m4 (gl_DIRNAME):
72053         * m4/exclude.m4 (gl_EXCLUDE):
72054         * m4/exitfail.m4 (gl_EXITFAIL):
72055         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
72056         * m4/file-type.m4 (gl_FILE_TYPE):
72057         * m4/filemode.m4 (gl_FILEMODE):
72058         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
72059         * m4/fpending.m4 (gl_FUNC_FPENDING):
72060         * m4/fprintftime.m4 (gl_FPRINTFTIME):
72061         * m4/fts.m4 (gl_FUNC_FTS):
72062         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
72063         * m4/getdate.m4 (gl_GETDATE):
72064         * m4/gethrxtime.m4 (gl_GETHRXTIME):
72065         * m4/getpagesize.m4 (gl_GETPAGESIZE):
72066         * m4/getpass.m4 (gl_FUNC_GETPASS):
72067         * m4/gettime.m4 (gl_GETTIME):
72068         * m4/getugroups.m4 (gl_GETUGROUPS):
72069         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
72070         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
72071         * m4/hard-locale.m4 (gl_HARD_LOCALE):
72072         * m4/hash.m4 (gl_HASH):
72073         * m4/idcache.m4 (gl_IDCACHE):
72074         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
72075         * m4/lchown.m4 (gl_FUNC_LCHOWN):
72076         * m4/long-options.m4 (gl_LONG_OPTIONS):
72077         * m4/lstat.m4 (gl_FUNC_LSTAT):
72078         * m4/md5.m4 (gl_MD5):
72079         * m4/memcasecmp.m4 (gl_MEMCASECMP):
72080         * m4/memcoll.m4 (gl_MEMCOLL):
72081         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
72082         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
72083         * m4/memxor.m4 (gl_MEMXOR):
72084         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
72085         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
72086         * m4/modechange.m4 (gl_MODECHANGE):
72087         * m4/mountlist.m4 (gl_MOUNTLIST):
72088         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
72089         * m4/openat.m4 (gl_FUNC_OPENAT):
72090         * m4/pathmax.m4 (gl_PATHMAX):
72091         * m4/physmem.m4 (gl_PHYSMEM):
72092         * m4/posixtm.m4 (gl_POSIXTM):
72093         * m4/posixver.m4 (gl_POSIXVER):
72094         * m4/quote.m4 (gl_QUOTE):
72095         * m4/quotearg.m4 (gl_QUOTEARG):
72096         * m4/readtokens.m4 (gl_READTOKENS):
72097         * m4/readutmp.m4 (gl_READUTMP):
72098         * m4/regex.m4 (gl_REGEX):
72099         * m4/safe-read.m4 (gl_SAFE_READ):
72100         * m4/safe-write.m4 (gl_SAFE_WRITE):
72101         * m4/same.m4 (gl_SAME):
72102         * m4/save-cwd.m4 (gl_SAVE_CWD):
72103         * m4/savedir.m4 (gl_SAVEDIR):
72104         * m4/settime.m4 (gl_SETTIME):
72105         * m4/sha1.m4 (gl_SHA1):
72106         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
72107         * m4/stat-macros.m4 (gl_STAT_MACROS):
72108         * m4/stat-time.m4 (gl_STAT_TIME):
72109         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
72110         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
72111         * m4/strdup.m4 (gl_FUNC_STRDUP):
72112         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
72113         * m4/strndup.m4 (gl_FUNC_STRNDUP):
72114         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
72115         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
72116         * m4/time_r.m4 (gl_TIME_R):
72117         * m4/timespec.m4 (gl_TIMESPEC):
72118         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
72119         * m4/unlinkdir.m4 (gl_UNLINKDIR):
72120         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
72121         * m4/userspec.m4 (gl_USERSPEC):
72122         * m4/utimecmp.m4 (gl_UTIMECMP):
72123         * m4/utimens.m4 (gl_UTIMENS):
72124         * m4/xalloc.m4 (gl_XALLOC):
72125         * m4/xgetcwd.m4 (gl_XGETCWD):
72126         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
72127         * m4/xreadlink.m4 (gl_XREADLINK):
72128         * m4/xstrtod.m4 (gl_XSTRTOD):
72129         * m4/yesno.m4 (gl_YESNO):
72130         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
72131         to get the necessary .h files and whatnot.
72132
72133 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
72134             Bruno Haible  <bruno@clisp.org>
72135
72136         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
72137         /bin/sh understanding of '!' conditional negation.
72138
72139 2006-08-21  Jim Meyering  <jim@meyering.net>
72140
72141         * modules/openat (Depends-on): Really alphabetize.
72142
72143         * modules/acl (Depends-on): Add error and quote.
72144
72145         * check-module (find_included_lib_files): Add at-func.c to the
72146         ok-to-include-more-than-once white list.
72147
72148         * modules/openat (Depends-on): Add lstat.  Alphabetize.
72149
72150 2006-08-21  Bruno Haible  <bruno@clisp.org>
72151
72152         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72153         Emit a pkgdata_DATA variable only if some snippets add contents to it.
72154         Reported by Martin Lambers <marlam@marlam.de>.
72155
72156 2006-08-21  Bruno Haible  <bruno@clisp.org>
72157
72158         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
72159         specify an installation location, don't emit a noinst_LIBRARIES or
72160         noinst_LTLIBRARIES assignment.
72161
72162 2006-08-21  Bruno Haible  <bruno@clisp.org>
72163
72164         BeOS portability.
72165         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
72166         BeOS has mbrtowc() but no <wctype.h>.
72167
72168 2006-08-21  Bruno Haible  <bruno@clisp.org>
72169
72170         BeOS portability.
72171         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
72172         exist.
72173
72174 2006-08-21  Bruno Haible  <bruno@clisp.org>
72175
72176         BeOS portability.
72177         * lib/mbchar.h: Include <wctype.h> only if it exists.
72178
72179 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72180
72181         Remove files that are no longer needed by their respective modules.
72182         * m4/obstack.m4: Remove.
72183         * m4/strerror_r.m4: Remove.
72184         * m4/uint32_t.m4: Remove.
72185         * m4/uintptr_t.m4: Remove.
72186         * m4/ullong_max.m4: Remove.
72187         * m4/xstrtoimax.m4: Remove.
72188         * m4/xstrtoumax.m4: Remove.
72189
72190         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
72191         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
72192         dependencies now capture this.
72193
72194         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
72195         Do not use AC_LIBSOURCES, since gnulib modules now do this.
72196         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
72197         * m4/human.m4 (gl_HUMAN): Likewise.
72198         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
72199         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
72200
72201         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
72202
72203         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
72204         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
72205         stdint.
72206         * m4/human.m4 (gl_HUMAN): Likewise.
72207         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
72208         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
72209         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
72210         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
72211         * m4/xstrtol (gl_XSTRTOL): Likewise.
72212
72213         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
72214         AC_TYPE_LONG_LONG_INT.
72215         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
72216         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
72217         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
72218         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
72219
72220         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
72221         on stdbool.
72222
72223         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
72224         (gl_PREREQ_XSTRTOUL): Remove.
72225
72226         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
72227
72228         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
72229         mode.
72230
72231 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72232
72233         Add and change modules to make it easier for coreutils to use
72234         gnulib-tool.
72235         * modules/backupfile (Files): Remove m4/d-ino.m4.
72236         (Depends-on): Add d-ino.
72237         * modules/cycle-check (Depends-on): Add stdint.
72238         (lib_SOURCES): Add cycle-check.h.
72239         * modules/d-ino: New module.
72240         * modules/d-type: New module.
72241         * modules/error (Files): Remove m4/strerror_r.m4.
72242         * modules/filemode (Files): Add m4/st_dm_mode.m4.
72243         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
72244         m4/inttypes_h.m4, m4/uintmax_t.m4.
72245         (Depends-on): Add stdint.
72246         (lib_SOURCES): Add fsusage.h.
72247         * modules/getcwd (Files): Remove d-ino.m4.
72248         (Depends-on): Add d-ino.
72249         * modules/getndelim2 (Depends-on): Add stdint.
72250         * modules/glob (Files): Remove m4/d-type.m4.
72251         (Depends-on): Add d-type.
72252         * modules/host-os: New module.
72253         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
72254         m4/inttypes_h.m4, m4/uintmax_t.m4.
72255         * Depends-on: Add stdint.
72256         (lib_SOURCES): Add human.h.
72257         * modules/inttostr (Files): Remove m4/intmax_t.m4,
72258         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
72259         m4/uintmax_t.m4, m4/ulonglong.m4.
72260         (Depends-on): Add stdint.
72261         (EXTRA_DIST): Add inttostr.h.
72262         * modules/lchmod: New module.
72263         * modules/link-follow: New module.
72264         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
72265         (Depends-on): Add lchmod.
72266         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
72267         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
72268         (Depends-on): Add stdint.
72269         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
72270         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
72271         (Depends-on): Add stdint.
72272         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
72273         * modules/perl: New module.
72274         * modules/regex (Depends-on): Add stdint.
72275         * modules/rmdir-errno: New module.
72276         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
72277         m4/intmax_t.m4.
72278         (Depends-on): Add stdint.
72279         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
72280         m4/uintmax_t.m4.
72281         (Depends-on): Add stdint.
72282         * modules/unlink-busy: New module.
72283         * modules/utimecmp (Depends-on): Add stdint.
72284         * modules/uptime: New module.
72285         * modules/winsz-ioctl: New module.
72286         * modules/winsz-termios: New module.
72287         * modules/xnanosleep (Depends-on): Add nanosleep.
72288         * modules/ullong_max: Remove.
72289         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
72290         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
72291         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
72292         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
72293         (Depends-on): Add inttypes.
72294         (lib_SOURCES): Add xstrtol.h.
72295         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
72296         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
72297         * MODULES.html.sh: Move 'assert' into the assert section.
72298         Move 'dummy' into the linking section.
72299         Remove ullong_max.
72300         Add section for compatibility checks for POSIX:2001 functions,
72301         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
72302         winsz-ioctl, and winsz-termios into it.
72303         Add lchmod.
72304         Add top-level Misc section and put host-os, perl, and uptime
72305         into it.
72306
72307 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72308
72309         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
72310         now assume the stdint module.  Do not include inttypes.h.
72311         * lib/fsusage.h: Likewise.
72312         * lib/getndelim2.c: Likewise.
72313         * lib/human.h: Likewise.
72314         * lib/inttostr.h: Likewise.
72315         * lib/obstack.c: Likewise.
72316         * lib/regex_internal.h: Likewise.
72317         * lib/tempname.c: Likewise.
72318         * lib/utimecmp.c: Likewise.
72319         * lib/xstrtol.h: Likewise.
72320
72321         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
72322
72323         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
72324         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
72325         * lib/xtime.h: Likewise.
72326
72327 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72328
72329         * modules/openat (Files): Add lib/fchmodat.c.
72330         Fixes problem reported by Jay Youngman.
72331
72332 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72333
72334         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
72335         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
72336
72337 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
72338             Bruno Haible  <bruno@clisp.org>
72339
72340         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
72341         and is a script that invokes bison. Tighten the code. Add comments.
72342
72343 2006-08-18  Jim Meyering  <jim@meyering.net>
72344
72345         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
72346         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
72347         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
72348         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
72349
72350 2006-08-18  Bruno Haible  <bruno@clisp.org>
72351
72352         * modules/bison-i18n: New file.
72353         * MODULES.html.sh (Internationalization functions): Add it.
72354
72355 2006-08-18  Bruno Haible  <bruno@clisp.org>
72356
72357         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
72358         sys/statvfs.h. When getmntinfo was found, check its declaration and
72359         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
72360
72361 2006-08-18  Bruno Haible  <bruno@clisp.org>
72362
72363         * m4/bison-i18n.m4: New file, from bison.
72364
72365 2006-08-18  Bruno Haible  <bruno@clisp.org>
72366
72367         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
72368         (ME_DUMMY): Treat "kernfs" as a dummy.
72369         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
72370
72371 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72372
72373         Update from coreutils.
72374
72375         2006-08-15  Jim Meyering  <jim@meyering.net>
72376
72377         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
72378
72379         2006-01-17  Jim Meyering  <jim@meyering.net>
72380
72381         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
72382
72383         2006-01-11  Jim Meyering  <jim@meyering.net>
72384
72385         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
72386         Check for the lchmod function.
72387
72388 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72389
72390         Update from coreutils.
72391
72392         * lib/__fpending.h: Add copyright notice.
72393         * lib/fprintftime.h: Likewise.
72394         * lib/savedir.c: Use (C) in copyright notice.
72395         * lib/savedir.h: Likewise.
72396
72397         2006-08-15  Jim Meyering  <jim@meyering.net>
72398
72399         * lib/at-func.c: New file, with the logic of all emulated at-functions.
72400         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
72401         in support of the EXPECTED_ERRNO macro.
72402         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
72403         definitions.  Instead, define the appropriate symbols and include
72404         "at-func.c".
72405         * lib/mkdirat.c (mkdirat): Likewise.
72406         * lib/fchmodat.c (fchmodat): Likewise.
72407         (ENOSYS): Remove definition.
72408         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
72409         it.  Don't include "unistd--.h" -- it wasn't ever used.
72410
72411         2006-01-17  Jim Meyering  <jim@meyering.net>
72412
72413         Rewrite fts.c not to change the current working directory,
72414         by using openat, fstatat, fdopendir, etc..
72415
72416         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
72417         (HAVE_OPENAT_SUPPORT): Define.
72418         [_LIBC] (fchdir): Don't undef or define; no longer used.
72419         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
72420         Now, this `function' always succeeds, and consumes its file descriptor
72421         parameter -- so callers must not close such FDs.  Update callers.
72422         (diropen_fd, opendirat, cwd_advance_fd): New functions.
72423         (diropen): Add parameter, SP.  Adjust all callers.
72424         Implement using diropen_fd, rather than open.
72425         (fts_open): Initialize new member, fts_cwd_fd.
72426         Remove fts_rft-setting code.
72427         (fts_close): Close fts_cwd_fd, if necessary.
72428         (__opendir2): Define in terms of opendir or opendirat,
72429         depending on whether the FST_NOCHDIR flag is set.
72430         (fts_build): Since fts_safe_changedir consumes its FD, and since
72431         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
72432         and close the dup'd file descriptor upon failure.
72433         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
72434         (fts_safe_changedir): Tweak semantics to reflect that this function
72435         now calls cwd_advance_fd and hence consumes its FD argument.
72436         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
72437         [struct FTS] (fts_rft): Remove now-unused member.
72438         [struct FTS] (fts_cycle.state): Improve comment.
72439
72440         * lib/openat.c (openat_needs_fchdir): New function.
72441         * lib/openat.h (openat_needs_fchdir): Declare it.
72442
72443 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
72444
72445         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
72446         Problem and fix reported by Pádraig Brady in
72447         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
72448
72449 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72450
72451         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
72452
72453 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72454
72455         * lib/memcoll.c (memcoll): Optimize for the common case where the
72456         arguments are bytewise equal.
72457
72458 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72459
72460         * doc/regexprops-generic.texi: Add a copyright notice.
72461
72462 2006-08-15  Bruno Haible  <bruno@clisp.org>
72463
72464         * modules/tmpdir (License): Change to LGPL.
72465
72466 2006-08-15  Bruno Haible  <bruno@clisp.org>
72467
72468         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
72469         module.
72470
72471 2006-08-14  Simon Josefsson  <jas@extundo.com>
72472
72473         * config/srclist.txt: Add gnupload.
72474
72475 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72476
72477         Change copyright notice from LGPL 2 to GPL 2, since that's the
72478         standard form used in the gnulib repository.
72479         * tests/test-lock.c: Likewise.
72480         * tests/test-stdint.c: Likewise.
72481         * tests/test-tls.c: Likewise.
72482
72483         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
72484         prelude-manager.  User shorter URLs for GNU projects, without '?'.
72485         Add copyright notice.
72486
72487         * check-module: Add copyright notice.  Output a copyright
72488         notice if "--version" is specified.
72489         * modules/COPYING: New file.
72490         * tests/test-getaddrinfo.c: Add copyright notice.
72491         * tests/test-verify.c: Likewise.
72492
72493 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72494
72495         Change copyright notice from LGPL 2 to GPL 2, since that's the
72496         standard form used in the gnulib repository.
72497         * lib/lock.c: LGPL -> GPL.
72498         * lib/lock.h: Likewise.
72499         * lib/strnlen1.c: Likewise.
72500         * lib/strnlen1.h: Likewise.
72501         * lib/tls.c: Likewise.
72502         * lib/tls.h: Likewise.
72503         * lib/tmpdir.c: Likewise.
72504
72505         * lib/TODO: Remove; this belongs only in coreutils.
72506
72507 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72508
72509         Add copyright notices to long-enough files that lack them, since
72510         otherwise the files aren't clearly free.  Use the same notice that
72511         getdate.texi already uses.
72512         * doc/alloca-opt.texi: Add copyright notice.
72513         * doc/alloca.texi: Likewise.
72514         * doc/ctime.texi: Likewise.
72515         * doc/functions.texi: Likewise.
72516         * doc/gcd.texi: Likewise.
72517         * doc/gnulib-tool.texi: Likewise.
72518         * doc/inet_ntoa.texi: Likewise.
72519         * doc/visibility.texi: Likewise.
72520
72521         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
72522         * doc/quote.texi: Add copyright notice.
72523
72524         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
72525         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
72526         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
72527         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
72528         is now obsolete, and give a pointer to the Sun list.
72529         Add copyright notice.
72530
72531 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72532
72533         * config/srclistvars.sh: Add copyright notice.
72534
72535 2006-08-14  Eric Blake  <ebb9@byu.net>
72536
72537         Import the following change from libc:
72538
72539         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
72540
72541         Upstream bug 2997.
72542         * lib/misc/error.c: Add space between program name and message if file
72543         name is missing.
72544
72545 2006-08-12  Karl Berry  <karl@gnu.org>
72546
72547         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
72548         remove, these originate in gnulib now.
72549
72550 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72551
72552         * doc/Makefile (standards.info standards.html standards.dvi):
72553         Also depend on make-stds.texi.
72554
72555 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72556
72557         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
72558         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
72559
72560         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
72561         in wchar_t.  Problem reported by Eric Blake.
72562
72563         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
72564         LEN is smaller than SIZE.  Suggested by Bruno Haible.
72565         Also, help the compiler to keep LEN in a register.
72566
72567 2006-08-11  Eric Blake  <ebb9@byu.net>
72568
72569         * users.txt: Sort.  Add tar.
72570
72571 2006-08-11  Bruno Haible  <bruno@clisp.org>
72572
72573         * users.txt: New file.
72574
72575 2006-08-11  Bruno Haible  <bruno@clisp.org>
72576
72577         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
72578         before <wchar.h>. Needed for OSF/1 and BSD/OS.
72579
72580 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
72581
72582         * modules/snprintf (Depends-on): Remove minmax.
72583         (Maintainer): Add self and Bruno.
72584
72585 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
72586
72587         * lib/.cppi-disable: Add snprintf.h, socket_.h.
72588         * lib/snprintf.c: Include <errno.h> and <limits.h>.
72589         (EOVERFLOW): Define if the system does not.
72590         Do not include "minmax.h"; it wasn't used.
72591         (snprintf): Don't assume size_t promotes to an unsigned type.
72592         Fix bug when generated string was too long for the buffer: the
72593         buffer's contents are supposed to be the initial prefix of the
72594         output.  Don't assume vasnprintf returns EOVERFLOW if the size
72595         exceeds INT_MAX; do the check ourselves.
72596
72597         Import the following changes from libc:
72598
72599         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
72600
72601         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
72602         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
72603         set wc to the byte which couldn't be converted.
72604         (re_string_reconstruct): Don't clear valid_raw_len before calling
72605         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
72606         tip_context using re_string_context_at.
72607
72608         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
72609
72610         * lib/posix/regex.h: g++ still cannot handled [restrict].
72611
72612         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
72613
72614         * lib/posix/regex.h: Remove special handling for VMS.
72615
72616 2006-08-10  Jim Meyering  <jim@meyering.net>
72617
72618         * modules/same-inode: New module.
72619         * modules/dev-ino: New module.
72620         * modules/cycle-check: Depend on these modules, rather than simply
72621         including their .h files.
72622         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
72623         required via m4/cycle-check.m4.
72624         * modules/same: Depend on new same-inode module, rather than
72625         including same-inode.h.
72626         * modules/chdir-safer: New file.
72627
72628         * modules/chown (Depends-on): Add stat-macros.
72629
72630 2006-08-10  Jim Meyering  <jim@meyering.net>
72631
72632         * m4/cycle-check.m4: New file.
72633         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
72634         * m4/dev-ino.m4, m4/same-inode.m4: New files.
72635
72636 2006-08-10  Eric Blake  <ebb9@byu.net>
72637
72638         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
72639         in from original proposal.
72640
72641 2006-08-10  Eric Blake  <ebb9@byu.net>
72642         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
72643
72644         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
72645         namespace.
72646
72647 2006-08-10  Bruno Haible  <bruno@clisp.org>
72648
72649         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
72650         as well.
72651
72652 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72653
72654         Sync from coreutils.
72655
72656         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
72657
72658         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
72659         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
72660
72661 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72662
72663         * modules/restrict: Remove; no longer needed now that we assume
72664         Autoconf 2.59 or later.
72665         * MODULES.html.sh: Remove 'restrict'.
72666         * modules/argp (Depends-on): Remove 'restrict'.
72667         * modules/base64 (Depends-on): Likewise.
72668         * modules/gc (Depends-on): Likewise.
72669         * modules/getaddrinfo (Depends-on): Likewise.
72670         * modules/glob (Depends-on): Likewise.
72671         * modules/inet_ntop (Depends-on): Likewise.
72672         * modules/inet_pton (Depends-on): Likewise.
72673         * modules/memxor (Depends-on): Likewise.
72674         * modules/regex (Depends-on): Likewise.
72675         * modules/strtok_r (Depends-on): Likewise.
72676         * modules/time_r (Depends-on): Likewise.
72677
72678 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72679
72680         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
72681         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
72682         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
72683         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
72684         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
72685         * m4/memxor.m4 (gl_MEMXOR): Likewise.
72686         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
72687         gl_C_RESTRICT replaced by AC_C_RESTRICT.
72688
72689         Merge from coreutils.
72690         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
72691         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
72692         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
72693         * m4/time_r.m4 (gl_TIME_R): Likewise.
72694
72695 2006-08-09  Karl Berry  <karl@gnu.org>
72696
72697         * config/srclist.txt: no more gettext-tools, per Bruno.
72698
72699 2006-08-08  Eric Blake  <ebb9@byu.net>
72700
72701         * modules/verror: New module.
72702         * MODULES.html.sh: Document it.
72703
72704 2006-08-08  Eric Blake  <ebb9@byu.net>
72705
72706         * lib/verror.h, lib/verror.c: New files.
72707
72708 2006-08-08  Eric Blake  <ebb9@byu.net>
72709
72710         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
72711         verror_at_line output complies with GNU Coding Standards even when
72712         file is NULL.
72713
72714 2006-08-07  Bruno Haible  <bruno@clisp.org>
72715
72716         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
72717         versions of AIX.
72718         Reported by Ralf Wildenhues.
72719
72720 2006-08-07  Bruno Haible  <bruno@clisp.org>
72721
72722         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
72723         in an AC_DEFUN. Needed so that the autoconf snippets can use
72724         AC_REQUIRE.
72725
72726 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72727
72728         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72729         Initialize pkgdata_DATA.
72730         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
72731         overriding it.
72732
72733 2006-08-06  Eric Blake  <ebb9@byu.net>
72734
72735         * lib/error.h: Fold in some upstream changes from glibc.
72736         * lib/error.c: Likewise.
72737
72738 2006-08-04  Bruno Haible  <bruno@clisp.org>
72739
72740         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72741         Make the mostlyclean-local rule depend on mostlyclean-generic.
72742         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
72743
72744 2006-07-31  Bruno Haible  <bruno@clisp.org>
72745
72746         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
72747         <stdlib.h>, <string.h>.
72748
72749 2006-07-30  Bruno Haible  <bruno@clisp.org>
72750
72751         * modules/readlink (License): Change to LGPL.
72752
72753 2006-07-30  Bruno Haible  <bruno@clisp.org>
72754
72755         * modules/javaversion (Makefile.am): Distribute javaversion.java and
72756         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
72757         set PKGDATADIR to point to it.
72758
72759 2006-07-30  Bruno Haible  <bruno@clisp.org>
72760
72761         * modules/csharpexec (configure.ac): Comment out macro invocation.
72762         * modules/javaexec (configure.ac): Likewise.
72763         * modules/javacomp-script (configure.ac): Likewise.
72764
72765         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
72766
72767 2006-07-30  Bruno Haible  <bruno@clisp.org>
72768
72769         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
72770         linked-list.
72771
72772 2006-07-30  Bruno Haible  <bruno@clisp.org>
72773
72774         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
72775
72776 2006-07-30  Bruno Haible  <bruno@clisp.org>
72777
72778         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72779         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
72780         get removed.
72781
72782 2006-07-29  Bruno Haible  <bruno@clisp.org>
72783
72784         Make it possible for gnulib-tool to work with locally modified or
72785         augmented gnulib repositories.
72786         * gnulib-tool (func_usage): Document --local-dir option.
72787         (local_gnulib_dir): New variable.
72788         Handle --local-dir option.
72789         (func_lookup_file): New function.
72790         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
72791         (func_get_description, func_get_filelist, func_get_description,
72792         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
72793         func_get_automake_snippet, func_get_include_directive,
72794         func_get_license, func_get_maintainer): Use func_lookup_file.
72795         (func_import, func_create_testdir): Use func_lookup_file.
72796
72797 2006-07-29  Bruno Haible  <bruno@clisp.org>
72798
72799         * modules/setenv (Depends-on): Add unistd.
72800
72801 2006-07-29  Bruno Haible  <bruno@clisp.org>
72802
72803         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
72804
72805 2006-07-29  Bruno Haible  <bruno@clisp.org>
72806
72807         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
72808
72809 2006-07-29  Bruno Haible  <bruno@clisp.org>
72810
72811         * gnulib-tool (import, update): If there is no Makefile.am, look at
72812         aclocal.m4, instead of bailing out.
72813
72814 2006-07-29  Bruno Haible  <bruno@clisp.org>
72815
72816         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
72817         Categorize the options by when they are useful.
72818
72819 2006-07-29  Bruno Haible  <bruno@clisp.org>
72820
72821         * gnulib-tool (func_usage): Document option --no-libtool.
72822         Handle option --no-libtool.
72823         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
72824         for changed semantics of $libtool variable.
72825         (func_import): Likewise. If libtool is not used, show this through
72826         an option --no-libtool.
72827         (func_create_testdir): Update.
72828
72829 2006-07-29  Bruno Haible  <bruno@clisp.org>
72830
72831         * gnulib-tool (func_import): Extend error message about missing
72832         --doc-base.
72833
72834 2006-07-29  Bruno Haible  <bruno@clisp.org>
72835
72836         * gnulib-tool (func_import): Don't create the $docbase directory if
72837         there is no file to store there.
72838
72839 2006-07-29  Bruno Haible  <bruno@clisp.org>
72840
72841         * gnulib-tool (autoconf_minversion): If a --dir option is given and
72842         relevant, look for configure.ac there, not in the current directory.
72843         Also use a simple search for AC_PREREQ, not "autoconf --trace".
72844
72845 2006-07-29  Bruno Haible  <bruno@clisp.org>
72846
72847         * gnulib-tool (SORT): New variable.
72848         (func_usage): Undocument --assume-autoconf option.
72849         Remove --assume-autoconf option handling.
72850         (autoconf_minversion): Determine from the contents of configure.ac.
72851         (func_import): Remove autoconf_minversion handling.
72852         Suggested by Eric Blake.
72853
72854 2006-07-29  Bruno Haible  <bruno@clisp.org>
72855
72856         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
72857
72858 2006-07-29  Bruno Haible  <bruno@clisp.org>
72859
72860         * config/srclist.txt (*setenv.[ch]): Remove rules.
72861
72862 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72863
72864         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
72865
72866 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72867
72868         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
72869         arpa/inet.h.
72870
72871 2006-07-28  Simon Josefsson  <jas@extundo.com>
72872
72873         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
72874         * modules/inet_pton (Depends-on): Likewise.
72875
72876 2006-07-28  Simon Josefsson  <jas@extundo.com>
72877
72878         * m4/netinet_in_h.m4: New file.
72879
72880 2006-07-28  Simon Josefsson  <jas@extundo.com>
72881
72882         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
72883         #include's.
72884
72885 2006-07-28  Simon Josefsson  <jas@extundo.com>
72886
72887         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
72888         #include's.
72889
72890 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
72891
72892         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
72893         setgid on directories only if they set these bits.
72894         * lib/modechange.h: Remove obsolete comment about masks.
72895
72896 2006-07-28  Eric Blake  <ebb9@byu.net>
72897
72898         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
72899         macro expansion.
72900
72901 2006-07-28  Bruno Haible  <bruno@clisp.org>
72902
72903         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
72904
72905 2006-07-28  Bruno Haible  <bruno@clisp.org>
72906
72907         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
72908
72909 2006-07-28  Bruno Haible  <bruno@clisp.org>
72910
72911         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
72912         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
72913         Define fallbacks.
72914         Avoids link error on FreeBSD 4.x.
72915         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72916
72917         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
72918         encoding.
72919         * lib/mbswidth.c (iswcntrl): Likewise.
72920
72921 2006-07-27  Bruno Haible  <bruno@clisp.org>
72922
72923         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
72924         test.
72925
72926 2006-07-27  Bruno Haible  <bruno@clisp.org>
72927
72928         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
72929         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
72930         defined.
72931
72932 2006-07-26  Eric Blake  <ebb9@byu.net>
72933
72934         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
72935
72936 2006-07-26  Eric Blake  <ebb9@byu.net>
72937
72938         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
72939         like mingw that lack mkstemp.
72940         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
72941         avoid compilation warning on mingw.
72942
72943 2006-07-26  Bruno Haible  <bruno@clisp.org>
72944
72945         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
72946         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
72947         INT_FAST*_MIN, INTPTR_MIN.
72948
72949 2006-07-25  Bruno Haible  <bruno@clisp.org>
72950
72951         * modules/version-etc (Depends-on): Add stdarg.
72952
72953 2006-07-25  Bruno Haible  <bruno@clisp.org>
72954
72955         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
72956         complex commands.
72957
72958 2006-07-25  Bruno Haible  <bruno@clisp.org>
72959
72960         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
72961         defined in <stdarg.h> or config.h.
72962
72963 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
72964
72965         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
72966         (gl_STDIO_SAFER): Remove.
72967
72968 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
72969
72970         * MODULES.html.sh (File stream based Input/Output):
72971         Add fopen-safer, tmpfile-safer; remove stdio-safer.
72972         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
72973         * modules/fopen-safer, modules/tmpfile-safer: New files.
72974         * modules/stdio-safer: Remove.
72975
72976 2006-07-24  Bruno Haible  <bruno@clisp.org>
72977
72978         * modules/tmpdir: New file.
72979         * MODULES.html.sh (File system functions): Add it.
72980
72981 2006-07-24  Bruno Haible  <bruno@clisp.org>
72982
72983         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
72984         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
72985
72986 2006-07-24  Bruno Haible  <bruno@clisp.org>
72987
72988         * modules/clean-temp: New file.
72989
72990 2006-07-24  Bruno Haible  <bruno@clisp.org>
72991
72992         * m4/tmpdir.m4: New file, from GNU gettext.
72993
72994 2006-07-24  Bruno Haible  <bruno@clisp.org>
72995
72996         * lib/tmpdir.h: New file, from GNU gettext.
72997         * lib/tmpdir.c: New file, from GNU gettext.
72998
72999 2006-07-24  Bruno Haible  <bruno@clisp.org>
73000
73001         * lib/clean-temp.h: New file, from GNU gettext.
73002         * lib/clean-temp.c: New file, from GNU gettext.
73003
73004 2006-07-23  Eric Blake  <ebb9@byu.net>
73005
73006         * modules/stdio-safer (Files): Add tmpfile-safer.c.
73007         (Depends-on): Add binary-io.
73008
73009 2006-07-23  Eric Blake  <ebb9@byu.net>
73010
73011         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
73012
73013 2006-07-23  Eric Blake  <ebb9@byu.net>
73014
73015         * lib/tmpfile-safer.c: New file.
73016         * lib/stdio-safer.h (fopen_safer): Add prototype.
73017         * lib/stdio--.h (tmpfile): Make safer.
73018
73019 2006-07-23  Bruno Haible  <bruno@clisp.org>
73020
73021         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
73022         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
73023         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
73024         gl_linked_remove_at): Use it.
73025
73026 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73027         and Simon Josefsson <jas@extundo.com>
73028
73029         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
73030
73031         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
73032
73033 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
73034
73035         * modules/close-stream: New file.
73036         * modules/closeout (Description): Make it clear that it exits
73037         with a diagnostic on error.
73038         (Depends-on): Add close-stream.  Remove fpending, stdbool.
73039         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
73040
73041 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
73042
73043         * m4/close-stream.m4: New file.
73044
73045 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
73046
73047         * lib/close-stream.c, lib/close-stream.h: New files.
73048
73049 2006-07-22  Bruno Haible  <bruno@clisp.org>
73050
73051         Merge from GNU gettext 0.15.
73052
73053         2006-05-01  Bruno Haible  <bruno@clisp.org>
73054
73055                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
73056
73057         2006-07-22  Bruno Haible  <bruno@clisp.org>
73058
73059                 * modules/javaversion: New file.
73060                 * MODULES.html.sh (Java): Add javaversion.
73061
73062         2006-03-12  Bruno Haible  <bruno@clisp.org>
73063
73064                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
73065
73066         2005-12-04  Bruno Haible  <bruno@clisp.org>
73067
73068                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
73069                 (untested).
73070
73071         2006-06-21  Bruno Haible  <bruno@clisp.org>
73072
73073                 Avoid warnings from recent versions of mcs.
73074                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
73075                 -o, -L, -r any more. Use options documented since mcs-1.0
73076                 instead. Similarly for -g.
73077
73078         2005-12-04  Bruno Haible  <bruno@clisp.org>
73079
73080                 * build-aux/csharpcomp.sh.in: Suffix for resources is
73081                 .resources, not .resource.
73082
73083         2005-07-09  Bruno Haible  <bruno@clisp.org>
73084
73085                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
73086                 add a .dll suffix.
73087                 Reported by Mark Junker <mjscod@gmx.de>.
73088
73089         2006-07-22  Bruno Haible  <bruno@clisp.org>
73090
73091                 * modules/gettext: Upgrade to gettext-0.15.
73092                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
73093                 m4/visibility.m4.
73094                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
73095
73096 2006-07-22  Bruno Haible  <bruno@clisp.org>
73097
73098         Merge from GNU gettext 0.15.
73099
73100         2006-03-25  Bruno Haible  <bruno@clisp.org>
73101
73102                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
73103
73104         2006-07-21  Bruno Haible  <bruno@clisp.org>
73105
73106                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
73107                 "1.1".
73108
73109         2006-05-09  Bruno Haible  <bruno@clisp.org>
73110
73111                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
73112                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
73113                 for the conftestver execution.
73114
73115         2006-05-01  Bruno Haible  <bruno@clisp.org>
73116
73117                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
73118                 optional target-version argument. Verify that the compiler
73119                 groks source of the specified source-version, or add -source
73120                 option as necessary. Verify that the compiler produces
73121                 bytecode in the specified target-version, or add -target and
73122                 -source options as necessary. Make the result of the test
73123                 available as variable CONF_JAVAC. Also log error output in
73124                 config.log.
73125
73126         2006-03-11  Bruno Haible  <bruno@clisp.org>
73127
73128                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
73129
73130         2006-05-09  Bruno Haible  <bruno@clisp.org>
73131
73132                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
73133                 CLASSPATH_SEPARATOR to a semicolon.
73134
73135         2006-03-12  Bruno Haible  <bruno@clisp.org>
73136
73137                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
73138                 available as variable CONF_JAVA, for subsequent autoconf
73139                 tests. Also log error output in config.log.
73140
73141         2006-07-19  Bruno Haible  <bruno@clisp.org>
73142
73143                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
73144                 that getline works on glibc2 systems. Needed to avoid trouble
73145                 in relocatable.c.
73146                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
73147
73148         2005-12-04  Bruno Haible  <bruno@clisp.org>
73149
73150                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
73151                 launcher (untested).
73152
73153         2005-12-04  Bruno Haible  <bruno@clisp.org>
73154
73155                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
73156
73157         2006-07-22  Bruno Haible  <bruno@clisp.org>
73158
73159                 * gettext.m4: Update from GNU gettext-0.15.
73160                 * nls.m4: Likewise.
73161                 * po.m4: Likewise.
73162                 * inttypes-pri.m4: Likewise.
73163                 * inttypes-h.m4: Renamed from inttypes.m4.
73164                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
73165
73166 2006-07-22  Bruno Haible  <bruno@clisp.org>
73167
73168         Merge from GNU gettext 0.15.
73169
73170         2005-07-05  Bruno Haible  <bruno@clisp.org>
73171
73172                 * printf-args.c (printf_fetchargs): Work around broken
73173                 definition of wint_t on mingw.
73174
73175         2005-02-12  Bruno Haible  <bruno@clisp.org>
73176
73177                 * xallocsa.h: Add extern "C" for C++.
73178
73179         2006-05-17  Bruno Haible  <bruno@clisp.org>
73180
73181                 Cygwin portability.
73182                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
73183
73184         2006-04-30  Bruno Haible  <bruno@clisp.org>
73185
73186                 * progreloc.c: Include <mach-o/dyld.h> if available.
73187                 (find_executable): Use _NSGetExecutablePath when possible.
73188
73189         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
73190
73191                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
73192                 function.
73193
73194         2005-12-29  Bruno Haible  <bruno@clisp.org>
73195
73196                 * progreloc.c (set_program_name_and_installdir): Fix
73197                 compilation error.
73198
73199         2005-12-04  Bruno Haible  <bruno@clisp.org>
73200
73201                 Cygwin portability.
73202                 * progreloc.c: Include <windows.h> also on Cygwin.
73203                 (find_executable): Add support for Cygwin.
73204                 (set_program_name_and_installdir): Handle also platforms with
73205                 nonempty EXEEXT.
73206
73207         2006-07-11  Bruno Haible  <bruno@clisp.org>
73208
73209                 * javacomp.c: Fix a comment.
73210                 Reported by Jim Meyering.
73211
73212         2006-04-30  Bruno Haible  <bruno@clisp.org>
73213
73214                 * javacomp.h (compile_java_class): Add source_version,
73215                 target_version arguments.
73216                 * javacomp.c: Rewritten to choose only a compiler that
73217                 respects the specified source_version and target_version.
73218
73219         2006-06-27  Bruno Haible  <bruno@clisp.org>
73220
73221                 Assume correct S_ISDIR macro.
73222                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
73223
73224         2006-07-22  Bruno Haible  <bruno@clisp.org>
73225
73226                 * javaversion.h: New file, from GNU gettext.
73227                 * javaversion.c: New file, from GNU gettext.
73228                 * javaversion.java: New file, from GNU gettext.
73229                 * javaversion.class: New file, from GNU gettext.
73230
73231         2006-05-17  Bruno Haible  <bruno@clisp.org>
73232
73233                 Cygwin portability.
73234                 * javaexec.c (execute_java_class): Test for jview program
73235                 also on Cygwin.
73236
73237         2006-04-09  Bruno Haible  <bruno@clisp.org>
73238
73239                 * fatal-signal.c: Don't include string.h.
73240                 (at_fatal_signal): Use a copying loop instead of memcpy.
73241
73242         2005-12-04  Bruno Haible  <bruno@clisp.org>
73243
73244                 * csharpexec.c: Add support for 'clix' launcher (untested).
73245                 (execute_csharp_using_sscli): New function.
73246                 (execute_csharp_program): Call it.
73247
73248         2006-06-21  Bruno Haible  <bruno@clisp.org>
73249
73250                 Avoid warnings from recent versions of mcs.
73251                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
73252                 -o, -L, -r any more. Use options documented since mcs-1.0
73253                 instead. Similarly for -g.
73254
73255         2005-07-09  Bruno Haible  <bruno@clisp.org>
73256
73257                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
73258                 add a .dll suffix.
73259                 Reported by Mark Junker <mjscod@gmx.de>.
73260
73261         2006-06-17  Bruno Haible  <bruno@clisp.org>
73262
73263                 * config.charset: Update for NetBSD 3.0.
73264
73265         2006-05-17  Bruno Haible  <bruno@clisp.org>
73266
73267                 Cygwin portability.
73268                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
73269
73270         2006-05-16  Bruno Haible  <bruno@clisp.org>
73271
73272                 * localcharset.c [CYGWIN]: Include <windows.h>.
73273                 (get_charset_aliases): For Cygwin, return the same CPxxx
73274                 aliases list as under WIN32.
73275                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
73276                 the environment variables. Fall back to GetACP().
73277
73278         2006-04-05  Bruno Haible  <bruno@clisp.org>
73279
73280                 * config.charset: Update Juan Manuel Guerrero's address.
73281
73282         2005-02-12  Bruno Haible  <bruno@clisp.org>
73283
73284                 * allocsa.h: Add extern "C" for C++.
73285
73286         2005-02-10  Bruno Haible  <bruno@clisp.org>
73287
73288                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
73289                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
73290
73291         2006-07-22  Bruno Haible  <bruno@clisp.org>
73292
73293                 * gettext.h: Update to GNU gettext-0.15.
73294
73295 2006-07-22  Bruno Haible  <bruno@clisp.org>
73296
73297         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
73298         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
73299         lib-prefix.m4, longdouble.m4, ssize_t.m4.
73300
73301 2006-07-21  Eric Blake  <ebb9@byu.net>
73302
73303         * modules/stdlib-safer: New file.
73304         * MODULES.html.sh (File stream based Input/Output): Add
73305         stdlib-safer.
73306
73307 2006-07-21  Eric Blake  <ebb9@byu.net>
73308
73309         * lib/stdlib-safer.h: New file from coreutils, required by
73310         stdlib--.h.
73311
73312 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
73313
73314         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
73315
73316 2006-07-20  Bruno Haible  <bruno@clisp.org>
73317
73318         * gnulib-tool: Recognize new option --assume-autoconf.
73319         (autoconf_minversion): New variable.
73320         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
73321
73322 2006-07-20  Bruno Haible  <bruno@clisp.org>
73323
73324         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
73325
73326 2006-07-19  Derek R. Price  <derek@ximbiot.com>
73327
73328         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
73329         Reindent and repaginate.
73330
73331 2006-07-19  Derek Price  <derek@ximbiot.com>
73332
73333         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
73334         Correct grammar.
73335
73336 2006-07-17  Bruno Haible  <bruno@clisp.org>
73337
73338         * modules/list: New file.
73339         * modules/array-list: New file.
73340         * modules/carray-list, modules/carray-list-tests: New files.
73341         * modules/linked-list, modules/linked-list-tests: New files.
73342         * modules/avltree-list, modules/avltree-list-tests: New files.
73343         * modules/rbtree-list, modules/rbtree-list-tests: New files.
73344         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
73345         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
73346         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
73347         * modules/oset: New file.
73348         * modules/array-oset: New file.
73349         * modules/avltree-oset, modules/avltree-oset-tests: New files.
73350         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
73351         * tests/test-carray_list.c: New file.
73352         * tests/test-linked_list.c: New file.
73353         * tests/test-avltree_list.c: New file.
73354         * tests/test-rbtree_list.c: New file.
73355         * tests/test-linkedhash_list.c: New file.
73356         * tests/test-avltreehash_list.c: New file.
73357         * tests/test-rbtreehash_list.c: New file.
73358         * tests/test-avltree_oset.c: New file.
73359         * tests/test-rbtree_oset.c: New file.
73360         * MODULES.html.sh (Container data structures): New section.
73361
73362 2006-07-17  Bruno Haible  <bruno@clisp.org>
73363
73364         * m4/gl_list.m4: New file.
73365
73366 2006-07-17  Bruno Haible  <bruno@clisp.org>
73367
73368         * lib/gl_list.h: New file.
73369         * lib/gl_list.c: New file.
73370         * lib/gl_array_list.h: New file.
73371         * lib/gl_array_list.c: New file.
73372         * lib/gl_carray_list.h: New file.
73373         * lib/gl_carray_list.c: New file.
73374         * lib/gl_linked_list.h: New file.
73375         * lib/gl_linked_list.c: New file.
73376         * lib/gl_anylinked_list1.h: New file.
73377         * lib/gl_anylinked_list2.h: New file.
73378         * lib/gl_avltree_list.h: New file.
73379         * lib/gl_avltree_list.c: New file.
73380         * lib/gl_anyavltree_list1.h: New file.
73381         * lib/gl_anyavltree_list2.h: New file.
73382         * lib/gl_rbtree_list.h: New file.
73383         * lib/gl_rbtree_list.c: New file.
73384         * lib/gl_anyrbtree_list1.h: New file.
73385         * lib/gl_anyrbtree_list2.h: New file.
73386         * lib/gl_anytree_list1.h: New file.
73387         * lib/gl_anytree_list2.h: New file.
73388         * lib/gl_linkedhash_list.h: New file.
73389         * lib/gl_linkedhash_list.c: New file.
73390         * lib/gl_anyhash_list1.h: New file.
73391         * lib/gl_anyhash_list2.h: New file.
73392         * lib/gl_avltreehash_list.h: New file.
73393         * lib/gl_avltreehash_list.c: New file.
73394         * lib/gl_rbtreehash_list.h: New file.
73395         * lib/gl_rbtreehash_list.c: New file.
73396         * lib/gl_anytreehash_list1.h: New file.
73397         * lib/gl_anytreehash_list2.h: New file.
73398
73399         * lib/gl_oset.h: New file.
73400         * lib/gl_oset.c: New file.
73401         * lib/gl_array_oset.h: New file.
73402         * lib/gl_array_oset.c: New file.
73403         * lib/gl_avltree_oset.h: New file.
73404         * lib/gl_avltree_oset.c: New file.
73405         * lib/gl_rbtree_oset.h: New file.
73406         * lib/gl_rbtree_oset.c: New file.
73407         * lib/gl_anytree_oset.h: New file.
73408
73409 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
73410
73411         * m4/mkancesdirs.m4: New file.
73412         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
73413         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
73414         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
73415         it.
73416
73417 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
73418
73419         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
73420         * lib/mkancesdirs.h: New files.
73421         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
73422         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
73423         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
73424         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
73425         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
73426         callers changed.  Revamp internals significantly, by not
73427         attempting to create directories that are temporarily more
73428         permissive than the final results.  Do not attempt to use
73429         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
73430         This removes some race conditions, fixes some bugs, and simplifies
73431         things.  Use new dirchownmod function to do owner and mode changes.
73432         * lib/mkdir-p.h: Likewise.
73433         * lib/modechange.c (octal_to_mode): New function.
73434         (struct mode_change): New member mentioned.
73435         (make_node_op_equals): New arg mentioned.  All callers changed.
73436         (mode_compile): Keep track of which mode bits the user has explicitly
73437         mentioned.
73438         (mode_adjust): New arg DIR, so that we implement the X op correctly.
73439         New arg PMODE_BITS, to keep track of which mode bits the user
73440         mentioned; it treats S_ISUID and S_ISGID speciall.
73441         All callers changed.
73442         * lib/modechange.h: Likewise.
73443
73444 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
73445
73446         * MODULES.html.sh: Add mkancestors.
73447         * modules/mkancesdirs: New module.
73448         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
73449         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
73450         The chdir-safer and afs files are now orphans; I'll remove them
73451         unless someone speaks up.
73452         Add lib/dirchownmod.c, lib/dirchownmod.h.
73453         (Depends-on): Remove alloca, chown, save-cwd, dirname.
73454         Add lchown, mkancesdirs.
73455         (Maintainer): Add self.
73456
73457 2006-07-15  Karl Berry  <karl@gnu.org>
73458
73459         * gnulib-tool: help message wording/arrangement.
73460
73461 2006-07-14  Simon Josefsson  <jas@extundo.com>
73462
73463         * doc/gnulib.texi (Libtool and Windows): New section.
73464
73465 2006-07-12  Simon Josefsson  <jas@extundo.com>
73466
73467         * modules/gendocs (License): Fix license, approved by Karl.
73468
73469 2006-07-12  Eric Blake  <ebb9@byu.net>
73470
73471         * MODULES.html.sh: Add gendocs.
73472
73473 2006-07-11  Eric Blake  <ebb9@byu.net>
73474
73475         * modules/fdl: New module, to install doc/fdl.texi.
73476         * MODULES.html.sh: Add new section for documentation modules.
73477         * gnulib-tool: Avoid space-tab.
73478         (--doc-base): New option, to manage files from doc.
73479
73480 2006-07-11  Eric Blake  <ebb9@byu.net>
73481
73482         * m4/absolute-header.m4: Fix comments to match recent change.
73483
73484 2006-07-11  Eric Blake  <ebb9@byu.net>
73485
73486         * gnulib-tool: List --doc-base before --tests-base.
73487
73488 2006-07-11  Derek R. Price  <derek@ximbiot.com>
73489
73490         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
73491
73492 2006-07-11  Bruno Haible  <bruno@clisp.org>
73493
73494         * README: Mention where to put documentation.
73495
73496 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73497
73498         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
73499
73500 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
73501
73502         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
73503         to stdint.m4.
73504
73505 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
73506
73507         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
73508         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
73509         "no/such/file/stdint.h" when there is no such file, so that
73510         the resulting C code can be parsed by dodgy compilers.
73511         Problems reported by Bob Proulx.
73512
73513 2006-07-10  Derek R. Price  <derek@ximbiot.com>
73514
73515         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
73516         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
73517         macros into the GNU _D_EXACT_NAMLEN.
73518         * lib/savedir.c:  Likewise.
73519         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
73520
73521 2006-07-10  Derek R. Price  <derek@ximbiot.com>
73522         and Paul Eggert  <eggert@cs.ucla.edu>
73523
73524         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
73525         * m4/savedir.m4:
73526         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
73527         macros into the GNU _D_EXACT_NAMLEN.
73528
73529 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73530
73531         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
73532         around the absolute name, to work around a problem with the HP-UX
73533         11.23 native C compiler, reported by Bob Proulx.
73534
73535 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73536
73537         * doc/maintain.texi, make-stds.texi: Sync from
73538         <http://savannah.gnu.org/projects/gnustandards>.
73539
73540 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73541
73542         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
73543
73544 2006-07-09  Jim Meyering  <jim@meyering.net>
73545
73546         * m4/glob.m4: Remove a doubled word in a comment.
73547
73548 2006-07-09  Jim Meyering  <jim@meyering.net>
73549
73550         * lib/argp-pv.c: Remove a doubled word in a comment.
73551         * lib/check-version.c (check_version): Likewise.
73552         * lib/javacomp.c (compile_java_class): Likewise.
73553
73554 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
73555
73556         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
73557         for the benefit of people using Autoconf 2.60.  If you want to
73558         support older Autoconf versions you can copy m4/onceonly_2_57.m4
73559         (or m4/onceonly.m4, if pre-2.57) manually.
73560
73561 2006-07-08  Jim Meyering  <jim@meyering.net>
73562
73563         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
73564         comment.
73565         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
73566         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
73567         comment.
73568
73569 2006-07-08  Jim Meyering  <jim@meyering.net>
73570
73571         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
73572
73573 2006-07-07  Simon Josefsson  <jas@extundo.com>
73574
73575         * tests/test-crc.c: Change expected crc value, the test vector
73576         were probably computed using the old broken crc.c?
73577
73578 2006-07-06  Simon Josefsson  <jas@extundo.com>
73579
73580         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
73581         now the canonical place for the M4 file).
73582
73583         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
73584         from the sys_socket dependency now.
73585
73586         * modules/inet_pton (Files): Ditto.
73587
73588         * modules/inet_ntop (Files): Ditto.
73589
73590 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73591
73592         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
73593         not gl_PREREQ_GETUSERSHELL.
73594
73595 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73596
73597         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
73598         with only one argument, for Autoconf 2.60.
73599         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
73600         expand to nothing, so add a shell command to avoid syntax error.
73601         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
73602
73603 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73604
73605         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
73606
73607 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73608
73609         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
73610         no longer needed.  Check for isblank decl.
73611         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
73612         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
73613         of existence.
73614
73615 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73616
73617         * lib/getloadavg.c: Use __VMS, not VMS.
73618         * lib/getopt.c: Likewise.
73619         * lib/getpagesize.h: Likewise.
73620         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
73621         and probably does not work.
73622
73623 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73624
73625         * lib/.cppi-disable: Add wcwidth.
73626         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
73627         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
73628         (ISGRAPH): Remove.  All uses changed to isgraph.
73629         (FOLD) [!defined _LIBC]: Remove special case.
73630         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
73631         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
73632         HAVE_ISBLANK.
73633         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
73634         case.
73635
73636 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
73637
73638         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
73639         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
73640         brackets.  Other minor changes to suppress some compiler
73641         warnings.
73642
73643 2006-07-06  Derek R. Price  <derek@ximbiot.com>
73644         and Paul Eggert  <eggert@cs.ucla.edu>
73645
73646         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
73647         of invoking obsolescent AC_HEADER_DIRENT macro.
73648         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
73649         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
73650         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
73651         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
73652         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
73653         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
73654         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
73655         * m4/readdir.m4: Remove; no longer needed.
73656
73657 2006-07-06  Derek R. Price  <derek@ximbiot.com>
73658         and Paul Eggert  <eggert@cs.ucla.edu>
73659
73660         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
73661         Don't worry about this obsolete case any more.
73662         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
73663         directories.
73664         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
73665         worry about this obsolete case any more.
73666         * lib/fts.c: Likewise.
73667         * lib/getcwd.c: Likewise.
73668         * lib/glob.h: Likewise.
73669         * lib/savedir.c: Likewise.
73670
73671 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
73672
73673         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
73674         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
73675         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
73676         needed.
73677         All uses removed.
73678         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
73679         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
73680         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
73681         needed.
73682         * m4/getdate.m4 (gl_GETDATE): Likewise.
73683         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
73684         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
73685         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
73686         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
73687         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
73688         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73689         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
73690         needed.
73691
73692 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
73693
73694         * lib/memcasecmp.c: Include <limits.h>.
73695         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
73696         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
73697         Don't assume isdigit succeeds only on '0' through '9'.
73698
73699 2006-07-05  Eric Blake  <ebb9@byu.net>
73700
73701         * modules/getaddrinfo (Depends-on): Add snprintf.
73702
73703 2006-07-05  Eric Blake  <ebb9@byu.net>
73704
73705         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
73706         to avoid 'header present but could not be compiled' on cygwin.
73707
73708 2006-07-05  Eric Blake  <ebb9@byu.net>
73709
73710         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
73711         missing from netdb.h.
73712         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
73713
73714 2006-07-05  Derek R. Price  <derek@ximbiot.com>
73715
73716         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
73717         no longer needed.
73718         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
73719         * m4/getdate.m4 (gl_GETDATE): Likewise.
73720         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
73721         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
73722         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
73723         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
73724         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73725
73726 2006-07-05  Derek R. Price  <derek@ximbiot.com>
73727
73728         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
73729         All uses of is_space replaced by isspace.
73730         * lib/exit.h: Don't talk about STDC_HEADERS.
73731         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
73732         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
73733         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
73734         replaced by isprint etc.
73735         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
73736         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
73737         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
73738         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
73739         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
73740         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
73741
73742 2006-07-05  Bruno Haible  <bruno@clisp.org>
73743
73744         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
73745         the function exists, before testing against AIX.
73746         Reported by Martin Lambers <marlam@marlam.de>.
73747
73748 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
73749
73750         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
73751         From Mark D. Baushke.
73752
73753 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
73754
73755         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
73756         to the absolute name, not just one, to bypass Sun C 5.8's
73757         "warning: #include of /usr/include/... may be non-portable".
73758
73759 2006-07-04  Eric Blake  <ebb9@byu.net>
73760
73761         * modules/dirname-tests: New test module.
73762         * tests/test-dirname.c: New file, replacing dirname.c
73763         TEST_DIRNAME section that was recently deleted.
73764
73765 2006-07-04  Bruno Haible  <bruno@clisp.org>
73766
73767         Assume ANSI C header files and <ctype.h> functions.
73768         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
73769         (mbsnwidth): Use isprint, iscntrl instead.
73770
73771 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73772
73773         Merge from coreutils.
73774         * MODULES.html.sh: Add xstrtold.
73775         * modules/xstrtold: New file.
73776         * modules/cycle-check (Files): Add lib/same-inode.h.
73777         * modules/dirname (Files): Add m4/double-slash-root.m4.
73778         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
73779         * modules/mkdir-p (Files): Add lib/same-inode.h.
73780         * modules/same (Files): Add lib/same-inode.h.
73781
73782 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73783
73784         * m4/absolute-header.m4: Renamed from full-header-path.m4.
73785         This is to keep the terminology clean; POSIX talks about
73786         "absolute pathnames", not "full pathnames", but the GNU
73787         Coding Standards say to use "path" for something else;
73788         so use "absolute" to keep both sides happy.
73789         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
73790         Set gl_absolute_header, not gl_full_header_path.
73791         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
73792         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
73793         All uses changed.
73794
73795         Merge from coreutils.
73796
73797         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
73798
73799         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
73800         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
73801         want to require the building of c-strtod.o.
73802         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
73803         needs -lm directly.
73804         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
73805
73806         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
73807
73808         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
73809         --as-needed option if available.  Problem reported by Albert Chin in
73810         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
73811         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
73812         cc merely issues a bunch of annoying warnings for --as-needed
73813         (this problem was reported by Bob Proulx).  Also, try linking with
73814         -lm to detect a bug in binutils 2.16 (this problem was reported
73815         by Ralf Wildenhues).
73816
73817         2006-06-18  Jim Meyering  <jim@meyering.net>
73818
73819         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
73820         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
73821         macro.
73822         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
73823         also check for glibc-2.4's abort-inducing bug.
73824
73825         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
73826         Low-probability clean-up should be to use rmdir to get rid of
73827         the just-created directory, not unlink.
73828
73829         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
73830         configure fail, and request a bug report to inform us about it.
73831         Add a comment that, barring reports to the contrary, in 2007 we'll
73832         assume ftruncate is universally available.
73833
73834         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
73835
73836         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
73837
73838         2006-03-12  Jim Meyering  <jim@meyering.net>
73839
73840         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
73841         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
73842         * m4/same.m4 (gl_SAME): Likewise.
73843         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
73844
73845         2006-03-11  Eric Blake  <ebb9@byu.net>
73846
73847         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
73848         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
73849         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
73850         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
73851
73852 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73853
73854         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
73855         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
73856         reported by Mark D. Baushke, one in
73857         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
73858
73859         Merge from coreutils.
73860
73861         * lib/.cppi-disable: Add stdint_.h.
73862         * lib/.cvsignore: Add stdint.h.
73863
73864         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
73865
73866         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
73867         both double and long double versions.
73868         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
73869         * lib/xstrtold.c: New file.
73870         * lib/xstrtod.h (xstrtold): New decl.
73871
73872         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
73873
73874         * lib/filemode.c (setst): Remove.
73875         (strmode): Rewrite to avoid setst.  This makes the code shorter,
73876         (arguably) clearer, and the generated code is a bit smaller on my
73877         Debian GNU/Linux stable x86 host.
73878
73879         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
73880
73881         * lib/filemode.c: Include "filemode.h" first, to test the interface.
73882         Assume that filemode.h includes sys/types.h and sys/stat.h.
73883         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
73884         (ftypelet): Reorder to put common cases first, for efficiency.
73885         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
73886         to do 'M'.
73887         (strmode): Renamed from mode_string, and now stores 12 bytes instead
73888         of 10, for compatibility with FreeBSD.  All callers changed.
73889         (filemodestring): Now stores 12 bytes instead of 10, and sets file
73890         types that can't be deduced solely from st_mode.  First arg is now a
73891         const pointer.
73892         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
73893         (strmode): Renamed from mode_string.
73894         (filemodestring): New decl.
73895         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
73896         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
73897         needed.
73898         (S_ISPORT, S_ISWHT): New macros, if not already defined.
73899
73900         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
73901
73902         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
73903         fsusage.h now does that.  Include fsusage.h first, to test interface.
73904         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
73905         at most one method (the old code could have generated decls that
73906         didn't conform to C89, not that this was ever exercised).
73907         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
73908
73909         2006-03-19  Jim Meyering  <jim@meyering.net>
73910
73911         Work even in a chroot where d_ino values for entries in "/"
73912         don't match the stat.st_ino values for the same names.
73913         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
73914         number, iterate through all entries again, using lstat instead.
73915         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
73916         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
73917
73918         * lib/getcwd.c (__getcwd): Clarify a comment.
73919         Use memcpy in place of a call to strcpy.
73920
73921         2006-03-12  Jim Meyering  <jim@meyering.net>
73922
73923         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
73924         matches that of the current directory (which we're about to chdir ".."
73925         out of), then save the dev-ino of the parent, instead.
73926
73927         * lib/same-inode.h (SAME_INODE): New file/macro.
73928         * lib/chdir-safer.c (SAME_INODE): Remove definition.
73929         Include "same-inode.h", instead.
73930         * lib/same.c: Likewise.
73931         * lib/cycle-check.h: Include "same-inode.h".
73932         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
73933         * lib/cycle-check.c (SAME_INODE): Remove definition.
73934         * lib/root-dev-ino.h: Include "same-inode.h".
73935
73936         2006-03-11  Eric Blake  <ebb9@byu.net>
73937
73938         * lib/same.c (same_name): s/base_name/last_component/
73939         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
73940         * lib/filenamecat.c (file_name_concat): Likewise.
73941
73942         2006-03-11  Eric Blake  <ebb9@byu.net>,
73943                     Paul Eggert  <eggert@cs.ucla.edu>
73944
73945         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
73946         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
73947         drive prefix.
73948         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
73949         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
73950         (last_component): New method.
73951         * lib/dirname.c (dir_len): Determine when drive letters need a
73952         subsequent slash.  Preserve // when it is special.
73953         (dir_name): Don't append dot when drive letter is absolute.
73954         [TEST_DIRNAME]: Move into a full-blown gnulib test.
73955         * lib/basename.c (base_name): New semantics - malloc the result.
73956         Preserve // when it is special.  Preserve relative files that look
73957         like drive letters.
73958         (base_len): Preserve // when it is special.
73959         (last_component): New method, similar to old base_name semantics.
73960         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
73961         base_name.  Strip redundant slashes from ///.
73962
73963 2006-07-03  Jim Meyering  <jim@meyering.net>
73964
73965         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
73966         macro is used before the first cycle_check call.
73967
73968 2006-07-03  Eric Blake  <ebb9@byu.net>
73969
73970         * modules/dirname (Depends-on): Add xstrndup.
73971
73972 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
73973
73974         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
73975         test cases, so that config.log is a bit easier to follow.
73976
73977 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
73978
73979         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
73980         both are 64 bits, since this seems to be the tradition, and this
73981         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
73982         we ever run into a host that prefers long long to long in this
73983         case, we'll need another configure-time test.  Problem reported by
73984         Jim Meyering.
73985
73986 2006-07-02  Eric Blake  <ebb9@byu.net>
73987
73988         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
73989
73990 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73991
73992         * modules/inttypes (Depends-on): No longer depends on stdint.
73993         * modules/stdint (Description): Say more about assumptions.
73994         Say that the fast types might differ.  Say macros are used.
73995         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
73996         (Makefile.am): Revise list of substituted symbols to match
73997         new stdint.m4.
73998         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
73999         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
74000         * tests/test-stdint.c (verify_same_types)
74001         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
74002         the code conforms to C99/C89.
74003         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
74004         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
74005
74006 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
74007
74008         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
74009         but fix a bug, by requiring at least 64 bits.
74010         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
74011         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
74012         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
74013         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
74014
74015         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
74016         changes.  Make 2.59 a prerequisite.  Check and substitute for
74017         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
74018         inttypes.h.  Do not use special include files; just use the
74019         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
74020         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
74021         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
74022         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
74023         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
74024         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
74025         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
74026         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
74027         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
74028         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
74029         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
74030         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
74031         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
74032         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
74033         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
74034         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
74035         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
74036         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
74037         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
74038         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
74039         WINT_MAX.  Check for C99 conformance more strictly, by detecting
74040         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
74041         not check for things that C99 does not require, e.g., int8_t.  If
74042         a test isn't needed unless <stdint.h> isn't working, and is
74043         unlikely to be needed for any other reason, then don't do it
74044         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
74045         size_t, since we assume C89 freestanding at least.  Do not check
74046         for sig_atomic_t, wchar_t, or wint_t, since the code now does
74047         the right thing even if the types are not defined.  Instead use:
74048         (gl_STDINT_TYPE_PROPERTIES): New macro.
74049         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
74050         testing whether <sys/types.h> clashes, as Autoconf does this for
74051         us now.  All uses removed.
74052         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
74053         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
74054         (gl_CHECK_TYPE_SAME):
74055         Remove; no longer needed.
74056         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
74057         exists, since we'll return 0 anyway in that case.
74058         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
74059
74060 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
74061
74062         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
74063         possible collision with system files.
74064         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
74065         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
74066         WCHAR_MIN and WCHAR_MAX in this case.
74067         (<stddef.h>): Do not include; no longer needed.
74068         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
74069         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
74070         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
74071         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
74072         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
74073         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
74074         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
74075         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
74076         !defined(__c99))]: Include in this case too, since it's harmless
74077         now.
74078         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
74079         dangerous to do so.
74080         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
74081         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
74082         (_STDINT_MIN, _STDINT_MAX): New macros.
74083         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
74084         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
74085         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
74086         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
74087         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
74088         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
74089         macros, not typedefs; this simplifies things quite a bit.
74090         Use long int for all types narrower than int64_t.
74091         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
74092         Define in terms of long long int or int64_t or long int,
74093         not int64_t or int32_t.  This saves some compile-time testing.
74094         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
74095         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
74096         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
74097         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
74098         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
74099         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
74100         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
74101         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
74102         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
74103         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
74104         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
74105         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
74106         undef any previous version and define our own version, for
74107         simplicity and consistency with the new macros for types.
74108         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
74109         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
74110         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
74111         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
74112         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
74113         @WINT_T_SUFFIX@ to keep things simple here.
74114         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
74115         Simplify by assuming typical 8/16/32/64 host, since we're
74116         already doing that elsewhere anyway.
74117         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
74118         and assume long long int is 64 bits if available.  This
74119         speeds up 'configure'.
74120
74121 2006-07-01  Eric Blake  <ebb9@byu.net>
74122
74123         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
74124         Reported by Andreas Buening.
74125
74126 2006-07-01  Eric Blake  <ebb9@byu.net>
74127
74128         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
74129
74130 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
74131
74132         * lib/getaddrinfo.c: fixed typo
74133
74134 2006-06-29  Jim Meyering  <jim@meyering.net>
74135
74136         * modules/strftime (Maintainer): Add my name, since with the
74137         FPRINTFTIME changes strftime.c has forked from glibc.
74138
74139 2006-06-29  Eric Blake  <ebb9@byu.net>
74140
74141         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
74142
74143 2006-06-29  Eric Blake  <ebb9@byu.net>
74144
74145         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
74146
74147 2006-06-29  Eric Blake  <ebb9@byu.net>
74148
74149         * lib/stat_.h: New file.
74150
74151 2006-06-29  Eric Blake  <ebb9@byu.net>
74152
74153         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
74154         unused static function.
74155
74156 2006-06-29  Eric Blake  <ebb9@byu.net>
74157
74158         * doc/functions.texi (Function Portability): Document missing lstat
74159         on mingw.
74160
74161 2006-06-29  Eric Blake  <ebb9@byu.net>
74162
74163         * MODULES.html.sh: Add sys_stat.
74164         * modules/sys_stat: New module.
74165         * modules/mkstemp (Depends-on): Add sys_stat.
74166
74167 2006-06-29  Derek R. Price  <derek@ximbiot.com>
74168
74169         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
74170
74171 2006-06-29  Derek R. Price  <derek@ximbiot.com>
74172
74173         * m4/c-bs-a.m4: Removed.
74174
74175 2006-06-29  Derek R. Price  <derek@ximbiot.com>
74176
74177         * lib/strftime.c: Assume strftime() exists.
74178
74179 2006-06-29  Derek Price  <derek@ximbiot.com>
74180
74181         * modules/c-bs-a: Removed - \a is C89.
74182         * MODULES.html.sh: Remove c-bs-a.
74183
74184 2006-06-29  Bruno Haible  <bruno@clisp.org>
74185
74186         * modules/wcwidth (License): Change to LGPL.
74187
74188 2006-06-28  Simon Josefsson  <jas@extundo.com>
74189
74190         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
74191         on _WIN32.
74192
74193         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
74194         getnameinfo.
74195
74196 2006-06-28  Simon Josefsson  <jas@extundo.com>
74197
74198         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
74199
74200 2006-06-28  Simon Josefsson  <jas@extundo.com>
74201
74202         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
74203         functions there.  It will succeed on Windows XP, but on Windows
74204         2000 and (presumably) earlier, it will fail, and use the internal
74205         re-implementation.
74206         (use_win32_p): New function.
74207         (getaddrinfo): Use strtoul on servname, to support numeric ports.
74208         Support AI_NUMERICSERV to disable getservbyname.
74209         (getnameinfo): New function, only supports
74210         NI_NUMERICHOST|NI_NUMERICSERV for now.
74211
74212         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
74213         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
74214         getnameinfo.
74215
74216 2006-06-28  Eric Blake  <ebb9@byu.net>
74217
74218         * modules/wcwidth: New file.
74219         * modules/mbchar (Depends-on): Add wcwidth.
74220         * modules/mbswidth (Depends-on): Add wcwidth.
74221         * MODULES.html.sh: Add wcwidth.
74222
74223 2006-06-28  Eric Blake  <ebb9@byu.net>
74224
74225         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
74226         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
74227
74228 2006-06-28  Eric Blake  <ebb9@byu.net>
74229
74230         * lib/xvasprintf.h: Fix comments.
74231
74232 2006-06-28  Eric Blake  <ebb9@byu.net>
74233
74234         * lib/mbchar.h (wcwidth): Include wcwidth.h.
74235         * lib/mbswidth.c (wcwidth): Move from here...
74236         * lib/wcwidth.h: ...to this new file.
74237
74238 2006-06-28  Derek R. Price  <derek@ximbiot.com>
74239
74240         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
74241
74242         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
74243         it's obsolete.
74244         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
74245
74246 2006-06-28  Derek R. Price  <derek@ximbiot.com>
74247
74248         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
74249         Autoconf 2.60 says this stuff was obsolete.
74250
74251 2006-06-28  Bruno Haible  <bruno@clisp.org>
74252
74253         * modules/wcwidth (Files): Add m4/wchar_t.m4.
74254
74255 2006-06-28  Bruno Haible  <bruno@clisp.org>
74256
74257         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
74258         gt_TYPE_WCHAR_T.
74259
74260 2006-06-28  Bruno Haible  <bruno@clisp.org>
74261
74262         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
74263         declaration for wcwidth.
74264         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
74265
74266 2006-06-28  Bruno Haible  <bruno@clisp.org>
74267
74268         * lib/mkdtemp.c [MINGW]: Include <io.h>.
74269         (mkdir): Define using _mkdir.
74270
74271 2006-06-28  Bruno Haible  <bruno@clisp.org>
74272
74273         * lib/getaddrinfo.h: Fix POSIX URL.
74274         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
74275         _WIN32.
74276         (use_win32_p): Make static.
74277         (getaddrinfo): Reject service name if it is empty or does not consist
74278         solely of decimal digits, or if its value is > 65535.
74279         (getnameinfo): Remove useless casts.
74280
74281 2006-06-27  Simon Josefsson  <jas@extundo.com>
74282
74283         * modules/sys_select: New file, suggested by Bruno Haible, Paul
74284         Eggert and Martin Lambers.
74285
74286 2006-06-27  Simon Josefsson  <jas@extundo.com>
74287
74288         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
74289         Eggert and Martin Lambers.
74290
74291 2006-06-27  Bruno Haible  <bruno@clisp.org>
74292
74293         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
74294         result to 0, not to empty.
74295         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
74296
74297 2006-06-27  Bruno Haible  <bruno@clisp.org>
74298
74299         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
74300
74301 2006-06-26  Simon Josefsson  <jas@extundo.com>
74302
74303         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
74304         present.
74305
74306 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
74307
74308         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
74309         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
74310         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
74311
74312 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
74313
74314         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
74315
74316 2006-06-26  Bruno Haible  <bruno@clisp.org>
74317
74318         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
74319
74320 2006-06-26  Bruno Haible  <bruno@clisp.org>
74321
74322         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
74323
74324 2006-06-26  Bruno Haible  <bruno@clisp.org>
74325
74326         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
74327         SGI C compiler in pre-C99 mode.
74328         Suggested by Mark D. Baushke and Larry Jones.
74329
74330 2006-06-26  Bruno Haible  <bruno@clisp.org>
74331
74332         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
74333         WCHAR_MAX.
74334         Reported by Mark D. Baushke and Larry Jones.
74335
74336 2006-06-26  Bruno Haible  <bruno@clisp.org>
74337
74338         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
74339         in pre-C99 mode.
74340         Suggested by Mark D. Baushke and Larry Jones.
74341
74342 2006-06-23  Simon Josefsson  <jas@extundo.com>
74343             Bruno Haible  <bruno@clisp.org>
74344
74345         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
74346         Emit mostlyclean-local rule.
74347         (func_emit_tests_Makefile_am): Likewise.
74348         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
74349
74350 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
74351
74352         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
74353
74354 2006-06-23  Bruno Haible  <bruno@clisp.org>
74355
74356         * tests/test-stdint.c: Update to match ISO C 99 Technical
74357         Corrigendum 1.
74358
74359 2006-06-23  Bruno Haible  <bruno@clisp.org>
74360
74361         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
74362
74363 2006-06-23  Bruno Haible  <bruno@clisp.org>
74364
74365         * lib/stdint_.h: Treat IRIX like OpenBSD.
74366
74367 2006-06-23  Bruno Haible  <bruno@clisp.org>
74368
74369         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
74370         ISO C 99 Technical Corrigendum 1.
74371
74372 2006-06-22  Simon Josefsson  <jas@extundo.com>
74373
74374         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
74375         MinGW.
74376
74377 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74378
74379         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
74380         needed.  Some compiler complained about some of them.  Problem reported
74381         by Larry Jones in
74382         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
74383
74384 2006-06-21  Simon Josefsson  <jas@extundo.com>
74385
74386         * tests/test-getaddrinfo.c: New file.
74387
74388         * modules/getaddrinfo-tests: New file.
74389
74390         * MODULES.html.sh: Add inet_pton.
74391
74392         * modules/inet_pton: New file.
74393
74394 2006-06-21  Simon Josefsson  <jas@extundo.com>
74395
74396         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
74397         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
74398         of using the (limited) gnulib implementation on Windows XP.
74399
74400         * m4/inet_pton.m4: New file.
74401
74402 2006-06-21  Simon Josefsson  <jas@extundo.com>
74403
74404         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
74405         variable.
74406
74407         * lib/socket_.h: Don't define WINVER.
74408
74409         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
74410         slightly modified to work in gnulib.
74411
74412 2006-06-21  Simon Josefsson  <jas@extundo.com>
74413
74414         * doc/gnulib.texi (Windows sockets): Add.
74415
74416 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
74417
74418         * lib/read-file.c (fread_file): Start with buffer allocation of
74419         0 bytes rather than 1 byte; this simplifies the code.
74420         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
74421         code to free buffer and save/restore errno.
74422         (internal_read_file): Remove unused local.
74423
74424 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
74425
74426         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
74427         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
74428         Problem reported by Denis Excoffier in
74429         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
74430
74431 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74432
74433         * modules/sys_socket, modules/socklen: Include sys/types since
74434         FreeBSD 4.x's sys/socket.h needs it.
74435
74436 2006-06-19  Simon Josefsson  <jas@extundo.com>
74437
74438         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
74439
74440 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
74441
74442         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
74443
74444 2006-06-19  Bruno Haible  <bruno@clisp.org>
74445
74446         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
74447         and FULL_PATH_INTTYPES_H in angle brackets.
74448         Reported by Mark D. Baushke <mdb@gnu.org>.
74449
74450 2006-06-17  Eric Blake  <ebb9@byu.net>
74451
74452         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
74453         errno.
74454
74455 2006-06-17  Bruno Haible  <bruno@clisp.org>
74456
74457         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
74458         <sys/inttypes.h>.
74459
74460 2006-06-17  Bruno Haible  <bruno@clisp.org>
74461
74462         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
74463         whether errno is declared. Assume <errno.h> declares errno.
74464
74465 2006-06-17  Bruno Haible  <bruno@clisp.org>
74466
74467         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
74468
74469 2006-06-17  Bruno Haible  <bruno@clisp.org>
74470
74471         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
74472         problem on Solaris 2.5.1.
74473
74474 2006-06-16  Eric Blake  <ebb9@byu.net>
74475
74476         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
74477         * lib/unicodeio.c [!defined errno]: Likewise.
74478         * lib/strtol.c [!defined errno]: Likewise.
74479         * lib/strtod.c [!defined errno]: Likewise.
74480
74481 2006-06-15  Eric Blake  <ebb9@byu.net>
74482
74483         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
74484
74485 2006-06-15  Eric Blake  <ebb9@byu.net>
74486
74487         * config/srclist.txt (ssize_t.m4): Lose sync.
74488
74489 2006-06-15  Bruno Haible  <bruno@clisp.org>
74490
74491         * modules/stdint (Files): Include m4/full-header-path.m4,
74492         m4/size_max.m4, m4/wchar_t.m4.
74493         (Makefile.am): Many more substitutions.
74494         * modules/stdint-tests: New file.
74495         * tests/test-stdint.c: New file.
74496
74497 2006-06-15  Bruno Haible  <bruno@clisp.org>
74498
74499         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
74500         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
74501         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
74502         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
74503         gl_CHECK_TYPE_SAME): New macros.
74504
74505 2006-06-15  Bruno Haible  <bruno@clisp.org>
74506
74507         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
74508
74509 2006-06-15  Bruno Haible  <bruno@clisp.org>
74510
74511         * lib/stdint_.h: Rewritten to be fully auto-configured.
74512         Fixes bug on HP-UX/IA64.
74513
74514 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
74515
74516         * lib/getdate.y (__attribute__): Don't define if already defined.
74517         Problem reported by Larry Jones.
74518         * lib/utimens.c (__attribute__): Likewise.
74519
74520 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
74521
74522         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
74523         reported by Andreas Schwab.
74524
74525 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74526             Bruno Haible  <bruno@clisp.org>
74527
74528         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
74529         check for the declaration of strnlen and a run test that exposes the
74530         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
74531         rpl_strndup.
74532
74533 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74534             Bruno Haible  <bruno@clisp.org>
74535
74536         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
74537
74538 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74539
74540         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
74541         compile test, for Tru64 4.0D.
74542
74543 2006-05-28  Karl Berry  <karl@gnu.org>
74544
74545         * config/srclist.txt (printf-args.c): lose sync.
74546
74547 2006-05-26  Martin Lambers  <marlam@marlam.de>
74548
74549         * lib/getpass.c: Updates the test for the native W32 API, and adds
74550         missing includes, thus fixing compilation warnings.
74551
74552 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
74553
74554         * lib/exclude.c (exclude_fnmatch): New function.
74555         (excluded_file_name): Call exclude_fnmatch.
74556         * lib/exclude.h (excluded_file_name): New prototype
74557
74558 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
74559
74560         * lib/tempname.c (small_open, large_open): New macros.
74561         (__open, __open64) [!_LIBC]: Remove.
74562         (__gen_tempname): Use small_open and large_open instead of __open
74563         and __open64.  This fixes a portability bug on HP-UX 11.11i
74564         reported by Simon Wing-Tang in
74565         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
74566
74567 2006-05-24  Bruno Haible  <bruno@clisp.org>
74568
74569         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
74570         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
74571         Reported by Thorsten Maerz <torte@netztorte.de> via
74572         Aaron Stone <aaron@serendipity.cx>.
74573
74574 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
74575
74576         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
74577         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
74578         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
74579         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
74580         not really conditional on the cache.
74581         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
74582
74583 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
74584
74585         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
74586         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
74587         (my_usleep): Don't mishandle maximum value.
74588
74589 2006-05-19  Jim Meyering  <jim@meyering.net>
74590
74591         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
74592
74593 2006-05-17  Bruno Haible  <bruno@clisp.org>
74594
74595         Cygwin portability.
74596         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
74597
74598 2006-05-17  Bruno Haible  <bruno@clisp.org>
74599
74600         * lib/stdint_.h: Fix recognition of Cygwin.
74601
74602 2006-05-15  Bruno Haible  <bruno@clisp.org>
74603
74604         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
74605         on libtool patch by Ralf Wildenhues.
74606
74607 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
74608
74609         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
74610         test for C99 conformance; (bool) 0.5 is an integer constant
74611         expression, but (bool) -0.5 is not.  Problem reported by Fedor
74612         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
74613
74614 2006-05-11  Simon Josefsson  <jas@extundo.com>
74615
74616         * m4/xvasprintf.m4: Fix obvious typo.
74617
74618 2006-05-11  Jim Meyering  <jim@meyering.net>
74619
74620         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
74621         James Lemley.
74622
74623 2006-05-10  Simon Josefsson  <jas@extundo.com>
74624
74625         * lib/md4.c: Typo fix, update copyright years.
74626         (K1, K2): Don't use L because it turn computations into 64-bit on
74627         64-bit platforms.
74628
74629 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
74630
74631         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
74632         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
74633         unwanted sign propagation, e.g., on hosts with 64-bit int.
74634         There still are some problems with reeelly weird theoretical hosts
74635         (e.g., 33-bit int) but it's not worth worrying about now.
74636         * lib/sha1.c (rol): Likewise.
74637         (K1, K2, K3, K4): Remove unnecessary L suffix.
74638
74639 2006-05-10  Bruno Haible  <bruno@clisp.org>
74640
74641         * lib/des.c: Cast to avoid warnings.
74642
74643 2006-05-09  Bruno Haible  <bruno@clisp.org>
74644
74645         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
74646         (Depends-on): Depend also on xsize, stdarg.
74647         (configure.ac): Add gl_XVASPRINTF.
74648
74649 2006-05-09  Bruno Haible  <bruno@clisp.org>
74650
74651         * m4/xvasprintf.m4: New file.
74652
74653 2006-05-09  Bruno Haible  <bruno@clisp.org>
74654
74655         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
74656         (EOVERFLOW): Define fallback value.
74657         (xstrcat): New function.
74658         (xvasprintf): Recognize the special case of a string concatenation.
74659
74660 2006-05-08  Eric Blake  <ebb9@byu.net>
74661
74662         * gnulib-tool (func_version): Base copyright year on CVS date.
74663         (func_emit_copyright_notice): New function.
74664         (func_emit_lib_Makefile_am): Use it.
74665         (func_emit_tests_Makefile_am): Likewise.
74666         (func_import): Likewise.
74667
74668 2006-05-08  Bruno Haible  <bruno@clisp.org>
74669
74670         * modules/stdarg: New file.
74671         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
74672
74673 2006-05-08  Bruno Haible  <bruno@clisp.org>
74674
74675         * m4/stdarg.m4: New file, from GNU gettext.
74676
74677 2006-05-08  Bruno Haible  <bruno@clisp.org>
74678
74679         * config/srclist.txt (build-aux/config.rpath): different from latest
74680         release.
74681
74682 2006-05-08  Bruno Haible  <bruno@clisp.org>
74683
74684         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
74685
74686 2006-05-05  Jim Meyering  <jim@meyering.net>
74687
74688         * m4/warning.m4: New file, derived from bison's file by the same name.
74689
74690 2006-05-03  Bruno Haible  <bruno@clisp.org>
74691
74692         * lib/stdint_.h: Shorter URL.
74693         * lib/inttypes.h: Likewise.
74694
74695 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
74696
74697         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
74698
74699 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
74700
74701         * lib/verify.h: Document the internals better.  Most of this change
74702         was written by Bruno Haible.
74703
74704 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
74705
74706         * doc/verify.texi: New file, partly based on a proposal by
74707         Bruno Haible.
74708
74709 2006-05-02  Bruno Haible  <bruno@clisp.org>
74710
74711         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
74712         test from here...
74713         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
74714
74715 2006-04-29  Bruno Haible  <bruno@clisp.org>
74716
74717         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
74718         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
74719
74720 2006-04-29  Bruno Haible  <bruno@clisp.org>
74721
74722         * gnulib-tool: Make --update option actually work.
74723
74724 2006-04-29  Bruno Haible  <bruno@clisp.org>
74725
74726         * doc/gcd.texi: New file.
74727         * doc/gnulib.texi: Include it.
74728
74729 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
74730
74731         * lib/getdate.y (get_date): When adding relative date, start with the
74732         initial time, not with the result of the first mktime call.
74733
74734 2006-04-25  Bruno Haible  <bruno@clisp.org>
74735
74736         * gnulib-tool (func_import): Output the include directives in three
74737         blocks, sorted separately.
74738         Reported by Ben Pfaff <blp@cs.stanford.edu>.
74739
74740 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
74741
74742         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
74743         to define main with arguments, for C++.  Reported by Eric Blake.
74744         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
74745         Prefer 'int main ()' to 'int main (void)', for C++.
74746         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
74747         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
74748         for 'main', for C99 and C++.
74749
74750 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
74751
74752         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
74753         Don't assume that exit status -1 is valid.
74754         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74755         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
74756         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
74757         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
74758         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
74759         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
74760         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
74761         functions can be used without declaring them, or that you can
74762         exit with status -1.
74763         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
74764
74765 2006-04-24  Karl Berry  <karl@gnu.org>
74766
74767         * config/srclist.txt (longdouble.m4): sync lost.
74768
74769 2006-04-24  Eric Blake  <ebb9@byu.net>
74770
74771         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
74772
74773 2006-04-24  Bruno Haible  <bruno@clisp.org>
74774
74775         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
74776         poll() implementation in AIX.
74777         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74778
74779 2006-04-24  Bruno Haible  <bruno@clisp.org>
74780
74781         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
74782         assigned exactly once.
74783
74784 2006-04-23  Claudio Fontana  <claudio@gnu.org>
74785             Bruno Haible  <bruno@clisp.org>
74786
74787         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
74788         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
74789         for AM_CPPFLAGS.
74790
74791 2006-04-23  Bruno Haible  <bruno@clisp.org>
74792
74793         * modules/copy-file: Depend on unistd.
74794         * modules/execute: Likewise.
74795         * modules/fatal-signal: Likewise.
74796         * modules/findprog: Likewise.
74797         * modules/mkdtemp : Likewise.
74798         * modules/pipe: Likewise.
74799         * modules/wait-process: Likewise.
74800
74801 2006-04-23  Bruno Haible  <bruno@clisp.org>
74802
74803         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
74804         condition was already detected.
74805         Reported by Ben Pfaff <blp@cs.stanford.edu>.
74806
74807 2006-04-23  Bruno Haible  <bruno@clisp.org>
74808
74809         * lib/copy-file.c: Include <unistd.h> unconditionally.
74810         * lib/execute.c: Likewise.
74811         * lib/fatal-signal.c: Likewise.
74812         * lib/findprog.c: Likewise.
74813         * lib/mkdtemp.c: Likewise.
74814         * lib/pipe.h: Likewise.
74815         * lib/pipe.c: Likewise.
74816         * lib/wait-process.h: Likewise.
74817
74818 2006-04-23  Bruno Haible  <bruno@clisp.org>
74819
74820         * gnulib-tool (func_usage): Fix --import description. Document
74821         --update.
74822         (func_import): Create temporary file in a temporary directory, if
74823         --dry-run is specified. Silence errors from 'grep' when there are no
74824         m4 files in $m4dir.
74825         (func_create_testdir): Silence errors from 'grep' when there are no
74826         m4 files in $m4dir.
74827         Reported by Karl Berry <karl@freefriends.org>.
74828
74829 2006-04-20  Bruno Haible  <bruno@clisp.org>
74830
74831         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
74832         one argument, so that the code will be portable to Autoconf 2.60.
74833         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
74834         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
74835         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
74836
74837 2006-04-19  Derek Price  <derek@ximbiot.com>
74838             Eric Blake  <ebb9@byu.net>
74839
74840         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
74841         rather than "/full/path.h".  Update comment to match.  Shorten &
74842         generalize m4_translit call via AS_TR_CPP.
74843
74844 2006-04-19  Derek Price  <derek@ximbiot.com>
74845             Eric Blake  <ebb9@byu.net>
74846
74847         * lib/inttypes.h: Correct grammar in comment.
74848
74849 2006-04-18  Derek Price  <derek@ximbiot.com>
74850             Paul Eggert  <eggert@cs.ucla.edu>
74851
74852         * modules/inttypes: New file.
74853         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
74854
74855 2006-04-18  Derek Price  <derek@ximbiot.com>
74856             Paul Eggert  <eggert@cs.ucla.edu>
74857
74858         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
74859         New files.
74860
74861 2006-04-18  Derek Price  <derek@ximbiot.com>
74862             Paul Eggert  <eggert@cs.ucla.edu>
74863
74864         * lib/inttypes.h: New file.
74865         * lib/strtoimax.c: Assume <inttypes.h>.
74866
74867 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
74868
74869         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
74870         isn't mounted.  Problem reported by Kir Kolyshkin.
74871
74872 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
74873
74874         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
74875         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
74876         Derek R. Price.
74877         * lib/regex.h (RE_DUP_MAX): Update comment to match current
74878         implementation.
74879
74880 2006-04-12  Eric Blake  <ebb9@byu.net>
74881
74882         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
74883         is now done automatically by the corresponding Autoconf macro.
74884
74885 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
74886
74887         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
74888         time_r.h.
74889
74890 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74891
74892         Merge regex changes from libc, removing some of our
74893         POSIX-conformance changes that were rejected and redoing them in a
74894         less-intrusive way.
74895
74896         * lib/regcomp.c (re_compile_internal, init_dfa):
74897         Length arg is now size_t, not Idx.  All uses changed.
74898         (peek_token): Forward decl now says internal_function.
74899         (__re_error_msgid, __re_error_msgid_idx):
74900         Now static rather than extern with attribute_hidden.
74901         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
74902         For some reason libc prefers K&R style defns for external functions.
74903         (regerror) [!defined _LIBC]: Likewise.
74904         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
74905         (seek_collating_symbol_entry, lookup_collation_sequence_value):
74906         (build_range_exp, build_collating_symbol):
74907         Use K&R-style defn.
74908         (re_compile_fastmap): Use '\0' to memset, not 0.
74909         (utf8_sb_map): Make the calculations more obvious.
74910         (init_dfa, parse_bracket_exp, build_charclass_op):
74911         Call calloc and cast result, as glibc does.
74912         (init_word_char, fetch_token, peek_token, peek_token_bracket):
74913         (build_range_exp, build_collating_symbol):
74914         Now internal functions.
74915
74916         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
74917
74918         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
74919         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
74920         Don't depend on VMS; depend on __VMS instead, for POSIX
74921         namespace cleanness.
74922         (regoff_t): Define to ssize_t, not long int.
74923
74924         Remove the REG_ macros named below.  Instead, make the old names
74925         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
74926         __USE_GNU_REGEX.
74927         (REG_BACKSLASH_ESCAPE_IN_LISTS):
74928         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
74929         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
74930         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
74931         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
74932         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
74933         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
74934         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
74935         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
74936         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
74937         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
74938         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
74939         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
74940         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
74941         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
74942         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
74943         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
74944         (REG_NREGS):
74945         Remove.  All uses replaced by the old RE_* names.
74946         (RE_BACKSLASH_ESCAPE_IN_LISTS):
74947         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
74948         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
74949         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
74950         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
74951         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
74952         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
74953         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
74954         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
74955         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
74956         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
74957         Don't bother having these macros be independent of each others'
74958         values, since they no longer exist in the POSIX name space.
74959
74960         Rename the following member names back to their old names,
74961         unless !__USE_GNU_REGEX.  All uses changed back.
74962         (buffer): Renamed from re_buffer.
74963         (allocated): Renamed from re_allocated.
74964         (used): Renamed from re_used.
74965         (syntax): Renamed from re_syntax.
74966         (fastmap): Renamed from re_fastmap.
74967         (translate): Renamed from re_translate.
74968         (can_be_null): Renamed from re_can_be_null.
74969         (regs_allocated): Renamed from re_regs_allocated.
74970         (fastmap_accurate): Renamed from re_fastmap_accurate.
74971         (no_sub): Renamed from re_no_sub.
74972         (not_bol): Renamed from re_not_bol.
74973         (not_eol): Renamed from re_not_eol.
74974         (newline_anchor): Renamed from re_newline_anchor.
74975         (num_regs): Renamed from rm_num_regs.
74976         (start): Renamed from rm_start.
74977         (end): Renamed from rm_end.
74978
74979         (free_state): Move up a bit.
74980
74981         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
74982         #define to be empty.
74983         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
74984         when that is what is intended.
74985         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
74986         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
74987         (MAX): New macro.
74988         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
74989         All uses changed back to re_malloc, etc.  It's now the caller's
74990         responsibility to check for overflow; all callers changed.
74991         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
74992         (re_x2nrealloc): Remove.
74993         (free_state): Remove decl.
74994
74995         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
74996         (re_set_registers, re_exec):
74997         Use K&R-style defn.
74998
74999         2006-01-31  Roland McGrath  <roland@redhat.com>
75000
75001         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
75002         Reported by Mike Frysinger <vapier@gentoo.org>.
75003
75004         2006-01-15  Andreas Jaeger  <aj@suse.de>
75005
75006         [BZ #1950]
75007         * lib/regex_internal.c (re_string_reconstruct): Adjust for
75008         build_wcs_upper_buffer change.
75009         (build_wcs_upper_buffer): Change return type.
75010
75011         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
75012
75013         * lib/regex_internal.h: Include <stdint.h> if available.
75014
75015         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
75016
75017         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
75018
75019         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
75020
75021         * lib/regcomp.c: Adjust for changed secondary hash function.
75022
75023         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
75024
75025         * lib/regex.h: Pretty printing.
75026         Clean up namespace a bit.
75027
75028         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
75029
75030         * lib/regexec.c (update_cur_sifted_state, check_arrival,
75031         check_arrival_add_next_nodes): Avoid using uninitialized variable.
75032
75033         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75034                     Ulrich Drepper  <drepper@redhat.com>
75035
75036         [BZ #1302]
75037         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
75038         changed.
75039         (bitset_word_t): Renamed from bitset_word.  All uses changed.
75040
75041         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
75042
75043         [BZ #281]
75044         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
75045         * lib/regcomp.c: Remove unnecessary uses of
75046         unsigned RE_TRANSLATE_TYPE.
75047         * lib/regex_internal.h: Likewise.
75048         * lib/regex_internal.c: Likewise.
75049         * lib/regexec.c: Likewise.
75050         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
75051
75052         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
75053
75054         * lib/regexec.c (find_recover_state): Remove unnecessary
75055         initialization.
75056         (transit_state_bkref): Make DFA a const pointer.
75057         (get_subexp): Likewise.
75058         (check_arrival): Likewise.
75059         (update_cur_sifted_state): Likewise.
75060         (re_search_internal): Likewise.
75061         (prune_impossible_nodes): Likewise.
75062         (acquire_init_state_context): Likewise.
75063         (proceed_next_node): Likewise.
75064         (set_regs): Likewise.
75065         (free_fail_stack_return): Likewise.
75066         (check_arrival_expand_ecl): Mark DFA parameter as const.
75067         (check_arrival_expand_ecl_sub): Likewise.
75068         (check_subexp_limits): Likewise.
75069         (sub_epsilon_src_nodes):  Likewise.
75070         (add_epsilon_src_nodes):  Likewise.
75071         (merge_state_array): Likewise.
75072         (update_regs): Likewise.
75073         (build_trtable): Likewise.
75074         (sift_states_backward): Mark MCTX parameter as const.
75075         (build_sifted_states): Likewise.
75076         (update_cur_sifted_state): Likewise.
75077         (sift_states_mkref): Likewise.
75078         (check_arrival_expand_ecl): Mark eclosure as const.
75079         (check_dst_limits_calc_pos_1): Likewise.
75080         * lib/regex_internal.h (re_match_context_t): Make dfa a const
75081         pointer.
75082
75083         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
75084
75085         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
75086         (transit_state_sb): Likewise.
75087         (transit_state_mb): Likewise.
75088         (sift_states_iter_mb): Likewise.
75089         (check_arrival_add_next_nodes): Likewise.
75090         (check_node_accept_bytes): Change first parameter to pointer-to-const.
75091         [_LIBC] (re_search_2_stub): Use mempcpy.
75092
75093         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
75094         mbrtowc for very simple UTF-8 case.
75095
75096         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
75097         a pointer-to-const.
75098         (re_acquire_state_context): Likewise.
75099         * lib/regex_internal.h: Adjust prototypes.
75100
75101         * lib/regex.c: Prevent using C++ compilers.
75102
75103         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
75104         (re_acquire_state_context): Likewise.
75105
75106 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
75107
75108         * modules/regex (Depends-on): Add ssize_t.
75109
75110 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
75111
75112         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
75113         translation table.
75114
75115 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
75116
75117         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
75118
75119 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
75120             Bruno Haible  <bruno@clisp.org>
75121
75122         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
75123         <sys/types.h> and <inttypes.h>.
75124
75125 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75126
75127         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
75128         `__error_t_defined', so argp.h will not typedef the former.
75129
75130 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
75131
75132         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
75133         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
75134         glibc names.  Even if glibc is changed to conform to POSIX, the
75135         traditional names will be available anyway, since regex depends on
75136         the extensions module.  Also, fix a longstanding typo in the
75137         implementation of Spencer ERE test #75 from grep 2.3.  Problems
75138         reported by Emanuele Giaquinta.  Also, change sense of cached
75139         variable, so that the message makes sense.
75140
75141 2006-03-24  Simon Josefsson  <jas@extundo.com>
75142
75143         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
75144         including some doc fixes.
75145         (base64_encode_alloc): Fix +1 bug on allocation failures.
75146
75147 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75148
75149         * lib/base64.c (base64_encode): Do not read past end of array with
75150         unsanitized input on systems with CHAR_BIT > 8.
75151
75152 2006-03-24  Eric Blake  <ebb9@byu.net>
75153
75154         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
75155
75156 2006-03-22  Karl Berry  <karl@gnu.org>
75157
75158         * config/srclist.txt (*setenv.[ch]): get from coreutils.
75159         * config/srclistvars.sh (COREUTILS): new var.
75160
75161 2006-03-17  Jim Meyering  <jim@meyering.net>
75162
75163         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
75164         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
75165
75166 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
75167
75168         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
75169         no longer needs it.  Instead, check that regoff_t is as least
75170         as wide as ptrdiff_t.
75171
75172         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
75173         so that our regex.h stays compatible with the installed regex.
75174         This is helpful for installers who configure --without-included-regex.
75175         Problem reported by Emanuele Giaquinta.
75176
75177 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
75178
75179         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
75180         Typedef to long int, not to off_, as POSIX will likely change
75181         in that direction.
75182
75183 2006-03-15  Eric Blake  <ebb9@byu.net>
75184
75185         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
75186
75187 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
75188
75189         * lib/argp-help.c (validate_uparams): Fix typo
75190         * lib/argp-parse.c (argp_default_options): Consistently begin help
75191         messages with a lowercase letter.
75192
75193 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
75194
75195         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
75196         overrun buffers and shouldn't be used (much as gets shouldn't be
75197         used).
75198         * lib/time_r.c (asctime_r, ctime_r): Likewise.
75199
75200 2006-03-08  Simon Josefsson  <jas@extundo.com>
75201
75202         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
75203         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75204
75205 2006-03-08  Simon Josefsson  <jas@extundo.com>
75206
75207         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
75208         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75209
75210 2006-03-08  Simon Josefsson  <jas@extundo.com>
75211
75212         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
75213         signal that configure disabled the device.
75214
75215 2006-03-08  Simon Josefsson  <jas@extundo.com>
75216
75217         * build-aux/maint.mk: Fix refresh-po, to handle no translated
75218         languages.
75219
75220 2006-03-07  Simon Josefsson  <jas@extundo.com>
75221
75222         * modules/getopt (Depends-on): Add unistd.
75223
75224         * modules/unistd: New file.
75225
75226 2006-03-07  Simon Josefsson  <jas@extundo.com>
75227
75228         * modules/gc-random: New file.
75229
75230 2006-03-07  Simon Josefsson  <jas@extundo.com>
75231
75232         * m4/unistd_h.m4: New file.
75233
75234 2006-03-07  Simon Josefsson  <jas@extundo.com>
75235
75236         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
75237         test to be side-effect free by storing the result in the cache
75238         variable gl_cv_lib_readline, and moving the assignment of
75239         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
75240         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75241
75242 2006-03-07  Simon Josefsson  <jas@extundo.com>
75243
75244         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
75245         error on missing devices (the functions will return an error).
75246
75247         * m4/gc.m4: Move random stuff to gc-random.m4
75248
75249 2006-03-07  Simon Josefsson  <jas@extundo.com>
75250
75251         * lib/unistd_.h: New file.
75252
75253 2006-03-07  Simon Josefsson  <jas@extundo.com>
75254
75255         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
75256
75257 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
75258
75259         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
75260         Problem reported by Juan Manuel Guerrero.
75261
75262 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
75263
75264         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
75265         the unistd module.
75266         * lib/getlogin_r.c: Likewise.
75267         * lib/getlogin_r.h: Likewise.
75268         * lib/glob.c: Likewise.
75269         * lib/pagealign_alloc.c: Likewise.
75270         * lib/unistd_.h: Remove; no longer needed.
75271
75272 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
75273
75274         * MODULES.html.sh (Support for systems lacking POSIX:2001):
75275         Add unistd.
75276         * modules/c-stack (Depends-on): Add unistd.
75277         * modules/getlogin_r: Likewise.
75278         * modules/glob: Likewise.
75279         * modules/pagealign_alloc: Likewise.
75280         * modules/unistd (Files): Remove lib/unistd_.h.
75281         (EXTRA_DIST): Remove.
75282         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
75283         need unistd_.h.
75284         (MOSTLYCLEANFILES): Remove unistd.h-t.
75285
75286 2006-03-03  Simon Josefsson  <jas@extundo.com>
75287
75288         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
75289
75290 2006-03-03  Simon Josefsson  <jas@extundo.com>
75291
75292         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
75293         libidn and bison.
75294
75295 2006-03-03  Simon Josefsson  <jas@extundo.com>
75296
75297         * build-aux/maint.mk: Add indent target.
75298
75299 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
75300
75301         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
75302         our replacement poll.h in any case, to avoid a differing
75303         declaration from a system header.  Seen on AIX.
75304
75305 2006-03-01  Simon Josefsson  <jas@extundo.com>
75306
75307         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
75308         <kasal@ucw.cz>.
75309
75310 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75311
75312         * modules/gettime (Depends-on): Add extensions module.
75313         * modules/nanosleep (Depends-on): Likewise.
75314         * modules/settime (Depends-on): Likewise.
75315
75316 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75317
75318         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
75319         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
75320         pedantically.
75321         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75322         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
75323
75324         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
75325         not "==".  Reported by Ralf Wildenhues.
75326
75327 2006-03-01  Karl Berry  <karl@gnu.org>
75328
75329         * doc/Copyright/request-*: new files, synced from gnuorg.
75330
75331 2006-03-01  Karl Berry  <karl@gnu.org>
75332
75333         * config/srclist.txt (Copyright/*): new entries.
75334
75335 2006-02-28  Simon Josefsson  <jas@extundo.com>
75336
75337         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
75338
75339 2006-02-27  Simon Josefsson  <jas@extundo.com>
75340
75341         * lib/base64.h: Indent #define's.  From Jim Meyering
75342         <jim@meyering.net>.
75343
75344 2006-02-27  Jim Meyering  <jim@meyering.net>
75345
75346         Revert the change of 2006-02-24, so these files can continue
75347         to be sync'd from gettext.
75348         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
75349         of `config.h'.
75350
75351 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
75352
75353         * modules/intprops: New file.
75354         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
75355         Add intprops.
75356         * modules/getloadavg (Files): Remove lib/intprops.h.
75357         (Depends-on): Add intprops.
75358         * modules/human: Likewise.
75359         * modules/inttostr: Likewise.
75360         * modules/openat: Likewise.
75361         * modules/sig2str: Likewise.
75362         * modules/userspec: Likewise.
75363         * modules/utimecmp: Likewise.
75364         * modules/xnanosleep: Likewise.
75365         * modules/xstrtol: Likewise.
75366
75367 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
75368
75369         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
75370         * modules/lock-tests (TESTS): Use $(EXEEXT).
75371         * modules/tls-tests: Likewise.
75372         * modules/argp-tests: Likewise.
75373         (check_PROGRAMS): New var, replacing...
75374         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
75375
75376 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75377
75378         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
75379         `config.h'.
75380
75381 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
75382
75383         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
75384
75385 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75386
75387         Sync from coreutils.
75388         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
75389         gl_CHDIR_SAFER.
75390
75391 2006-02-22  Jim Meyering  <jim@meyering.net>
75392
75393         Sync from coreutils.
75394         * m4/chdir-safer.m4: New file.
75395
75396 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
75397
75398         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
75399         AT_FDCWD exceeds INT_MAX.
75400         * lib/openat.h (AT_FDCWD): Likewise.
75401
75402 2006-02-17  Eric Blake  <address@hidden>
75403
75404         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
75405
75406 2006-02-16  Simon Josefsson  <jas@extundo.com>
75407
75408         * modules/getaddrinfo (Depends-on): Add sys_socket.
75409
75410 2006-02-15  Simon Josefsson  <jas@extundo.com>
75411
75412         * build-aux/maint.mk: Add dsyntax-check rule.
75413
75414 2006-02-15  Eric Blake  <ebb9@byu.net>
75415
75416         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
75417         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
75418         'present but cannot compile' warnings on cygwin.
75419         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
75420         use ws2tcpip.h if sys/socket.h works.
75421         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
75422         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
75423
75424 2006-02-14  Simon Josefsson  <jas@extundo.com>
75425
75426         * modules/maintainer-makefile (Files): Rename.
75427
75428         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
75429         and (the local) Makefile.cfg to maint-cfg.mk.
75430
75431         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
75432         to the latter.
75433
75434         * modules/maintainer-makefile: New module.
75435
75436         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
75437         severaly stripped to make it possible to build it up from scratch
75438         with reliable tests.
75439
75440         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
75441         fixes to permit overriding the default actions when configure and
75442         makefile are not available.
75443
75444 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
75445
75446         Sync from coreutils.
75447         * modules/lstat (Depends-on): Don't depend on xalloc.
75448         (License): Change from GPL to LGPL, since this is now simply a
75449         replacement for a libc function.
75450
75451 2006-02-14  Jim Meyering  <jim@meyering.net>
75452
75453         Sync from coreutils.
75454
75455         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
75456         failure on deficient systems, and simplify gnulib lgpl dependencies.
75457         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
75458         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
75459
75460         * lib/xalloc-die.c: Remove unused definition of N_.
75461
75462 2006-02-14  Jim Meyering  <jim@meyering.net>
75463
75464         Sync from coreutils.
75465         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
75466         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
75467         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
75468         double-quote uses of that variable, to accommodate the rare case in
75469         which getmntent is available in none of the libraries checked.  This
75470         happens at least on FreeBSD 5.0.
75471
75472 2006-02-13  Simon Josefsson  <jas@extundo.com>
75473
75474         * gnulib-tool (Usage): Fix --import, from
75475         karl@freefriends.org (Karl Berry).
75476
75477 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
75478
75479         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
75480
75481 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
75482
75483         * lib/argp-namefrob.h: Restore changes accidentally lost during the
75484         "autoupdate" on 2005-12-12.
75485
75486 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
75487
75488         * modules/closeout (Depends-on): Remove atexit.
75489
75490 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
75491
75492         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
75493         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
75494
75495 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
75496
75497         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
75498         __EXTENSIONS__ if this causes compilation to fail.  Problem
75499         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
75500         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
75501
75502 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
75503
75504         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
75505         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
75506         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
75507         All uses changed.
75508
75509 2006-01-26  Simon Josefsson  <jas@extundo.com>
75510
75511         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
75512         prototype is visible on mingw32.
75513
75514         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
75515         for mingw32.
75516
75517         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
75518         mingw32).
75519
75520 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
75521
75522         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
75523         attempt to open for write; this always fails, at least on POSIX
75524         hosts.  This reinstates the 2006-01-09 change, which was
75525         inadvertently removed.
75526
75527 2006-01-26  Bruno Haible  <bruno@clisp.org>
75528
75529         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
75530         Reported by Paul Eggert.
75531
75532 2006-01-26  Bruno Haible  <bruno@clisp.org>
75533             Paul Eggert  <eggert@cs.ucla.edu>
75534
75535         * lib/stdbool_.h (_Bool)
75536         [(! (defined __cplusplus || defined __BEOS__)
75537           && !defined __GNUC__
75538           && !(defined __HP_cc || defined __xlc__
75539                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
75540                || defined __sgi))]:
75541         #define to signed char in these cases too; this simplifies
75542         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
75543         etc., separately) and makes it more conservative.
75544
75545 2006-01-25  Simon Josefsson  <jas@extundo.com>
75546
75547         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
75548         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
75549         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
75550
75551 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
75552
75553         * lib/argp-namefrob.h: Bugfix. Remove stray #
75554
75555 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
75556
75557         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
75558         so that we test the test.
75559         Check for yet another HP-UX cc bug involving *bool |= bool.
75560
75561 2006-01-25  Karl Berry  <karl@gnu.org>
75562
75563         * config/srclist.txt (vasnprintf.c): sync lost.
75564
75565 2006-01-25  Jim Meyering  <jim@meyering.net>
75566
75567         Sync from the stable (b5) branch of coreutils:
75568
75569         * lib/fts.c (fts_children): Don't let close() clobber errno from
75570         failed fchdir().
75571
75572         * lib/fts.c (fts_stat): When following a symlink-to-directory,
75573         don't necessarily interpret stat-fails+lstat-succeeds as indicating
75574         a dangling symlink.  That can also happen at least for ELOOP.
75575         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
75576         FYI, this bug predates the inclusion of fts.c in coreutils.
75577
75578         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
75579         in their own block, so pre-c99 compilers don't object.
75580
75581         Avoid the double-free (first in fts_read, second in fts_close) that
75582         would occur when an `active' directory is made inaccessible (e.g.,
75583         via chmod a-x) during a traversal.
75584         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
75585         before returning.  Reproduce this failure by
75586         mkdir -p a/b; cd a; chmod a-x . b
75587         Reported by Stavros Passas.
75588
75589 2006-01-25  Jim Meyering  <jim@meyering.net>
75590
75591         * lib/fileblocks.c: Remove more useless parentheses.
75592         * lib/readutmp.h: Likewise.
75593
75594 2006-01-25  Bruno Haible  <bruno@clisp.org>
75595
75596         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
75597         warnings.
75598         Reported by Paul Eggert.
75599
75600 2006-01-25  Bruno Haible  <bruno@clisp.org>
75601
75602         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
75603         rid of a trap command. For Solaris sh.
75604         Reported by Mark D. Baushke <mdb@gnu.org>.
75605
75606 2006-01-24  Simon Josefsson  <jas@extundo.com>
75607
75608         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
75609         Bruno.
75610
75611 2006-01-24  Karl Berry  <karl@gnu.org>
75612
75613         * config/srclist.txt (argp-namefrob.h): sync lost.
75614
75615 2006-01-24  Jim Meyering  <jim@meyering.net>
75616
75617         * modules/openat (Files): Add lib/intprops.h.
75618         From Mark D. Baushke.
75619
75620 2006-01-24  Jim Meyering  <jim@meyering.net>
75621
75622         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
75623         Reported by Mark D. Baushke.
75624
75625 2006-01-24  Jim Meyering  <jim@meyering.net>
75626
75627         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
75628
75629 2006-01-24  Bruno Haible  <bruno@clisp.org>
75630
75631         * modules/strnlen (Maintainer): Change from glibc to all.
75632
75633 2006-01-24  Bruno Haible  <bruno@clisp.org>
75634
75635         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
75636         Patch by Paul Eggert.
75637
75638 2006-01-24  Bruno Haible  <bruno@clisp.org>
75639
75640         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
75641         already has it.
75642         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
75643         2005-11-26.
75644
75645         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
75646         'signed char' to avoid problems with the built-in _Bool type.
75647         Reported by Paul Eggert on 2005-11-26.
75648
75649 2006-01-24  Bruno Haible  <bruno@clisp.org>
75650
75651         * gnulib-tool (func_import): Avoid constructing complicated sed
75652         expressions inside backquote.
75653         Report and solution by Mark D. Baushke <mdb@gnu.org>.
75654
75655 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
75656
75657         These changes imported from libc.
75658         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
75659         test and two separate function calls.
75660         * lib/strndup.c (__strndup): Add libc_hidden_def.
75661
75662 2006-01-23  Simon Josefsson  <jas@extundo.com>
75663
75664         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
75665         Remove the test_*_SOURCES variable: automake infers it by default.
75666         * modules/tls-tests: Likewise.
75667
75668 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75669
75670         Work around porting bugs reported by Dieter in
75671         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
75672         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
75673         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
75674         Include "getopt.h" first, to check interface.
75675         (getenv): Declare only if defined HAVE_DECL_GETENV &&
75676         !HAVE_DECL_GETENV.
75677         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
75678         (__strndup): Revert to K&R-style function dfns, the glibc style.
75679         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
75680         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
75681         Include strnlen.h first, to get prototype properly.
75682         (strnlen): Renamed from __strnlen.
75683         Remove weak alias.
75684
75685 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75686
75687         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
75688
75689 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75690
75691         * config/srclist.txt: Adjust to reflect glibc reorganization.
75692         This affects only comments.
75693
75694 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75695
75696          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
75697          Reported by Bruce Korb <bkorb@gnu.org>.
75698
75699 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
75700
75701         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
75702         to pacify gcc -Wswitch-default.
75703
75704 2006-01-22  Bruno Haible  <bruno@clisp.org>
75705
75706         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
75707         temporary buffer for sprintf, take into account the precision also
75708         for 'd', 'i', 'u', 'o', 'x', 'X'.
75709
75710 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
75711
75712         * modules/argp-tests: New module
75713         * tests/test-argp.c: New file
75714         * tests/test-argp-2.sh: New file
75715
75716 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
75717
75718         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
75719         (__argp_base_name): Removed
75720         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
75721         typo.
75722         (__argp_base_name): Provide macro definition or extern declaration
75723         depending on the configuration
75724
75725 2006-01-20  Simon Josefsson  <jas@extundo.com>
75726
75727         * modules/inet_ntop (Depends-on): Depend on sys_socket.
75728
75729 2006-01-20  Simon Josefsson  <jas@extundo.com>
75730
75731         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
75732
75733 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75734
75735         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
75736         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
75737         Suggested by Bruno Haible.
75738
75739 2006-01-20  Karl Berry  <karl@gnu.org>
75740
75741         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
75742         until changes propagate, I guess.
75743
75744 2006-01-19  Simon Josefsson  <jas@extundo.com>
75745
75746         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
75747
75748 2006-01-19  Simon Josefsson  <jas@extundo.com>
75749
75750         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
75751
75752 2006-01-19  Simon Josefsson  <jas@extundo.com>
75753
75754         * gnulib-tool: Set check_PROGRAMS.
75755
75756         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
75757         modules/des-tests, modules/gc-arcfour-tests,
75758         modules/gc-arctwo-tests, modules/gc-des-tests,
75759         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
75760         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
75761         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
75762         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
75763         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
75764         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
75765         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
75766         test_*_SOURCES.
75767
75768 2006-01-18  Simon Josefsson  <jas@extundo.com>
75769
75770         * modules/socklen (Depends-on): Depend on sys_socket.
75771
75772 2006-01-18  Simon Josefsson  <jas@extundo.com>
75773
75774         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
75775         modules/des-tests, modules/gc-arcfour-tests,
75776         modules/gc-arctwo-tests, modules/gc-des-tests,
75777         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
75778         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
75779         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
75780         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
75781         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
75782         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
75783         $(EXEEXT) to automake TESTS variable, for mingw32.
75784
75785 2006-01-17  Simon Josefsson  <jas@extundo.com>
75786
75787         * modules/socklen (Include): Need sys/socket.h.
75788
75789 2006-01-17  Bruno Haible  <bruno@clisp.org>
75790
75791         * modules/ssize_t (Include): Add <sys/types.h>.
75792
75793 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
75794
75795         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
75796         it's not portable and it doesn't work with cross-compiles.
75797         Problem reported by Bruno Haible.  Fix missing-$ typo in
75798         'test "gl_cv_ignore_unused_libraries" ...' that prevented
75799         -zignore from being used with Sun's C compiler.
75800
75801 2006-01-12  Simon Josefsson  <jas@extundo.com>
75802
75803         * lib/base64.c: Fix warning, reported by Bruno Haible
75804         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
75805
75806 2006-01-12  Bruno Haible  <bruno@clisp.org>
75807
75808         * modules/ldd: New file.
75809         * build-aux/ldd.sh.in: New file.
75810         * MODULES.html.sh (Support for building libraries and executables): Add
75811         ldd.
75812
75813 2006-01-12  Bruno Haible  <bruno@clisp.org>
75814
75815         * m4/ldd.m4: New file.
75816
75817 2006-01-12  Bruno Haible  <bruno@clisp.org>
75818
75819         * gnulib-tool (func_import, func_create_testdir): Don't go into an
75820         endless loop while replacing $auxdir with build-aux.
75821
75822 2006-01-11  Simon Josefsson  <jas@extundo.com>
75823
75824         * lib/stdint_.h (SIZE_MAX): Add missing (.
75825
75826 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
75827
75828         Sync from coreutils.
75829         * lib/md5.c: Fix commentary typos.
75830         (alignof, UNALIGNED_P): No need for a GCC-specific version.
75831         * lib/md5.h (__attribute__): Remove; unused.
75832         * lib/sha1.c: Fix commentary to match md5 better.
75833         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
75834         so that we don't need to worry about alignment.  All uses changed.
75835         This merges the 2005-10-28 md5 change into sha1.
75836
75837 2006-01-11  Jim Meyering  <jim@meyering.net>
75838
75839         Sync from coreutils.
75840         * lib/md5.c (OP): Fix spacing.
75841
75842 2006-01-11  Bruno Haible  <bruno@clisp.org>
75843
75844         Ensure automatic ordering between gl_LOCK and gl_ARGP.
75845         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
75846         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
75847
75848 2006-01-11  Bruno Haible  <bruno@clisp.org>
75849
75850         Ensure automatic ordering between gl_LOCK and gl_ARGP.
75851         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
75852         the "early" section as well.
75853
75854 2006-01-11  Bruno Haible  <bruno@clisp.org>
75855
75856         Avoid "ar: no archive members specified" error on MacOS X.
75857         * gnulib-tool (func_modules_add_dummy): New function.
75858         (func_import, func_create_testdir): Invoke it.
75859
75860 2006-01-11  Bruno Haible  <bruno@clisp.org>
75861
75862         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
75863         with $auxdir in AC_CONFIG_FILES statements.
75864
75865 2006-01-11  Bruno Haible  <bruno@clisp.org>
75866
75867         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75868         Initialize also noinst_HEADERS to empty.
75869
75870 2006-01-11  Bruno Haible  <bruno@clisp.org>
75871
75872         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
75873         variables.
75874         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
75875         autoreconf.
75876
75877 2006-01-11  Bruno Haible  <bruno@clisp.org>
75878
75879         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
75880         overridable by the user.
75881         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75882
75883 2006-01-10  Simon Josefsson  <jas@extundo.com>
75884
75885         * modules/sys_socket: New file.
75886
75887 2006-01-10  Simon Josefsson  <jas@extundo.com>
75888
75889         * m4/sys_socket_h.m4: New file.
75890
75891 2006-01-10  Simon Josefsson  <jas@extundo.com>
75892
75893         * lib/socket_.h: New file.
75894
75895 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75896
75897         * modules/readutmp (Maintainer): Add myself.
75898
75899 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75900
75901         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
75902         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
75903         People who are still concerned with buggy memcmp implementations
75904         can invoke gl_FUNC_MEMCMP themselves.
75905
75906 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75907
75908         * lib/regex_internal.h (BITSET_WORD_BITS):
75909         Work around a bug in 64-bit PGC (before version 6.1-2), where the
75910         preprocessor mishandles large unsigned values as if they were signed.
75911         Problem reported by Claudio Fontana in
75912         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
75913
75914 2006-01-10  Jim Meyering  <jim@meyering.net>
75915
75916         Avoid the double-free (first in fts_read, second in fts_close) that
75917         would occur when an `active' directory is made inaccessible (e.g.,
75918         via chmod a-x) during a traversal.
75919         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
75920         before returning.  Reproduce this failure by
75921         mkdir -p a/b; cd a; chmod a-x . b
75922         Reported by Stavros Passas.
75923
75924         Sync from coreutils.
75925         * lib/sha1.c: Tweak grammar in a comment.
75926
75927 2006-01-10  Jim Meyering  <jim@meyering.net>
75928
75929         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
75930         Patch by Joerg Sonnenberger.
75931
75932 2006-01-10  Bruno Haible  <bruno@clisp.org>
75933
75934         * modules/readutmp: Depend on module free.
75935         * modules/strtok_r: Depend on module restrict.
75936
75937 2006-01-10  Bruno Haible  <bruno@clisp.org>
75938
75939         * modules/gettext (configure.ac): Add an invocation of
75940         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
75941
75942 2006-01-10  Bruno Haible  <bruno@clisp.org>
75943
75944         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
75945         Reported by Werner Lemberg <wl@gnu.org>.
75946
75947 2006-01-10  Bruno Haible  <bruno@clisp.org>
75948
75949         * lib/localcharset.c: Update from GNU gettext.
75950
75951 2006-01-10  Bruno Haible  <bruno@clisp.org>
75952
75953         * lib/argp.h (__const): Remove macro. Use const instead.
75954         * lib/argp-fmtstream.h (__const): Likewise.
75955         * lib/glob_.h (__const): Remove macro.
75956         * lib/glob-libc.h: Use const instead of __const.
75957
75958 2006-01-10  Bruno Haible  <bruno@clisp.org>
75959
75960         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
75961         variable.
75962         Needed to avoid an automake error regarding the 'gettext' module.
75963
75964 2006-01-09  Simon Josefsson  <jas@extundo.com>
75965
75966         * modules/inet_ntop (Depends-on): Add restrict.
75967
75968 2006-01-09  Simon Josefsson  <jas@extundo.com>
75969
75970         * modules/gc-rijndael-tests (License): Put under LGPL.
75971
75972         * modules/gc-des-tests (License): Likewise.
75973
75974         * modules/gc-arcfour-tests (License): Likewise.
75975
75976         * modules/gc-arctwo-tests (License): Likewise.
75977
75978         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
75979
75980         * modules/gc-hmac-sha1-tests (Files): Likewise.
75981
75982         * modules/gc-hmac-md5-tests (License): Likewise.
75983
75984         * modules/gc-sha1-tests (License): Likewise.
75985
75986         * modules/gc-md5-tests (License): Likewise.
75987
75988         * modules/gc-md4-tests (License): Likewise.
75989
75990         * modules/gc-md2-tests (License): Likewise.
75991
75992         * modules/gc-tests (License): Likewise.
75993
75994         * modules/des-tests (License): Likewise.
75995
75996         * modules/md4-tests (License): Likewise.
75997
75998         * modules/md2-tests (License): Likewise.
75999
76000 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
76001
76002         Sync from coreutils:
76003
76004         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
76005         * modules/lib-ignore: New file.
76006         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
76007         chdir-safer.m4, lchmod.m4.
76008         * modules/openat: Add mkdirat.c, openat-priv.h.
76009
76010 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
76011
76012         Sync from coreutils.
76013         * m4/lib-ignore.m4: New file.
76014         * m4/lchmod.m4: New file.
76015
76016 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
76017
76018         Sync from coreutils.
76019         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
76020         for write access: POSIX says that must fail.
76021         * lib/fts.c (diropen): Likewise.
76022         * lib/save-cwd.c (save_cwd): Likewise.
76023         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
76024         well, for minor improvements on hosts that lack O_DIRECTORY.
76025         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
76026         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
76027         Fall back on chown if open failed with EACCES.
76028
76029         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
76030         Report an error at compile-time if only a 1-second nominal clock
76031         resolution is found.
76032
76033         * lib/lchmod.h: New file.
76034         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
76035         (make_dir_parents): Use lchown rather than chown, and
76036         lchmod rather than chmod.
76037
76038         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
76039         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
76040         "proc" reported by n0dalus.
76041
76042         * lib/mountlist.c: Include <limits.h>.
76043         (dev_from_mount_options)
76044         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
76045         New function.  It no longer assumes "dev=" has the System V meaning
76046         on Linux (since it doesn't).  It also parses "dev=" more carefully.
76047         (read_file_system_list)
76048         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
76049         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
76050         dev= in that case.
76051
76052         * lib/posixtm.h (PDS_PRE_2000): New macro.
76053         * lib/posixtm.c (year): Arg is now syntax_bits rather than
76054         allow_century.  All usages changed.  Reject dates outside the range
76055         1969-1999 if PDS_PRE_2000 is used.
76056
76057 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
76058
76059         Sync from coreutils.
76060         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
76061         (Time of day items): Mention the possibility of leap seconds.
76062         Problem reported by Dr. David Alan Gilbert.
76063
76064 2006-01-09  Jim Meyering  <jim@meyering.net>
76065
76066         Sync from coreutils.
76067
76068         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
76069
76070         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
76071
76072         * lib/modechange.c (mode_compile): Reject an invalid mode string
76073         that starts with an octal digit.  From Andreas Gruenbacher.
76074
76075         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
76076         and dup to open_safer and dup_safer, respectively.
76077         (openat_permissive): Fix typo in comment.
76078
76079         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
76080         "gettext.h"; either no longer needed or are guaranteed by openat.h.
76081         (_): Remove; no longer needed.
76082         (openat): Renamed from rpl_openat; no need for rpl_openat
76083         since openat.h renames openat for us.
76084         Replace most of the body with a call to openat_permissive,
76085         to avoid duplicate code.
76086         Port to (probably hypothetical) environments were mode_t is
76087         wider than int.
76088         (openat_permissive): Require mode arg, so that we can check
76089         types better.  Put it just after flags.  Change cwd failure
76090         indicator from pointer-to-bool to pointer-to-errno-value.
76091         All callers changed.
76092         Invoke openat_save_fail and/or openat_restore_fail if
76093         cwd_errno is null, so that openat can call us.
76094         (openat_permissive, fdopendir, fstatat, unlinkat):
76095         Simplify errno handling to avoid some duplicate code,
76096         as it's OK to set errno on success.
76097         * lib/openat.h: Revamp code so that function macros depend on
76098         __OPENAT_PREFIX only, not also on AT_FDCWD.
76099         (openat_ro): Remove.  Caller changed to use openat_permissive.
76100         (openat_permissive): Now a macro, if not a function.
76101         (openat_restore_fail, openat_save_fail): Now always functions,
76102         since mkdirat needs them even if __OPENAT_PREFIX is defined.
76103
76104         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
76105         and openat.c.
76106         * lib/mkdirat.c: Include openat-priv.h.
76107         Remove definitions of macros defined therein.
76108         * lib/openat.c: Likewise.
76109
76110         * lib/mkdirat.c (mkdirat): New file and function.
76111         * lib/openat.h (mkdirat): Declare.
76112
76113         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
76114
76115         * lib/openat.h (openat_permissive): Declare.
76116         (openat_ro): Define.
76117
76118         * lib/openat.c (EXPECTED_ERRNO): New macro.
76119         (openat_permissive): New function -- used in remove.c rewrite.
76120         (all functions): Set errno just before returning, only if there
76121         was an actual failure.
76122         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
76123
76124         Emulate openat-family functions using Linux's procfs, if possible.
76125         Idea and some code based on Ulrich Drepper's glibc changes.
76126
76127         * lib/openat.c: (BUILD_PROC_NAME): New macro.
76128         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
76129         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
76130         before falling back on save_cwd and restore_cwd.
76131         (fdopendir, fstatat, unlinkat): Likewise.
76132
76133         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
76134         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
76135
76136         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
76137         as second argument to va_arg.  Otherwise, some versions of gcc
76138         warn that `if this code is reached, the program will abort'.
76139
76140 2006-01-09  Jim Meyering  <jim@meyering.net>
76141
76142         Sync from coreutils.
76143         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
76144         Require openat-priv.h.
76145
76146 2006-01-09  Bruno Haible  <bruno@clisp.org>
76147
76148         * modules/strnlen (Include): Use strnlen.h.
76149
76150 2006-01-09  Bruno Haible  <bruno@clisp.org>
76151
76152         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
76153
76154 2006-01-09  Bruno Haible  <bruno@clisp.org>
76155
76156         * lib/sysexit_.h (EX_OK): New macro.
76157         Suggested by Martin Lambers <marlam@marlam.de>.
76158
76159 2006-01-09  Bruno Haible  <bruno@clisp.org>
76160
76161         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
76162         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
76163
76164 2006-01-09  Bruno Haible  <bruno@clisp.org>
76165
76166         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
76167         numbers.
76168
76169 2006-01-09  Bruno Haible  <bruno@clisp.org>
76170
76171         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
76172         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
76173         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
76174         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
76175
76176 2006-01-09  Bruno Haible  <bruno@clisp.org>
76177
76178         * build-aux/javacomp.sh.in: New file, moved from lib/.
76179         * modules/javacomp-script (Files): Update.
76180         (configure.ac): Add AC_CONFIG_FILES invocation.
76181         (EXTRA_DIST): Remove variable.
76182
76183         * build-aux/javaexec.sh.in: New file, moved from lib/.
76184         * modules/javaexec (Files): Update.
76185         (configure.ac): Add AC_CONFIG_FILES invocation.
76186         (EXTRA_DIST): Remove javaexec.sh.in.
76187
76188         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
76189         * modules/csharpcomp-script (Files): Update.
76190         (configure.ac): Add AC_CONFIG_FILES invocation.
76191         (EXTRA_DIST): Remove variable.
76192
76193         * build-aux/csharpexec.sh.in: New file, moved from lib/.
76194         * modules/csharpexec (Files): Update.
76195         (configure.ac): Add AC_CONFIG_FILES invocation.
76196         (EXTRA_DIST): Remove csharpexec.sh.in.
76197
76198 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
76199
76200         Sync from coreutils.
76201
76202         Add POSIX ACL support
76203         * lib/acl.h (copy_acl, set_acl): Add declarations.
76204         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
76205         systems other than Linux.
76206         (chmod_or_fchmod): New function: use fchmod when possible,
76207         and chmod otherwise.
76208         (file_has_acl): Add a POSIX ACL implementation, with a
76209         Linux-specific subcase.
76210         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
76211         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
76212         acls are unsupported.
76213         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
76214         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
76215         are unsupported.
76216
76217 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
76218
76219         Sync from coreutils.
76220         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
76221
76222 2006-01-07  Bruno Haible  <bruno@clisp.org>
76223
76224         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
76225         gl_EARLY.
76226
76227 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
76228
76229         * lib/strftime.c (tzname): Don't declare if it is already #defined.
76230         Problem reported for Mingw by Mark Junker.
76231
76232 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
76233
76234         * README: Gnulib normally doesn't generate a tarball.
76235
76236 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
76237
76238         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
76239         long int, not int, for nanosecond counts, so that people who are
76240         used to POSIX struct timespec won't be surprised.  Reported by Jim
76241         Meyering.
76242
76243 2005-12-28  Bruno Haible  <bruno@clisp.org>
76244
76245         * build-aux/config.rpath: Update from GNU gettext.
76246
76247 2005-12-16  Jim Meyering  <jim@meyering.net>
76248
76249         * modules/fprintftime: New module.
76250         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
76251
76252 2005-12-16  Jim Meyering  <jim@meyering.net>
76253
76254         * m4/fprintftime.m4: New file.
76255
76256 2005-12-16  Jim Meyering  <jim@meyering.net>
76257
76258         * lib/fprintftime.c, lib/fprintftime.h: New files.
76259
76260 2005-12-15  Simon Josefsson  <jas@extundo.com>
76261
76262         * modules/socklen (configure.ac): Fix M4 macro name, to align with
76263         new m4/socklen.m4.
76264
76265 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
76266
76267         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
76268         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
76269
76270 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
76271
76272         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
76273         * lib/argp-help.c (fill_in_uparams): Check if the constructed
76274         struct uparams is valid. Fall back to the default values if it is
76275         not.
76276
76277 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76278
76279         * modules/argp (Files): Add argp-pin.c
76280         (Depends-on): dirname
76281         (lib_SOURCES): Add argp-pin.c
76282
76283 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76284
76285         * m4/argp.m4:  Check if program_invocation_name and
76286         program_invocation_short_name are declared and define appropriate
76287         macros if they are not.
76288
76289 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76290
76291         * lib/argp-help.c (__argp_base_name): New function
76292         (__argp_short_program_name): Rewrite using __argp_base_name
76293         * lib/argp-namefrob.h: Define program_invocation_name and
76294         program_invocation_short_name if requested
76295         (__argp_base_name): Add prototype
76296         * lib/argp-parse.c (argp_def): Use gettext wrappers
76297         (argp_default_parser): Use __argp_base_name
76298         * lib/argp-pin.c: New file. Defines program_invocation_name and
76299         program_invocation_short_name on systems that lack them.
76300
76301 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
76302
76303         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
76304         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
76305         porting problem reported by Georg Schwarz in
76306         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
76307
76308 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
76309
76310         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
76311         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
76312         porting problem reported by Georg Schwarz in
76313         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
76314
76315 2005-12-05  Bruno Haible  <bruno@clisp.org>
76316
76317         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
76318         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
76319         Reported by Mark Junker <mjscod@gmx.de>.
76320
76321 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
76322
76323         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
76324         Use implementation from Albert Chin, with some
76325         comments/corrections by Stepan Kasal and myself.
76326
76327 2005-12-02  Bruno Haible  <bruno@clisp.org>
76328
76329         * gnulib-tool (func_import): Accept GPLed build tool modules when
76330         --lgpl is given.
76331         * modules/csharpcomp-script: New file.
76332         * modules/csharpcomp: Depend on it.
76333         * modules/javacomp-script: New file.
76334         * modules/javacomp: Depend on it.
76335         Suggested by Simon Josefsson.
76336
76337 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
76338
76339         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
76340         statement, to work around an HP-UX 10.20 compiler bug reported by
76341         Peter O'Gorman.
76342
76343 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
76344
76345         * modules/savedir (Depends-on): Add openat.
76346
76347 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
76348
76349         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
76350         (uintmax_t) [defined uintmax_t]: Do not declare.
76351         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
76352         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
76353         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
76354         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
76355         sake of portability to weird hosts that C allows (though we don't
76356         know of any practical examples).
76357
76358         * lib/savedir.h (fdsavedir): New decl.
76359         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
76360         contains most of the former guts of savedir.
76361         (savedir): Use savedirstream.
76362         Include "openat.h".
76363
76364 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
76365
76366         * modules/obstack (Files): Add m4/ulonglong.m4.
76367         Problem reported by Davide Angelocola.
76368
76369 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
76370
76371         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
76372         coreutils no longer futzes with rounding modes.
76373
76374 2005-11-14  Jim Meyering  <jim@meyering.net>
76375
76376         * lib/mkstemp-safer.c: Include <config.h>, required for possible
76377         replacement of mkstemp.
76378
76379 2005-11-10  Simon Josefsson  <jas@extundo.com>
76380
76381         * lib/readline.c: Remove EOL.
76382
76383 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76384
76385         * modules/gethrxtime (Depends-on): Add gettime.
76386
76387 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76388
76389         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
76390         or gettimeofday; no longer needed.
76391
76392 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76393
76394         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
76395         time business.
76396         (gethrxtime) [! (HAVE_NANOUPTIME
76397         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
76398         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
76399         our own approximation.
76400
76401 2005-11-08  Eric Blake  <ebb9@byu.net>
76402
76403         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
76404
76405 2005-11-08  Eric Blake  <ebb9@byu.net>
76406
76407         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
76408
76409 2005-11-04  Bruno Haible  <bruno@clisp.org>
76410
76411         * gnulib-tool: Implement --update mode.
76412
76413 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
76414
76415         Fix porting problem reported by Theodoros V. Kalamatianos.
76416         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
76417         Don't assume that futimes failing means we must fail.
76418
76419 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
76420
76421         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
76422         variables to suggest the intended function of the PATH_MAX check.
76423
76424 2005-10-30  Kean Johnston  <jkj@sco.com>
76425
76426         Trivial changes to support SCO systems.
76427         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
76428         as PATH_MAX.
76429         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
76430         where __ptr is null when no I/O is pending.
76431
76432 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
76433
76434         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
76435         leave errno alone.  Problem reported by Dmitry V. Levin.
76436
76437 2005-10-28  Simon Josefsson  <jas@extundo.com>
76438
76439         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
76440         Test more.
76441
76442         * tests/test-gc-md2.c, tests/test-md2.c: New files.
76443
76444         * modules/md2, modules/md2-tests: New files.
76445
76446 2005-10-28  Simon Josefsson  <jas@extundo.com>
76447
76448         * m4/inet_ntop.m4: More tests.
76449
76450         * m4/gc-md2.m4, md2.m4: New file.
76451
76452 2005-10-28  Simon Josefsson  <jas@extundo.com>
76453
76454         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
76455         "restrict" keywords, as per POSIX.  Protect the function
76456         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
76457         Don't use K&R prototypes.  Check the sprintf return values.
76458         Re-define EAFNOSUPPORT if not present.  Indent.
76459
76460         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
76461         suggested by Bruno Haible <bruno@clisp.org>.
76462
76463         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
76464
76465         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
76466
76467         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
76468         libgcrypt).
76469
76470         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
76471
76472         * lib/md2.h, lib/md2.c: New files.
76473
76474 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
76475
76476         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
76477         errno alone.  Problem reported by Frederic Jolliton.
76478
76479 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
76480
76481         * modules/verify (License): Change from GPL to LGPL.  This is a
76482         tiny module and there are apparently near-equivalents that are
76483         under the BSD license.
76484
76485 2005-10-24  Simon Josefsson  <jas@extundo.com>
76486
76487         * modules/sha1: Relicense to LGPL.
76488
76489 2005-10-24  Simon Josefsson  <jas@extundo.com>
76490
76491         * lib/md4.h: Shrink buffer size, now that we changed the type.
76492
76493 2005-10-23  Simon Josefsson  <jas@extundo.com>
76494
76495         * gnulib-tool (func_import): Fix --tests-base.
76496
76497 2005-10-22  Simon Josefsson  <jas@extundo.com>
76498
76499         * modules/arcfour (Depends-on): Need stdint.
76500
76501 2005-10-22  Simon Josefsson  <jas@extundo.com>
76502
76503         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
76504         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
76505
76506 2005-10-22  Simon Josefsson  <jas@extundo.com>
76507
76508         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
76509         suggested by Bruno Haible <bruno@clisp.org>.
76510
76511 2005-10-22  Simon Josefsson  <jas@extundo.com>
76512
76513         * lib/crc.h: Include stddef.h, for size_t.
76514
76515 2005-10-22  Simon Josefsson  <jas@extundo.com>
76516
76517         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
76518         arcfour_context struct (simplify test vector testing in GNU
76519         Shishi).
76520
76521 2005-10-21  Simon Josefsson  <jas@extundo.com>
76522
76523         * modules/des, modules/des-tests: New files.
76524
76525         * modules/gc-des, modules/gc-des-tests: New files.
76526
76527         * tests/test-des.c, tests/test-gc-des.c: New file.
76528
76529 2005-10-21  Simon Josefsson  <jas@extundo.com>
76530
76531         * modules/arctwo, modules/arctwo-tests: New files.
76532
76533         * tests/test-arctwo.c: New file.
76534
76535         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
76536
76537         * tests/test-gc-arctwo.c: New file.
76538
76539 2005-10-21  Simon Josefsson  <jas@extundo.com>
76540
76541         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
76542         Bruno Haible <bruno@clisp.org>.
76543
76544         * m4/gc-des.m4: New file.
76545
76546 2005-10-21  Simon Josefsson  <jas@extundo.com>
76547
76548         * m4/arctwo.m4: New file.
76549
76550         * m4/gc-arctwo.m4: New file.
76551
76552 2005-10-21  Simon Josefsson  <jas@extundo.com>
76553
76554         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
76555         block.
76556
76557 2005-10-21  Simon Josefsson  <jas@extundo.com>
76558
76559         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
76560         <bruno@clisp.org>.
76561
76562         * lib/hmac-sha1.c (hmac_sha1): Likewise.
76563
76564         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
76565         Bruno Haible <bruno@clisp.org>.
76566
76567         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
76568         <bruno@clisp.org>.
76569
76570 2005-10-21  Simon Josefsson  <jas@extundo.com>
76571
76572         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
76573
76574 2005-10-21  Simon Josefsson  <jas@extundo.com>
76575
76576         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
76577
76578 2005-10-21  Simon Josefsson  <jas@extundo.com>
76579
76580         * lib/des.h, lib/des.c: New files.
76581
76582         * lib/gc-gnulib.c: Support DES.c
76583
76584 2005-10-21  Simon Josefsson  <jas@extundo.com>
76585
76586         * lib/arctwo.h, lib/arctwo.c: New files.
76587
76588         * lib/gc-gnulib.c: Support ARCTWO.
76589
76590 2005-10-21  Simon Josefsson  <jas@extundo.com>
76591
76592         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
76593         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76594
76595 2005-10-21  Simon Josefsson  <jas@extundo.com>
76596
76597         * gnulib-tool (func_import, func_create_testdir): Define automake
76598         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
76599         Makefile.am snippet),
76600         suggested by Bruno Haible <bruno@clisp.org>.
76601
76602         * modules/gc (Makefile.am): Use it.
76603
76604 2005-10-21  Bruno Haible  <bruno@clisp.org>
76605
76606         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
76607         patch.
76608
76609 2005-10-19  Simon Josefsson  <jas@extundo.com>
76610
76611         * tests/test-gc-rijndael.c: New file.
76612
76613         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
76614
76615 2005-10-19  Simon Josefsson  <jas@extundo.com>
76616
76617         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
76618         interface too.
76619
76620 2005-10-19  Simon Josefsson  <jas@extundo.com>
76621
76622         * tests/test-gc-arcfour.c: New file.
76623
76624         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
76625
76626 2005-10-19  Simon Josefsson  <jas@extundo.com>
76627
76628         * modules/gc-md4, modules/gc-md4-tests: New file.
76629
76630         * tests/test-gc-md4.c: New file.
76631
76632 2005-10-19  Simon Josefsson  <jas@extundo.com>
76633
76634         * m4/gc-md4.m4: New file.
76635
76636 2005-10-19  Simon Josefsson  <jas@extundo.com>
76637
76638         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
76639         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
76640         <kasal@ucw.cz>.
76641
76642 2005-10-19  Simon Josefsson  <jas@extundo.com>
76643
76644         * m4/gc-arcfour.m4: New file.
76645
76646         * m4/gc-rijndael.m4: New file.
76647
76648 2005-10-19  Simon Josefsson  <jas@extundo.com>
76649
76650         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
76651
76652 2005-10-19  Simon Josefsson  <jas@extundo.com>
76653
76654         * lib/gc-gnulib.c: Support ARCFOUR.
76655
76656 2005-10-19  Simon Josefsson  <jas@extundo.com>
76657
76658         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
76659         support.
76660
76661         * lib/gc.h: Add ECB enum type.
76662
76663         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
76664
76665 2005-10-18  Simon Josefsson  <jas@extundo.com>
76666
76667         * tests/test-md5.c: New file.
76668
76669         * modules/md5-tests: New file.
76670
76671 2005-10-18  Simon Josefsson  <jas@extundo.com>
76672
76673         * tests/test-md4.c: New file.
76674
76675         * modules/md4, modules/md4-tests: New files.
76676
76677 2005-10-18  Simon Josefsson  <jas@extundo.com>
76678
76679         * m4/md4.m4: New file.
76680
76681 2005-10-18  Simon Josefsson  <jas@extundo.com>
76682
76683         * lib/md4.h, lib/md4.c: New files, based on md5.?.
76684
76685 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
76686
76687         * gnulib-tool (func_create_testdir): Omit the second check whether
76688         BUILT_SOURCES in nonempty.
76689
76690 2005-10-17  Simon Josefsson  <jas@extundo.com>
76691
76692         * tests/test-rijndael.c: New file.
76693
76694 2005-10-17  Simon Josefsson  <jas@extundo.com>
76695
76696         * modules/sha1: Depend on stdint instead of md5.
76697
76698         * modules/md5: Depend on stdint, remove uint32_t.
76699
76700 2005-10-17  Simon Josefsson  <jas@extundo.com>
76701
76702         * modules/gc-sha1-tests: New file.
76703
76704         * tests/test-gc-sha1.c: New file.
76705
76706 2005-10-17  Simon Josefsson  <jas@extundo.com>
76707
76708         * m4/md5.m4: Remove call to uint32_t.m4.
76709
76710 2005-10-17  Simon Josefsson  <jas@extundo.com>
76711
76712         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
76713
76714         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
76715         md5.h.
76716
76717         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
76718
76719         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
76720
76721 2005-10-17  Simon Josefsson  <jas@extundo.com>
76722
76723         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
76724
76725 2005-10-17  Simon Josefsson  <jas@extundo.com>
76726
76727         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
76728
76729 2005-10-17  Simon Josefsson  <jas@extundo.com>
76730
76731         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
76732
76733         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
76734
76735 2005-10-17  Bruno Haible  <bruno@clisp.org>
76736
76737         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
76738         that it can also be used in a test.
76739
76740 2005-10-16  Bruno Haible  <bruno@clisp.org>
76741
76742         * gnulib-tool (func_emit_tests_Makefile_am): Also define
76743         TESTS_ENVIRONMENT, so that individual tests can augment it.
76744
76745         * gnulib-tool (func_create_testdir): Use an intermediate target for
76746         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
76747         macros, like $(ALLOCA_H), which cannot be passed through the command
76748         line.
76749
76750 2005-10-15  Simon Josefsson  <jas@extundo.com>
76751
76752         * modules/rijndael-tests: New file.
76753
76754         * modules/rijndael: New file.
76755
76756 2005-10-15  Simon Josefsson  <jas@extundo.com>
76757
76758         * m4/rijndael.m4: New file.
76759
76760 2005-10-15  Simon Josefsson  <jas@extundo.com>
76761
76762         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
76763
76764         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
76765
76766 2005-10-14  Simon Josefsson  <jas@extundo.com>
76767
76768         * tests/test-arcfour.c: New file.
76769
76770         * modules/arcfour, modules/arcfour-tests: New files.
76771
76772 2005-10-14  Simon Josefsson  <jas@extundo.com>
76773
76774         * m4/arcfour.m4: New file.
76775
76776 2005-10-14  Simon Josefsson  <jas@extundo.com>
76777
76778         * lib/arcfour.h, lib/arcfour.c: New files.
76779
76780 2005-10-14  Roland McGrath  <roland@redhat.com>
76781
76782         Import from libc.  [BZ #1331]
76783         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
76784         macro argument.
76785         Reported by Matej Vela <vela@debian.org>.
76786
76787 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
76788
76789         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
76790         include <wchar.h>; no longer needed.
76791
76792 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
76793
76794         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
76795
76796 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
76797         and  Ulrich Drepper  <drepper@redhat.com>
76798
76799         Import from libc.
76800         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
76801         instead of inline stream orientation test and two separate
76802         function calls.  Pay no attention to USE_IN_LIBIO.
76803
76804 2005-10-13  Simon Josefsson  <jas@extundo.com>
76805
76806         * modules/gc-hmac-md5-tests: New file.
76807
76808         * tests/test-gc-hmac-sha1.c: New file.
76809
76810         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
76811
76812         * modules/gc-hmac-md5-tests: New file.
76813
76814         * tests/test-gc-md5.c: New file.
76815
76816         * modules/gc-md5-tests: New file.
76817
76818 2005-10-13  Simon Josefsson  <jas@extundo.com>
76819
76820         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
76821         Move memory allocation outside of loop.
76822
76823 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
76824
76825         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
76826         intermediate directory is in a read-only file system.  Problem
76827         reported by Eric Blake.
76828
76829 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
76830
76831         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
76832
76833 2005-10-12  Simon Josefsson  <jas@extundo.com>
76834
76835         * tests/test-hmac-sha1.c: New file.
76836
76837         * modules/hmac-sha1-tests: New file.
76838
76839         * modules/hmac-sha1: New file.
76840
76841 2005-10-12  Simon Josefsson  <jas@extundo.com>
76842
76843         * modules/gc-sha1: New file.
76844
76845 2005-10-12  Simon Josefsson  <jas@extundo.com>
76846
76847         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
76848
76849         * tests/test-gc-pbkdf2-sha1.c: New file.
76850
76851 2005-10-12  Simon Josefsson  <jas@extundo.com>
76852
76853         * modules/gc-md5, modules/gc-hmac-md5: New files.
76854
76855         * modules/gc (Files): Remove md5, memxor and hmac files.
76856
76857 2005-10-12  Simon Josefsson  <jas@extundo.com>
76858
76859         * m4/gc-pbkdf2-sha1.m4: New file.
76860
76861         * m4/gc-hmac-sha1.m4: New file.
76862
76863         * m4/gc-sha1: New file.
76864
76865         * m4/hmac-sha1.m4: New file.
76866
76867 2005-10-12  Simon Josefsson  <jas@extundo.com>
76868
76869         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
76870
76871         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
76872
76873 2005-10-12  Simon Josefsson  <jas@extundo.com>
76874
76875         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
76876         suggested by Bruno Haible <bruno@clisp.org>.
76877
76878 2005-10-12  Simon Josefsson  <jas@extundo.com>
76879
76880         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
76881
76882 2005-10-12  Simon Josefsson  <jas@extundo.com>
76883
76884         * lib/gc-pbkdf2-sha1.c: New file.
76885
76886         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
76887
76888 2005-10-12  Simon Josefsson  <jas@extundo.com>
76889
76890         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
76891
76892         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
76893
76894 2005-10-12  Simon Josefsson  <jas@extundo.com>
76895
76896         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
76897         GC_USE_HMAC_MD5, respectively.
76898
76899         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
76900         (gc_md5): Fix typo.
76901
76902         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
76903
76904         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
76905
76906         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
76907
76908 2005-10-12  Bruno Haible  <bruno@clisp.org>
76909
76910         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
76911         Reported by Stepan Kasal <kasal@ucw.cz>.
76912
76913 2005-10-11  Simon Josefsson  <jas@extundo.com>
76914
76915         * tests/test-crc.c: New file.
76916
76917         * modules/crc, modules/crc-tests: New files.
76918
76919 2005-10-11  Simon Josefsson  <jas@extundo.com>
76920
76921         * m4/crc.m4: New file.
76922
76923 2005-10-11  Simon Josefsson  <jas@extundo.com>
76924
76925         * lib/gc.h: Add gc_hash and gc_hash_buffer.
76926
76927         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
76928
76929         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
76930
76931 2005-10-11  Simon Josefsson  <jas@extundo.com>
76932
76933         * lib/crc.h, lib/crc.c: New files.
76934
76935         * lib/gc.h (gc_hash_buffer): Add doc.
76936
76937 2005-10-11  Bruno Haible  <bruno@clisp.org>
76938
76939         * modules/c-strcasestr: New file.
76940         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
76941
76942 2005-10-11  Bruno Haible  <bruno@clisp.org>
76943
76944         * modules/c-strcase: New file.
76945         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
76946
76947 2005-10-11  Bruno Haible  <bruno@clisp.org>
76948
76949         * lib/strcasecmp.c: Include limits.h.
76950         (strcasecmp): Avoid integer overflow on exotic platforms.
76951         * lib/strncasecmp.c: Include limits.h.
76952         (strncasecmp): Avoid integer overflow on exotic platforms.
76953         Reported by Paul Eggert.
76954
76955 2005-10-11  Bruno Haible  <bruno@clisp.org>
76956
76957         * lib/c-strcasestr.h: New file, from GNU gettext.
76958         * lib/c-strcasestr.c: New file, from GNU gettext.
76959
76960 2005-10-11  Bruno Haible  <bruno@clisp.org>
76961
76962         * lib/c-strcase.h: New file, from GNU gettext.
76963         * lib/c-strcasecmp.c: New file, from GNU gettext.
76964         * lib/c-strncasecmp.c: New file, from GNU gettext.
76965
76966 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76967
76968         * modules/mempcpy (License): GPL -> LGPL.
76969         * modules/strchrnul (License): Likewise.
76970         * modules/sysexits (License): Likewise.
76971
76972 2005-10-08  Simon Josefsson  <jas@extundo.com>
76973
76974         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
76975
76976 2005-10-07  Simon Josefsson  <jas@extundo.com>
76977
76978         * m4/memxor.m4: Remove gl_C_RESTRICT call.
76979
76980 2005-10-06  Simon Josefsson  <jas@extundo.com>
76981
76982         * tests/test-hmac-md5.c: New file.
76983
76984         * modules/hmac-md5-tests: New file.
76985
76986         * modules/hmac-md5: New file.
76987
76988 2005-10-06  Simon Josefsson  <jas@extundo.com>
76989
76990         * m4/hmac-md5.m4: New file.
76991
76992         * m4/memxor.m4: Require gl_C_RESTRICT.
76993
76994 2005-10-06  Simon Josefsson  <jas@extundo.com>
76995
76996         * lib/memxor.c (memxor): Avoid casts and warnings.
76997
76998 2005-10-06  Simon Josefsson  <jas@extundo.com>
76999
77000         * lib/hmac-md5.c: New file.
77001
77002         * lib/hmac.h: New file.
77003
77004 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
77005
77006         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
77007         promotes to int, not unsigned int, to catch the AIX 5.3
77008         compiler bug.
77009
77010 2005-10-05  Simon Josefsson  <jas@extundo.com>
77011
77012         * modules/memxor: New file.
77013
77014         * modules/iconv (Files): Move config.rpath to havelib, it is used
77015         there.
77016
77017         * modules/havelib (Files): Add config.rpath.
77018
77019 2005-10-05  Simon Josefsson  <jas@extundo.com>
77020
77021         * m4/memxor.m4: New file.
77022
77023 2005-10-05  Simon Josefsson  <jas@extundo.com>
77024
77025         * lib/memxor.c (memxor): Fix compiler error.
77026
77027         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
77028         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
77029
77030         * lib/memxor.h, lib/memxor.c: New files.
77031
77032         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
77033         we assume all systems have it, suggested by Jim Meyering
77034         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
77035         any systems lack sys/socket.h; mingw32 is known to lack it, but we
77036         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
77037         same reasons.
77038
77039 2005-10-05  Simon Josefsson  <jas@extundo.com>
77040
77041         * config/srclist.txt: Add glibc bug 1423 for md5.h.
77042
77043 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
77044
77045         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
77046         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
77047         needed, since the source code now assumes these .h files.
77048
77049 2005-10-05  Derek Price  <derek@ximbiot.com>
77050
77051         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
77052
77053 2005-10-05  Bruno Haible  <bruno@clisp.org>
77054
77055         * modules/stdint (License): Change to LGPL.
77056
77057 2005-10-04  Simon Josefsson  <jas@extundo.com>
77058
77059         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
77060         D. Baushke" <mdb@gnu.org>.
77061
77062 2005-10-04  Bruno Haible  <bruno@clisp.org>
77063
77064         * lib/verify.h (verify_true): Provide alternative definition for C++.
77065
77066 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
77067
77068         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
77069         (SSIZE_MAX): New macro, if not already defined.
77070         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
77071         than 2 GiB.
77072
77073 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
77074
77075         Sync from coreutils.
77076         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
77077         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
77078         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
77079         ULLONG_MAX doesn't work with 2.7.2.1.
77080
77081 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
77082
77083         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
77084         From Ben Pfaff.
77085
77086         * modules/exclude (Depends-on): Depend on verify.
77087         * modules/strtoimax (Depends-on): Likewise.
77088         * modules/utimecmp (Depends-on): Likewise.
77089
77090 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
77091
77092         * lib/exclude.c: Include verify.h.
77093         (verify): Remove.  All callers changed to use verify.h's version.
77094         * lib/strtoimax.c: Likewise.
77095         * lib/utimecmp.c: Likewis.e
77096
77097         Sync from coreutils.
77098         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
77099         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
77100         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
77101         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
77102         bother returning ENOSYS if settimeofday or stime fails; just let
77103         them return whatever errno they want to return.
77104         * lib/utimens.c: Include unistd.h, for dup2.
77105         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
77106         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
77107
77108 2005-10-02  Jim Meyering  <jim@meyering.net>
77109
77110         Sync from coreutils.
77111         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
77112         from glibc-2.2.5 that fails for read-only files.
77113
77114 2005-10-02  Jim Meyering  <jim@meyering.net>
77115
77116         Sync from coreutils.
77117         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
77118         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
77119         `#if HAVE_CONFIG_H'.
77120         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
77121         Remove AT_FDCWD test.
77122         Do not consume the fd unless successful.
77123         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
77124         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
77125         block, so that we don't even try to compile it if settimeofday is
77126         available.  This works around a compilation failure on OSF1 V5.1,
77127         due to stime requiring a `long int*' while tv_sec is `int'.
77128
77129 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
77130
77131         Sync from coreutils.
77132         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
77133         against `yes', rather than just testing for nonempty.
77134
77135 2005-10-01  Simon Josefsson  <jas@extundo.com>
77136
77137         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
77138         and Darwin.
77139
77140         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
77141         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
77142         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
77143         freeaddrinfo and gai_strerror are declared by the POSIX headers.
77144         Check if struct addrinfo is declared.
77145
77146 2005-10-01  Simon Josefsson  <jas@extundo.com>
77147
77148         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
77149         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
77150         AI_* and EAI_* definitions.  Protect function declarations.
77151
77152 2005-10-01  Jim Meyering  <jim@meyering.net>
77153
77154         Sync from coreutils.
77155
77156         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
77157         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
77158         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
77159         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
77160         in the inet and nsl libraries.  Required on Solaris 5.7.
77161
77162 2005-10-01  Jim Meyering  <jim@meyering.net>
77163
77164         Sync from coreutils.
77165         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
77166         in the inet and nsl libraries.  Required on Solaris 5.7.
77167
77168 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
77169
77170         * lib/getdelim.c (getdelim): Remove unused variables.
77171
77172 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
77173
77174         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
77175         so that the code works even with ancient cpp.  Portability problem
77176         with GCC 2.7.2.1 reported by Thomas M.Ott.
77177
77178 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
77179
77180         * modules/regex (Depends-on): Add strcase.
77181
77182         * modules/gethostname (Licence): Change from GPL to LGPL, since
77183         gethostname.c is a trivial implementation of a standard library
77184         function.
77185         * modules/poll (License): Change from GPL to LGPL, since it's
77186         derived from LGPL code.
77187
77188 2005-09-27  Jim Meyering  <jim@meyering.net>
77189
77190         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
77191         HAVE_CONFIG_H.
77192
77193         * lib/intprops.h (signed_type_or_expr__): Define.
77194         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
77195         for unsigned types.
77196
77197 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
77198
77199         * lib/verify.h (verify_expr): Remove, replacing with:
77200         (verify_true): New macro that returns true instead of void.
77201         (verify_type__): Remove.
77202         (verify): Use verify_true rather than verify_type__.
77203
77204 2005-09-26  Bruno Haible  <bruno@clisp.org>
77205
77206         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
77207         is necessary.
77208         (lib_SOURCES): Remove mbchar.c.
77209         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
77210         (Files): Add m4/mbrtowc.m4.
77211         * modules/mbiter: Likewise.
77212         * modules/mbuiter: Likewise.
77213
77214 2005-09-26  Bruno Haible  <bruno@clisp.org>
77215
77216         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
77217         compile mbchar.c if they are not both present.
77218         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
77219         * m4/mbiter.m4 (gl_MBITER): Likewise.
77220         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
77221         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
77222         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
77223
77224 2005-09-25  Jim Meyering  <jim@meyering.net>
77225
77226         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
77227         also uses socklen_t.
77228
77229 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
77230
77231         * lib/utimens.c (ENOSYS): Define if not already defined.
77232         (futimens): Support having a null PATH if the file descriptor
77233         is nonnegative.
77234
77235         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
77236         Remove.
77237         (__attribute): Define to empty unless GCC 3.1 or later.
77238         This works around a core dump on OpenBSD 3.4, which has GCC
77239         2.95.3, which dumps core when given __attribute__(()).  It also
77240         simplifies other tests, since we really don't want to bother with
77241         worrying about which ancient version of GCC supported what.
77242         Original problem reported by Yoann Vandoorselaere, with part of
77243         the fix suggested by Derek Price.
77244
77245 2005-09-24  Jim Meyering  <jim@meyering.net>
77246
77247         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
77248         so we can once again use a positive bitfield width of 1 -- now we
77249         don't have to explain why we were using a bitfield width of 2.
77250
77251 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
77252
77253         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
77254         and similarly for the other external symbols.  Problem reported
77255         by James Gallager.
77256
77257         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
77258         bug reported by Jim Meyering.
77259
77260         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
77261         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
77262         not needed, since socklen is a prerequisite module.
77263
77264 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
77265
77266         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
77267         Problem reported by Eric Blake.
77268         (getaddrinfo): Initialize se so that it's not garbage.
77269         Redo internal storage allocation so that it doesn't make unportable
77270         assumptions about alignment.
77271         Fix a memory leak.
77272
77273         * lib/utimens.c (futimens): Use futimesat if available.
77274         Prefer it to futimes since it doesn't have the futimes bug.
77275
77276         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
77277         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
77278         Instead, declare a function that returns a pointer to an array,
77279         and use verify_type__ to declare the size of the array.
77280         Problem and germ of a solution reported by Bruno Haible.
77281         (verify_type__): Use 2, not 1, for bitfield size, to avoid
77282         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
77283
77284 2005-09-23  Jim Meyering  <jim@meyering.net>
77285
77286         Sync from coreutils.
77287         Correct build failure (socklen_t not defined) on at least
77288         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
77289         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
77290
77291 2005-09-23  Jim Meyering  <jim@meyering.net>
77292
77293         * modules/getaddrinfo (Depends-on): Add socklen.
77294
77295 2005-09-23  Bruno Haible  <bruno@clisp.org>
77296
77297         * tests/test-verify.c: New file.
77298
77299 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
77300
77301         Sync from coreutils.
77302
77303         * modules/argmatch (Depends-on): Add verify.
77304         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
77305         unistd-safer.
77306         * modules/save-cwd (Depends-on): Likewise.
77307
77308         * modules/openat (Files): Add lib/openat-die.c.
77309         (Depends-on): Remove error, exitfail.
77310         Add dirname.
77311
77312         * modules/verify: New file.
77313         * MODULES.html.sh (Diagnostics <assert.h>): New section,
77314         with "verify" module.
77315
77316 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
77317
77318         Sync from coreutils.
77319
77320         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
77321         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
77322         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
77323         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
77324         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
77325         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
77326         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
77327         Don't bother checking for string.h, stdlib.h, unistd.h.
77328         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
77329         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
77330         module's job.
77331         * m4/jm-macros.m4 (gl_MACROS): Likewise.
77332         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
77333
77334         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
77335         (gl_GETDATE): Use it.
77336
77337         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
77338
77339 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
77340
77341         Sync from coreutils.
77342
77343         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
77344         stat-time.h.
77345         * lib/argmatch.h: Include verify.h
77346         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
77347         (ARGMATCH_ASSERT): Remove; unused.
77348         * lib/canonicalize.c: Assume STDC_HEADERS.
77349         * lib/exclude.c: Include "strcase.h".
77350         * lib/regex_internal.h [!defined _LIBC]: Likewise.
77351         * lib/getusershell.c: Include stdio--.h rather than stdio.h
77352         and stdio-safer.h.
77353         (getusershell): Call fopen, not fopen_safer.
77354         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
77355         Do not include unistd-safer.h.
77356         (save_cwd): Don't call fd_safer; no longer needed
77357         now that we include fcntl--.h.
77358
77359         * lib/getdate.y (relative_time): New type.
77360         (RELATIVE_TIME_0): New constant.
77361         (parser_control): Use relative_time instead of doing it ourselves.
77362         (%union): Add new relative_time rel member.
77363         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
77364         Now typeless.
77365         (relunit, relunit_snumber): Now of type rel.
77366         (zone, rel, relunit, get_date): Adjust to above changes.
77367
77368         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
77369         Do not include unistd-safer.h.
77370         (getloadavg): Don't call fd_safer; no longer needed
77371         now that we include fcntl--.h.
77372
77373         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
77374         (make_dir_parents): Treat ENOSYS like EEXIST.
77375
77376         Improve quality of diagnostics on restore_cwd failure.
77377         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
77378         (make_dir_parents): Last arg is now int * (for errno), not bool *.
77379         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
77380         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
77381         each time through the loop.  Do not diagnose restore_cwd failure;
77382         that is the caller's job (and perhaps the caller does not care).
77383
77384         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
77385         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
77386         If the file already exists but is not a directory, don't bother
77387         to try to make its parents.
77388         Close potential file descriptor leak if we can't chdir("/") (!).
77389         Don't always return true if chdir($PWD) fails; return true only
77390         if the requested action was done successfully (except for the
77391         chdir($PWD)).
77392         Don't log final directory unless we actually made it.
77393         Refactor to avoid duplicate code to fix up permissions.
77394         Don't attempt to fix up parent permissions if chdir($PWD) fails.
77395
77396         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
77397         to make it a bit faster and (I hope) clearer.
77398         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
77399         Fix bug in formats like %2N.
77400
77401         * lib/verify.h: New file.
77402
77403 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
77404
77405         Sync from coreutils.
77406         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
77407
77408 2005-09-22  Jim Meyering  <jim@meyering.net>
77409
77410         Sync from coreutils.
77411
77412         * m4/lstat.m4 (gl_FUNC_LSTAT):
77413         Use AC_LIBSOURCES to require lstat.c and lstat.h.
77414         Remove obsolete comment.
77415         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
77416         * m4/xstrtod.m4: Likewise.
77417
77418         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
77419
77420 2005-09-22  Jim Meyering  <jim@meyering.net>
77421
77422         Sync from coreutils.
77423
77424         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
77425
77426         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
77427         the .tm_year member, since otherwise gcc-4.0 would now warn about
77428         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
77429
77430         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
77431         order to avoid an unsuppressible warning from gcc on 64-bit systems.
77432
77433         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
77434         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
77435         when run in a time zone for which daylight savings time is in effect
77436         for the starting date.
77437
77438         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
77439         stop us from restricting permissions of just-created absolute-named
77440         directories.
77441         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
77442         to restore initial working directory.
77443         * lib/mkdir-p.c (make_dir_parents): New parameter:
77444         different_working_dir, to tell caller if/when we change the working
77445         directory and are unable to return to the initial one.
77446         * lib/mkdir-p.h (make_dir_parents): Update prototype.
77447         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
77448         `return false'.  This fixes a bug introduced on 2004-07-30.
77449
77450         * lib/openat.c (fdopendir): Be sure to close the supplied
77451         file descriptor before returning.  This makes our replacement
77452         implementation a little closer to Solaris's, where fdopendir
77453         ties the file descriptor to the returned DIR* pointer.
77454         * lib/openat.c (unlinkat): New function.
77455         * lib/openat.h (unlinkat): Add prototype.
77456         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
77457         (openat_restore_fail): Rename from openat_restore_die.
77458         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
77459
77460         Provide an alternative to exiting immediately upon save_cwd or
77461         restore_cwd failure.  Now, an application can arrange e.g.,
77462         to perform a longjump in that case.
77463         * lib/openat.c: Include dirname.h.
77464         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
77465         (rpl_openat, fdopendir, fstatat): Call openat_save_die
77466         and openat_restore_die rather than calling error directly.
77467         Don't include "error.h" or "exitfail.h"; they're no longer needed.
77468
77469         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
77470         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
77471         define.
77472
77473         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
77474         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
77475                             int utc, int nanoseconds);
77476         Background:
77477         date should not have to allocate a megabyte of virtual memory to
77478         handle a format argument like +%1048575T.  When implemented with
77479         strftime, it must allocate such a buffer, use strftime to fill it
77480         in, print it, then free it.
77481         With fprintftime, it simply prints everything and exits.
77482         With no need for memory allocation, that's one fewer way to fail.
77483         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
77484         optional field width, not before, so we accept %9:z, not %:9z.
77485         (my_strftime): Be sure to use L_('x') for literals.
77486
77487         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
77488         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
77489         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
77490         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
77491         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
77492         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
77493         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
77494         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
77495         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
77496         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
77497         * lib/xgethostname.c, lib/xreadlink.c:
77498         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
77499
77500         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
77501         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
77502         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
77503         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
77504         and don't include <sys/file.h>).
77505
77506 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
77507
77508         Sync from coreutils.
77509
77510         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
77511         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
77512         [!LDAV_DONE]: Avoid unused variable warning.
77513
77514 2005-09-21  Bruno Haible  <bruno@clisp.org>
77515
77516         * lib/unicodeio.h (unicode_to_mb): New declaration.
77517
77518 2005-09-20  Derek Price  <derek@ximbiot.com>
77519
77520         * lib/getaddrinfo.c: Don't include <netdb.h> included from
77521         getaddrinfo.h.
77522
77523 2005-09-20  Bruno Haible  <bruno@clisp.org>
77524
77525         * gnulib-tool: Remove trailing slashes from the values specified for
77526         --source-base, --m4-base, --tests-base, --aux-dir.
77527         Suggested by Simon Josefsson <jas@extundo.com>.
77528
77529 2005-09-20  Bruno Haible  <bruno@clisp.org>
77530
77531         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
77532         func_modules_to_filelist, func_import, func_create_testdir): Make all
77533         sorting results locale-independent, so that gnulib-cache.m4 doesn't
77534         change when gnulib-tool is invoked in a different locale.
77535
77536 2005-09-19  Simon Josefsson  <jas@extundo.com>
77537
77538         * m4/socklen.m4: Fix typo.
77539
77540 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77541
77542         Use a consistent style for including <config.h>.
77543         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
77544         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
77545         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
77546         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
77547         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
77548         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
77549         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
77550         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
77551         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
77552         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
77553         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
77554         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
77555         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
77556         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
77557         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
77558         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
77559         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
77560         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
77561         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
77562         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
77563         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
77564         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
77565         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
77566         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
77567         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
77568         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
77569         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
77570         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
77571         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
77572         lib/xstrtoumax.c, lib/yesno.c:
77573         Standardize inclusion of config.h.
77574         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
77575         lib/inttostr.h:  Removed inclusion of config.h from header files.
77576         * lib/inttostr.c:  Adjusted in-tree users.
77577         * lib/timespec.h: Remove superfluous warning to include config.h.
77578         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
77579         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
77580         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
77581         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
77582         config.h with HAVE_CONFIG_H.
77583
77584 2005-09-19  Jim Meyering  <jim@meyering.net>
77585
77586         * modules/pathmax (License): Change to LGPL.
77587
77588 2005-09-19  Derek Price  <derek@ximbiot.com>
77589
77590         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
77591
77592 2005-09-19  Bruno Haible  <bruno@clisp.org>
77593
77594         * gnulib-tool (import): Provide default for --tests-base.
77595
77596 2005-09-19  Bruno Haible  <bruno@clisp.org>
77597
77598         * doc/quote.texi: New file, extracted from gnulib.texi.
77599         * doc/ctime.texi: New file, extracted from gnulib.texi.
77600         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
77601         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
77602         * doc/gnulib.texi: Include them.
77603
77604 2005-09-18  Bruno Haible  <bruno@clisp.org>
77605
77606         Portability fix.
77607         * gnulib-tool (func_readlink): New function.
77608         (func_ln_if_changed): Use it.
77609
77610 2005-09-18  Bruno Haible  <bruno@clisp.org>
77611
77612         * gnulib-tool: Support --with-tests also with --import.
77613         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
77614         (func_import): Use variables $testsbase and $inctests. Emit a
77615         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
77616         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
77617         SUBDIRS += $testsdir.
77618         (func_create_testdir): Update.
77619
77620 2005-09-18  Bruno Haible  <bruno@clisp.org>
77621
77622         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
77623         instead of $dry_run.
77624         (func_cp_if_changed, func_mv_if_changed): Remove functions.
77625         (func_ln_if_changed): Don't handle dry-run here.
77626         (func_import): In dry-run mode, detect more precisely which actions
77627         would be performed, and don't use "...ing" verbs.
77628
77629 2005-09-18  Bruno Haible  <bruno@clisp.org>
77630
77631         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
77632         (func_import): Use join on two temporary files instead of three nested
77633         loops, in order to determine which files are new or old.
77634
77635 2005-09-18  Bruno Haible  <bruno@clisp.org>
77636
77637         * gnulib-tool (func_import): Comment out code that spits out the
77638         new files with --dry-run.
77639
77640 2005-09-18  Bruno Haible  <bruno@clisp.org>
77641
77642         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
77643
77644 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
77645
77646         * lib/stat-time.h: New file.
77647         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
77648         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
77649         in a different way.
77650         (timespec_cmp): New function.
77651         * lib/utimecmp.c: Include stat-time.h.
77652         (SYSCALL_RESOLUTION): Depend on whether various struct stat
77653         members exist, not on the obsolescent ST_MTIM_NSEC.
77654         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
77655
77656 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
77657
77658         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
77659
77660 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
77661
77662         * MODULES.html.sh (File system functions): Add stat-time.
77663         * modules/stat-time: New file.
77664         * modules/timespec (Files): Remove m4/st_mtim.m4; this
77665         is now done in a different way, by the stat-time module.
77666         * modules/utimecmp (Depends-on): Add stat-time.
77667
77668 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77669
77670         * m4/st_mtim.m4: Remove.  Superseded by...
77671         * m4/stat-time.m4: New file.
77672         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
77673         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
77674
77675 2005-09-15  Derek Price  <derek@ximbiot.com>
77676
77677         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
77678
77679 2005-09-15  Derek Price  <derek@ximbiot.com>
77680
77681         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
77682         * lib/regex_internal.c: Ditto, using this...
77683         (__GNUC_PREREQ): ...new macro.
77684         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
77685         using...
77686         (__GNUC_PREREQ): ...this new macro.
77687
77688         * lib/strstr.h: Include string.h. Define strstr as a macro here.
77689
77690 2005-09-15  Derek Price  <derek@ximbiot.com>
77691             Paul Eggert  <eggert@cs.ucla.edu>
77692
77693         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
77694         changes, consolidating in...
77695         * lib/regex_internal.h: ...this file.
77696
77697 2005-09-13  Jim Meyering  <jim@meyering.net>
77698
77699         * lib/canon-host.c: Filter through gnu indent and reword comments
77700         slightly.
77701         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
77702
77703 2005-09-13  Derek Price  <derek@ximbiot.com>
77704
77705         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
77706         failure.
77707         Reported by Jim Meyering  <jim@meyering.net>.
77708
77709 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77710
77711         * lib/base64.c: Typo.
77712         (base64_encode): Put b64str in initialized data section.
77713
77714 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
77715
77716         Merge glibc and coreutils changes into gnulib, plus a few
77717         extra fixes.
77718         * lib/md5.c: Use #error rather than a string.
77719         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
77720         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
77721         (__attribute__): Define to empty for non recent-GCC.
77722         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
77723         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
77724         Renamed from their non-__ counterparts, with new macros replacing
77725         them if not _LIBC.  Add __THROW attribute.
77726         (rol): Remove.
77727         (struct md5_ctx): Align buffer if using GCC.
77728         * lib/sha1.h (struct sha1_ctx): Likewise.
77729         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
77730         The old name was backwards.
77731         (NOTSWAP): Remove; not used.
77732         (rol): New macro, moved here from md5.h.
77733         (sha1_process_block): Remove a FIXME that doesn't make sense.
77734
77735 2005-09-12  Derek Price  <derek@ximbiot.com>
77736
77737         Return usable errors from canon-host.
77738         * lib/canon-host.h: New file.
77739         * lib/canon-host.c (canon_host): Wrap...
77740         (canon_host_r): ...this new function, which now relies exclusively on
77741         getaddrinfo.
77742         (ch_strerror): New function.
77743         (last_cherror): New global.
77744         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
77745         interface.
77746         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
77747         void *.
77748         (freeaddrinfo): Free ai->ai_canonname when set.
77749
77750 2005-09-12  Derek Price  <derek@ximbiot.com>
77751
77752         Make canon-host require getaddrinfo.
77753         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
77754         AC_LIBSOURCE canon-host.h.  Call...
77755         (gl_PREREQ_CANON_HOST): ...this new function, which requires
77756         gl_GETADDRINFO.
77757         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
77758
77759 2005-09-12  Derek Price  <derek@ximbiot.com>
77760
77761         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
77762         LGPL.
77763         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
77764
77765 2005-09-12  Derek Price  <derek@ximbiot.com>
77766
77767         * lib/gai_strerror.c: Include config.h when available.  Include
77768         getaddrinfo.h before other headers to test interface.
77769         Reported by Larry Jones <lawrence.jones@ugs.com>.
77770
77771 2005-09-12  Derek Price  <derek@ximbiot.com>
77772             Paul Eggert  <eggert@cs.ucla.edu>
77773
77774         * modules/glob (Files): Add glob-libc.h.
77775
77776 2005-09-12  Derek Price  <derek@ximbiot.com>
77777             Paul Eggert  <eggert@cs.ucla.edu>
77778
77779         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
77780         glob_.h, glob-libc.h.
77781         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
77782
77783 2005-09-12  Derek Price  <derek@ximbiot.com>
77784             Paul Eggert  <eggert@cs.ucla.edu>
77785
77786         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
77787         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
77788         protecting things that should be done only in gnulib contexts.
77789         * lib/glob_.h: New file, containing only the glob things needed for
77790         gnulib.
77791         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
77792         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
77793         (glob, globfree, glob_pattern_p): Now defined simply in terms of
77794         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
77795         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
77796         and to respect the namespace rules better.
77797
77798 2005-09-08  Simon Josefsson  <jas@extundo.com>
77799
77800         * modules/socklen: New file.
77801
77802 2005-09-08  Simon Josefsson  <jas@extundo.com>
77803
77804         * m4/socklen.m4: New file.
77805
77806 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77807
77808         * modules/utimens (Files): Add m4/utimbuf.m4, since
77809         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
77810         Reported by Sergey Poznyakoff.
77811
77812 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77813
77814         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
77815         definitions, since that's the preferred style in glibc.
77816         Fix a minor spacing issue, and update copyright notice to match
77817         glibc's.
77818
77819 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77820
77821         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
77822
77823 2005-09-06  Simon Josefsson  <jas@extundo.com>
77824
77825         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
77826         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
77827
77828 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77829
77830         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
77831         warning.
77832
77833 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77834
77835         * config/srclist.txt: Add glibc bug 1302.
77836
77837 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
77838
77839         Change bitset word type from unsigned int to unsigned long int,
77840         as this has better performance on typical 64-bit hosts.
77841         Port bitset code to hosts with unusual word sizes.
77842         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
77843         (build_collating_symbol):
77844         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
77845         argument is a bitset.  This is merely a style issue, but it makes
77846         it clearer that an entire array is expected.
77847         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
77848         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
77849         Port to the case where bitset_word is not the same as unsigned int.
77850         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
77851         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
77852         Likewise.
77853         * lib/regexec.c (check_dst_limits_calc_pos_1,
77854         check_subexp_matching_top):
77855         (build_trtable, group_nodes_into_DFAstates):
77856         Likewise.
77857         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
77858         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
77859         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
77860         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
77861         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
77862         * lib/regcomp.c (optimize_subexps, lower_subexp):
77863         Work even if bitset_word has holes in its bitwise representation.
77864         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
77865         * lib/regexec.c (check_dst_limits_calc_pos_1,
77866         check_subexp_matching_top):
77867         Likewise.
77868         * lib/regex_internal.c (re_string_reconstruct):
77869         Don't assume UCHAR_MAX == 255.
77870         * lib/regex_internal.h (bitset_set_all): Likewise.
77871         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
77872         All uses changed.
77873         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
77874         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
77875         All uses changed.
77876         (BITSET_WORD_MAX): New macro.
77877         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
77878         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
77879         (bitset_empty, bitset_copy):
77880         Prefer sizeof (bitset) to multiplying it out ourselves.
77881         (bitset_not_merge): Remove; unused.
77882         (bitset_contain): Return bool, not unsigned int with one bit on.
77883         All callers changed.
77884         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
77885         alignment than re_node_set; do this by defining a new internal
77886         type struct dests_alloc and using it to allocate memory.
77887
77888 2005-09-05  Bruno Haible  <bruno@clisp.org>
77889
77890         * gnulib-tool (func_import): Fix comparison in handling of symbolic
77891         links.
77892
77893 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
77894
77895         * modules/size_max (Makefile.am): Add size_max.h
77896
77897 2005-09-04  Derek Price  <derek@ximbiot.com>
77898
77899         * gnulib-tool (func_import): Fix reversed $symbolic logic.
77900
77901 2005-09-03  Simon Josefsson  <jas@extundo.com>
77902
77903         * gnulib-tool: Fix typo.
77904
77905 2005-09-03  Simon Josefsson  <jas@extundo.com>
77906
77907         * config/srclist.txt: Add glibc bug 1293.
77908
77909 2005-09-03  Derek Price  <derek@ximbiot.com>
77910
77911         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
77912         From Larry Jones <lawrence.jones@ugs.com>.
77913
77914 2005-09-02  Simon Josefsson  <jas@extundo.com>
77915
77916         * modules/socklen: New file.
77917
77918 2005-09-02  Simon Josefsson  <jas@extundo.com>
77919
77920         * modules/havelib: New module.
77921
77922         * modules/gettext, modules/iconv, modules/lock, modules/readline:
77923         Use havelib.
77924
77925 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
77926
77927         Check for arithmetic overflow when calculating sizes, to prevent
77928         some buffer-overflow issues.  These patches are conservative, in the
77929         sense that when I couldn't determine whether an overflow was possible,
77930         I inserted a run-time check.
77931         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
77932         macros.
77933         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
77934         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
77935         (re_xnrealloc, re_x2nrealloc): New inline functions.
77936         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
77937         parse_bracket_exp):
77938         (build_equiv_class, build_charclass): Check for arithmetic overflow
77939         in size expression calculations.
77940         * lib/regex_internal.c (re_string_realloc_buffers):
77941         (build_wcs_upper_buffer, re_node_set_add_intersect):
77942         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
77943         (re_dfa_add_node, register_state): Likewise.
77944         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
77945         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
77946         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
77947         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
77948
77949 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
77950
77951         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
77952         m4/ulonglong.m4.  Problem reported by Martin Lambers.
77953
77954 2005-09-02  Bruno Haible  <bruno@clisp.org>
77955
77956         Support for lib vs. lib64 distinction on biarch platforms.
77957         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
77958         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
77959         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
77960
77961 2005-09-02  Bruno Haible  <bruno@clisp.org>
77962
77963         * gnulib-tool (import): In the other first-use case, provide defaults
77964         as well.
77965
77966 2005-09-02  Bruno Haible  <bruno@clisp.org>
77967
77968         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
77969         patches not yet found in the latest gettext release.
77970
77971 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77972
77973         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
77974         to avoid a collision with bits/local_lim.h in glibc.
77975         All uses changed.  Problem reported by Dmitry V. Levin in
77976         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
77977
77978         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
77979         bugs in int versus size_t comparisons.
77980         (re_string_context_at): Fix bug where the code assumed that
77981         Idx is signed.
77982
77983         Use bool where appropriate.
77984         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
77985         All callers changed.
77986         (calc_eclosure_iter): Likewise, for ROOT arg.
77987         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
77988         (build_charclass_op): Likewise, for NON_MATCH arg.
77989         * lib/regex_internal.c (re_string_allocate, re_string_construct):
77990         (re_string_construct_common): Likewise, for ICASE arg.
77991         * lib/regexec.c (re_search_2_stub, re_search_stub):
77992         Likewise, for RET_LEN arg.
77993         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
77994         (set_regs): Likewise, for FL_BACKTRACK arg.
77995         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
77996         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
77997         (calc_eclosure_iter, parse_bracket_exp):
77998         Use bool for internal variables that are booleans.
77999         * lib/regexec.c (re_search_internal, check_matching,
78000         proceed_next_node):
78001         (set_regs, build_sifted_states, sift_states_bkref):
78002         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
78003         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
78004         (find_collation_sequence_value):
78005         Likewise.
78006         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
78007         (re_node_set_compare):
78008         Return bool, not int. All callers changed.
78009         * lib/regexec.c (check_halt_node_context, check_dst_limits):
78010         (build_trtable, check_node_accept): Likewise.
78011         * lib/regex_internal.h: Include stdbool.h.
78012
78013         Fix bugs uncovered when converting to bool.
78014         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
78015         failure instead of charging ahead blindly.
78016         * lib/regex_internal.c (register_state): Likewise.
78017         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
78018         for freeing internal storage.
78019         (group_nodes_into_DFA_states): Use unsigned int, not int, for
78020         bitset pieces used as boolean, to avoid undefined behavior
78021         on hosts that do int overflow checking.
78022
78023 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78024
78025         * config/srclist.txt: Add glibc bugs 1285-1287.
78026
78027 2005-09-01  Jim Meyering  <jim@meyering.net>
78028
78029         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
78030         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
78031         Require gl_STAT_MACROS, too.
78032
78033 2005-09-01  Bruno Haible  <bruno@clisp.org>
78034
78035         * gnulib-tool (import): In the first-use case, provide defaults.
78036
78037 2005-09-01  Bruno Haible  <bruno@clisp.org>
78038
78039         * gnulib-tool (func_import): Remove the .tmp files.
78040
78041 2005-09-01  Bruno Haible  <bruno@clisp.org>
78042
78043         * gnulib-tool (func_import): Fix handling of symbolic links.
78044
78045 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78046
78047         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
78048         old glibc regex code mishandles strings longer than 2**31 bytes.
78049         This patch fixes this when the regex code is used in gnulib
78050         (i.e., outside glibc).
78051
78052         This patch should not affect the use of the regex code inside
78053         glibc.  No doubt this problem also needs to be handled for glibc
78054         as well, but the result will be an incompatible change to the
78055         glibc ABI, and the old ABI will have to be supported too.  That
78056         can be the the subject for another patch.
78057
78058         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
78059         governing whether the rest of this patch is active.  By default,
78060         the macro is disabled and the patch has no effect.
78061         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
78062         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
78063         (struct re_pattern_buffer, re_search, re_search_2, re_match):
78064         (re_match_2, re_set_registers): Use the new types.
78065         * lib/regex_internal.h (Idx, re_hashval_t): New types.
78066         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
78067         New macros.
78068         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
78069         (re_string_context_at, bin_tree_t, re_dfastate_t):
78070         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
78071         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
78072         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
78073         (re_string_char_size_at, re_string_wchar_at):
78074         (re_string_elem_size_at):
78075         Use the new types and macros to port to 64-bit hosts.
78076         Use unsigned types for internal values, so that the code
78077         mostly works even for arrays larger than SSIZE_MAX.
78078         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
78079         (search_duplicated_node, calc_eclosure_iter, fetch_number):
78080         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
78081         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
78082         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
78083         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
78084         (calc_inveclosure, parse_dup_op, build_range_exp):
78085         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
78086         (fetch_number, create_token_tree, mark_opt_subexp):
78087         Likewise.
78088         * lib/regex_internal.c (re_string_construct_common,
78089         create_ci_newstate):
78090         (create_cd_newstate, re_string_allocate, re_string_construct):
78091         (re_string_realloc_buffers, build_wcs_upper_buffer):
78092         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
78093         (re_string_reconstruct, re_string_peek_byte_case):
78094         (re_string_fetch_byte_case, re_string_context_at):
78095         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
78096         (re_node_set_init_copy, re_node_set_add_intersect):
78097         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
78098         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
78099         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
78100         (re_acquire_state, re_acquire_state_context, register_state):
78101         Likewise.
78102         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
78103         search_cur_bkref_entry):
78104         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
78105         (re_search_internal, re_search_2_stub, re_search_stub)
78106         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
78107         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
78108         (update_cur_sifted_state, check_dst_limits):
78109         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
78110         (check_subexp_limits, sift_states_bkref, merge_state_array):
78111         (check_subexp_matching_top, get_subexp, get_subexp_sub):
78112         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
78113         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
78114         (expand_bkref_cache, check_node_accept_bytes):
78115         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
78116         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
78117         (acquire_init_state_context, check_halt_node_context):
78118         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
78119         (sift_states_backward, clean_state_log_if_needed):
78120         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
78121         (find_recover_state, transit_state_sb, transit_state_mb):
78122         (transit_state_bkref, build_trtable, match_ctx_clean):
78123         Likewise.
78124         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
78125         to work around an assumption that REG_MISSING is negative.
78126
78127         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
78128         (seek_collating_symbol_entry) [defined _LIBC]:
78129         (lookup_collation_sequence_value) [defined _LIBC]:
78130         (build_range_exp, build_collating_symbol) [defined _LIBC]:
78131         Use prototypes rather than old-style function definitions.
78132         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
78133         (transit_state_sb) [0]:
78134         (find_collation_sequence_value) [defined _LIBC]: Likewise.
78135
78136         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
78137         rm_eo.
78138
78139         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
78140         (optimize_subexps, lower_subexp):
78141         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
78142         since the signed shift might overflow.  Use 1u<<31 instead.
78143         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
78144         Likewise.
78145         * lib/regexec.c (check_dst_limits_calc_pos_1,
78146         check_subexp_matching_top): Likewise.
78147
78148         * lib/regcomp.c (optimize_subexps, lower_subexp):
78149         Use CHAR_BIT rather than 8, for clarity.
78150         * lib/regexec.c (check_dst_limits_calc_pos_1):
78151         (check_subexp_matching_top): Likewise.
78152         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
78153         have to worry about portability issues when shifting it left.
78154         Remove no-longer-needed test for table_size > 0.
78155         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
78156         in a word, as the resulting behavior is undefined.
78157         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
78158         in one case, a <= should have been an <, and in another case the
78159         whole test was missing.
78160         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
78161         the standard name CHAR_BIT.
78162         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
78163         this is not true on one's complement and signed-magnitude hosts.
78164
78165         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
78166         next_last_offset.
78167         (struct re_dfa_t): Remove unused member states_alloc.
78168         * lib/regcomp.c (init_dfa): Don't initialize unused members.
78169
78170 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78171
78172         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
78173         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
78174         and large-file glibc and in 32-bit large-file Solaris.
78175
78176 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78177
78178         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
78179         lengths fit in regoff_t; this isn't true if regoff_t is the same
78180         width as size_t.
78181         * lib/regex.c (re_search_internal): 5th arg is LAST_START
78182         (= START + RANGE) instead of RANGE.  This avoids overflow
78183         problems when regoff_t is the same width as size_t.
78184         All callers changed.
78185         (re_search_2_stub): Check for overflow when adding the
78186         sizes of the two strings.
78187         (re_search_stub): Check for overflow when adding START
78188         to RANGE; if it occurs, substitute the extreme value.
78189
78190 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78191
78192         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
78193
78194 2005-08-31  Jim Meyering  <jim@meyering.net>
78195
78196         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
78197         a pointer-to-const.
78198         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
78199         (register_state): Likewise.
78200         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
78201         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
78202         (group_nodes_into_DFAstates): Likewise.
78203
78204 2005-08-31  Jim Meyering  <jim@meyering.net>
78205
78206         * check-module: Add a FIXME comment.
78207
78208 2005-08-31  Eric Blake  <ebb9@byu.net>
78209
78210         * modules/unistd-safer (Files): Add unistd--.h.
78211         * modules/stdio-safer (Files): Add stdio--.h.
78212
78213 2005-08-31  Derek Price  <derek@ximbiot.com>
78214
78215         * lib/getdelim.c (getdelim): Return EOF on EOF.
78216         Reported by Larry Jones <lawrence.jones@ugs.com>.
78217
78218 2005-08-31  Bruno Haible  <bruno@clisp.org>
78219
78220         Avoid unnecessary diffs in the generated lib/Makefile.am.
78221         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
78222         the generated files.
78223         (func_import): Don't set cmd.
78224
78225 2005-08-31  Bruno Haible  <bruno@clisp.org>
78226
78227         * lib/strstr.c: Include <stddef.h>, for NULL.
78228         * lib/strcasestr.c: Likewise.
78229         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78230
78231 2005-08-31  Bruno Haible  <bruno@clisp.org>
78232
78233         * gnulib-tool: New option --macro-prefix.
78234         (func_import): Use macro_prefix.
78235         (import): Handle option --macro-prefix.
78236
78237 2005-08-31  Bruno Haible  <bruno@clisp.org>
78238
78239         * gnulib-tool (import): Rename most ac_* variables to cached_*.
78240         Also use new variables cached_lgpl, cached_libtool.
78241
78242 2005-08-31  Bruno Haible  <bruno@clisp.org>
78243
78244         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
78245         always instantiating them.
78246
78247 2005-08-31  Bruno Haible  <bruno@clisp.org>
78248
78249         * gnulib-tool (func_import): Read the previous cached settings
78250         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
78251         earlier added by gnulib but are now dropped. Warn when a gnulib file
78252         overwrites a non-gnulib file.
78253
78254 2005-08-31  Bruno Haible  <bruno@clisp.org>
78255
78256         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
78257         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
78258         projects that don't keep autogenerated files in CVS. Put into
78259         actioncmd only the specified modules, not the transitive closure.
78260
78261 2005-08-31  Bruno Haible  <bruno@clisp.org>
78262
78263         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
78264         Create directories that shall be filled.
78265         (import): Don't look for gl_* macros in configure.ac. Recurse across
78266         all directories containing a gnulib-cache.m4 files, if meaningful.
78267
78268 2005-08-31  Bruno Haible  <bruno@clisp.org>
78269
78270         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
78271         (import): Set seen_libtool when we see gl_LIBTOOL.
78272
78273 2005-08-31  Bruno Haible  <bruno@clisp.org>
78274
78275         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
78276         declaration macro definitions from generated gnulib.m4.
78277
78278 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
78279
78280         * lib/iconvme.h: Add prototype for iconv_alloc.
78281
78282 2005-08-29  Simon Josefsson  <jas@extundo.com>
78283
78284         * lib/iconvme.c: Fix errno.
78285
78286 2005-08-29  Bruno Haible  <bruno@clisp.org>
78287
78288         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
78289         that it works when the directory contains spaces.
78290
78291 2005-08-29  Bruno Haible  <bruno@clisp.org>
78292
78293         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
78294
78295 2005-08-29  Bruno Haible  <bruno@clisp.org>
78296
78297         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
78298         Emit more advice.
78299
78300 2005-08-29  Bruno Haible  <bruno@clisp.org>
78301         and Stepan Kasal  <kasal@ucw.cz>
78302
78303         * check-module: If more parameters are given, check each of them
78304         separately; add more exceptions, as noted by Jim Meyering.
78305         (check_module): New procedure.
78306         (%exempt_header): Now contains all exceptions.
78307
78308 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
78309
78310         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
78311
78312 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
78313
78314         * lib/iconvme.c: Split iconv_string into iconv_alloc.
78315
78316 2005-08-28  Bruno Haible  <bruno@clisp.org>
78317
78318         * m4/gnulib-tool.m4: New file.
78319
78320 2005-08-27  Jim Meyering  <jim@meyering.net>
78321
78322         * modules/unistd-safer (Files): Add pipe-safer.c.
78323         * modules/fcntl-safer (Files): Add creat-safer.c.
78324
78325 2005-08-27  Jim Meyering  <jim@meyering.net>
78326
78327         * m4/stdlib-safer.m4: New file.  From coreutils.
78328         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
78329         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
78330         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
78331         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
78332         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
78333
78334 2005-08-27  Jim Meyering  <jim@meyering.net>
78335
78336         * lib/fopen-safer.c: Merge minor changes from coreutils.
78337         * lib/dup-safer.c: Likewise.
78338         * lib/fd-safer.c: Likewise.
78339
78340         Merge from coreutils.
78341         * lib/stdio--.h: New file.
78342         * lib/stdlib--.h: New file.
78343         * lib/mkstemp-safer.c: New file.
78344
78345         GNU tar needs these.
78346         * lib/pipe-safer.c: New file.
78347         * lib/creat-safer.c: New file.
78348         * lib/fcntl--.h (creat): Define to creat_safer.
78349         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
78350         * lib/unistd--.h (pipe): Define to pipe_safer.
78351         * lib/unistd-safer.h: Declare pipe_safer.
78352
78353 2005-08-26  Simon Josefsson  <jas@extundo.com>
78354
78355         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
78356         Haible <bruno@clisp.org>.
78357
78358 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
78359
78360         * lib/regex_internal.h: Remove all references to
78361         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
78362         or better.
78363         (bitset_not, bitset_merge, bitset_not_merge):
78364         (bitset_mask, re_string_allocate, re_string_construct):
78365         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
78366         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
78367         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
78368         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
78369         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
78370         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
78371         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
78372         (re_acquire_state_context):
78373         Remove unnecessary forward decls.
78374         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
78375         Put __attribute at function definition,
78376         now that the function decl has been removed.
78377         * lib/regex_internal.c (re_string_peek_byte_case):
78378         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
78379         Likewise.
78380
78381 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
78382
78383         * m4/regex.m4: Add AC_PREREQ(2.50).
78384         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
78385
78386 2005-08-25  Simon Josefsson  <jas@extundo.com>
78387
78388         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
78389         __fsetlocking.
78390
78391 2005-08-25  Simon Josefsson  <jas@extundo.com>
78392
78393         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
78394         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
78395         GLIBC specific code.
78396
78397 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78398
78399         Make regex safe for g++.  This fixes one real bug (an "err"
78400         that should have been "*err").  g++ problem reported by
78401         Sam Steingold.
78402         * lib/regex_internal.h (re_calloc): New macro, consistent with
78403         re_malloc etc.  All callers of calloc changed to use re_calloc.
78404         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
78405         not int.  All callers changed.
78406         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
78407         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
78408         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
78409         (find_recover_state): Change "err" to "*err"; this fixes what
78410         appears to be a real bug.
78411         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
78412         versus int.
78413
78414 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78415
78416         * modules/regex (Depends-on): Add malloc, since the code
78417         assumes that !malloc(0) means failure.
78418
78419 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78420
78421         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
78422
78423         alloca modernization/simplification for regex.
78424         * lib/regex.c: Remove portability cruft for alloca.  This no longer
78425         needs to be at the start of the file, and can be moved into
78426         regex_internal.h and simplified.
78427         * lib/regex_internal.h: Include <alloca.h>.
78428         (__libc_use_alloca) [!defined _LIBC]: New macro.
78429         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
78430         now works outside glibc.
78431
78432 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78433
78434         * config/srclist.txt: Add glibc bugs 1241, 1245.
78435
78436 2005-08-25  Jim Meyering  <jim@meyering.net>
78437
78438         * lib/open-safer.c: Include <config.h>.
78439         Otherwise, we'd lose LARGEFILE support in any file using
78440         e.g. "fcntl--.h"
78441
78442 2005-08-25  Bruno Haible  <bruno@clisp.org>
78443
78444         * m4/minmax.m4: Require autoconf 2.52.
78445         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
78446         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
78447         alternatives of translit over the alphabet.
78448         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
78449
78450 2005-08-24  Simon Josefsson  <jas@extundo.com>
78451
78452         * tests/test-getpass.c: New file.
78453
78454 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78455
78456         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
78457         for GNU regex features.
78458
78459 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78460
78461         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
78462         * lib/regex.h (regerror): Likewise.
78463
78464         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
78465         requires this.  (The code never needed it.)
78466
78467         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
78468         All uses of recently-renamed identifiers changed to use the new,
78469         POSIX-compliant names.  The code will build and run just fine
78470         without these changes, but it's better to eat our own dog food
78471         and use the standard-conforming names.
78472
78473         * lib/regex.h: Fix a multitude of POSIX name space violations.
78474         These changes have an effect only for programs that define
78475         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
78476         do not change anything for programs compiled in the normal way.
78477         Also, there is no effect on the ABI.
78478
78479         (_REGEX_SOURCE): New macro.
78480         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
78481         defined and _GNU_SOURCE is not; this fixes a name space violation.
78482
78483         Rename the following macros to obey POSIX requirements.
78484         The old names are still visible as macros if _REGEX_SOURCE is defined.
78485         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
78486         RE_BACKSLASH_ESCAPE_IN_LISTS.
78487         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
78488         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
78489         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
78490         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
78491         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
78492         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
78493         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
78494         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
78495         (REG_INTERVALS): renamed from RE_INTERVALS.
78496         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
78497         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
78498         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
78499         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
78500         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
78501         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
78502         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
78503         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
78504         RE_UNMATCHED_RIGHT_PAREN_ORD.
78505         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
78506         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
78507         (REG_DEBUG): renamed from RE_DEBUG.
78508         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
78509         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
78510         unusual, since we can't clash with the POSIX REG_ICASE.
78511         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
78512         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
78513         (REG_NO_SUB): renamed from RE_NO_SUB.
78514         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
78515         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
78516         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
78517         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
78518         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
78519         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
78520         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
78521         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
78522         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
78523         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
78524         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
78525         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
78526         RE_SYNTAX_POSIX_MINIMAL_BASIC.
78527         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
78528         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
78529         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
78530         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
78531         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
78532         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
78533         (REG_FIXED): Renamed from REGS_FIXED.
78534         (REG_NREGS): Renamed from RE_NREGS.
78535
78536         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
78537         of other REG_* macros, since POSIX says the user is allowed to
78538         #undef these macros selectively.
78539
78540         (reg_errcode_t): Update comment stating what other tables need
78541         to be consistent.
78542
78543         Rename the following enum values to obey POSIX requirements.
78544         The old names are still visible as macros.
78545         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
78546         is not defined, since GNU is supposed to be a superset of POSIX as
78547         much as possible, and since we want reg_errcode_t to be a signed
78548         type for implementation consistency.
78549         (_REG_NOERROR): Renamed from REG_NOERROR.
78550         (_REG_NOMATCH): Renamed from REG_NOMATCH.
78551         (_REG_BADPAT): Renamed from REG_BADPAT.
78552         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
78553         (_REG_ECTYPE): Renamed from REG_ECTYPE.
78554         (_REG_EESCAPE): Renamed from REG_EESCAPE.
78555         (_REG_ESUBREG): Renamed from REG_ESUBREG.
78556         (_REG_EBRACK): Renamed from REG_EBRACK.
78557         (_REG_EPAREN): Renamed from REG_EPAREN.
78558         (_REG_EBRACE): Renamed from REG_EBRACE.
78559         (_REG_BADBR): Renamed from REG_BADBR.
78560         (_REG_ERANGE): Renamed from REG_ERANGE.
78561         (_REG_ESPACE): Renamed from REG_ESPACE.
78562         (_REG_BADRPT): Renamed from REG_BADRPT.
78563         (_REG_EEND): Renamed from REG_EEND.
78564         (_REG_ESIZE): Renamed from REG_ESIZE.
78565         (_REG_ERPAREN): Renamed from REG_ERPAREN.
78566         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
78567         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
78568         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
78569         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
78570
78571         (_REG_RE_NAME, _REG_RM_NAME): New macros.
78572         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
78573         changed.  But support the old name if the new one is not defined
78574         and if _REGEX_SOURCE.
78575
78576         Change the following member names in struct re_pattern_buffer.
78577         The old names are still supported if !_REGEX_SOURCE.
78578         The new names are always supported, regardless of _REGEX_SOURCE.
78579         (re_buffer): Renamed from buffer.
78580         (re_allocated): Renamed from allocated.
78581         (re_used): Renamed from used.
78582         (re_syntax): Renamed from syntax.
78583         (re_fastmap): Renamed from fastmap.
78584         (re_translate): Renamed from translate.
78585         (re_can_be_null): Renamed from can_be_null.
78586         (re_regs_allocated): Renamed from regs_allocated.
78587         (re_fastmap_accurate): Renamed from fastmap_accurate.
78588         (re_no_sub): Renamed from no_sub.
78589         (re_not_bol): Renamed from not_bol.
78590         (re_not_eol): Renamed from not_eol.
78591         (re_newline_anchor): Renamed from newline_anchor.
78592
78593         Change the following member names in struct re_registers.
78594         The old names are still supported if !_REGEX_SOURCE.
78595         The new names are always supported, regardless of _REGEX_SOURCE.
78596         (rm_num_regs): Renamed from num_regs.
78597         (rm_start): Renamed from start.
78598         (rm_end): Renamed from end.
78599
78600         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
78601         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
78602         Prepend __ to parameter names.
78603
78604         Undo yesterday's changes.
78605
78606 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78607
78608         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
78609         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
78610         lib/regex.c.
78611
78612 2005-08-24  Jim Meyering  <jim@meyering.net>
78613
78614         Sync from coreutils.
78615         * m4/fcntl-safer.m4: New file.
78616
78617         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
78618         and object files for this module.
78619
78620 2005-08-24  Jim Meyering  <jim@meyering.net>
78621
78622         Sync from coreutils.
78623         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
78624
78625 2005-08-24  Jim Meyering  <jim@meyering.net>
78626
78627         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
78628         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
78629
78630 2005-08-24  Jim Meyering  <jim@meyering.net>
78631
78632         * modules/fcntl-safer: New module.
78633         * modules/fts (Depends-on): Add fcntl-safer.
78634         * MODULES.html.sh (File descriptor based Input/Output):
78635         Add fcntl-safer.
78636
78637 2005-08-24  Bruno Haible  <bruno@clisp.org>
78638
78639         Support for unit test modules.
78640         * modules/README: Mention tests modules.
78641         * modules/TEMPLATE-TESTS: New file.
78642         * gnulib-tool: New options --extract-tests-module, --with-tests and
78643         --tests-base (unused for the moment).
78644         (testsbase, inctests): New variables.
78645         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
78646         (func_verify_module): Exclude TEMPLATE-TESTS.
78647         (func_verify_nontests_module, func_verify_tests_module): New functions.
78648         (func_get_dependencies): Add implicit dependency for tests modules.
78649         (func_get_tests_module): New function.
78650         (func_modules_transitive_closure): When --with-tests was specified,
78651         include the unit tests as well, unless explicitly avoided.
78652         (func_emit_lib_Makefile_am): Ignore the tests modules here.
78653         (func_emit_tests_Makefile_am): New function.
78654         (func_create_testdir): When --with-tests was specified, emit a
78655         tests/ directory.
78656         * MODULES.html.sh (Future developments): Update.
78657
78658 2005-08-24  Bruno Haible  <bruno@clisp.org>
78659
78660         * modules/tls-tests: New file.
78661         * tests/test-tls.c: New file, from GNU gettext.
78662
78663 2005-08-24  Bruno Haible  <bruno@clisp.org>
78664
78665         * modules/lock-tests: New file.
78666         * tests/test-lock.c: New file, from GNU gettext.
78667
78668 2005-08-24  Bruno Haible  <bruno@clisp.org>
78669
78670         * lib/lock.h: Add multiple inclusion guard.
78671         * lib/tls.h: Add multiple inclusion guard.
78672
78673 2005-08-24  Bruno Haible  <bruno@clisp.org>
78674
78675         * gnulib-tool: Add support for the --aux-dir option to
78676         --create-testdir, --create-megatestdir, --test, --megatest.
78677         (func_create_testdir, func_create_megatestdir): Optionally emit a
78678         AC_CONFIG_AUX_DIR directive.
78679         (create-testdir, create-megatestdir, test, megatest): Provide a
78680         default value for $auxdir.
78681
78682 2005-08-24  Bruno Haible  <bruno@clisp.org>
78683
78684         * gnulib-tool (import): Use compound statement instead of subshell
78685         where possible.
78686
78687 2005-08-24  Bruno Haible  <bruno@clisp.org>
78688
78689         * gnulib-tool (import): Change --aux-dir default to "build-aux".
78690
78691 2005-08-24  Bruno Haible  <bruno@clisp.org>
78692
78693         * gnulib-tool (func_version): Update.
78694
78695 2005-08-24  Bruno Haible  <bruno@clisp.org>
78696
78697         * gnulib-tool (func_import, func_create_testdir,
78698         func_create_megatestdir): Quote all autoconf macro arguments.
78699
78700 2005-08-24  Bruno Haible  <bruno@clisp.org>
78701
78702         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
78703         option --force, because --force causes the aclocal.m4 of each
78704         subdirectory to be newer than the corresponding config.h.in.
78705
78706 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78707
78708         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
78709         All contents moved to gl_REGEX.
78710         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
78711         assume that it does.
78712
78713 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78714
78715         * lib/regex.h (REG_NOSYS)
78716         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
78717         Define, since POSIX requires it as of 2001.
78718         (_REG_ENOSYS)
78719         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
78720         New private symbol, used to keep the enum signed in all cases.
78721         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
78722         Youngman in
78723         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
78724
78725         * lib/regex_internal.c (re_string_skip_chars, register_state):
78726         (calc_state_hash):
78727         Remove forward decls; no longer needed now that we use prototypes.
78728         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
78729         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
78730         (clean_state_log_if_needed): Likewise.
78731
78732 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78733
78734         * config/srclist.txt: Add glibc bugs 1231-1233.
78735
78736 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78737
78738         Fix problems reported by Sam Steingold in
78739         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
78740         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
78741         assumed that reg_errcode_t is a signed type, which is not
78742         necessarily true if _XOPEN_SOURCE is not defined.
78743         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
78744         since some compilers warn about it otherwise.
78745
78746 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78747
78748         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
78749         (init_word_char, create_initial_state, duplicate_node_closure):
78750         (fetch_token, peek_token_bracket, build_range_exp):
78751         (build_collating_symbol): Remove forward decls; no longer needed
78752         now that we use prototypes.
78753
78754         * lib/regcomp.c:
78755         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
78756         (re_compile_fastmap_iter, regcomp, regerror, regfree):
78757         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
78758         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
78759         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
78760         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
78761         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
78762         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
78763         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
78764         (build_range_exp, build_collating_symbol, parse_bracket_exp):
78765         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
78766         (build_charclass, build_charclass_op, fetch_number, create_tree):
78767         (create_token_tree, mark_opt_subexp, duplicate_tree):
78768         Use prototypes rather than old-style definitions.
78769
78770         * lib/regex_internal.c:
78771         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
78772         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
78773         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
78774         (re_string_reconstruct, re_string_peek_byte_case):
78775         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
78776         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
78777         (re_node_set_init_copy, re_node_set_add_intersect):
78778         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
78779         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
78780         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
78781         (re_acquire_state, re_acquire_state_context, register_state):
78782         (create_ci_newstate, create_cd_newstate, free_state):
78783         Likewise.
78784         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
78785         re_search_2):
78786         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
78787         (re_search_internal, prune_impossible_nodes):
78788         (acquire_init_state_context, check_matching, static):
78789         (check_halt_node_context, check_halt_state_context, proceed_next_node):
78790         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
78791         (update_regs, sift_states_backward, build_sifted_states):
78792         (clean_state_log_if_needed, merge_state_array):
78793         (update_cur_sifted_state, add_epsilon_src_nodes):
78794         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
78795         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
78796         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
78797         (find_recover_state, check_subexp_matching_top, transit_state_mb):
78798         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
78799         (check_arrival, check_arrival_add_next_nodes):
78800         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
78801         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
78802         (check_node_accept_bytes, check_node_accept, extend_buffers):
78803         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
78804         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
78805         (sift_ctx_init):
78806         Likewise.
78807
78808         * lib/regex_internal.h:
78809         (re_string_allocate, re_string_construct, re_string_reconstruct):
78810         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
78811         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
78812         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
78813         (re_string_context_at, re_string_peek_byte_case):
78814         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
78815         is defined, since we now use prototypes always.
78816
78817         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
78818         C89 or better.  All uses removed.
78819
78820 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78821
78822         * config/srclist.txt: Add glibc bugs 1220-1227.
78823
78824 2005-08-20  Jim Meyering  <jim@meyering.net>
78825
78826         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
78827         of unused local, dfa.
78828
78829 2005-08-20  Bruno Haible  <bruno@clisp.org>
78830
78831         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
78832
78833 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78834
78835         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
78836         (re_node_set_insert_last, re_dfa_add_node):
78837         Rename local variables to avoid GCC shadowing warnings.
78838
78839 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78840
78841         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
78842         [defined lint]: Suppress bogus uninitialized-variable warnings.
78843
78844         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
78845         and let the caller return REG_ESPACE if out of space.  This
78846         removes an uninitialied-variable warning with GCC 4.0.1, and also
78847         avoids taking the address of a local variable.  All callers
78848         changed.
78849
78850 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78851
78852         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
78853         $LIBCSRC/posix/regexec.c.
78854         Add glibc bug 1217 for regcomp.c.
78855
78856 2005-08-19  Jim Meyering  <jim@meyering.net>
78857
78858         * lib/regexec.c (proceed_next_node): Redo local variables to
78859         avoid GCC shadowing warnings.
78860
78861 2005-08-18  Bruno Haible  <bruno@clisp.org>
78862
78863         * lib/strstr.c (strstr): Fix return value in multibyte case.
78864         * lib/strcasestr.c (strcasestr): Likewise.
78865
78866 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78867
78868         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
78869
78870 2005-08-17  Jim Meyering  <jim@meyering.net>
78871
78872         Make the %s format (seconds since the epoch) work for a negative
78873         number and when used with a zero-padded field width, e.g. %015s.
78874
78875         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
78876         label so that it precedes the code to set `digits'.  Otherwise,
78877         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
78878         print `00-22'.  Now, it prints `-0022', as it should.
78879
78880 2005-08-17  Bruno Haible  <bruno@clisp.org>
78881
78882         * modules/strstr (Files): Add m4/mbrtowc.m4.
78883         (Depends-on): Add mbuiter.
78884
78885 2005-08-17  Bruno Haible  <bruno@clisp.org>
78886
78887         * modules/strcasestr: New file.
78888         * MODULES.html.sh (String handling, based on ANSI C 89): Add
78889         strcasestr.
78890
78891 2005-08-17  Bruno Haible  <bruno@clisp.org>
78892
78893         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
78894
78895 2005-08-17  Bruno Haible  <bruno@clisp.org>
78896
78897         * modules/mbuiter: New file.
78898         * MODULES.html.sh (Extended multibyte and wide character utilities):
78899         Add mbuiter.
78900
78901 2005-08-17  Bruno Haible  <bruno@clisp.org>
78902
78903         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
78904         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
78905
78906 2005-08-17  Bruno Haible  <bruno@clisp.org>
78907
78908         * m4/strcasestr.m4: New file.
78909
78910 2005-08-17  Bruno Haible  <bruno@clisp.org>
78911
78912         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
78913         * lib/strstr.c: Completely rewritten, with multibyte locale support.
78914
78915 2005-08-17  Bruno Haible  <bruno@clisp.org>
78916
78917         * lib/strcasestr.h: New file.
78918         * lib/strcasestr.c: New file.
78919
78920 2005-08-17  Bruno Haible  <bruno@clisp.org>
78921
78922         * lib/strcasecmp.c: Use mbuiter.h.
78923
78924 2005-08-17  Bruno Haible  <bruno@clisp.org>
78925
78926         * lib/mbuiter.h: New file.
78927
78928 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
78929
78930         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
78931         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
78932         and gl_GETOPT are both invoked via different paths (as happens
78933         with GNU tar CVS because it uses both argp and getopt), the former
78934         wins.
78935
78936 2005-08-16  Bruno Haible  <bruno@clisp.org>
78937
78938         * modules/tls: New file.
78939         * MODULES.html.sh (Multithreading): Add tls.
78940
78941 2005-08-16  Bruno Haible  <bruno@clisp.org>
78942
78943         * modules/strnlen1: New file.
78944         * MODULES.html.sh (String handling): Add strnlen1.
78945
78946 2005-08-16  Bruno Haible  <bruno@clisp.org>
78947
78948         * modules/strcase (Files): Add m4/mbrtowc.m4.
78949         (Depends-on): Add strnlen1, mbchar.
78950
78951 2005-08-16  Bruno Haible  <bruno@clisp.org>
78952
78953         * modules/mbiter: New file.
78954         * MODULES.html.sh (Extended multibyte and wide character utilities):
78955         Add mbiter.
78956
78957 2005-08-16  Bruno Haible  <bruno@clisp.org>
78958
78959         * modules/mbfile: New file.
78960         * MODULES.html.sh (Extended multibyte and wide character utilities):
78961         Add mbfile.
78962
78963 2005-08-16  Bruno Haible  <bruno@clisp.org>
78964
78965         * modules/mbchar: New file.
78966         * MODULES.html.sh (Extended multibyte and wide character utilities):
78967         New section.
78968
78969 2005-08-16  Bruno Haible  <bruno@clisp.org>
78970
78971         * m4/tls.m4: New file, from GNU gettext.
78972
78973 2005-08-16  Bruno Haible  <bruno@clisp.org>
78974
78975         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
78976         always.
78977         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
78978
78979 2005-08-16  Bruno Haible  <bruno@clisp.org>
78980
78981         * m4/mbiter.m4: New file.
78982
78983 2005-08-16  Bruno Haible  <bruno@clisp.org>
78984
78985         * m4/mbfile.m4: New file.
78986
78987 2005-08-16  Bruno Haible  <bruno@clisp.org>
78988
78989         * m4/mbchar.m4: New file.
78990
78991 2005-08-16  Bruno Haible  <bruno@clisp.org>
78992
78993         * lib/tls.h: New file, from GNU gettext.
78994         * lib/tls.c: New file, from GNU gettext.
78995
78996 2005-08-16  Bruno Haible  <bruno@clisp.org>
78997
78998         * lib/strnlen1.h: New file.
78999         * lib/strnlen1.c: New file.
79000
79001 2005-08-16  Bruno Haible  <bruno@clisp.org>
79002
79003         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
79004         (mbi_init): Update.
79005         (mbi_avail, mbi_advance): Let the iteration end before the terminating
79006         NUL byte, not after it.
79007
79008 2005-08-16  Bruno Haible  <bruno@clisp.org>
79009
79010         * lib/strcase.h (strcasecmp): Add note in comments.
79011         * lib/strncasecmp.c: Use code from strcasecmp.c.
79012         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
79013         (strcasecmp): Work correctly in multibyte locales.
79014
79015 2005-08-16  Bruno Haible  <bruno@clisp.org>
79016
79017         * lib/mbiter.h: New file.
79018
79019 2005-08-16  Bruno Haible  <bruno@clisp.org>
79020
79021         * lib/mbfile.h: New file.
79022
79023 2005-08-16  Bruno Haible  <bruno@clisp.org>
79024
79025         * lib/mbchar.h: New file.
79026         * lib/mbchar.c: New file.
79027
79028 2005-08-16  Bruno Haible  <bruno@clisp.org>
79029
79030         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
79031         the valid ones. Makes the comparison operations transitive:
79032         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
79033         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
79034
79035 2005-08-15  Simon Josefsson  <jas@extundo.com>
79036
79037         * modules/ssize_t (License): Change to 'unlimited'.
79038
79039         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
79040
79041 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79042
79043         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
79044         Add comments for each pending glibc patch.
79045
79046 2005-08-15  Bruno Haible  <bruno@clisp.org>
79047
79048         * lib/regex.h (__restrict_arr): Don't define to __restrict if
79049         __cplusplus is defined.
79050
79051 2005-08-14  Jim Meyering  <jim@meyering.net>
79052
79053         Sync from coreutils.
79054
79055         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
79056         Use the hash-table-based cycle-detection code not just when
79057         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
79058         Reported by James Youngman in
79059         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
79060         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
79061         FTS_TIGHT_CYCLE_CHECK.
79062         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
79063         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
79064         once again.
79065         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
79066         * lib/fts.c (fd_safer): Remove decl.
79067         Include fcntl--.h rather than unistd-safer.h
79068         (fts_safe_changedir): Don't call fd_safer; no longer needed
79069         now that we include fcntl--.h.
79070
79071 2005-08-12  Simon Josefsson  <jas@extundo.com>
79072
79073         * modules/getndelim2: Use ssize_t module.
79074         * modules/getnline: Likewise.
79075         * modules/safe-read: Likewise.
79076         * modules/xreadlink: Likewise.
79077
79078         * modules/ssize_t: New file.
79079
79080 2005-08-12  Simon Josefsson  <jas@extundo.com>
79081
79082         * m4/readline.m4: Look for termcap, curses or ncurses if required.
79083
79084 2005-08-12  Simon Josefsson  <jas@extundo.com>
79085
79086         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79087         ssize_t.
79088
79089 2005-08-12  Simon Josefsson  <jas@extundo.com>
79090
79091         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
79092         readline, getdelim and check_version.
79093         (Support for systems lacking ISO C 99: Sizes of integer types):
79094         Add size_max.
79095
79096 2005-08-12  Bruno Haible  <bruno@clisp.org>
79097
79098         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
79099
79100 2005-08-11  Simon Josefsson  <jas@extundo.com>
79101
79102         * modules/readline: New file.
79103
79104         * modules/strnlen (Files): Add strnlen.h.
79105
79106 2005-08-11  Simon Josefsson  <jas@extundo.com>
79107
79108         * m4/readline.m4: New file.
79109
79110 2005-08-11  Simon Josefsson  <jas@extundo.com>
79111
79112         * lib/readline.h, readline.c: New file.
79113
79114 2005-08-11  Simon Josefsson  <jas@extundo.com>
79115
79116         * doc/gnulib.texi (Initial import, Finishing touches): Mention
79117         gl_AVOID.
79118
79119 2005-08-11  Bruno Haible  <bruno@clisp.org>
79120
79121         * lib/strnlen.h (strnlen): Change parameter name to match comment.
79122
79123 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
79124
79125         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
79126
79127 2005-08-10  Simon Josefsson  <jas@extundo.com>
79128
79129         * tests/test-iconvme.c: New file.
79130
79131 2005-08-10  Simon Josefsson  <jas@extundo.com>
79132
79133         * m4/strnlen.m4: New file.
79134
79135         * m4/strndup.m4: Don't check for strnlen declaration, done in
79136         strnlen.m4.
79137
79138 2005-08-10  Simon Josefsson  <jas@extundo.com>
79139
79140         * lib/strndup.c: Use strnlen.h.
79141
79142         * lib/strnlen.h: New file.
79143
79144 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79145
79146         * README: Typos.
79147
79148 2005-08-02  Simon Josefsson  <jas@extundo.com>
79149
79150         * modules/readline: New file.
79151
79152 2005-08-02  Simon Josefsson  <jas@extundo.com>
79153
79154         * modules/getdelim: New file.
79155
79156         * modules/getline: Rewrite, don't use getndelim2.
79157
79158 2005-08-02  Simon Josefsson  <jas@extundo.com>
79159
79160         * m4/getline.m4: Separate out getdelim stuff into separate module.
79161
79162         * m4/getdelim.m4: New file.
79163
79164 2005-08-02  Simon Josefsson  <jas@extundo.com>
79165
79166         * lib/getline.h, getline.c: Rewrite.
79167
79168         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
79169
79170 2005-07-31  Bruno Haible  <bruno@clisp.org>
79171
79172         * lib/lock.h (gl_lock_initializer): New macro.
79173         (gl_lock_define_initialized): Use it.
79174         (gl_rwlock_initializer): New macro.
79175         (gl_rwlock_define_initialized): Use it.
79176         (gl_recursive_lock_initializer): New macro.
79177         (gl_recursive_lock_define_initialized): Use it.
79178
79179 2005-07-30  Karl Berry  <karl@gnu.org>
79180
79181         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
79182         Report from Ben Pfaff, regarding getopt.
79183
79184 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
79185
79186         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
79187         normal way.
79188         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
79189         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
79190         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
79191         (gl_GETOPT): Use the new macros.  Most of the implementation
79192         is moved to the new macros.  This is for programs like Emacs
79193         that don't want all the functionality of gl_GETOPT.
79194
79195 2005-07-26  Bruno Haible  <bruno@clisp.org>
79196
79197         * m4/lock.m4: Update from GNU gettext.
79198
79199 2005-07-26  Bruno Haible  <bruno@clisp.org>
79200
79201         * lib/lock.h: Update from GNU gettext.
79202         * lib/lock.c: Update from GNU gettext.
79203
79204 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
79205
79206         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
79207         obsolescent AC_TRY_RUN.  Include the default includes files, for
79208         'exit'.
79209
79210 2005-07-24  Bruno Haible  <bruno@clisp.org>
79211
79212         * modules/visibility: New file.
79213         * MODULES.html.sh (Misc): Add visibility.
79214
79215 2005-07-24  Bruno Haible  <bruno@clisp.org>
79216
79217         * m4/visibility.m4: New file.
79218
79219 2005-07-24  Bruno Haible  <bruno@clisp.org>
79220
79221         * doc/visibility.texi: New file.
79222
79223 2005-07-22  Bruno Haible  <bruno@clisp.org>
79224
79225         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
79226         $(ALLOCA_H), redundant through BUILT_SOURCES.
79227         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
79228         redundant through BUILT_SOURCES.
79229         * modules/byteswap (Makefile.am): Remove explicit dependency on
79230         $(BYTESWAP_H), redundant through BUILT_SOURCES.
79231         * modules/fnmatch (Makefile.am): Remove explicit dependency on
79232         $(FNMATCH_H), redundant through BUILT_SOURCES.
79233         * modules/getopt (Makefile.am): Remove explicit dependency on
79234         $(GETOPT_H), redundant through BUILT_SOURCES.
79235         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
79236         redundant through BUILT_SOURCES.
79237         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
79238         redundant through BUILT_SOURCES.
79239         * modules/stdbool (Makefile.am): Remove explicit dependency on
79240         $(STDBOOL_H), redundant through BUILT_SOURCES.
79241         * modules/stdint (Makefile.am): Remove explicit dependency on
79242         $(STDINT_H), redundant through BUILT_SOURCES.
79243         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
79244         Remove explicit dependency on $(SYSEXITS_H).
79245         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
79246
79247 2005-07-18  Simon Josefsson  <jas@extundo.com>
79248
79249         * lib/check-version.c (check_version): Accept identical versions too.
79250
79251 2005-07-18  Bruno Haible  <bruno@clisp.org>
79252
79253         * modules/lock: New file.
79254         * MODULES.html.sh (Multithreading): New section.
79255
79256 2005-07-18  Bruno Haible  <bruno@clisp.org>
79257
79258         * m4/lock.m4: New file, from GNU gettext.
79259
79260 2005-07-18  Bruno Haible  <bruno@clisp.org>
79261
79262         * lib/lock.h: New file, from GNU gettext.
79263         * lib/lock.c: New file, from GNU gettext.
79264
79265 2005-07-18  Bruno Haible  <bruno@clisp.org>
79266
79267         * lib/lock.h (gl_once_t): New type.
79268         (gl_once_define, gl_once): New macros.
79269         * lib/lock.c (fresh_once): New variable.
79270         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
79271         functions.
79272
79273 2005-07-16  Simon Josefsson  <jas@extundo.com>
79274
79275         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
79276         workaround, suggested by Bruno.
79277
79278 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
79279
79280         * modules/xalloc (Depends-on): Add xalloc-die.
79281         * modules/xvasprintf (Depends-on): Add xalloc-die.
79282
79283 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
79284
79285         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
79286         with a minor change.
79287
79288 2005-07-15  Bruno Haible  <bruno@clisp.org>
79289
79290         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
79291         When using lib/poll.c, define poll as rpl_poll.
79292
79293 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
79294
79295         * modules/argp (Depends-on): Remove unlocked-io.
79296
79297 2005-07-14  Derek Price  <derek@ximbiot.com>
79298
79299         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
79300         for glob symlink bug.
79301
79302 2005-07-14  Bruno Haible  <bruno@clisp.org>
79303
79304         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
79305         Instead, test for *_unlocked function declarations directly.
79306
79307 2005-07-11  Simon Josefsson  <jas@extundo.com>
79308
79309         * modules/size_max: New file.
79310
79311         * modules/xsize: Depend on size_max module for size_max.m4.
79312
79313 2005-07-11  Simon Josefsson  <jas@extundo.com>
79314
79315         * lib/size_max.h: New file.
79316
79317 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
79318
79319         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
79320         copyright symbol and the year.
79321         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
79322         (version_etc_va): Use parameterized copyright notice.
79323         Reword to conform to the current GNU coding standards.
79324
79325 2005-07-11  Karl Berry  <karl@gnu.org>
79326
79327         * doc/gnulib.texi (Quoting): new node.
79328         (Initial import): more info, from Patrice.
79329
79330 2005-07-11  Bruno Haible  <bruno@clisp.org>
79331
79332         * gnulib-tool (func_usage): Document option --avoid.
79333         (Command line options): Handle --avoid.
79334         (func_acceptable): New function.
79335         (func_modules_transitive_closure): Use it.
79336
79337 2005-07-11  Bruno Haible  <bruno@clisp.org>
79338
79339         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
79340         Reported by Jim Meyering.
79341
79342 2005-07-10  Bruno Haible  <bruno@clisp.org>
79343
79344         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
79345         Needed when size_t is smaller than 'unsigned int'.
79346         Reported by Paul Eggert.
79347
79348 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79349
79350         * modules/argp (Depends-on): Add unlocked-io
79351
79352 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79353
79354         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
79355         block of defines.
79356
79357 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
79358
79359         * config/srclist.txt: Comment out regcomp.c, since we have a porting
79360         fix now.
79361
79362 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
79363         and Paul Eggert  <eggert@cs.ucla.edu>
79364
79365         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
79366         in wint_t, not wchar_t.  Remove now-unnecessary cast.
79367
79368 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79369
79370         * modules/regex (Files): Add lib/regex_internal.c,
79371         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
79372         (Depends-on): Add extensions.
79373         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
79374
79375 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79376
79377         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
79378         pathconf.
79379         * m4/same.m4 (gl_SAME): Likewise.
79380         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
79381
79382         * m4/regex.m4: Adjust to new libc regex implementation.
79383         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
79384         all the .c and .h parts of (the new) regex.
79385         Quote the m4 stuff better.
79386         Check for RE_ICASE bug of old gnulib.
79387         Check for REG_STARTEND of recent libc.
79388         Rename local variables from jm_* to gl_*.
79389         Quote operand of "test -f".
79390         Say "recent enough" version of libc, not "version 2".
79391         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
79392         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
79393         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
79394         Remove check for btowc, isascii.
79395         Require AM_LANGINFO_CODESET.
79396
79397 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79398
79399         * lib/regex.c, regex.h: Sync from libc.
79400         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
79401         * lib/regexec.c:
79402         New files, synced from libc, except that regex_internal.h
79403         currently has a small porting fix.
79404
79405 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79406
79407         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
79408         regex_internal.c, regexec.c.
79409         Add regex_internal.h too, but as a comment, since the libc version
79410         is currently broken in gnulib mode.
79411
79412 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79413
79414         Support programs like Emacs that use gnulib but not gettext.
79415         * MODULES.html.sh (Internationalization functions): Add gettext-h.
79416         * modules/gettext-h: New file.
79417         * modules/gettext (Files): Remove lib/gettext.h.
79418         (Depends-on): Add gettext-h.
79419         (Makefile.am): Remove lib_SOURCES.
79420         * modules/argmatch, modules/c-stack, modules/closeout:
79421         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
79422         * modules/execute, modules/file-type, modules/getaddrinfo:
79423         * modules/getopt, modules/human, modules/javacomp:
79424         * modules/javaexec, modules/mkdir-p, modules/obstack:
79425         * modules/openat, modules/pagealign_alloc, modules/pipe:
79426         * modules/quotearg, modules/regex, modules/rpmatch:
79427         * modules/unicodeio, modules/userspec, modules/version-etc:
79428         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
79429         * modules/xsetenv:
79430         Depend on gettext-h, not gettext.
79431
79432 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79433
79434         * gnulib-tool (func_import): Add support for 'public domain' license.
79435         * modules/alloca, modules/atexit, modules/memmove:
79436         Now public domain, not GPL.
79437         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
79438         * modules/realloc, modules/strerror, modules/strtod:
79439         Now LGPL, not GPL.
79440
79441 2005-07-05  Bruno Haible  <bruno@clisp.org>
79442
79443         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
79444         autoconf CVS. Needed for mingw.
79445
79446 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79447
79448         Remove the dependency of the strftime module on the tzset module.
79449         * modules/strftime (Depends-on): Remove dependency on tzset.
79450
79451 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79452
79453         Remove the dependency of the strftime module on the tzset module.
79454         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
79455         gl_FUNC_TZSET_CLOBBER.
79456
79457 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79458
79459         Remove the dependency of the strftime module on the tzset module.
79460         * lib/strftime.c (my_strftime)
79461         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
79462         Copy the input structure, to work around some of the bug with
79463         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
79464         Solaris releases, you should also use the tzset module, but we won't
79465         require it as a dependency any more since we don't want LGPLed code
79466         to depend on GPLed code.
79467
79468 2005-07-02  Jim Meyering  <jim@meyering.net>
79469
79470         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
79471         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
79472         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
79473         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
79474
79475 2005-07-02  Jim Meyering  <jim@meyering.net>
79476
79477         * lib/backupfile.c (backup_args): Change a `0' to NULL.
79478
79479 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79480
79481         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
79482         declares only 'struct timespec;' (!).
79483
79484 2005-07-01  Jim Meyering  <jim@meyering.net>
79485
79486         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
79487         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
79488         * lib/save-cwd.c, tempname.c:
79489         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
79490         and don't include <sys/file.h>).
79491
79492 2005-06-29  Jim Meyering  <jim@meyering.net>
79493
79494         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
79495         type name.  Use the variable name instead.
79496         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
79497         Likewise.
79498
79499 2005-06-28  Simon Josefsson  <jas@extundo.com>
79500
79501         * modules/check-version (Files): Add check-version.m4.
79502
79503 2005-06-28  Simon Josefsson  <jas@extundo.com>
79504
79505         * m4/check-version.m4: New file, suggested by Jim Meyering
79506         <jim@meyering.net>.
79507
79508 2005-06-28  Simon Josefsson  <jas@extundo.com>
79509
79510         * lib/check-version.h, lib/check-version.c: New files.
79511
79512 2005-06-28  Simon Josefsson  <jas@extundo.com>
79513
79514         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
79515         collision with global variable.  Better indentation.  Don't
79516         increment buffer pointer beyond buffer end.  Based on comments
79517         from Paul Eggert <eggert@cs.ucla.edu>.
79518
79519         * lib/base64.h: Indent.
79520
79521 2005-06-28  Simon Josefsson  <jas@extundo.com>
79522
79523         * doc/gnulib.texi (Library version handling): New section.
79524
79525 2005-06-28  Jim Meyering  <jim@meyering.net>
79526
79527         * check-module (find_included_lib_files): Hard-code another
79528         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
79529         but modules/fts-lgpl (correctly) does not list those files.
79530
79531         * modules/canonicalize (Files): Add lib/pathmax.h.
79532
79533 2005-06-25  Simon Josefsson  <jas@extundo.com>
79534
79535         * modules/check-version: New file.
79536
79537 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
79538
79539         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
79540         initializer of struct addrinfo, as an indication that we don't
79541         care how many members the structure has.
79542
79543 2005-06-24  Derek Price  <derek@ximbiot.com>
79544         and Bruno Haible  <bruno@clisp.org>
79545
79546         Remove stat module & update lstat.
79547         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
79548         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79549         * m4/stat.m4: Remove this file.
79550
79551 2005-06-24  Derek Price  <derek@ximbiot.com>
79552         and Bruno Haible  <bruno@clisp.org>
79553
79554         Remove stat module & update lstat.
79555         * lib/stat.c: Remove this file...
79556         (slash_aware_lstat): ...moving this content and its support...
79557         * lib/lstat.c (rpl_lstat): ...into here.
79558         * lib/lstat.h: New file.
79559
79560 2005-06-24  Derek Price  <derek@ximbiot.com>
79561         and Bruno Haible  <bruno@clisp.org>
79562
79563         Remove stat module & update lstat.
79564         * config/srclist.txt (libc sources): Remove stat.
79565
79566 2005-06-24  Derek Price  <derek@ximbiot.com>
79567         and Bruno Haible  <bruno@clisp.org>
79568
79569         Remove stat module & update lstat.
79570         * MODULES.html.sh (stat): Remove.
79571         * MODULES.html: Regenerated.
79572         * modules/lstat (Description): Correct function name.
79573         (Files): Add "lstat.h".
79574         (Depends-on): Remove stat, add xalloc, stat-macros.
79575         * modules/stat: Remove this file.
79576         (Include): Add "lstat.h", remove <sys/stat.h>.
79577
79578 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
79579
79580         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
79581         (ranged_convert): Don't save conversion in a temporary struct.
79582         This causes a warning with GCC 4.0.0, and anyway in the typical
79583         case it's not worth the extra 100 bytes or so of code.
79584         (ranged_convert, __mktime_internal): When calling a function via a
79585         pointer P, use P () rather than (*P) (), as we now assume C89 or
79586         better.
79587
79588 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79589
79590         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
79591         "who -r" failed to give output.  Problem reported by Tim Waugh.
79592
79593         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
79594         (xcalloc): Use it to avoid needless tests.
79595         Problem reported by Jim Meyering.
79596
79597 2005-06-20  Derek Price  <derek@ximbiot.com>
79598
79599         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
79600         unnecessary for Autoconfs > 2.59c.
79601
79602 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79603
79604         * lib/argp.h (__option_is_short): Check upper limit of
79605         __key. Isprint() requires its argument to have the value
79606         of an unsigned char or EOF.
79607
79608 2005-06-16  Jim Meyering  <jim@meyering.net>
79609
79610         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
79611         when either N or S is zero.
79612
79613 2005-06-16  Derek Price  <derek@ximbiot.com>
79614
79615         * m4/bison.m4: Declare YACC & YFLAGS precious.
79616
79617 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
79618
79619         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
79620         multibyte string or pattern, fall back on unibyte matching.
79621         Problem reported by James Youngman.
79622
79623 2005-06-08  Bruno Haible  <bruno@clisp.org>
79624
79625         * modules/csharpcomp: New file.
79626         * MODULES.html.sh (C#): Add csharpcomp.
79627
79628 2005-06-08  Bruno Haible  <bruno@clisp.org>
79629
79630         * m4/csharpcomp.m4: New file, from GNU gettext.
79631
79632 2005-06-08  Bruno Haible  <bruno@clisp.org>
79633
79634         * lib/csharpcomp.h: New file, from GNU gettext.
79635         * lib/csharpcomp.c: New file, from GNU gettext.
79636         * lib/csharpcomp.sh.in: New file, from GNU gettext.
79637
79638 2005-06-08  Bruno Haible  <bruno@clisp.org>
79639
79640         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
79641         warning on mingw.
79642
79643 2005-06-07  Derek Price  <derek@ximbiot.com>
79644
79645         Sync from CVS.
79646         * lib/glob_.h: Indent nested #ifdef.
79647
79648 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
79649
79650         Sync from coreutils.
79651         Use "file name" when talking about file names, instead of "filename"
79652         or "path", as per the GNU coding standards.
79653         * lib/mkdir-p.c: Renamed from makepath.c.
79654         (make_dir_parents): Renamed from make_path.  All callers changed.
79655         * lib/mkdir-p.h: Likewise.  All includers changed.
79656         * lib/filenamecat.c: Renamed from path-concat.c.
79657         (file_name_concat): Renamed from path_concat.  All callers changed.
79658         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
79659         * lib/filenamecat.h: Likewise.  All includers changed.
79660         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
79661         in comments or local variable names.
79662         * lib/basename.c: Likewise.
79663         * lib/canonicalize.c, canonicalize.h: Likewise.
79664         * lib/dirname.c, dirname.h: Likewise.
79665         * lib/euidaccess.c: Likewise.
79666         * lib/exclude.c: Likewise
79667         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
79668         * lib/fsusage.c, fsuage.h: Likewise.
79669         * lib/fts.c, fts_.h: Likewise.
79670         * lib/getcwd.c: Likewise.
79671         * lib/getloadavg.c: Likewise.
79672         * lib/mkstemp.c: Likewise.
79673         * lib/mountlist.c, mountlist.h: Likewise.
79674         * lib/openat.c, openat.h: Likewise.
79675         * lib/readlink-stub.c: Likewise.
79676         * lib/readutmp.c, readutmp.h: Likewise.
79677         * lib/rename.c: Likewise.
79678         * lib/rmdir.c: Likewise.
79679         * lib/same.c: Likewise.
79680         * lib/savedir.c: Likewise.
79681         * lib/stripslash.c: Likewise.
79682         * lib/tempname.c: Likewise.
79683         * lib/xreadlink.c: Likewise.
79684         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
79685         All uses changed.
79686         * lib/exclude.h: Likewise.
79687
79688         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
79689         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
79690         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
79691         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
79692         * lib/pathmax.h: Include <limits.h> unconditionally, since other
79693         files have been getting away with it for years (MORE/BSD 4.3
79694         is extinct now).
79695         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
79696         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
79697
79698         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
79699         Define to 256, not 255, as per modern POSIX.
79700
79701 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
79702
79703         Sync from coreutils.
79704         Use "file name" when talking about file names, instead of "filename"
79705         or "path", as per the GNU coding standards.
79706         * MODULES.html.sh: mkdir-p renamed from makepath.
79707         filenamecat renamed from path-concat.
79708         * modules/filenamecat: Renamed from modules/path-concat.
79709         (Files): filenamecat.h and filenamecat.c renamed from
79710         path-concat.h and path-concat.c.
79711         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
79712         (Include): filenamecat.h, not path-concat.h.
79713         * modules/mkdir-p: Renamed from modules/makepath.
79714         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
79715         makepath.c.
79716         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
79717         (Include): mkdir-p.h, not makepath.h.
79718
79719 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
79720
79721         Sync from coreutils.
79722         * m4/mkdir-p.m4: Renamed from makepath.m4.
79723         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
79724         Rename files from makepath.c to mkdir-p.c, and from
79725         makepath.h to mkdir-p.h.
79726         * m4/filenamecat.m4: Renamed from path-concat.m4.
79727         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
79728         Rename files from path-concat.c to filenamecat.c,
79729         and from path-concat.h to filenamecat.h.
79730         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
79731         "file name" in local variables or comments.
79732         * m4/rename.m4: Likewise.
79733
79734 2005-06-01  Bruno Haible  <bruno@clisp.org>
79735
79736         * modules/csharpexec: New file.
79737         * MODULES.html.sh (C#): New section.
79738
79739 2005-06-01  Bruno Haible  <bruno@clisp.org>
79740
79741         * m4/csharp.m4: New file, from GNU gettext.
79742         * m4/csharpexec.m4: New file, from GNU gettext.
79743
79744 2005-06-01  Bruno Haible  <bruno@clisp.org>
79745
79746         * lib/csharpexec.h: New file, from GNU gettext.
79747         * lib/csharpexec.c: New file, from GNU gettext.
79748         * lib/csharpexec.sh.in: New file, from GNU gettext.
79749
79750 2005-05-31  Derek Price  <derek@ximbiot.com>
79751             Paul Eggert  <eggert@cs.ucla.edu>
79752
79753         Sync from cvs.
79754         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
79755
79756 2005-05-31  Derek Price  <derek@ximbiot.com>
79757             Paul Eggert  <eggert@cs.ucla.edu>
79758
79759         Sync from cvs.
79760         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
79761
79762 2005-05-29  Derek Price  <derek@ximbiot.com>
79763
79764         * config/srclist.txt (glob_.h, glob.c): Add these files.
79765
79766 2005-05-29  Derek Price  <derek@ximbiot.com>
79767
79768         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
79769         * modules/glob: New file.
79770         * modules/getlogin_r: Add link to POSIX spec in description.
79771
79772 2005-05-29  Derek Price  <derek@ximbiot.com>
79773             Paul Eggert  <eggert@cs.ucla.edu>
79774
79775         * m4/glob.m4: New file.
79776
79777 2005-05-29  Derek Price  <derek@ximbiot.com>
79778             Paul Eggert  <eggert@cs.ucla.edu>
79779
79780         * lib/glob_.h, lib/glob.c: New files.
79781
79782 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
79783
79784         * modules/fts (Files): Remove m4/inttypes-pri.m4.
79785         * modules/fts-lgpl (Depends-on): Remove gettext.
79786
79787 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
79788
79789         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
79790         and don't require gt_INTTYPES_PRI.
79791
79792 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
79793
79794         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
79795
79796         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
79797         the configuration hassle isn't worth it.
79798         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
79799         (LONGEST_MODIFIER, PRIuMAX): Remove.
79800
79801 2005-05-27  Bruno Haible  <bruno@clisp.org>
79802
79803         * lib/getlogin_r.h: Remove second include of <stddef.h>.
79804
79805 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
79806
79807         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
79808         _POSIX_PTHREAD_SEMANTICS for Solaris.
79809
79810 2005-05-25  Derek Price  <derek@ximbiot.com>
79811
79812         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
79813
79814 2005-05-25  Derek Price  <derek@ximbiot.com>
79815             Paul Eggert  <eggert@cs.ucla.edu>
79816
79817         * modules/getlogin_r, m4/getlogin_r.m4: New files.
79818         * lib/getlogin_r.c, getlogin_r.h: New files.
79819
79820 2005-05-25  Bruno Haible  <bruno@clisp.org>
79821             Derek Price  <derek@ximbiot.com>
79822
79823         * lib/getlogin_r.h: Simplify API documentation.
79824
79825 2005-05-23  Derek Price  <derek@ximbiot.com>
79826
79827         * modules/minmax (Files): Add m4/minmax.m4.
79828         (configure.ac): Add gl_MINMAX.
79829
79830 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
79831
79832         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
79833         so that unistd-safer.h (GPL'ed code) need not be included.
79834
79835 2005-05-22  Bruno Haible  <bruno@clisp.org>
79836
79837         * m4/minmax.m4: New file.
79838         Based on a patch by Derek Price <derek@ximbiot.com>.
79839
79840 2005-05-22  Bruno Haible  <bruno@clisp.org>
79841
79842         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
79843         (INT64_MIN): Fix definition.
79844         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
79845
79846         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
79847         NEED_SIGNED_INT_TYPES.
79848
79849         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
79850         HAVE_SYSTEM_INTTYPES.
79851
79852 2005-05-22  Bruno Haible  <bruno@clisp.org>
79853
79854         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
79855         Also include <sys/param.h> if it defines MIN, MAX.
79856         Based on a patch by Derek Price <derek@ximbiot.com>.
79857
79858 2005-05-21  Jim Meyering  <jim@meyering.net>
79859
79860         * modules/fts (Files): Add m4/inttypes-pri.m4.
79861         (Depends-on): Add lstat and remove gettext.  Alphabetize.
79862
79863 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79864
79865         New fts module.
79866         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
79867         (setup_dir, free_dir): New functions.
79868         (enter_dir, leave_dir): Define trivial
79869         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
79870         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
79871         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
79872         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
79873         Move to fts-cycle.c.
79874         (fts_open): Use setup_dir.
79875         (fts_close): Use free_dir.
79876         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
79877         This adds a label and some gotos, but the alternatives were messier.
79878         Check for memory allocation failure when entering a dir.
79879         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
79880         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
79881         (FTS): New member fts_cycle, that is a union that contains the
79882         old active_dir_ht and cycle_state.  All uses changed to mention
79883         fts_cycle.ht and fts_cycle.state.
79884         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
79885         fts.c, with the following changes:
79886         (setup_dir, free_dir): New functions.
79887         (enter_dir): Now returns bool.  Return true if successful, false
79888         if memory exhausted.  All callers changed.
79889         Do not bother partly cleaning up on
79890         memory allocation failure; that is free_dir's job.
79891         However, free ad if hash_insert fails, to avoid memory leak.
79892         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
79893         fts->fts_options to see which union member to use.
79894
79895 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79896
79897         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
79898         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
79899
79900 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79901
79902         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
79903
79904 2005-05-20  Jim Meyering  <jim@meyering.net>
79905
79906         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
79907         Now a macro, to pacify GCC.
79908
79909 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
79910
79911         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
79912         of -1.
79913
79914 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
79915
79916         * lib/chown.c (rpl_chown): Return -1 on failure.
79917
79918 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
79919
79920         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
79921         Don't check for stddef.h.
79922         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
79923         don't use its results.
79924         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
79925         since we include them unconditionally.  Don't require
79926         AM_STDBOOL_H, since stdbool is a prerequisite.
79927         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
79928         since we assume C89 or better.
79929         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
79930         as we don't use their results.
79931         Don't check for fchdir, memmove, memset, strrchr, as we use
79932         them unconditionally.
79933         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
79934         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
79935
79936 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
79937
79938         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
79939         Include <stddef.h> unconditionally, since we assume C89 now.
79940         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
79941         * lib/fts.c: Include fts_.h first, to check interface.
79942         Do not include intprops.h; no longer needed.
79943         Include cycle-check.h and hash.h, since fts_.h no longer does.
79944         Remove unnecessary casts of closedir to void.
79945         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
79946         decide whether to decrement nlinks.
79947         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
79948         (FTS): Use struct hash_table * instead of Hash_table, so that
79949         we no longer need to include hash.h here.
79950
79951 2005-05-18  Jim Meyering  <jim@meyering.net>
79952
79953         * modules/dirfd (License): Change to LGPL.  Most of the code
79954         is already in the public domain.
79955
79956 2005-05-18  Jim Meyering  <jim@meyering.net>
79957
79958         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
79959         Reported by Yoann Vandoorselaere.
79960
79961 2005-05-17  Jim Meyering  <jim@meyering.net>
79962
79963         * m4/fts.m4: New file, from coreutils.
79964
79965 2005-05-17  Jim Meyering  <jim@meyering.net>
79966
79967         * lib/fts.c, lib/fts_.h: New files, from coreutils.
79968
79969 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79970
79971         Sync from coreutils.
79972         * m4/unlinkdir.m4: New file.
79973
79974 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79975
79976         Sync from coreutils.
79977         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
79978         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
79979         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
79980         White space changes only.
79981         * lib/makepath.c (make_path): Port to hosts where leading "//" is
79982         special.
79983         * lib/yesno.c: Include getline.h, not ctype.h.
79984         (yesno): Don't remove leading white space; POSIX doesn't allow it.
79985         Use getline to remove arbitrary restriction on response length.
79986
79987 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79988
79989         * config/srclist-update: Spell out "Street" in FSF postal
79990         mail address; this is the style the FSF seems to prefer.
79991
79992         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
79993         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
79994         this updates FSF postal mail address.
79995
79996         Sync from coreutils.
79997         * modules/unlinkdir: New file.
79998         * modules/yesno (Depends-on): Add getline.
79999         * MODULES.html.sh (File system functions): Add unlinkdir.
80000
80001 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80002
80003         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
80004         lib/strsep.h:
80005         Change the initial comment to refer to GPL, not LGPL.
80006         gnulib-tool will change it to LGPL as needed.
80007
80008         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
80009         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
80010         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
80011         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
80012         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
80013         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
80014         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
80015         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
80016         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
80017         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
80018         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
80019         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
80020         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
80021         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
80022         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
80023         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
80024         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
80025         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
80026         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
80027         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
80028         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
80029         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
80030         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
80031         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
80032         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
80033         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
80034         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
80035         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
80036         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
80037         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
80038         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
80039         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
80040         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
80041         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
80042         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
80043         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
80044         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
80045         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
80046         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
80047         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
80048         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
80049         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
80050         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
80051         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
80052         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
80053         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
80054         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
80055         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
80056         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
80057         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
80058         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
80059         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
80060         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
80061         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
80062         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
80063         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
80064         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
80065         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
80066         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
80067         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
80068         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
80069         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
80070         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
80071         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
80072         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
80073         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
80074         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
80075         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
80076         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
80077         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
80078         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
80079         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
80080         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
80081         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
80082         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
80083         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
80084         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
80085         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
80086         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
80087         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
80088         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
80089         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
80090         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
80091         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
80092         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
80093         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
80094         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
80095         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
80096         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
80097         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
80098         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
80099         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
80100         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
80101         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
80102         lib/yesno.c, lib/yesno.h:
80103         Update FSF postal mail address.
80104
80105 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80106
80107         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
80108         tests/test-memmem.c, tests/test-stpncpy.c:
80109         Update FSF postal mail address.
80110
80111 2005-05-13  Bruno Haible  <bruno@clisp.org>
80112
80113         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
80114         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
80115         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
80116         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
80117         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
80118         Add support for 64-bit integers in the MSVC compiler.
80119
80120 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80121
80122         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
80123
80124 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
80125
80126         * gnulib-tool (func_import): Sort and uniquify recommended includes.
80127
80128 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
80129
80130         * doc/getdate.texi (General date syntax): Don't say that date
80131         date --iso-8601=ns generates acceptable dates; it doesn't yet.
80132         Problem reported by Nic Ferrier.
80133
80134 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80135
80136         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
80137         specified in ai_socktype. Fix invalid ai_protocol
80138         check. ai_protocol is usually set to 0 or depending on
80139         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
80140         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
80141         ai_socktype / ai_protocol in the returned addrinfo structure.
80142
80143 2005-05-10  Simon Josefsson  <jas@extundo.com>
80144
80145         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
80146         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80147
80148 2005-05-10  Karl Berry  <karl@gnu.org>
80149
80150         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
80151         (from http://www.gnu.org/licenses).
80152         * doc/COPYING.LIB: also rename to COPYING.LESSER.
80153         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
80154         fdl.texi suffices.
80155
80156 2005-05-10  Karl Berry  <karl@gnu.org>
80157
80158         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
80159         (COPYING.DOC): remove.
80160
80161         * config/srclist-update: new FSF address.
80162
80163 2005-05-10  Derek Price  <derek@ximbiot.com>
80164
80165         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
80166         possible.
80167
80168 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80169             Bruno Haible  <bruno@clisp.org>
80170
80171         * modules/inet_ntop: New file.
80172         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80173         inet_ntop.
80174
80175 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80176             Bruno Haible  <bruno@clisp.org>
80177
80178         * m4/inet_ntop.m4: New file.
80179
80180 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80181             Bruno Haible  <bruno@clisp.org>
80182
80183         * lib/inet_ntop.h: New file.
80184         * lib/inet_ntop.c: New file, from glibc with modifications.
80185
80186 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
80187
80188         * modules/time_r (License): Change to LGPL.
80189         * modules/extensions (License): Change to LGPL.  Actually,
80190         the license is more permissive than that, but currently gnulib-tool
80191         doesn't know how to handle more-permissive licenses.
80192
80193         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
80194         Problem reported by Dave Love.
80195
80196 2005-05-08  Jim Meyering  <jim@meyering.net>
80197
80198         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
80199         blank.
80200
80201 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
80202
80203         * modules/argmatch (Depends-on): Add stdbool.
80204         * modules/backupfile (Depends-on): Likewise.
80205         * modules/chdir-long (Depends-on): Likewise.
80206         * modules/closeout (Depends-on): Likewise.
80207         * modules/cycle-check (Depends-on): Likewise.
80208         * modules/dirname (Depends-on): Likewise.
80209         * modules/fnmatch (Depends-on): Likewise.
80210         * modules/fsusage (Depends-on): Likewise.
80211         * modules/fwriteerror (Depends-on): Likewise.
80212         * modules/getcwd (Depends-on): Likewise.
80213         * modules/getloadavg (Depends-on): Likewise.
80214         * modules/hard-locale (Depends-on): Likewise.
80215         * modules/makepath (Depends-on): Likewise.
80216         * modules/mountlist (Depends-on): Likewise.
80217         * modules/nanosleep (Depends-on): Likewise.
80218         * modules/posixtm (Depends-on): Likewise.
80219         * modules/quotearg (Depends-on): Likewise.
80220         * modules/readtokens (Depends-on): Likewise.
80221         * modules/readtokens0 (Depends-on): Likewise.
80222         * modules/readutmp (Depends-on): Likewise.
80223         * modules/save-cwd (Depends-on): Likewise.
80224         * modules/strftime (Depends-on): Likewise.
80225         * modules/userspec (Depends-on): Likewise.
80226         * modules/utimecmp (Depends-on): Likewise.
80227         * modules/xgetcwd (Depends-on): Likewise.
80228         * modules/xnanosleep (Depends-on): Likewise.
80229         * modules/xstrtod (Depends-on): Likewise.
80230         * modules/yesno (Depends-on): Likewise.
80231
80232 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
80233
80234         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
80235         needless checks.
80236
80237 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
80238
80239         Merge from coreutils.  Among other things,
80240         add bulletproofing for cases where stdin, stdout, or stderr are closed.
80241         * lib/fd-safer.c: New file.
80242         * lib/fcntl-safer.h, open-safer.c: Remove.
80243         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
80244         * lib/dup-safer.c: Include unistd-safer.h first.
80245         Don't include errno.h.
80246         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
80247         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
80248         * lib/file-type.c: Rely on file-type.h change.
80249         * lib/getloadavg.c: Include unistd-safer.h.
80250         (getloadavg): Use safer open.
80251         * lib/getusershell.c: Include "stdio-safer.h".
80252         (getusershell): Use safer fopen.
80253         * lib/long-options.c (long_options): Use NULL rather than 0.
80254         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
80255         'free'.
80256         * lib/modechange.c: Likewise.
80257         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
80258         (MODE_DONE): New constant.
80259         (struct mode_change): Remove 'next' member.
80260         (make_node_op_equals): New function; like the old one of the
80261         same name, except it allocates an array.
80262         (mode_compile, mode_create_from_ref): Use it.
80263         (mode_compile): Allocate result as an array, not a linked list.
80264         Parse octal string ourself, so that we catch mistakes like "+0".
80265         (mode_adjust): Arg is an array, not a linked list.
80266         * lib/modechange.c: Include stat-macros.h, xalloc.h.
80267         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
80268         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
80269         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
80270         Remove.  This is now stat-macros.h's job.
80271         (talloc): Remove.  All callers replaced by xalloc, so that
80272         our invokers don't have to worry about reporting memory failures.
80273         (make_node_op_equals): Remove.
80274         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
80275         New constants.
80276         (struct mode_change): Moved here from modechange.h.
80277         (mode_append_entry): Remove.
80278         (mode_compile): Remove MASKED_OPS arg, since it encouraged
80279         apps to have incorrect behavior.  Use simpler algorithm for head
80280         and tail.  Don't futz with umask; that's now the job of mode_adjust.
80281         Detect more invalid usages rather than having somewhat-random behavior.
80282         Don't insert an "a=" action, as that leads to incorrect behavior.
80283         (mode_compile, mode_create_from_ref): Return NULL on error instead
80284         of an enum, since now there's only one way to have an error.  All
80285         callers changed.
80286         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
80287         at the correct time.  Simplify calculation of "+u" and its ilk.
80288         Don't mishandle "+X".
80289         (mode_free): Remove "register" and localize decls.
80290         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
80291         (struct mode_change): Move to modechange.c; callers don't
80292         need to see this stuff.
80293         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
80294         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
80295         (mode_change, mode_adjust): Reflect the new signatures noted above.
80296         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
80297         that might redefine system include files.
80298         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
80299         (my_usleep): Use NULL rather than (void *) 0.
80300         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
80301         Use siginterrupt to specify that system calls should be interrupted.
80302         (rpl_nanosleep): Move initialization of suspended closer to call of
80303         my_usleep.
80304         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
80305         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
80306         (desirable_utmp_entry): New function.
80307         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
80308         using x2nrealloc, to simplify logic.
80309         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
80310         size calculation.  Do not assume utmp file is a regular file.
80311         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
80312         (READ_UTMP_CHECK_PIDS): New constant.
80313         * lib/save-cwd.c: Include unistd-safer.h.
80314         (save_cwd): Use fd_safer.
80315         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
80316         [!_LIBC] Include "stat-macros.h" instead.
80317         * lib/unistd-safer.h (fd_safer): New decl.
80318
80319 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
80320
80321         * modules/getloadavg (Depends-on): Add unistd-safer.
80322         * modules/getusershell (Depends-on): Add stdio-safer.
80323         * modules/lstat (Depends-on): Remove xalloc.
80324         * modules/mkstemp (Depends-on): Add stat-macros.
80325         * modules/modechange (Depends-on): Remove xstrtol.
80326         Add stat-macros, xalloc.
80327         * modules/save-cwd (Depends-on): Add unistd-safer.
80328         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
80329         * modules/unistd-safer (Files): Add lib/fd-safer.c
80330         (Makefile.am): Remove lib_SOURCES.
80331
80332         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
80333         Remove fcntl-safer; unistd-safer supersedes it.
80334
80335 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
80336
80337         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
80338         AC_HEADER_STAT.
80339         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
80340         (gl_PREREQ_CHOWN): Remove.
80341         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
80342         it.  Don't require AC_HEADER_STAT.
80343         (gl_PREREQ_LSTAT): Remove.
80344         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
80345         Don't require AC_HEADER_STAT.
80346         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
80347         (gl_PREREQ_RMDIR): Remove.
80348         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
80349         mention stat-macros.h or AC_HEADER_STAT, since we'll make
80350         the stat-macros module a prerequisite.
80351         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
80352         * m4/filemode.m4 (gl_FILEMODE): Likewise.
80353         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
80354         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
80355         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
80356         variable names.
80357         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
80358         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
80359         variable prefixes.
80360         * m4/fcntl-safer.m4: Remove.
80361         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
80362         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
80363         Invoke gl_PREREQ_FD_SAFER.
80364         (gl_PREREQ_FD_SAFER): New macro.
80365         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
80366         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
80367         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
80368         Remove duplicate call to AC_LIBOBJ(readutmp).
80369         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
80370
80371         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
80372         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
80373
80374 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
80375
80376         * MODULES.html.sh (Misc): Add byteswap.
80377
80378 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80379
80380         * modules/getcwd (Depends-on): Add extensions.
80381         * modules/openat (Depends-on): Likewise.
80382
80383 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80384
80385         * modules/byteswap: New file.
80386
80387 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80388
80389         * m4/byteswap.m4: New file.
80390
80391 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80392
80393         * lib/byteswap_.h: New file.
80394
80395 2005-04-25  Karl Berry  <karl@gnu.org>
80396
80397         * m4/gettext.m4: Update from GNU gettext 0.14.4.
80398
80399 2005-04-25  Albert Chin  <china@thewrittenword.com>
80400
80401         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
80402         Toolkit C bug.
80403
80404 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
80405
80406         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
80407         (func_ln_if_changed): Remove forcibly for no error message
80408         in case file does not exist.
80409
80410 2005-04-19  Simon Josefsson  <jas@extundo.com>
80411
80412         * gnulib-tool (Options): Make --symlink mean --symbolic.
80413
80414 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
80415
80416         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
80417
80418 2005-04-16  Simon Josefsson  <jas@extundo.com>
80419
80420         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
80421
80422 2005-04-15  Simon Josefsson  <jas@extundo.com>
80423
80424         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
80425
80426 2005-04-15  Simon Josefsson  <jas@extundo.com>
80427
80428         * gnulib-tool: Rename --symlink to --symbolic.
80429
80430 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
80431
80432         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
80433         symbolic links to files instead of copying/moving.  Add --aux-dir,
80434         specifying directory relative --dir where auxiliary build tools
80435         are placed.
80436
80437 2005-04-14  Bruno Haible  <bruno@clisp.org>
80438
80439         * modules/allocsa (License): Change to LGPL.
80440         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
80441
80442 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
80443
80444         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
80445         that "UTC +1 second" continues to work.  Problem reported
80446         by Dmitry V. Levin.
80447         (relunit_snumber): New rule.
80448         (relunit): Use it.
80449
80450 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
80451
80452         * lib/getdate.y (universal_time_zone_table): New constant.
80453         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
80454         universal_time_zone_table.
80455         (lookup_zone): Prefer universal_time_zone_table to
80456         local_time_zone_table, so that "GMT" time stamps are allowed in
80457         London during the summer.  Problem reported by Ian Abbott.
80458
80459 2005-04-12  Jim Meyering  <jim@meyering.net>
80460
80461         * lib/human.c (humblock): Set *options even when returning due to
80462         xstrtoumax conversion failure.  Thanks to a used-uninitialized
80463         warning from gcc-4.
80464
80465 2005-04-09  Jim Meyering  <jim@meyering.net>
80466
80467         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
80468         -Wuninitialized: initialize tm0.tm_year.
80469
80470 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
80471
80472         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
80473         count, since there's no maximum.  All uses changed.
80474         Add member dsts_seen.
80475         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
80476         not being INT_MAX.
80477         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
80478         Use pc_rels_seen to decide whther a date is absolute.
80479
80480         * lib/getdate.y (number): Don't overwrite year.
80481         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
80482         check.
80483
80484 2005-04-02  Simon Josefsson  <jas@extundo.com>
80485
80486         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
80487         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
80488
80489 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
80490
80491         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
80492         where no absolute path name can be longer than PATH_MAX.
80493
80494 2005-03-27  Jim Meyering  <jim@meyering.net>
80495
80496         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
80497
80498 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
80499
80500         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
80501         "one's complement" -> "ones' complement" in comment, as per Knuth.
80502         "value of type" -> "type or expression" in comment.
80503         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
80504
80505 2005-03-26  Jim Meyering  <jim@meyering.net>
80506
80507         Comment nits.
80508         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
80509         Correct typos: s/or/of/.
80510
80511 2005-03-26  Jim Meyering  <jim@meyering.net>
80512
80513         * modules/check-include-files: Move to ../ and rename to...
80514         * check-module: ...this.
80515
80516 2005-03-25  Jim Meyering  <jim@meyering.net>
80517
80518         * modules/xvasprintf (Files): Add xalloc.h.
80519
80520 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
80521
80522         * modules/gettext (Files): config/config.rpath ->
80523         build-aux/config.rpath
80524         * modules/iconv (Files): Likewise.
80525         Problem reported by Oskar Liljeblad.
80526
80527 2005-03-23  Jim Meyering  <jim@meyering.net>
80528
80529         * modules/check-include-files: New script to check for
80530         missing dependencies, multiple includes, etc.
80531
80532         * modules/c-strtold (Depends-on): Add xalloc.
80533         * modules/c-strtod (Depends-on): Add xalloc.
80534         * modules/hash (Depends-on): Add xalloc.
80535         (Files): Remove lib/xalloc.h.
80536
80537         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
80538         * modules/userspec (Files): Add lib/inttostr.h.
80539
80540 2005-03-23  Jim Meyering  <jim@meyering.net>
80541
80542         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
80543
80544 2005-03-22  Jim Meyering  <jim@meyering.net>
80545
80546         * modules/stat-macros: New module.
80547         * modules/canonicalize, modules/euidaccess, modules/file-type,
80548         * modules/filemode, modules/lchown, modules/makepath,
80549         * modules/rmdir, modules/stat: Depend on new stat-macros module
80550         rather than listing lib/stat-macros.h manually.
80551         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
80552
80553 2005-03-22  Jim Meyering  <jim@meyering.net>
80554
80555         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
80556
80557 2005-03-22  Bruno Haible  <bruno@clisp.org>
80558
80559         * config/srclist.txt: Replace target directory 'config' with
80560         'build-aux'.
80561         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
80562         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
80563         ../build-aux/.
80564
80565 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
80566
80567         * modules/chdir-long (Depends-on): Add mempcpy.
80568
80569         * modules/acl, modules/backupfile, modules/c-strtod,
80570         modules/c-strtold, modules/canon-host, modules/canonicalize,
80571         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
80572         modules/exclude, modules/exitfail, modules/file-type,
80573         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
80574         modules/getdate, modules/getline, modules/getpagesize,
80575         modules/getpass, modules/getugroups, modules/group-member,
80576         modules/hard-locale, modules/hash, modules/human, modules/idcache,
80577         modules/inttostr, modules/long-options, modules/makepath,
80578         modules/md5, modules/memcasecmp, modules/memcoll,
80579         modules/modechange, modules/mountlist, modules/path-concat,
80580         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
80581         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
80582         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
80583         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
80584         modules/strftime, modules/strndup, modules/strverscmp,
80585         modules/timespec, modules/unlocked-io, modules/userspec,
80586         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
80587         modules/yesno:
80588         Remove lib_SOURCES line from Makefile.am section, as this is now
80589         done automatically by the corresponding Autoconf macro.
80590
80591 2005-03-21  Jim Meyering  <jim@meyering.net>
80592
80593         Changes imported from coreutils.
80594
80595         * lib/cycle-check.c: Don't include xalloc.h.
80596
80597         * lib/path-concat.c: Don't include assert.h.
80598         (path_concat): Remove assertion that would have triggered
80599         for ABASE starting with more than one slash.
80600         Reported by Andreas Schwab.
80601
80602         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
80603         properly when ABASE is an absolute file name.
80604         Correct the description of this function.
80605         Include <assert.h>.
80606         Add an assertion and a test driver.
80607         This fixes a bug introduced on 2004-07-02.
80608         Andreas Schwab reported the resulting failure of cp --parents:
80609         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
80610
80611 2005-03-21  Jim Meyering  <jim@meyering.net>
80612
80613         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
80614         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
80615
80616 2005-03-21  Jim Meyering  <jim@meyering.net>
80617         and  Paul Eggert  <eggert@cs.ucla.edu>
80618
80619         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
80620         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
80621         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
80622         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
80623         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
80624         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
80625         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
80626         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
80627         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
80628         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
80629         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
80630         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
80631         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
80632         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
80633         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
80634         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
80635         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
80636         for these modules.
80637
80638 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
80639
80640         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
80641         (which shouldn't happen), generate nothing instead of returning 0
80642         immediately, so that nstrftime (NULL, ...) doesn't return 0.
80643
80644 2005-03-16  Bruno Haible  <bruno@clisp.org>
80645
80646         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
80647         HAVE_LONGLONG_64BIT.
80648
80649 2005-03-16  Bruno Haible  <bruno@clisp.org>
80650
80651         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
80652         HAVE_LONGLONG_64BIT.
80653
80654 2005-03-16  Bruno Haible  <bruno@clisp.org>
80655
80656         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
80657         HAVE_LONGLONG_64BIT.
80658
80659 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
80660
80661         * lib/strftime.c (my_strftime): Prepend space to format so that we can
80662         reliably distinguish strftime failure from empty output on POSIX
80663         hosts.
80664
80665 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
80666
80667         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
80668         (iconv_string): Don't guess a size-zero buffer, as that might cause
80669         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
80670         result would be 'too large', where 'too large' is (heuristically)
80671         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
80672         overflow concerns.  This will prevent some unwanted malloc failures
80673         when the inputs are very large.
80674
80675 2005-03-15  Karl Berry  <karl@gnu.org>
80676
80677         * config/srclist.txt (config.rpath): from gettext.
80678         * config/config.rpath: update.
80679
80680 2005-03-15  Bruno Haible  <bruno@clisp.org>
80681
80682         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
80683         to 'negate'.
80684
80685         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
80686         variable.
80687
80688         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
80689         results.
80690
80691 2005-03-14  Simon Josefsson  <jas@extundo.com>
80692
80693         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
80694         <fx@gnu.org>.
80695
80696 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
80697
80698         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
80699         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
80700         intprops.h.
80701         * lib/strtol.c: Likewise.
80702
80703 2005-03-14  Jim Meyering  <jim@meyering.net>
80704
80705         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
80706         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
80707         to be nonzero so that we (and caller) can detect the difference
80708         between a valid zero-length expansion and an error return, even
80709         when the underlying strftime fails before writing anything into
80710         that location.
80711
80712 2005-03-14  Bruno Haible  <bruno@clisp.org>
80713
80714         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
80715         Update from GNU gettext 0.14.3.
80716
80717 2005-03-10  Jim Meyering  <jim@meyering.net>
80718
80719         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
80720
80721 2005-03-10  Jim Meyering  <jim@meyering.net>
80722
80723         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
80724         so that this module works on systems without fchdir.
80725
80726 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
80727
80728         Factor int-properties macros into a single file, except for
80729         glibc-related files.
80730         * lib/intprops.h: New file.
80731         * lib/getloadavg.c: Include it instead of limits.h.
80732         (INT_STRLEN_BOUND): Remove.
80733         * lib/human.c: Include intprops.h.
80734         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
80735         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
80736         302/1000.
80737         * lib/inttostr.h: Include intprops.h instead of limits.h.
80738         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
80739         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
80740         for consistency with intprops.h.
80741         (time_t_is_integer, twos_complement_arithmetic): Use them.
80742         * lib/sig2str.h: Include <signal.h>, intprops.h.
80743         (INT_STRLEN_BOUND): Remove.
80744         * lib/strftime.c (TYPE_SIGNED): Remove.
80745         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
80746         * lib/strtol.c: Adjust comments to match intprops.h.
80747         * lib/userspec.c: Include intprops.h.
80748         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
80749         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
80750         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
80751         instead of rolling our own expressions.
80752         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
80753
80754         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
80755         instead of int.
80756         (my_strftime): Do not mishandle years close to INT_MAX, by doing
80757         the right thing even if adding 1900 would overflow.  Similarly
80758         for tm_mon + 1 and tm_yday + 1.
80759         Make %Y always equivalent to %C%y, and similarly for %G and %g.
80760         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
80761         (DO_SIGNED_NUMBER): New macro.
80762         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
80763
80764 2005-03-07  Bruno Haible  <bruno@clisp.org>
80765
80766         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
80767
80768 2005-03-07  Bruno Haible  <bruno@clisp.org>
80769
80770         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
80771
80772 2005-03-04  Derek R. Price  <derek@ximbiot.com>
80773
80774         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
80775         (func_import): Only replace files via --import when they have actually
80776         changed.
80777
80778 2005-03-03  Derek R. Price  <derek@ximbiot.com>
80779
80780         * m4/mmap-anon.m4: New file.
80781         * m4/pagealign_alloc.m4: New file.
80782
80783 2005-03-03  Derek R. Price  <derek@ximbiot.com>
80784             Bruno Haible  <bruno@clisp.org>
80785
80786         * modules/pagealign_alloc: New file.
80787         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
80788
80789 2005-03-03  Derek R. Price  <derek@ximbiot.com>
80790             Bruno Haible  <bruno@clisp.org>
80791
80792         * lib/pagealign_alloc.h: New file.
80793         * lib/pagealign_alloc.c: New file.
80794
80795 2005-03-03  Bruno Haible  <bruno@clisp.org>
80796
80797         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
80798         Use an all-permissive copyright notice, recommended by RMS.
80799
80800 2005-03-02  Bruno Haible  <bruno@clisp.org>
80801
80802         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
80803         of AIX, the replacement has to be done only after <string.h> is
80804         included, therefore not in config.h. stpncpy.h does the replacement,
80805         and stpncpy.c uses it.
80806
80807 2005-03-02  Bruno Haible  <bruno@clisp.org>
80808
80809         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
80810         stpncpy.c uses it.
80811
80812 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80813
80814         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
80815         The workaround isn't strictly needed for POSIX conformance, and
80816         it's too much of a pain to configure and maintain.  We'll ask
80817         people to fix their kernels instead.
80818         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
80819         (NANOSLEEP_BUG_WORKAROUND): Remove.
80820         (xnanosleep): Remove the workaround.
80821
80822 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80823
80824         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
80825         Reported by Derek Price.
80826         (Include): Add "timespec.h".
80827
80828         * modules/xnanosleep (Depends-on): Remove gethrxtime.
80829
80830 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80831
80832         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
80833         to detect nanosleep bug.
80834
80835 2005-03-01  Bruno Haible  <bruno@clisp.org>
80836
80837         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
80838
80839 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
80840
80841         * modules/gethrxtime: New file.
80842         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
80843         (Depends-on): Add gethrxtime.
80844         (configure.ac): Add gl_XNANOSLEEP.
80845         (Makefile.am): Remove lib_SOURCES line.
80846
80847 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
80848
80849         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
80850         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
80851
80852 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
80853
80854         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
80855         * lib/timespec.h (gettime): Return void, since it always
80856         succeeds now.  All uses changed.
80857         * lib/gettime.c (gettime): Likewise.
80858         [HAVE_NANOTIME]: Prefer nanotime.
80859         Assume gettimeofday succeeds, as POSIX requires.
80860         Assime time () succeeds, since other code already does.
80861         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
80862         (timespec_subtract): Remove.
80863         (NANOSLEEP_BUG_WORKAROUND): New constant.
80864         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
80865         things considerably.  Use it only on GNU/Linux hosts, since the
80866         workaround shouldn't be needed elsewhere.
80867
80868 2005-02-24  Bruno Haible  <bruno@clisp.org>
80869
80870         * modules/gettext (Files): Add m4/glibc2.m4.
80871
80872 2005-02-24  Bruno Haible  <bruno@clisp.org>
80873
80874         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
80875         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
80876         * m4/progtest.m4:
80877         Update from GNU gettext 0.14.2.
80878         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
80879
80880 2005-02-24  Bruno Haible  <bruno@clisp.org>
80881
80882         * lib/localcharset.c: Update from GNU gettext 0.14.2.
80883         * lib/config.charset: Update from GNU gettext 0.14.2.
80884
80885 2005-02-24  Bruno Haible  <bruno@clisp.org>
80886
80887         * lib/gettext.h: Update from GNU gettext 0.14.2.
80888
80889 2005-02-23  Simon Josefsson  <jas@extundo.com>
80890
80891         * m4/iconvme.m4: New file.
80892
80893 2005-02-23  Jim Meyering  <jim@meyering.net>
80894
80895         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
80896         change.
80897         Thanks to Bruno Haible for catching it.
80898
80899 2005-02-22  Simon Josefsson  <jas@extundo.com>
80900
80901         * modules/iconvme: New file.
80902
80903         * MODULES.html.sh: Add iconvme.
80904
80905 2005-02-22  Simon Josefsson  <jas@extundo.com>
80906
80907         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
80908
80909 2005-02-22  Simon Josefsson  <jas@extundo.com>
80910
80911         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
80912
80913 2005-02-22  Jim Meyering  <jim@meyering.net>
80914
80915         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
80916         s/ifndef/ifdef/.
80917
80918 2005-02-20  Neil Conway  <neilc@samurai.com>
80919
80920         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
80921         returned by OSX/Darwin if the specified buffer is not large
80922         enough for the hostname.
80923
80924 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80925
80926         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
80927         pass it to _help, otherwise the latter coredumps trying to
80928         dereference state.root_argp.
80929
80930 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
80931
80932         * modules/chdir-long (Depends-on): Add memrchr.
80933         * modules/memrchr (Files): Add lib/memrchr.h.
80934         (Include): "memrchr.h".
80935
80936 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
80937
80938         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
80939
80940 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
80941
80942         * lib/memrchr.h: New file.
80943         * lib/chdir-long.c: Include it.
80944         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
80945         Don't bother including stddef.h.
80946
80947 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
80948
80949         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
80950         inclusion.
80951         Include <sys/types.h>, for dev_t.
80952         (ME_DUMMY, ME_REMOTE): Move from here....
80953         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
80954         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
80955         Dmitry V. Levin.
80956         Include mountlist.h first, to test the interface.
80957
80958 2005-01-29  Bruno Haible  <bruno@clisp.org>
80959
80960         * lib/progname.c (program_name): Initialize.
80961         Needed when linking statically on MacOS X.
80962
80963 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
80964
80965         Sync from coreutils.
80966         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
80967         (Depends-on): Add c-strtod.
80968         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
80969
80970 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
80971
80972         Sync from coreutils.
80973         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
80974
80975         Remove files that are specific to coreutils.
80976         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
80977
80978 2005-01-28  Bruno Haible  <bruno@clisp.org>
80979
80980         * modules/javacomp: New file.
80981         * MODULES.html.sh (Java): Add javacomp.
80982
80983 2005-01-28  Bruno Haible  <bruno@clisp.org>
80984
80985         * m4/javacomp.m4: New file, from GNU gettext.
80986
80987 2005-01-28  Bruno Haible  <bruno@clisp.org>
80988
80989         * lib/javacomp.sh.in: New file, from GNU gettext.
80990         * lib/javacomp.h: New file, from GNU gettext.
80991         * lib/javacomp.c: New file, from GNU gettext.
80992
80993 2005-01-26  Simon Josefsson  <jas@extundo.com>
80994
80995         * lib/gai_strerror.c: Use GPL in header.
80996
80997 2005-01-26  Bruno Haible  <bruno@clisp.org>
80998
80999         * modules/javaexec: New file.
81000         * MODULES.html.sh (Java): Add javaexec.
81001
81002 2005-01-26  Bruno Haible  <bruno@clisp.org>
81003
81004         * m4/javaexec.m4: New file, from GNU gettext.
81005
81006 2005-01-26  Bruno Haible  <bruno@clisp.org>
81007
81008         * lib/javaexec.sh.in: New file, from GNU gettext.
81009         * lib/javaexec.h: New file, from GNU gettext.
81010         * lib/javaexec.c: New file, from GNU gettext.
81011
81012 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81013
81014         * modules/lchown (Depends-on): Remove lchown.h
81015
81016 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81017
81018         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
81019         must be defined if the header file was not found, in order
81020         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
81021
81022 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81023
81024         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
81025         initializers for struct pentry_state.
81026         (__argp_error): Check return value of __asprintf
81027         (__argp_failure): Translate error message
81028
81029         * lib/argp-parse.c: Removed braces around the expansion of N_()
81030
81031 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81032
81033         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
81034         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
81035         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
81036         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
81037         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
81038         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
81039         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
81040         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
81041         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
81042         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
81043         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
81044         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
81045         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
81046         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
81047         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
81048         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
81049         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
81050         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
81051         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
81052         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
81053         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
81054         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
81055         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
81056         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
81057         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
81058         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
81059         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
81060         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
81061         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
81062         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
81063         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
81064         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
81065         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
81066         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
81067         xstrtol.m4, xstrtoumax.m4, yesno.m4:
81068         Use an all-permissive copyright notice, recommended by RMS.
81069
81070 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
81071
81072         * modules/chdir-long (Depends-on): Remove mempcpy.
81073
81074 2005-01-21  Jim Meyering  <jim@meyering.net>
81075
81076         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
81077         same value as for Solaris 9.
81078
81079         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
81080         component length.  This included changing the parameter to be
81081         of type `char *' rather than `char const *'.
81082         * lib/chdir-long.h (chdir_long): Update prototype.
81083
81084         * lib/openat.c (fdopendir, fstatat): New functions.
81085         * lib/openat.h: Include headers required for use of DIR and struct
81086         stat.
81087         [AT_SYMLINK_NOFOLLOW]: Define.
81088         (fdopendir, fstatat): Add prototypes.
81089
81090 2005-01-21  Bruno Haible  <bruno@clisp.org>
81091
81092         * modules/classpath: New file.
81093         * MODULES.html.sh (Java): Add classpath.
81094
81095 2005-01-21  Bruno Haible  <bruno@clisp.org>
81096
81097         * lib/classpath.h: New file, from GNU gettext.
81098         * lib/classpath.c: New file, from GNU gettext.
81099
81100 2005-01-20  Simon Josefsson  <jas@extundo.com>
81101
81102         * modules/version-etc-fsf: New file.
81103
81104 2005-01-20  Simon Josefsson  <jas@extundo.com>
81105
81106         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
81107         * lib/version-etc.c: Remove version_etc_copyright.
81108         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
81109         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
81110
81111 2005-01-20  Simon Josefsson  <jas@extundo.com>
81112
81113         * lib/base64.h (isbase64): Add.
81114
81115         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
81116         using a unsigned prototype, don't inline.
81117         (base64_decode): Use it.
81118
81119 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
81120
81121         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
81122         it.
81123
81124 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
81125
81126         * lib/save-cwd.c (save_cwd): Remove code to support the case
81127         where fchdir is missing or flaky.
81128
81129 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
81130
81131         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
81132
81133 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
81134
81135         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
81136         AC_LIBSOURCES now does this.
81137         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
81138         with new ullong_max module.
81139
81140 2005-01-19  Bruno Haible  <bruno@clisp.org>
81141
81142         * modules/sh-quote: New file.
81143         * MODULES.html.sh (Executing programs): Add sh-quote.
81144
81145 2005-01-19  Bruno Haible  <bruno@clisp.org>
81146
81147         * lib/sh-quote.h: New file, from GNU gettext.
81148         * lib/sh-quote.c: New file, from GNU gettext.
81149
81150 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
81151
81152         Merge from coreutils.
81153         * m4/ullong_max.m4: New file.
81154         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
81155         (gl_MACROS): Assume localeconv exists.
81156
81157 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
81158
81159         Merge changes from coreutils, as described below in several
81160         changelogs dated today.
81161
81162         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
81163         (O_DIRECTORY): Remove; not needed here, since "." must be
81164         a directory.  All uses removed.
81165         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
81166         universal on Suns, and we also need to test for IRIX.
81167         Revamp code to use 'if' rather than '#if'.
81168         Avoid unnecessary comparison of cwd->desc to 0.
81169
81170         * lib/utimens.c (futimens): Robustify the previous patch, by checking
81171         for known valid error numbers rather than observed invalid ones.
81172
81173 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
81174
81175         * modules/ullong_max: New file.
81176
81177         * modules/chdir-long, modules/openat: New files.
81178         * modules/save-cwd (Depends-on): Depend on chdir-long.
81179         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
81180
81181 2005-01-18  Jim Meyering  <jim@meyering.net>
81182
81183         Merge from coreutils.
81184         * m4/chdir-long.m4, m4/openat.m4: New files.
81185         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
81186         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
81187         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
81188         is sane and DOES follow symlinks.  Besides, testing 20 different
81189         systems found no broken chown implementations.
81190         Prompted by a change in rsync's copy of this macro.
81191         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
81192
81193         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
81194
81195         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
81196         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
81197         NULL-means-set-to-current-time semantics.
81198         Remove temporary file immediately, rather than waiting
81199         for configure's at-exit trap code to do it.
81200
81201 2005-01-18  Jim Meyering  <jim@meyering.net>
81202
81203         * lib/version-etc.c (version_etc_copyright): Update copyright date.
81204
81205         * lib/utimens.c (futimens): Account for the fact that futimes
81206         can also fail with errno == ENOSYS or errno == ENOENT.
81207         Patch from Dmitry V. Levin.
81208
81209         Change the name of the robust chdir function from chdir to chdir_long.
81210         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
81211         (restore_cwd): Use chdir_long, not chdir.
81212         * lib/chdir-long.c: Renamed from chdir.c.
81213         * lib/chdir-long.h: Renamed from chdir.h.
81214         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
81215         Hurd.
81216
81217 2005-01-18  Bruno Haible  <bruno@clisp.org>
81218
81219         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
81220         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
81221         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
81222         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
81223         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
81224         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
81225         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
81226         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
81227         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
81228         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
81229         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
81230         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
81231         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
81232         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
81233         Use an all-permissive copyright notice, recommended by RMS.
81234
81235 2005-01-18  Bob Proulx  <bob@proulx.com>
81236
81237         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
81238         simplify offsetof() macro construct to avoid compile failure with
81239         native HP-UX 11.0 ANSI C compiler.
81240
81241 2005-01-17  Bruno Haible  <bruno@clisp.org>
81242
81243         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
81244         redundant because stpncpy.m4 takes care of it.
81245
81246 2005-01-17  Bruno Haible  <bruno@clisp.org>
81247
81248         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
81249
81250 2005-01-17  Bruno Haible  <bruno@clisp.org>
81251
81252         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
81253         used.
81254
81255 2005-01-17  Bruno Haible  <bruno@clisp.org>
81256
81257         * lib/fwriteerror.h (fwriteerror): Change specification to include
81258         fclose.
81259         * lib/fwriteerror.c: Include <stdbool.h>.
81260         (fwriteerror): At the end, close the file stream. Record whether
81261         stdout was already closed.
81262
81263 2005-01-17  Bruno Haible  <bruno@clisp.org>
81264
81265         * lib/execute.c (environ): Declare if needed.
81266         * lib/pipe.c (environ): Likewise.
81267         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
81268
81269 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81270
81271         * modules/argp: Depend on vsnprintf
81272
81273 2005-01-10  Jim Meyering  <jim@meyering.net>
81274
81275         * modules/closeout (Depends-on): Add atexit.
81276
81277 2005-01-06  Bruno Haible  <bruno@clisp.org>
81278
81279         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
81280
81281 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
81282
81283         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
81284         definitions to be after all include files, to avoid collisions.
81285         Problem reported by Bob Proulx.
81286
81287 2005-01-04  Jim Meyering  <jim@meyering.net>
81288
81289         Changes imported from coreutils.
81290         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
81291         as the mkstemp template, use a temporary directory and an
81292         8.3-friendly template to avoid trouble on systems like DJGPP.
81293         Reported by Juan M. Guerrero via Stepan Kasal.
81294         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
81295         close. Remove the temporary directory right away, rather than waiting
81296         for configure's at-exit trap code to do it.
81297         Suggestion from Stepan Kasal.
81298
81299 2005-01-01  Simon Josefsson  <jas@extundo.com>
81300
81301         * gnulib-tool: Print #include directives when --import'ing.
81302
81303 2004-12-28  Simon Josefsson  <jas@extundo.com>
81304
81305         * tests/test-base64.c: Include required header files.  Remove
81306         unused variables.
81307
81308 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
81309
81310         * modules/error (Depends-on): Remove gettext.
81311
81312 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
81313
81314         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
81315         not needed.  This removes a dependency on the gettext module.
81316         [defined _LIBC]: Do not include <libintl.h>; not needed.
81317
81318 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
81319
81320         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
81321         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
81322
81323 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
81324
81325         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
81326         HAVE_DECL_STRTOLD.
81327
81328 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
81329
81330         * modules/getdate (Depends-on): Remove alloca-opt.
81331
81332 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
81333
81334         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
81335
81336 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
81337
81338         * lib/argp-parse.c: Include <stddef.h>.
81339         (alignof, alignto): New macros.
81340         (parser_init): Don't assume that void * is aligned sufficiently
81341         for struct option.
81342
81343         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
81344         need to extend the stack.
81345         (YYINITDEPTH): New macro, so that the initial stack isn't overly
81346         large.
81347
81348 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81349
81350         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
81351
81352 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
81353
81354         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
81355         (2004-10-24) change.  Apparently this was a false alarm.
81356
81357         * modules/getdate: Depend on alloca-opt, not alloca.
81358
81359 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
81360
81361         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
81362         Remove now-obsolete comment about AIX.
81363         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
81364         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
81365         (YYMAXDEPTH): New macro.
81366
81367 2004-12-18  Simon Josefsson  <jas@extundo.com>
81368
81369         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
81370
81371 2004-12-18  Bruno Haible  <bruno@clisp.org>
81372
81373         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
81374
81375 2004-12-18  Bruno Haible  <bruno@clisp.org>
81376
81377         * lib/fatal-signal.c (fatal_signals): Make non-const.
81378         (init_fatal_signals): New function.
81379         (uninstall_handlers, install_handlers): Ignore signals that were set to
81380         SIG_IGN.
81381         (at_fatal_signal): Call init_fatal_signals.
81382         (init_fatal_signal_set): Likewise. Ignore signals that were set to
81383         SIG_IGN.
81384         Reported by Paul Eggert.
81385
81386 2004-12-18  Bruno Haible  <bruno@clisp.org>
81387
81388         * doc/alloca.texi: New file.
81389         * doc/alloca-opt.texi: New file.
81390
81391 2004-12-17  Jim Meyering  <jim@meyering.net>
81392
81393         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
81394         Otherwise, install-sh could exit with improper exit status when
81395         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
81396
81397 2004-12-16  Simon Josefsson  <jas@extundo.com>
81398
81399         * tests/test-base64.c: Add license.
81400
81401 2004-12-15  Stepan Kasal  <address@hidden>
81402
81403         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
81404
81405 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
81406
81407         * modules/getcwd (Files): Add m4/d-ino.m4.
81408         Suggested by Mark D. Baushke.
81409
81410 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
81411
81412         * lib/getdate.y (textint): New member "negative".
81413         (time_zone_hhmm): New function.
81414         Expect 14 shift-reduce conflicts, not 13.
81415         (o_colon_minutes): New rule.
81416         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
81417         (yylex): Set the "negative" member of signed numbers.
81418
81419 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
81420
81421         * doc/getdate.texi (Time of day items, Time zone items):
81422         Describe new formats +00:00, UTC+00:00.
81423
81424 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
81425
81426         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
81427         spurious "-l"s.  Problem reported by Stepan Kasal.
81428
81429 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
81430
81431         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
81432         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
81433
81434 2004-12-04  Simon Josefsson  <jas@extundo.com>
81435
81436         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
81437         Vandoorselaere <yoann@prelude-ids.org>.
81438
81439 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
81440
81441         Changes imported from coreutils.
81442         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
81443         exist.
81444         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
81445
81446 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
81447
81448         Changes imported from coreutils.
81449         * lib/hard-locale.c: Assume <locale.h> exists.
81450         Include "strdup.h".
81451         (GLIBC_VERSION): New macro.
81452         (hard_locale): Assume setlocale exists.
81453         Rewrite to avoid #ifdef.
81454         Use strdup rather than malloc + strcpy.
81455         * lib/human.c: Assume <locale.h> exists.
81456         (human_readable): Assume localeconv exists.
81457
81458 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
81459
81460         * modules/hard-locale (Depends-on): Add strdup.
81461
81462 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
81463
81464         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
81465         convert T2, not T.  (Imported from libc.)
81466
81467 2004-11-30  Simon Josefsson  <jas@extundo.com>
81468
81469         * modules/restrict (License): Change to LGPL.
81470
81471 2004-11-30  Simon Josefsson  <jas@extundo.com>
81472
81473         * m4/restrict.m4: Add copyright and copying conditions.
81474
81475 2004-11-30  Simon Josefsson  <jas@extundo.com>
81476
81477         * m4/base64.m4: New file.
81478
81479 2004-11-30  Simon Josefsson  <jas@extundo.com>
81480
81481         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
81482         base64.
81483
81484         * tests/test-base64.c: New file.
81485
81486         * modules/base64: New file.
81487
81488 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
81489
81490         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
81491         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
81492
81493         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
81494
81495 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
81496
81497         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
81498         (__getcwd.c): Don't restore errno; glibc doesn't.
81499         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
81500         first, falling back to our code only if its results look suspicious.
81501         Ensure that the resulting buffer is only as large as necessary.
81502
81503         * lib/readutmp.c: Include readutmp.h first.
81504         Include <errno.h>, since readutmp.h no longer does that.
81505         * lib/readutmp.h: Don't include <errno.h>,
81506         <sys/param.h>, <time.h>; not needed to establish interface.
81507         (errno): Remove decl.
81508         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
81509         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
81510         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
81511
81512 2004-11-28  Simon Josefsson  <jas@extundo.com>
81513
81514         * lib/base64.h, base64.c: New file.
81515
81516 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
81517
81518         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
81519
81520 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
81521
81522         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
81523         (Depends-on): Remove pathmax, same.  Add mempcpy.
81524         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
81525         (Makefile.am): Append getcwd.h to lib_SOURCES.
81526         (Include): Add getcwd.h.
81527         (Maintainer): Change from Jim Meyering to "all, glibc",
81528         since getdate now uses intended-for-glibc code.
81529         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
81530         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
81531
81532 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
81533
81534         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
81535         HP's ANSI C compiler.
81536         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
81537         Declaring int functions causes warnings on some modern systems and
81538         shouldn't be needed to compile on ancient ones.
81539         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
81540         defined.
81541
81542         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
81543         with the following changes.
81544         (__set_errno): Parenthesize properly.
81545         Include <stdbool.h>.
81546         (MIN, MAX, MATCHING_INO): New macros.
81547         (__getcwd): Define with prototype, not K&R form.
81548         Use heuristics to allocate default buffer on stack if possible.
81549         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
81550         behavior, and to avoid the PATH_MAX limit when computing
81551         ../../../../...
81552         Use MATCHING_INO to compare inode number to file.
81553         Check for arithmetic overflow in size calculations.
81554         Fix bug in reallocation of dot array that caused getcwd to fail
81555         on directories nested deeper than 75.
81556         Be more careful about saving errno on error.
81557         Do not use realloc; use only free+malloc, as this is a bit
81558         more flexible and avoids a needless copy operation.
81559         Do not inspect st_dev and st_ino for symbolic links; POSIX
81560         doesn't specify the latter.
81561         Check for closedir errors.
81562         Avoid needless casts.
81563         Use "#ifdef weak_alias" around weak_alias, to be like other
81564         glibc code.
81565         The following changes to getcwd.c have effect only when used in
81566         gnulib; they have no effect inside glibc proper.
81567         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
81568         as alloca isn't used.
81569         (alloca, __alloca): Likewise.
81570         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
81571         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
81572         unconditionally, as gnulib assumes C89 or better.
81573         Do not include <sys/param.h>.
81574         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
81575         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
81576         better.
81577         (NULL) [!defined NULL]: Remove; we assume C89 or better.
81578         Include <dirent.h> in a way that is compatible with modern Autoconf.
81579         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
81580         New macros, if not already defined.
81581         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
81582         Use "_LIBC", not "defined _LIBC", for consistency.
81583         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
81584         a mempcpy module.
81585         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
81586         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
81587         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
81588         credit only to Jim Meyering and adjust the copyright dates.
81589         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
81590         <stdlib.h>, <unistd.h>, "pathmax.h".
81591         Instead, include "xgetcwd.h" (first) and "getcwd.h".
81592         (INITIAL_BUFFER_SIZE): Remove.
81593         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
81594
81595 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
81596
81597         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
81598         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
81599         Use the _ONCE methods, for efficiency.
81600         Check for fcntl.h.  In test program, include <errno.h>
81601         and <fcntl.h> if available.  Remove old K&R cruft from
81602         test program.  Check for common errors in GNU/Linux,
81603         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
81604         don't do AC_LIBOBJ, as that's getcwd.m4's job.
81605         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
81606         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
81607         name accordingly.
81608         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
81609         accommodate new getcwd.c.
81610         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
81611         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
81612         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
81613         that's all we need now.
81614
81615 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81616
81617         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
81618         argp-parse.c depends on getopt internals, that means we should
81619         always use our getopt, to be on the safe side.
81620         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
81621         order not to spoil the result of an eventual previous invocation
81622         of gl_GETOPT_SUBSTITUTE.
81623
81624 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81625
81626         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
81627         redefinition warnings. To avoid them, include the defines
81628         in `#if !defined __need_getopt ... #endif'. The only place
81629         where __getopt_argv_const is used is in definitions
81630         of getopt_long and getopt_long_only below, which are as well
81631         protected by `#ifndef __need_getopt'.
81632         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
81633         __need_getopt after including <stdio.h> and <unistd.h> These
81634         headers might have defined it.
81635
81636 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
81637
81638         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
81639
81640 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
81641
81642         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
81643         (futimens): New function, which uses futimes if available.
81644         (futimens, utimens): Support timespec==NULL, with same semantics
81645         as utime and utimens.
81646         * lib/utimens.h (futimens): New decl.
81647
81648 2004-11-23  Jim Meyering  <jim@meyering.net>
81649
81650         * lib/getopt_.h: Remove trailing blanks.
81651
81652 2004-11-23  Jim Meyering  <jim@meyering.net>
81653
81654         * lib/__fpending.c: Add comment.
81655
81656 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
81657
81658         * modules/canonicalize (Depends-on): Add xreadlink.
81659         Problem reported by James Youngman.
81660
81661 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
81662
81663         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
81664         New macros.
81665         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
81666         optopt): Use them instead of invoking ## directly; otherwise, the
81667         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
81668
81669 2004-11-19  Bruno Haible  <bruno@clisp.org>
81670
81671         * lib/strtok_r.c: Move comments from here...
81672         * lib/strtok_r.h: ... to here.
81673
81674 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
81675
81676         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
81677         implementations that mishandle size_t overflow.
81678
81679 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
81680
81681         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
81682         might fail.  Problem reported by Yoann Vandoorselaere.
81683         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
81684         implementations that mishandle size_t overflow.
81685
81686 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81687
81688         * modules/canon-host (Depends-on): Add strdup.
81689
81690 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81691
81692         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
81693
81694 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81695
81696         * lib/canon-host.c: Include "strdup.h".
81697         (canon_host): Use getaddrinfo if available, so that IPv6 works.
81698         Use strdup instead of malloc/strcpy to duplicate strings.
81699
81700         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
81701         (human_space_before_unit): New constant.
81702         * lib/human.c (human_readable): Support it.
81703
81704         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
81705         (xgetcwd): Set errno correctly when failing.
81706         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
81707         the failure is actually due to a PATH_MAX problem.
81708
81709         Further getopt changes to make it more likely that glibc will
81710         buy the changes back.
81711         * lib/getopt.c (POSIXLY_CORRECT): New constant.
81712         (getopt): Use it, so to preserve glibc semantic
81713         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
81714         when compiling for libc.
81715         * lib/getopt_.h (__getopt_argv_const): Bring it back.
81716         (getopt_long, getopt_long_only): Use it.
81717
81718         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
81719         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
81720         (getopt): Argv is now char * const *, as per standard.
81721         (_getopt_internal_r, _getopt_internal): Argv is now char **,
81722         not char *__getopt_argv_const *.
81723         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
81724         _getopt_long_only_r): Likewise.
81725         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
81726         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
81727         _getopt_long_r, _getopt_long_only_r): Likewise.
81728         * lib/getopt_.h (__getopt_argv_const): Remove.
81729         (getopt): Argv is now char * const *, as per standard.
81730
81731         * lib/getdate.y (tORDINAL): New token.
81732         (day, relunit): Allow it for relative times.
81733         (relative_time_table): Use tORDINAL for ordinals.
81734
81735 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81736
81737         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
81738         Document that "second" isn't allowed as an ordinal number.
81739
81740 2004-11-16  Jim Meyering  <jim@meyering.net>
81741
81742         * modules/closeout (Depends-on): Add fpending.
81743
81744 2004-11-15  Jim Meyering  <jim@meyering.net>
81745
81746         * lib/closeout.c: Include "__fpending.h" once again.
81747         Include <stdbool.h>.
81748         (close_stdout): Don't fail just because stdout was closed initially,
81749         since some programs don't write to stdout in the normal course of
81750         operation (other than --version and --help), and we don't want this
81751         function to make e.g. `touch file >&-' fail.
81752         But do fail if it was closed and someone has tried to write to it.
81753         E.g., `printf foo >&-' must fail.
81754
81755 2004-11-13  Jim Meyering  <jim@meyering.net>
81756
81757         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
81758
81759 2004-11-12  Simon Josefsson  <jas@extundo.com>
81760
81761         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
81762         small doc fix is still pending.
81763
81764 2004-11-11  Simon Josefsson  <jas@extundo.com>
81765
81766         * modules/strtok_r: New file.
81767
81768         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81769         strtok_r.
81770
81771 2004-11-11  Simon Josefsson  <jas@extundo.com>
81772
81773         * m4/strtok_r.m4: New file.
81774
81775         * m4/getopt.m4: Replace opterr.
81776
81777 2004-11-11  Simon Josefsson  <jas@extundo.com>
81778
81779         * lib/strtok_r.h, strtok_r.c: New file.
81780
81781 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
81782
81783         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
81784         of replacing opterr, getopt, etc.  This should handle the
81785         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
81786
81787 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
81788
81789         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
81790         we can stop lying to compilers about the constness of argv when we
81791         are compiled outside glibc.
81792         (getopt, getopt_long, getopt_long_only): Use it.
81793         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
81794         _getopt_internal, getopt): Likewise.
81795         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
81796         _getopt_long_only_r): Likewise.
81797         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
81798         _getopt_long_r, _getopt_long_only_r): Likewise.
81799
81800         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
81801         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
81802         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
81803         the other external symbols.
81804         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
81805         declaration, since the above renaming now works around collisions.
81806
81807 2004-11-11  Jim Meyering  <jim@meyering.net>
81808
81809         * lib/linebreak.c: Remove trailing blanks.
81810         * lib/alloca_.h: Likewise.
81811         * lib/acosl.c: Likewise.
81812         * lib/euidaccess.c: Likewise.
81813         * lib/allocsa.h: Likewise.
81814
81815 2004-11-10  Simon Josefsson  <jas@extundo.com>
81816
81817         * m4/getaddrinfo.m4: New file.
81818
81819 2004-11-10  Simon Josefsson  <jas@extundo.com>
81820
81821         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
81822
81823 2004-11-10  Simon Josefsson  <jas@extundo.com>
81824
81825         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81826         getaddrinfo.
81827
81828         * modules/getaddrinfo: New file.
81829
81830 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81831
81832         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
81833
81834 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81835
81836         * lib/mktime.c (SHR): New macro, which is a portable
81837         substitute for >> that should work even on Crays.
81838         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
81839         Problem reported by Mark D. Baushke in
81840         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
81841         * lib/getdate.y (SHR): Likewise.
81842         (tm_diff): Use it.
81843         * lib/strftime.c (SHR): Likewise.
81844         (tm_diff): Use it.
81845         * lib/quotearg.c (struct quoting_options): Use unsigned int for
81846         quote_these_too, so that right shifts are well defined.  All uses
81847         changed.
81848
81849 2004-11-10  Jim Meyering  <jim@meyering.net>
81850
81851         Ensure that no close failure goes unreported.
81852         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
81853         return early when it seems there's nothing to flush.
81854         Don't include __fpending.h.
81855
81856 2004-11-10  Jim Meyering  <jim@meyering.net>
81857
81858         * modules/closeout (Depends-on): Remove fpending.
81859
81860 2004-11-10  Jim Meyering  <jim@meyering.net>
81861
81862         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
81863
81864 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
81865
81866         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
81867         gl_FUNC_STRFTIME.
81868         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
81869         and AC_REQUIRE when possible, to avoid duplicate checks.
81870         Check for <wchar.h>.
81871
81872 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
81873
81874         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
81875
81876 2004-11-09  Bruno Haible  <bruno@clisp.org>
81877
81878         * m4/sockpfaf.m4: New file.
81879
81880 2004-11-05  Bruno Haible  <bruno@clisp.org>
81881
81882         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
81883         Reported by Mark D. Baushke <mdb@cvshome.org>.
81884
81885 2004-11-04  Bruno Haible  <bruno@clisp.org>
81886
81887         2004-09-11  Bruno Haible  <bruno@clisp.org>
81888                 * allocsa.valgrind: New file.
81889         2004-02-06  Bruno Haible  <bruno@clisp.org>
81890                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
81891                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
81892                 Reported by Christopher Seip <chris.seip@hp.com>.
81893
81894 2004-11-04  Bruno Haible  <bruno@clisp.org>
81895
81896         * modules/allocsa (Files): Add lib/allocsa.valgrind.
81897         (Makefile.am): Distribute it.
81898
81899 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
81900
81901         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
81902         with errno == ERANGE if the buffer is too small.
81903         Problem reported by Mark D. Baushke.
81904
81905 2004-11-03  Albert Chin  <china@thewrittenword.com>
81906             Paul Eggert  <eggert@cs.ucla.edu>
81907
81908         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
81909         equivalent, substitute $ac_type for equivalent type rather than
81910         blindly using uint32_t *always* which won't work if uint32_t is not
81911         available.  Define _UINT32_T to work around typedef of uint32_t if
81912         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
81913         2.5.1.
81914
81915 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
81916
81917         * m4/jm-macros.m4: Sync from coreutils.
81918         (gl_MACROS): Check for mbrlen, for pathchk.
81919         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
81920
81921 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
81922
81923         * lib/xreadlink.c (MAXSIZE): New macro.
81924         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
81925         size does not exceed MAXSIZE.  Avoid cast.
81926         As suggested by Mark D. Baushke in
81927         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
81928         if readlink fails with buffer size just under MAXSIZE, try again
81929         with MAXSIZE.
81930
81931 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
81932
81933         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
81934
81935 2004-11-02  Derek R. Price  <derek@ximbiot.com>
81936         and  Paul Eggert  <eggert@cs.ucla.edu>
81937
81938         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
81939         (get_date): Overparenthesize to avoid GCC warning.
81940
81941 2004-11-02  Bruno Haible  <bruno@clisp.org>
81942
81943         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
81944         returns void.
81945
81946 2004-11-02  Bruno Haible  <bruno@clisp.org>
81947
81948         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
81949         function returns void.
81950
81951 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
81952
81953         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
81954         fflush_unlocked, flockfile, funlockfile, funlockfile,
81955         fputs_unlocked, putc_unlocked.
81956
81957 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
81958
81959         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
81960         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
81961         already declared.
81962
81963 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81964
81965         * modules/getdate (Files): Add doc/getdate.texi.
81966         (Depends-on): Add setenv, xalloc.
81967
81968 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81969
81970         * lib/getdate.y: Add support for TZ="foo" within a date string.
81971         Fix some bugs near time_t boundaries.  Reject dates with
81972         out-of-range components, e.g., "Sept 31".
81973         Include <stdlib.h>, "setenv.h", "xalloc.h".
81974         (ISDIGIT_LOCALE): Remove; unused.
81975         Note that the TZ and time functions used here are not reentrant.
81976         (mktime_ok, get_tz): New functions.
81977         (TZBUFSIZE): New constant.
81978         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
81979         This requires that we sometimes generate our own TZ="XXX..." setting.
81980
81981 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81982
81983         * doc/getdate.texi: New file, from coreutils with modifications for
81984         the new TZ parsing.
81985
81986 2004-10-27  Derek R. Price  <derek@ximbiot.com>
81987
81988         * lib/mktime.c (not_equal_tm): Remove redundant check.
81989
81990 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
81991
81992         * modules/regex (lib_SOURCES): Add regex.c.
81993         Reported by James Youngman in
81994         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
81995
81996 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
81997
81998         * lib/getdate.y: Use Bison 1.875 features, and some minor
81999         code cleanups.  This change does not affect semantics.
82000         Don't include <stdlib.h>; no longer needed.
82001         Don't include unlocked-io.h; only the "#if TEST" code uses
82002         stdio, and performance isn't crucial there.
82003         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
82004         Bison 1.875 features as described below.
82005         All uses of "PC." replaced by "pc->".
82006         (YYSTYPE): Add a forward declaration.
82007         (yylex, yyerror): Use full prototypes in forward decls.
82008         Use "%pure-parser" rather than obsolescent "%pure_parser".
82009         Use %parse-param and %lex-param instead of obsolescent
82010         YYPARSE_PARAM and YYLEX_PARAM.
82011         (meridian_table, month_and_day_table, time_units_table,
82012         relative_time_table, time_zone_table, military_table,
82013         lookup_zone, lookup_word, get_date):
82014         Use NULL instead of 0 where appropriate.
82015         (to_hour): Avoid abort (), to avoid a dependency on
82016         stdlib.h.
82017         (yyerror, yylex): Now accepts parser_control * arg.
82018         (main) [TEST]: Use '\0' rather than 0 for char.
82019
82020 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
82021
82022         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
82023
82024 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
82025
82026         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
82027         It's now the caller's responsibility to handle the case where
82028         !HAVE_GETPAGESIZE && !defined getpagesize.
82029
82030         * lib/mktime.c (leapyear): Arg is long int, not int.
82031
82032 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
82033
82034         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
82035
82036 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
82037
82038         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
82039         missing.  Problem reported by James Youngman.
82040
82041 2004-10-16  Simon Josefsson  <jas@extundo.com>
82042
82043         * gnulib-tool: Fix comments.  Fix parse problem.
82044         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
82045
82046 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
82047
82048         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
82049         implementation of getopt_long.  Problem reported by Alexander Taler in:
82050         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
82051
82052 2004-10-15  Bruno Haible  <bruno@clisp.org>
82053
82054         * gnulib-tool: Untabify. Initialize supplied_libname.
82055         (func_usage): More homogenous output.
82056         (func_modules_transitive_closure, func_modules_to_filelist,
82057         func_emit_lib_Makefile_am): New functions.
82058         (func_import): New function, extracted from big case statement. Use
82059         func_get_license, func_modules_transitive_closure,
82060         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
82061         opt_lgpl. Don't use test -a, as it's not portable.
82062         (func_create_testdir): Use func_modules_transitive_closure,
82063         func_modules_to_filelist, func_emit_lib_Makefile_am.
82064
82065 2004-10-15  Bruno Haible  <bruno@clisp.org>
82066
82067         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
82068
82069 2004-10-15  Bruno Haible  <bruno@clisp.org>
82070
82071         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
82072         the portions belonging to each module.
82073         Suggested by Derek Robert Price <derek@ximbiot.com>.
82074
82075 2004-10-12  Simon Josefsson  <jas@extundo.com>
82076
82077         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
82078         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
82079         to real functions.
82080
82081 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82082
82083         * modules/vsnprintf: New file.
82084
82085 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82086
82087         * m4/vsnprintf.m4: New file.
82088
82089 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82090
82091         * lib/vsnprintf.h: New file.
82092         * lib/vsnprintf.c: New file.
82093
82094 2004-10-11  Bruno Haible  <bruno@clisp.org>
82095
82096         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
82097         vsnprintf.
82098
82099 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
82100
82101         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
82102
82103 2004-10-07  Bruno Haible  <bruno@clisp.org>
82104
82105         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
82106         fits into the provided buffer.
82107
82108 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
82109
82110         * lib/diacrit.c, diacrit.h: Add GPL notice.
82111
82112         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
82113         notice.
82114         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
82115         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
82116         This avoids a potential constant-folding bug.
82117
82118 2004-10-05  Bruno Haible  <bruno@clisp.org>
82119
82120         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
82121         for the declaration of strsep.
82122
82123 2004-10-05  Bruno Haible  <bruno@clisp.org>
82124
82125         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
82126
82127 2004-10-04  Simon Josefsson  <jas@extundo.com>
82128
82129         * modules/memmem: New file.
82130         * tests/test-memmem.c: New file.
82131         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
82132
82133 2004-10-04  Simon Josefsson  <jas@extundo.com>
82134
82135         * m4/memmem.m4: New file.
82136
82137 2004-10-04  Simon Josefsson  <jas@extundo.com>
82138
82139         * lib/memmem.h: New file.
82140         * lib/memmem.c: New file, taken from glibc.
82141
82142 2004-10-04  Simon Josefsson  <jas@extundo.com>
82143
82144         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
82145         '#ifdef USE_UNLOCKED_IO'.
82146
82147 2004-10-04  Simon Josefsson  <jas@extundo.com>
82148
82149         * config/srclist.txt: Add memmem from glibc.
82150
82151 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
82152
82153         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
82154
82155         * modules/argmatch, modules/argp, modules/closeout, modules/error,
82156         modules/exclude, modules/getdate, modules/getline,
82157         modules/getndelim2, modules/getpass, modules/getpass-gnu,
82158         modules/getusershell, modules/linebuffer, modules/md5,
82159         modules/mountlist, modules/posixtm, modules/readtokens,
82160         modules/readutmp, modules/regex, modules/sha1,
82161         modules/version-etc, modules/yesno:
82162         Remove dependency on unlocked-io.
82163
82164 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
82165
82166         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
82167
82168         * m4/unlocked-io.m4: Add copyright notice.
82169         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
82170
82171 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
82172
82173         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
82174         * lib/xmalloc.c (xmemdup): Likewise.
82175         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
82176         XFREE): Remove these long-obsolescent macros.
82177         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
82178         * lib/xstrdup.c: Remove.
82179
82180         * lib/regex.c (re_comp): Cast gettext return value to char *,
82181         Problem reported by Martin Neitzel via Mark D. Baushke.
82182
82183 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
82184
82185         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
82186         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
82187         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
82188         regex.c, sha1.c, version-etc.c, yesno.c:
82189         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
82190         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
82191         the includer's responsibility.
82192
82193         Sync from coreutils.
82194
82195         * lib/modechange.c (mode_compile): Don't decrement a pointer that
82196         points to the start of a string, as the C Standard says the
82197         resulting behavior is undefined.
82198
82199         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
82200         simple -> simple_backups, numbered_existing ->
82201         numbered_existing_backups, numbered -> numbered_backups
82202         to avoid shadowing problems.  All uses changed.
82203         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
82204         * lib/backupfile.c (check_extension, numbered_backup):
82205         Rename locals to avoid shadowing 'basename'.
82206         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
82207         once.
82208
82209         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
82210         * lib/.cvsignore: Add getopt.h.
82211
82212 2004-10-04  Bruno Haible  <bruno@clisp.org>
82213
82214         * modules/README: New file.
82215         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
82216         not a module.
82217
82218 2004-10-02  Jim Meyering  <jim@meyering.net>
82219
82220         * lib/dirfd.h, getpagesize.h: Add copyright notice.
82221
82222 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82223
82224         * modules/strsep: New file.
82225
82226 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82227
82228         * m4/strsep.m4: New file.
82229
82230 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82231
82232         * lib/strsep.h: New file.
82233         * lib/strsep.c: New file.
82234
82235 2004-10-01  Simon Josefsson  <jas@extundo.com>
82236
82237         * lib/snprintf.c (snprintf): Handle size==0.
82238
82239 2004-10-01  Simon Josefsson  <jas@extundo.com>
82240             Bruno Haible  <bruno@clisp.org>
82241
82242         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
82243         (snprintf): Declare 'args'.
82244
82245 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
82246
82247         * lib/snprintf.c: Remove comments as to why each header is needed.
82248
82249 2004-10-01  Bruno Haible  <bruno@clisp.org>
82250
82251         * MODULES.html.sh: Add strsep.
82252
82253 2004-09-30  Simon Josefsson  <jas@extundo.com>
82254
82255         * modules/snprintf: New file.
82256
82257 2004-09-30  Simon Josefsson  <jas@extundo.com>
82258
82259         * m4/snprintf.m4: New file.
82260
82261 2004-09-30  Simon Josefsson  <jas@extundo.com>
82262
82263         * lib/snprintf.h, lib/snprintf.c: New files.
82264
82265 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82266
82267         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
82268         (hol_entry_help): Never translate an empty string.
82269         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
82270         * lib/argp.h (OPTION_NO_TRANS): New option.
82271
82272 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
82273
82274         * modules/argp (Maintainer): Replace Simon Josefsson
82275         by Sergey Poznyakoff.
82276
82277 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
82278
82279         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
82280         changes merged back into glibc.
82281
82282 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
82283
82284         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
82285
82286 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
82287
82288         * lib/xvasprintf.c: Include xalloc.h.
82289         (xvasprintf): Use xalloc_die, not xmalloc_die.
82290
82291 2004-09-29  Bruno Haible  <bruno@clisp.org>
82292
82293         * modules/alloca-opt: New file, derived from modules/alloca.
82294         * modules/allocsa: Depend on alloca-opt instead of alloca.
82295         * modules/setenv: Likewise.
82296         * modules/vasnprintf: Likewise.
82297         * MODULES.html.sh: Add alloca-opt.
82298
82299 2004-09-28  Simon Josefsson  <jas@extundo.com>
82300
82301         * gnulib-tool: New parameter --lgpl, to asseert that modules are
82302         LGPL, and to replace license template from GPL to LGPL.
82303
82304 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
82305
82306         * modules/dummy: Change license to LGPL.
82307
82308 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
82309
82310         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
82311
82312 2004-09-24  Simon Josefsson  <jas@extundo.com>
82313
82314         * modules/minmax (License): Change from GPL to LGPL.
82315
82316 2004-09-23  Simon Josefsson  <jas@extundo.com>
82317
82318         * gnulib-tool (--import): Typo.
82319
82320 2004-09-23  Simon Josefsson  <jas@extundo.com>
82321
82322         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
82323
82324 2004-09-22  Bruno Haible  <bruno@clisp.org>
82325
82326         * modules/*: Add 'License' field.
82327         * gnulib-tool: Accept --extract-license option.
82328         (func_get_license): New function.
82329
82330 2004-09-21  Bruno Haible  <bruno@clisp.org>
82331
82332         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
82333         Reported by Simon Josefsson.
82334
82335 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
82336
82337         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
82338         gl_AC_TYPE_LONG_LONG.
82339
82340 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
82341
82342         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
82343
82344 2004-09-18  Simon Josefsson  <jas@extundo.com>
82345         and  Paul Eggert  <eggert@cs.ucla.edu>
82346
82347         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
82348         calls with autoreconf.  Define GL_LIB.
82349
82350 2004-09-14  Karl Berry  <karl@gnu.org>
82351
82352         * config/srclist.txt: unsync setenv.c, sigh.
82353
82354 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
82355
82356         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
82357         Problem reported by Bruno Haible in:
82358         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
82359
82360 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
82361
82362         * config/srclist.txt: Comment out argp-pvh.c.
82363
82364 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
82365
82366         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
82367         in case some system header has #define'd it.  Problem reported by
82368         Soeren D. Schulze in
82369         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
82370
82371 2004-09-09  Karl Berry  <karl@gnu.org>
82372
82373         * regex.[ch]: delete from the root.  These were supposed to be
82374                 synced with emacs cvs, but this has not happened for about
82375                 a year, and anyway nothing else uses emacs regex.[ch].
82376                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
82377                 lib/regex[.ch] is untouched.
82378
82379 2004-09-09  Bruno Haible  <bruno@clisp.org>
82380
82381         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
82382
82383 2004-09-09  Bruno Haible  <bruno@clisp.org>
82384
82385         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
82386         modifications.
82387         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
82388
82389 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
82390
82391         * modules/xvasprintf: New file.
82392         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
82393
82394 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
82395
82396         * lib/xvasprintf.h: New file.
82397         * lib/xvasprintf.c: New file.
82398         * lib/xasprintf.c: New file.
82399
82400 2004-09-08  Bruno Haible  <bruno@clisp.org>
82401
82402         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
82403
82404 2004-09-08  Bruno Haible  <bruno@clisp.org>
82405
82406         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
82407         length is > INT_MAX.
82408         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
82409         more.
82410
82411 2004-09-08  Bruno Haible  <bruno@clisp.org>
82412
82413         * lib/stdint_.h: New file, taken from GNU clisp.
82414
82415 2004-09-08  Bruno Haible  <bruno@clisp.org>
82416             Oskar Liljeblad  <oskar@osk.mine.nu>
82417
82418         * modules/stdint: New file.
82419         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
82420
82421 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82422
82423         Import from coreutils.
82424         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
82425         strings on unbounded length.  alloca's performance benefits aren't
82426         that important here.
82427         (V_STRDUP): Remove.
82428         (parse_with_separator): New function, with most of the internals
82429         of the old parse_user_spec.  Allow user to omit both user and group,
82430         for compatibility with FreeBSD.
82431         Clone only the user name, not the entire spec.
82432         Do not set *uid, *gid unless entirely successful.
82433         Avoid memory leak in some failing cases.
82434         Fix regression for USER.GROUP reported by Dmitry V. Levin in
82435         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
82436         (parse_user_spec): Rewrite to use parse_with_separator.
82437
82438 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82439
82440         * modules/userspec: Don't depend on alloca.
82441
82442 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82443
82444         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
82445
82446 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
82447
82448         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
82449         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
82450         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
82451
82452 2004-08-16  Simon Josefsson  <jas@extundo.com>
82453
82454         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
82455         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
82456         Add --dry-run for --import.
82457         Let user provided command line parameters override configure.ac
82458         settings.
82459
82460 2004-08-12  Simon Josefsson  <jas@extundo.com>
82461
82462         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
82463         as discussed with Paul Eggert in threads rooted at
82464         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
82465         and
82466         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
82467         Before, the test was empty, and relied on ELIDE_CODE in source
82468         code.)
82469         (gl_PREREQ_GETOPT): New macro.
82470         (gl_GETOPT): Use them.
82471
82472 2004-08-12  Simon Josefsson  <jas@extundo.com>
82473
82474         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
82475         * lib/getopt_.h: Renamed from getopt.h.
82476
82477 2004-08-12  Simon Josefsson  <jas@extundo.com>
82478
82479         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
82480         Change default library name from libfoo to libgnu.
82481         Now, if you have a configure.ac that says:
82482                 gl_SOURCE_BASE(gl)
82483                 gl_M4_BASE(gl/m4)
82484                 gl_MODULES(error getopt etcetera)
82485                 gl_INIT
82486         you can import all you need by running:
82487                 ../gnulib/gnulib-tool --import
82488
82489         * modules/getopt (Files): Rename getopt.h to getopt_.h.
82490         (Makefile.am): Rewrite, use logic from argz.
82491         (Include): Use <getopt.h> instead of "getopt.h".
82492
82493 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82494
82495         * modules/argp (Files): Add m4/unlocked-io.m4.
82496         (Depends-on): Add extensions.
82497
82498 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82499
82500         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
82501         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
82502         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
82503         Check for program_invocation_name, program_invocation_short_name,
82504         flockfile, funlockfile, features.h, _getopt_long_only_r.
82505
82506 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82507
82508         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
82509         its complicated substitute.
82510         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
82511         and program_invocation_name.
82512         (__argp_basename) [!_LIBC]: Remove; the only use was
82513         replaced by its body.
82514         (__argp_short_program_name): Change condition from
82515         !defined __argp_short_program_name to
82516         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
82517         to match argp-namefrob.h.
82518         (__argp_failure): Don't assume strerror_r returns char *.
82519         * lib/argp-parse.c (N_): Define unconditionally.
82520         (argp_default_options): Fill out initializers with 0 to avoid
82521         gcc warnings.
82522
82523 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82524
82525         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
82526         getopt1.c.
82527
82528 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
82529
82530         Merge from coreutils.
82531
82532         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
82533
82534         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
82535         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
82536
82537 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
82538
82539         Merge from coreutils.
82540
82541         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
82542         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
82543         for Reliant Unix 5.43.
82544
82545         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
82546         (union fooround): Use uintmax_t, not long int.
82547         The rest is a merge from libc:
82548         [defined _LIBC]: Include <shlib-compat.h>.
82549         (_obstack) [defined _LIBC]: Remove after 2.3.4.
82550
82551         * lib/settime.c (settime): Recode to avoid warning with
82552         Sun Forte C 6U2.
82553
82554         * lib/strverscmp.c: Convert to UTF-8.
82555
82556 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
82557
82558         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
82559         m4/uintmax_t.m4.
82560
82561 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
82562
82563         * modules/xalloc-die: New file.
82564         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
82565
82566         * modules/md5 (Files): Add m4/uint32_t.m4.
82567         * modules/sha1: Renamed from modules/sha.
82568         (Files):
82569         Rename lib/sha.h to lib/sha1.h.
82570         Rename lib/sha.c to lib/sha1.c.
82571         Rename m4/sha.m4 to m4/sha1.m4.
82572         (lib_SOURCES): Likewise.
82573         (configure.ac): Rename gl_SHA to gl_SHA1.
82574         (Include): sha.h -> sha1.h.
82575
82576 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
82577
82578         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
82579         * m4/sha1.m4: Renamed from sha.m4.
82580         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
82581
82582 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
82583
82584         * lib/obstack.h (obstack_empty_p):
82585         Don't assume that chunk->contents is suitably aligned.
82586         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
82587         Likewise. Problem reported by Benno in
82588         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
82589
82590         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
82591         readable.  This could be improved further but it'd take some work.
82592
82593 2004-08-08  Simon Josefsson  <jas@extundo.com>
82594
82595         * modules/xgethostname (Depends-on): Remove exit and error (not
82596         used).
82597
82598         * modules/getpass-gnu: Add getpass.h.
82599         (Depends-on): Add stdbool.
82600         * modules/getpass: Add getpass.h.
82601
82602 2004-08-08  Simon Josefsson  <jas@extundo.com>
82603
82604         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
82605         Check getpass declaration.
82606
82607 2004-08-08  Simon Josefsson  <jas@extundo.com>
82608
82609         * lib/xgethostname.c: Don't include error.h (not used).
82610
82611         * lib/getpass.h: Add.
82612         * lib/getpass.c: Include getpass.h first.
82613
82614 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
82615
82616         * lib/xalloc-die.c: New file.
82617         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
82618         All uses removed.
82619         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
82620         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
82621         xalloc-die.c.
82622         (_, N_, xalloc_die): Move to xalloc-die.c.
82623         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
82624         so that we needn't mess with xalloc_msg_memory_exhausted.
82625
82626         * lib/sha1.h: Renamed from sha.h.
82627         (SHA1_H): Renamed from _SHA_H.
82628         (sha1_ctx): Renamed from sha_ctx.
82629         (sha1_init_ctx): Renamed from sha_init_ctx.
82630         (sha1_process_block): Renamed from sha_process_block.
82631         (sha1_process_bytes): Renamed from sha_process_bytes.
82632         (sha1_finish_ctx): Renamed from sha_finish_ctx.
82633         (sha1_read_ctx): Renamed from sha_read_ctx.
82634         (sha1_stream): Renamed from sha_stream.
82635         (sha1_buffer): Renamed from sha_buffer.
82636         * lib/sha1.c: Likewise; renamed from sha.c.
82637         Do not include <sys/types.h>.
82638         Include <stddef.h> rather than <stdlib.h>.
82639
82640 2004-08-08  Bruno Haible  <bruno@clisp.org>
82641
82642         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
82643         FILESYSTEM_PREFIX_LEN.
82644         * lib/progreloc.c: Likewise.
82645         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
82646
82647 2004-08-06  Simon Josefsson  <jas@extundo.com>
82648
82649         * modules/progname (Depends-on): Don't depend on stdbool.
82650
82651 2004-08-06  Simon Josefsson  <jas@extundo.com>
82652
82653         * modules/getsubopt: New file.
82654         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82655         getsubopt.
82656
82657 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
82658
82659         More merge from coreutils.
82660
82661         * m4/utimens.m4, m4/utimecmp.m4: New files.
82662         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
82663         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
82664         prereq.m4, sha.m4: Import changes from coreutils.
82665
82666 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
82667
82668         More merge from coreutils.
82669         * modules/raise, modules/readtokens0, modules/utimens:
82670         * modules/utimecmp, module/xnanosleep: New files.
82671         * modules/strftime: Add lib/strftime.h.
82672         Change include from <time.h> to "strftime.h".
82673         * modules/yesno: Add lib/yesno.h.
82674         * modules/backupfile: Remove lib/addext.c.
82675         * modules/euidaccess: Add stat-macros.h.
82676         * modules/canonicalize, modules/euidaccess,
82677         modules/filemode, modules/lchown, modules/makepath,
82678         modules/rmdir, modules/stat: Likewise.
82679
82680 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
82681
82682         Merge from tar.
82683         * lib/argp-help.c (make_hol, hol_append): Don't assume that
82684         SIZE_MAX is a valid preprocessor constant.
82685         (__argp_basename): Change from "#ifndef _LIBC"
82686         to "#ifndef __argp_short_program_name", so that
82687         we don't compile these functions for tar.
82688
82689         More merges from coreutils.
82690         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
82691         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
82692         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
82693         * lib/addext.c: Remove; no longer needed.
82694         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
82695         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
82696         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
82697         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
82698         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
82699         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
82700         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
82701         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
82702         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
82703         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
82704         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
82705         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
82706         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
82707         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
82708         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
82709         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
82710         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
82711         Import changes from coreutils.
82712
82713 2004-08-05  Simon Josefsson  <jas@extundo.com>
82714
82715         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
82716
82717 2004-08-05  Simon Josefsson  <jas@extundo.com>
82718
82719         * m4/getsubopt.m4: New file.
82720
82721 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
82722
82723         Merge from coreutils.
82724
82725         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
82726         * m4/getcwd-path-max.m4: New files.
82727
82728         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
82729         FILESYSTEM_PREFIX_LEN ->
82730         FILE_SYSTEM_PREFIX_LEN.
82731         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
82732         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
82733         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
82734         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
82735
82736         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
82737         prerequisite modules now handle the DOS stuff.
82738         Don't check for unistd.h.
82739
82740 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
82741
82742         Merge from coreutils.
82743
82744         * lib/.gdb-history: Remove; this doesn't belong here.
82745
82746         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
82747         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
82748         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
82749         * lib/getcwd.c: New files.
82750
82751         * lib/dirname.h: Include <stdbool.h>.
82752         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
82753         for consistency with POSIX terminology.  All uses changed.
82754         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
82755         (strip_trailing_slashes): Use bool for booleans.
82756         * lib/stripslash.c (strip_trailing_slashes): Likewise.
82757
82758         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
82759         sometimes returns a positive errno value even when it succeeds.
82760         (print_errno_message) [!LIBC]: Fall back on strerror if
82761         __strerror_r fails.
82762
82763         * lib/path-concat.c (mempcpy): Don't define if a system header defines
82764         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
82765         (longest_relative_suffix): New function.
82766         (path_concat): Use it.  Assume first argument is not NULL.
82767         Port to DOS.  Omit redundant separators.
82768         Report an error instead of returning NULL.
82769         Use mempcpy instead of memcpy.
82770         (xpath_concat): Remove: not declared or used.
82771
82772         * lib/same.h: Include <stdbool.h>
82773         (same_name): Return bool, not int.
82774         * lib/same.c (same_name): Likewise.
82775         (errno): Don't declare; we assume C89 or better now.
82776
82777         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
82778         if not already defined.
82779
82780         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
82781         * lib/dup-safer.c (errno): Likewise.
82782
82783 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
82784
82785         Merge from coreutils.
82786         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
82787         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
82788         * modules/path-concat: Don't depend on strdup.
82789
82790 2004-08-03  Simon Josefsson  <jas@extundo.com>
82791
82792         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
82793         * lib/progname.h: Don't include stdbool.h.
82794
82795 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
82796
82797         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
82798         * MODULES.html.sh (func_all_modules): Remove fatal.
82799
82800 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
82801
82802         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
82803
82804 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
82805
82806         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
82807         working.
82808
82809 2004-08-02  Simon Josefsson  <jas@extundo.com>
82810
82811         * lib/getsubopt.h: New file, with comments from Bruno Haible.
82812         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
82813         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
82814
82815 2004-08-01  Simon Josefsson  <jas@extundo.com>
82816
82817         * lib/xgetdomainname.c: Include stdlib.h, for free().
82818
82819 2004-07-19  Bruno Haible  <bruno@clisp.org>
82820
82821         * MODULES.html.sh (func_all_modules): Add dummy.
82822
82823 2004-07-16  Simon Josefsson  <jas@extundo.com>
82824
82825         * modules/dummy: New file.
82826
82827 2004-07-16  Simon Josefsson  <jas@extundo.com>
82828
82829         * lib/dummy.c: New file.
82830
82831 2004-07-16  Bruno Haible  <bruno@clisp.org>
82832
82833         * lib/backupfile.h: Add extern "C" for C++.
82834         * lib/closeout.h: Likewise.
82835         * lib/copy-file.h: Likewise.
82836         * lib/findprog.h: Likewise.
82837         * lib/full-write.h: Likewise.
82838         * lib/pathname.h: Likewise.
82839         * lib/progname.h: Likewise.
82840         * lib/stpcpy.h: Likewise.
82841         * lib/stpncpy.h: Likewise.
82842         * lib/strcase.h: Likewise.
82843         * lib/strstr.h: Likewise.
82844         * lib/xalloc.h: Likewise.
82845
82846         * lib/mbswidth.h: Add extern "C" for C++.
82847         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
82848
82849 2004-07-13  Robert Millan  <robertmh@gnu.org>
82850
82851         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
82852
82853 2004-07-09  Simon Josefsson  <jas@extundo.com>
82854
82855         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
82856         failed without this.)
82857
82858 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
82859
82860         * modules/chown (Files): Add lib/fchown-stub.c, since
82861         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
82862
82863 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
82864
82865         * lib/fchown-stub.c: New file.
82866
82867 2004-06-24  Jim Meyering  <jim@meyering.net>
82868
82869         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
82870
82871 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82872
82873         * modules/argz: Omit "#include".
82874
82875         * MODULES.html.sh (func_all_modules): Add calloc, to match
82876         2004-06-01 addition of calloc module.
82877
82878 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82879
82880         * m4/argz.m4: New file, which is autoupdated from libtool.
82881
82882 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82883
82884         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
82885         libtool.
82886
82887 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82888
82889         * config/srclist-update: Don't insist on "USA." before the
82890         close-comment, as libtool omits the period and puts the */ on a
82891         separate line.
82892         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
82893         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
82894
82895 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
82896
82897         * modules/argz: New file.
82898         * MODULES.html.sh (func_all_modules): Add argz.
82899
82900 2004-06-12  Jim Meyering  <jim@meyering.net>
82901         and  Paul Eggert  <eggert@cs.ucla.edu>
82902
82903         * modules/hash (Files): Add lib/xalloc.h.
82904         * modules/pipe (Depends-on): Add wait-process.
82905         * modules/stat (Depends-on): Add xalloc.
82906         * modules/userspec (Files): Add lib/userspec.h.
82907         * modules/xstrto
82908
82909         Upgrade from gettext-0.13.
82910         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
82911         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
82912         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
82913
82914 2004-06-10  Jim Meyering  <jim@meyering.net>
82915
82916         * lib/calloc.c: New file.
82917
82918 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
82919
82920         * lib/getdate.y (yylex): Allow space between sign and number.
82921         Problem reported by Dan Jacobson.
82922
82923 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
82924
82925         Merge from coreutils CVS.
82926
82927         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
82928         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
82929         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
82930         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
82931         xstrtol.m4: Fix copyright date and/or serial number.
82932
82933         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
82934         See if we need an fchown replacement.
82935         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
82936         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
82937         and use the replacement function if we detect either defect.
82938
82939         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
82940         gl_UTIMECMP.
82941
82942 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
82943         and  Jim Meyering  <jim@meyering.net>
82944
82945         Merge from coreutils CVS.
82946
82947         * lib/stat-macros.h: New file, with contents from file-type.h
82948         and coreutils' system.h.
82949         * lib/file-type.c: Include "stat-macros.h".
82950         * lib/file-type.h (file_type): Move all macro definitions to new file,
82951         stat-macros.h.
82952
82953         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
82954         Wrap old code with this conditional.
82955         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
82956         function that does not dereference symlinks.
82957         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
82958
82959         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
82960         dependency problems.
82961         (xreadlink): Accept new arg SIZE, for efficiency.
82962         All decls and uses changed.
82963         * lib/xreadlink.h: Include <stddef.h>, for size_t.
82964
82965         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
82966         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
82967
82968         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
82969         sysexits.h.
82970
82971 2004-06-01  Jim Meyering  <jim@meyering.net>
82972
82973         * m4/calloc.m4: New file.
82974
82975 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
82976
82977         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
82978         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
82979         Also, fix a typo in a diagnostic.
82980
82981 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
82982
82983         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
82984         or AC_FUNC_REALLOC.
82985
82986 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
82987
82988         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
82989         macros to be defined.
82990         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
82991         the allocator returns NULL because the requested size is zero.
82992
82993 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82994
82995         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
82996         var.  Add comment explaining why libc still defines it.  This
82997         merges the following patch from glibc:
82998         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
82999
83000 2004-05-20  Andreas Schwab  <schwab@suse.de>
83001
83002         * m4/free.m4: Replace free if it not known to work, not the other
83003         way round.
83004
83005 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
83006
83007         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
83008         present in glibc since revision 1.1 of this file.
83009         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
83010         obstack_alignment_mask, obstack_alloc, obstack_base,
83011         obstack_blank, obstack_blank_fast, obstack_chunk_size,
83012         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
83013         obstack_grow0, obstack_init, obstack_int_grow,
83014         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
83015         obstack_next_free, obstack_object_size, obstack_ptr_grow,
83016         obstack_ptr_grow_fast, obstack_room): Remove declarations of
83017         nonexistent functions.
83018
83019 2004-05-18  Karl Berry  <karl@gnu.org>
83020
83021         * config/srclist.txt: break link for vasnprintf.c.
83022
83023 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
83024
83025         Port obstack to the AS/400, where pointers are 16 bytes wide and
83026         you cannot cast an integer to a valid pointer.  This patch is
83027         currently waiting to be integrated into glibc; see
83028         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
83029
83030         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
83031         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
83032         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
83033         (struct obstack): temp member is now a union of a pointer and
83034         an integer, instead of an integer.  All integer uses changed.
83035         This does not affect the physical layout of struct obstack,
83036         except on hosts (like the AS/400) where the size or alignment of
83037         void * is greater than that of ptrdiff_t.
83038         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
83039         __STDC__)]: Store temporary in pointer member of union, not
83040         integer member.
83041         * lib/obstack.c: Include <stddef.h>, for offsetof.
83042         (struct fooalign): Remove; it doesn't need a name.
83043         (union fooround): Change double to long double, and add void *.
83044         (DEFAULT_ALIGNMENT): Use offsetof to compute.
83045         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
83046         not a macro.  Hence the values are always int; so remove all
83047         casts-to-int in uses.
83048
83049 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
83050
83051         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
83052         we can get this patch merged into glibc.
83053
83054 2004-05-17  Derek R. Price  <derek@ximbiot.com>
83055             Paul Eggert  <eggert@cs.ucla.edu>
83056
83057         * m4/argp: Depend on alloca.
83058
83059 2004-05-17  Derek R. Price  <derek@ximbiot.com>
83060             Paul Eggert  <eggert@cs.ucla.edu>
83061
83062         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
83063         freecoding.
83064
83065 2004-05-17  Bruno Haible  <bruno@clisp.org>
83066
83067         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
83068         precision that consists of a '.' followed by an empty digit string.
83069         Patch by Tor Lillqvist <tml@iki.fi>.
83070
83071 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
83072
83073         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
83074         for backward compatibility with older code.  We need our own
83075         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
83076         it under some other name, and our alloca.h will define it.
83077
83078 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
83079             Derek Price  <derek@ximbiot.com>
83080
83081         * lib/alloca.c: Include <alloca.h>, to get our interface.
83082         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
83083         include <alloca.h> first.  Use C89 prototype for alloca; this
83084         requires including <stddef.h> for size_t.  Use extern "C" if C++.
83085         Use #elif for simplicity, since we can assume C89 now.
83086         Don't try to source the system alloca.h since it will not be found
83087         and to prevent recursively including its replacement.
83088         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
83089         * lib/regex.c: Likewise.
83090
83091 2004-05-16  Derek Price  <derek@ximbiot.com>
83092             Paul Eggert  <eggert@cs.ucla.edu>
83093
83094         getline cleanup.  This changes the getndelim2 API: both order of
83095         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
83096         no delimiter).
83097
83098         * lib/getline.c: Don't include stddef.h or stdio.h, since our
83099         interface does that.
83100         (getline): Always use getdelim, so that we don't have two
83101         copies of this code.
83102         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
83103         if available.
83104         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
83105         (GETNDELIM2_MAXIMUM): New macro.
83106         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
83107         instead of the old practice of delim2==0.  All callers changed.
83108         Return -1 on overflow, instead of returning junk.
83109         Do not set *linesize unless allocation succeeds.
83110         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
83111         that we include sys/types.h.
83112         * lib/getnline.h: Likewise.
83113         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
83114         (getndelim2): Reorder arguments.
83115         * lib/getnline.c (getnline, getndelim):
83116         Don't discard the NMAX argument.
83117         (getnline): Invoke getndelim, to avoid code duplication.
83118         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
83119         of (size_t) -1 by callers of the getnline family.
83120
83121 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83122
83123         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
83124         Check for gettimeofday.
83125         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
83126         Check for settimeofday, stime.
83127
83128 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83129
83130         * lib/nanosleep.c (suspended): Change its type from int to
83131         sig_atomic_t volatile.
83132         (first_call): Make it private to rpl_nanosleep, and have it
83133         be zero initially as that's a bit faster.
83134         (my_usleep): Round up fractional times instead of truncating them,
83135         as this is the usual meaning for 'sleep'.
83136
83137         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
83138         doesn't work.
83139         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
83140         (ENOSYS): Define if not defined.
83141         (settime): Fall back on stime if it exists and settimeofday fails.
83142         But don't bother with fallbacks if a method fails with errno == EPERM.
83143
83144 2004-05-11  Jim Meyering  <jim@meyering.net>
83145
83146         Prior to this change, the save_cwd caller required read access to the
83147         current directory on most systems (ones with the fchdir function).
83148
83149         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
83150         fails, try write-only, and finally, resort to using xgetcwd.
83151
83152 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
83153
83154         * lib/obstack.c, obstack.h: Import changes from libc.
83155
83156 2004-04-28  Bruno Haible  <bruno@clisp.org>
83157
83158         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
83159         also implicitly appends .exe to executables.
83160         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
83161         accepts Windows pathnames.
83162         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
83163         Treat Cygwin like Windows, since it now accepts Windows pathnames.
83164         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
83165         Treat Cygwin like Windows, since it now accepts Windows pathnames.
83166         Reported by Derek Robert Price <derek@ximbiot.com>.
83167
83168 2004-04-21  Karl Berry  <karl@gnu.org>
83169
83170         * config/srclist.txt (localcharset.c): break sync.
83171
83172 2004-04-20  Paul Eggert  <eggert@twinsun.com>
83173
83174         * m4/host-os.m4: Add a copyright notice.
83175
83176 2004-04-20  Jim Meyering  <jim@meyering.net>
83177
83178         Change UTILS_ to gl_ in AC_DEFINE'd names.
83179         Change utils_- and jm_-prefixed variables, too.
83180         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
83181         UTILS_FUNC_MKDIR_TRAILING_SLASH.
83182         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
83183
83184         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
83185         Don't emit trailing blanks.
83186         Also rename jm_-prefixed variables to have gl_ prefix.
83187
83188         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
83189         Also rename jm_-prefixed variables to have gl_ prefix.
83190
83191         * m4/jm-macros.m4: Reflect the renamings.
83192         * m4/prereq.m4: Likewise.
83193
83194 2004-04-20  Jim Meyering  <jim@meyering.net>
83195
83196         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
83197         memory.
83198
83199 2004-04-20  Jim Meyering  <jim@meyering.net>
83200             Bruno Haible  <bruno@clisp.org>
83201
83202         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
83203         memory when realloc fails.
83204
83205 2004-04-19  Jim Meyering  <jim@meyering.net>
83206
83207         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
83208         now that readutmp.c may call `free (0)'.
83209
83210 2004-04-19  Bruno Haible  <bruno@clisp.org>
83211
83212         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
83213         * m4/inttypes_h.m4: Likewise.
83214         * m4/stdint_h.m4: Likewise.
83215         * m4/intmax_t.m4: Likewise.
83216         * m4/uintmax_t.m4: Likewise.
83217
83218 2004-04-18  Jim Meyering  <jim@meyering.net>
83219
83220         * m4/prereq.m4: Don't forbid jm_ prefix.
83221
83222         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
83223         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
83224         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
83225         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
83226         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
83227         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
83228         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
83229         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
83230         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
83231         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
83232         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
83233         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
83234         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
83235         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
83236         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
83237         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
83238         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
83239         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
83240         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
83241
83242 2004-04-18  Jim Meyering  <jim@meyering.net>
83243
83244         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
83245         failure, don't leak memory and do call END_UTMP_ENT.
83246
83247 2004-04-16  Jim Meyering  <jim@meyering.net>
83248
83249         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
83250         coreutils' stat program.
83251         (gl_PREREQ): Don't require jm_PREREQ_STAT.
83252
83253 2004-04-11  Paul Eggert  <eggert@twinsun.com>
83254
83255         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
83256         C89.
83257         (CHAR_BIT): Remove, since we assume C89.
83258         Include <stdint.h> if available, as per current Autoconf CVS advice.
83259
83260 2004-03-31  Jim Meyering  <jim@meyering.net>
83261
83262         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
83263         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
83264         * m4/xalloc.m4: Likewise.
83265
83266 2004-03-30  Paul Eggert  <eggert@twinsun.com>
83267
83268         Merge from coreutils.
83269
83270         * m4/inttostr.m4: New file.
83271         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
83272         Require AM_STDBOOL_H and gl_TIMESPEC instead.
83273         Require gl_CLOCK_TIME.
83274         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
83275
83276 2004-03-30  Paul Eggert  <eggert@twinsun.com>
83277
83278         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
83279         not bool, to be more consistent with Unix conventions.
83280         Suggested by Bruno Haible.
83281
83282         Merge from coreutils.
83283
83284         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
83285         * lib/umaxtostr.c: New files.
83286
83287         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
83288         the usual <time.h> dance.
83289         (get_date): Change signature to support fractional time stamps.
83290         All callers changed.
83291         * lib/getdate.y: Include "getdate.h" first, as we can now
83292         assume C89 and don't need to worry about 'const'.
83293         Similarly, include "unlocked-io.h" near start, not in middle.
83294         Include <limits.h>.
83295         (textint.value): Use long int rather than int.
83296         (textint.digits): Use size_t rather than int.
83297         (BILLION, LOG10_BILLION): New constants.
83298         (parser_control): New member rel_ns.  Members day_ordinal,
83299         time_zone, month, day, hour, minutes, rel_year, rel_month,
83300         rel_day, rel_hour, rel_minutes, rel_seconds
83301         are now long int, not int.  Member seconds is now struct timespec,
83302         not int.  New member timespec_seen.  Members dates_seen, days_seen,
83303         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
83304         not int.
83305         (%union.intval): Now long int, not int.
83306         New member timespec.
83307         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
83308         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
83309         (spec): Now is a timespec or an item list.
83310         (timespec, items): New nonterminals.
83311         (time, rel, relunit, number, get_date):
83312         Add support for fractional seconds.
83313         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
83314         (gmtime, localtime, mktime): Remove decls; not needed with C89.
83315         (to_hour): First arg is now long int, not int.
83316         (to_year): Returns long int, not int.
83317         Don't treat year -70 like 70.
83318         (tm_diff): Returns long int, not int.
83319         (lookup_word): Use bool instead of int when appropriate.
83320         (yylex): Use size_t for count, not int.
83321         Detect overflow when parsing large integer constants.
83322         Add support for fractions.
83323         (get_date): Make pointers 'const' if possible.
83324         Use more-portable code to detect integer overflow.
83325         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
83326         Don't use ctime; it's not reliable if the year has >4 digits.
83327
83328         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
83329         This is for compatibility with BSD.
83330
83331         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
83332         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
83333         From coreutils' system.h.
83334
83335         * lib/userspec.c: Don't include "posixver.h".
83336         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
83337         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
83338         compatible extension.  Simplify code by removing a boolean int
83339         that was always nonzero if a string was nonnull.
83340
83341 2004-03-30  Jim Meyering  <jim@meyering.net>
83342
83343         Merge from coreutils.
83344
83345         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
83346         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
83347         on some systems one must include <grp.h> before it.
83348         Reported by Christian Krackowizer.
83349
83350 2004-03-30  Jim Meyering  <jim@meyering.net>
83351
83352         Merge from coreutils.
83353
83354         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
83355
83356         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
83357         an empty input stream.
83358
83359         * lib/readtokens.c: Include <stdbool.h>.
83360         (readtoken): Use `size_t' rather than int/long.
83361         All callers adjusted.
83362         Use `bool' rather than `int' where appropriate.
83363         Use memset rather than an explicit loop.
83364         Use x2nrealloc rather than xrealloc.
83365         Allow the use of `\0' as a delimiter.
83366         (readtokens): Likewise.
83367         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
83368
83369 2004-03-30  Jim Meyering  <jim@meyering.net>
83370
83371         * m4/realloc.m4: Remove file, since now it does no more than
83372         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
83373         the `configure.ac' section of module/realloc.
83374         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
83375
83376 2004-03-30  Bruno Haible  <bruno@clisp.org>
83377
83378         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
83379         nonnull.
83380
83381 2004-03-29  Paul Eggert  <eggert@twinsun.com>
83382
83383         Merge changes to getloadavg.c from coreutils and Emacs.
83384
83385         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
83386         Define to an expression, not to the empty string.
83387         Include cloexec.h and xalloc.h.
83388         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
83389         Use set_cloexec_flag rather than rolling our own.
83390         * lib/cloexec.c, lib/cloexec.h: New files.
83391
83392 2004-03-29  Paul Eggert  <eggert@twinsun.com>
83393
83394         * m4/cloexec.m4: New file.
83395
83396 2004-03-18  Paul Eggert  <eggert@twinsun.com>
83397
83398         * lib/getopt.h: Sync with libc CVS.
83399
83400 2004-03-18  Paul Eggert  <eggert@twinsun.com>
83401             Bruno Haible  <bruno@clisp.org>
83402
83403         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
83404         mbswidth.
83405
83406 2004-03-18  Paul Eggert  <eggert@twinsun.com>
83407             Bruno Haible  <bruno@clisp.org>
83408
83409         * lib/mbswidth.h: Include <wchar.h> only if
83410         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
83411         <wchar.h>.
83412         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
83413
83414 2004-03-09  Paul Eggert  <eggert@twinsun.com>
83415
83416         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
83417         Sync with libc CVS.
83418         * lib/getopt_int.h: New file, also synced from libc.
83419
83420 2004-03-09  Paul Eggert  <eggert@twinsun.com>
83421
83422         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
83423         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
83424         Bring back getopt.c, getopt.h, getopt1.c.
83425
83426 2004-03-07  Paul Eggert  <eggert@twinsun.com>
83427
83428         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
83429         All uses changed.  Check for sa_sigaction member; this fixes
83430         a bug first reported by Jason Andrade in
83431         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
83432
83433 2004-03-07  Paul Eggert  <eggert@twinsun.com>
83434
83435         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
83436         '#if' expressions.  Unlike the code it replaces, it does not
83437         depend on (defined _SC_PAGESIZE).  However, it does depend on
83438         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
83439         first reported by Jason Andrade in
83440         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
83441
83442 2004-02-25  Simon Josefsson  <jas@extundo.com>
83443
83444         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
83445
83446 2004-02-25  Simon Josefsson  <jas@extundo.com>
83447
83448         * lib/strdup.h: New file.
83449         * lib/strdup.c: Include it.
83450         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
83451         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
83452
83453 2004-02-23  Karl Berry  <karl@gnu.org>
83454
83455         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
83456         (from fencepost.gnu.org:/gd/gnuorg).
83457
83458 2004-02-23  Karl Berry  <karl@gnu.org>
83459
83460         * config/srclistvars.sh (GNUORG) [karl]: redefine.
83461         * config/srclist.txt: add maintain/standards documents.
83462
83463 2004-02-18  Bruno Haible  <bruno@clisp.org>
83464
83465         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
83466         Reported by Derek Robert Price <derek@ximbiot.com>.
83467
83468 2004-02-16  Karl Berry  <karl@gnu.org>
83469
83470         * config/mkinstalldirs, install-sh: update from automake.
83471
83472 2004-02-06  Karl Berry  <karl@gnu.org>
83473
83474         * m4/po.m4: update from gettext 0.14.1.
83475
83476 2004-02-06  Karl Berry  <karl@gnu.org>
83477
83478         * lib/config.charset: update from gettext 0.14.1.
83479
83480 2004-02-05  Paul Eggert  <eggert@twinsun.com>
83481
83482         Add comments and code, prompted by suggestions from Bruno Haible
83483         for sh-quote.
83484         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
83485         describing the enum quoting_style values.
83486         * lib/quotearg.c (quotearg_alloc): New function.
83487         (quotearg_buffer_restyled): Treat lone { and } as special.
83488         Treat = as special.  Work around bug with older shells
83489         that "see" a '\' that is really the 2nd byte of a multibyte char.
83490         Quote empty string with shell_quoting_style.
83491
83492 2004-02-03  Bruno Haible  <bruno@clisp.org>
83493
83494         * m4/pipe.m4: New file, from GNU gettext.
83495
83496 2004-02-03  Bruno Haible  <bruno@clisp.org>
83497
83498         * lib/pipe.h: New file, from GNU gettext.
83499         * lib/pipe.c: New file, from GNU gettext.
83500
83501 2004-01-27  Bruno Haible  <bruno@clisp.org>
83502
83503         * m4/execute.m4: New file, from GNU gettext.
83504
83505 2004-01-27  Bruno Haible  <bruno@clisp.org>
83506
83507         * lib/execute.h: New file, from GNU gettext.
83508         * lib/execute.c: New file, from GNU gettext.
83509         * lib/w32spawn.h: New file, from GNU gettext.
83510
83511 2004-01-24  Paul Eggert  <eggert@twinsun.com>
83512
83513         Merge from diffutils.
83514
83515         * lib/file-type.c (file_type): Add typed memory objects.
83516         * lib/file-type.h (S_TYPEISTMO): New macro.
83517
83518         * lib/c-stack.h (c_stack_action): Remove argv argument.
83519         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
83520         (die): Don't calculate message unless segv_action returns.
83521         (get_stack_location, min_address_from_argv, max_address_from_argv,
83522         volatile stack_base, volatile_stack_size): Remove.
83523         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
83524         that every segmentation violation is a stack overflow.  (Ouch!)
83525         See Debian bug 136249 (still outstanding) for more info about why
83526         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
83527
83528 2004-01-24  Paul Eggert  <eggert@twinsun.com>
83529
83530         Exit-status fix from coreutils.
83531
83532         Use exit_failure consistently in place of EXIT_FAILURE,
83533         so that program exit statuses are consistent on failure.
83534
83535         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
83536         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
83537         * lib/argmatch.h: Comment fix to match the above.
83538         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
83539         Now a macro referring to exit_failure, instead of a separate
83540         variable.  Include "exitfail.h" to get it.
83541         * lib/xstrtol.h: Include "exitfail.h".
83542         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
83543
83544         * lib/long-options.c (parse_long_options): Use prototype
83545         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
83546         for clarity.
83547
83548 2004-01-21  Jim Meyering  <jim@meyering.net>
83549
83550         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
83551         so as not to conflict with a different-sized __mktime_internal
83552         function in GNU libc.
83553         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
83554         Problem building statically-linked `ls' reported by Michael Brunnbauer.
83555
83556 2004-01-20  Karl Berry  <karl@gnu.org>
83557
83558         * config/config.guess: update from config.
83559
83560         * config/srclistvars.sh: GNUWWWLICENSES for karl.
83561
83562 2004-01-20  Bruno Haible  <bruno@clisp.org>
83563
83564         Safer stack allocation.
83565         * lib/setenv.c: Include allocsa.h.
83566         (alloca): Remove fallback definition.
83567         (freea): Remove macro.
83568         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
83569         instead of freea.
83570
83571 2004-01-20  Bruno Haible  <bruno@clisp.org>
83572
83573         * m4/eealloc.m4: New file, from GNU gettext.
83574
83575 2004-01-20  Bruno Haible  <bruno@clisp.org>
83576
83577         * m4/allocsa.m4: New file, from GNU gettext.
83578
83579 2004-01-20  Bruno Haible  <bruno@clisp.org>
83580
83581         * lib/xallocsa.h: New file, from GNU gettext.
83582         * lib/xallocsa.c: New file, from GNU gettext.
83583
83584 2004-01-20  Bruno Haible  <bruno@clisp.org>
83585
83586         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
83587
83588 2004-01-20  Bruno Haible  <bruno@clisp.org>
83589
83590         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
83591         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
83592         specially.
83593
83594 2004-01-20  Bruno Haible  <bruno@clisp.org>
83595
83596         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
83597         patch.
83598
83599 2004-01-20  Bruno Haible  <bruno@clisp.org>
83600
83601         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
83602
83603 2004-01-20  Bruno Haible  <bruno@clisp.org>
83604
83605         * lib/eealloc.h: New file.
83606
83607 2004-01-20  Bruno Haible  <bruno@clisp.org>
83608
83609         * lib/binary-io.h: Avoid warnings on Cygwin.
83610
83611 2004-01-20  Bruno Haible  <bruno@clisp.org>
83612
83613         * lib/allocsa.h: New file, from GNU gettext.
83614         * lib/allocsa.c: New file, from GNU gettext.
83615
83616 2004-01-18  Karl Berry  <karl@gnu.org>
83617
83618         * doc/gpl.texi, doc/lgpl.texi: new files.
83619
83620 2004-01-18  Karl Berry  <karl@gnu.org>
83621
83622         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
83623         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
83624
83625 2004-01-15  Paul Eggert  <eggert@twinsun.com>
83626
83627         Merge from coreutils.
83628
83629         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
83630         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
83631         (gl_DEFAULT_POSIX2_VERSION): Move
83632         the documentation from 'configure' into 'config.hin',
83633         so that 'configure --help' isn't burdened by it and
83634         we don't have to worry about its formatting there.
83635         Reword the documentation so that it's more succinct
83636         and can be run together into a single paragraph.
83637         * m4/same.m4 (gl_SAME): Check for pathconf.
83638
83639 2004-01-15  Paul Eggert  <eggert@twinsun.com>
83640
83641         Merge from coreutils.
83642
83643         * lib/posixver.c: Include posixver.h.
83644
83645         * lib/same.c: Include <stdbool.h>, <limits.h>.
83646         (_POSIX_NAME_MAX): Define if not defined.
83647         (MIN): New macro.
83648         (same_name): If file names are silently truncated, report
83649         that the file names are the same if they are the same after
83650         the silent truncation.
83651
83652         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
83653         conversion function.
83654         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
83655         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
83656         longer needed.
83657
83658 2004-01-15  Jim Meyering  <jim@meyering.net>
83659
83660         Merge from coreutils.
83661
83662         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
83663         if no library is required.
83664         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
83665         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
83666         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
83667         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
83668         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
83669         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
83670         value, $ac_cv_search_crypt, if it's "none required".
83671         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
83672         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
83673         not gl_FUNC_GETLOADAVG.
83674         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
83675         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
83676
83677 2004-01-15  Jim Meyering  <jim@meyering.net>
83678
83679         Merge from coreutils.
83680
83681         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
83682         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
83683         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
83684
83685         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
83686         optional configure-time default.
83687
83688         * lib/version-etc.c (version_etc_copyright): Update copyright date.
83689
83690         * lib/xreadlink.c (xreadlink): Correct outdated comment.
83691
83692 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
83693
83694         Merge from coreutils.
83695
83696         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
83697         value, $ac_cv_search_nanosleep, if it's "none required".
83698
83699 2004-01-14  Paul Eggert  <eggert@twinsun.com>
83700
83701         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
83702         with like-named macro in fnmatch.c.
83703         (EXT): Use an internal constant instead.
83704
83705         Merge fnmatch patches from glibc.
83706         * lib/fnmatch.c (mbsinit): Remove define.
83707         Add libc_hidden_ver (__fnmatch, fnmatch).
83708         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
83709         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
83710
83711 2004-01-14  Karl Berry  <karl@gnu.org>
83712
83713         * config/install-sh: update from automake.
83714
83715 2004-01-13  Karl Berry  <karl@gnu.org>
83716
83717         * config/install-sh: update from automake.
83718
83719 2004-01-09  Karl Berry  <karl@gnu.org>
83720
83721         * config/install-sh: update from automake.
83722
83723 2004-01-05  Karl Berry  <karl@gnu.org>
83724
83725         * config/config.{sub,guess}: update from config.
83726
83727 2003-12-31  Karl Berry  <karl@gnu.org>
83728
83729         * config/depcomp: update from automake.
83730
83731 2003-12-14  Karl Berry  <karl@gnu.org>
83732
83733         * lib/config.charset: update from gettext-runtime.
83734
83735 2003-12-03  Paul Eggert  <eggert@twinsun.com>
83736
83737         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
83738         Bug reported by Alfred M. Szmidt.
83739
83740 2003-12-03  Bruno Haible  <bruno@clisp.org>
83741
83742         * m4/gettext.m4: Upgrade from gettext-0.13.
83743         * m4/po.m4: Upgrade from gettext-0.13.
83744         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
83745         * m4/intmax.m4: New file, from gettext-0.13.
83746         * m4/printf-posix.m4: New file, from gettext-0.13.
83747
83748 2003-11-29  Karl Berry  <karl@gnu.org>
83749
83750         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
83751
83752 2003-11-25  Paul Eggert  <eggert@twinsun.com>
83753             Bruno Haible  <bruno@clisp.org>
83754
83755         * lib/printf-parse.h: Don't include sys/types.h.
83756         (ARG_NONE): New macro.
83757         (char_directive): Change type of *arg_index fields to size_t.
83758         * lib/printf-parse.c: Don't include sys/types.h.
83759         (SSIZE_MAX): Remove macro.
83760         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
83761         Remove unnecessary overflow check.
83762         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
83763         fields.
83764
83765 2003-11-25  Bruno Haible  <bruno@clisp.org>
83766
83767         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
83768
83769 2003-11-25  Bruno Haible  <bruno@clisp.org>
83770
83771         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
83772         gt_TYPE_SSIZE_T.
83773
83774 2003-11-24  Paul Eggert  <eggert@twinsun.com>
83775
83776         * modules/alloca: Remove dependency on xalloc.
83777
83778 2003-11-24  Paul Eggert  <eggert@twinsun.com>
83779
83780         * lib/alloca.c: Remove dependency on xalloc module.
83781         (xalloc_die): Remove.
83782         (memory_full) [!defined emacs]: New macro.
83783         [!defined emacs]: Don't include xalloc.h.
83784         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
83785         address arithmetic overflows.  Change datatypes a bit to avoid
83786         unnecessary casts.
83787
83788 2003-11-22  Jim Meyering  <jim@meyering.net>
83789
83790         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
83791         s/size/size_t/.
83792
83793 2003-11-21  Karl Berry  <karl@gnu.org>
83794
83795         * config/config.{sub,guess}: update from config.
83796
83797 2003-11-18  Karl Berry  <karl@gnu.org>
83798
83799         * config/config.{sub,guess}: update from config.
83800
83801         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
83802
83803 2003-11-17  Paul Eggert  <eggert@twinsun.com>
83804
83805         * README: Mention that S+T cannot overflow if S is the size of
83806         an existing object and T is sufficiently small.
83807
83808 2003-11-17  Jim Meyering  <jim@meyering.net>
83809
83810         On systems without utime and without a utimes function capable of
83811         dealing with a NULL struct utimbuf* argument, this utime replacement
83812         could -- in unusual circumstances -- leak a file descriptor.
83813         * lib/utime.c: Include <unistd.h> and <errno.h>.
83814         (utime_null): Be sure to close `fd' and to preserve errno.
83815         Reported by Geoff Collyer via Arnold Robbins.
83816
83817 2003-11-17  Bruno Haible  <bruno@clisp.org>
83818
83819         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
83820         (Depends-on): Add xsize.
83821
83822 2003-11-17  Bruno Haible  <bruno@clisp.org>
83823
83824         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
83825
83826 2003-11-17  Bruno Haible  <bruno@clisp.org>
83827
83828         * lib/vasnprintf.c (alloca): Remove fallback definition.
83829         (freea): Remove definition.
83830         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
83831         Reported by Paul Eggert.
83832
83833 2003-11-16  Paul Eggert  <eggert@twinsun.com>
83834             Bruno Haible  <bruno@clisp.org>
83835
83836         Protect against address arithmetic overflow.
83837         * lib/printf-args.h: Include stddef.h.
83838         (arguments): Change type of field 'count' to size_t.
83839         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
83840         'unsigned int' where appropriate.
83841         * lib/printf-parse.h: Include sys/types.h.
83842         (char_directive): Change type of *arg_index fields to ssize_t.
83843         (char_directives): Change type of fields 'count', max_*_length to
83844         size_t.
83845         * lib/printf-parse.c: Include sys/types.h and xsize.h.
83846         (SSIZE_MAX): Define fallback value.
83847         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
83848         instead of 'int' where appropriate. Check a_allocated, d_allocated
83849         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
83850         * lib/vasnprintf.c: Include xsize.h.
83851         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
83852         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
83853         overflow. Avoid wraparound when converting a width or precision from
83854         decimal to binary.
83855
83856 2003-11-16  Bruno Haible  <bruno@clisp.org>
83857
83858         Update from GNU gettext.
83859         * lib/printf-parse.c: Generalize to it can be compiled for wide
83860         strings.
83861         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
83862         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
83863         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
83864         SNPRINTF): New macros.
83865         Don't include <alloca.h> if the file is used inside libintl.
83866         (local_wcslen): New function, for Solaris 2.5.1.
83867         (VASNPRINTF): Use it instead of wcslen.
83868
83869 2003-11-16  Bruno Haible  <bruno@clisp.org>
83870
83871         * lib/xsize.h (xmax): New function.
83872         (xsum, xsum3, xsum4): Declare as "pure" functions.
83873
83874 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83875
83876         * modules/xalloc (Files): Undo latest change, since xalloc.h
83877         no longer needs SIZE_MAX or PTRDIFF_MAX.
83878
83879 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83880
83881         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
83882         gl_PTRDIFF_MAX.
83883
83884 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83885
83886         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
83887         "return", to pacify some unknown compiler.  Problem reported
83888         by Joerg Schilling.
83889
83890 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83891
83892         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
83893         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
83894         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
83895         heuristic is just as accurate as far as we know, and it removes a
83896         dependency on size_max.m4 and ptrdiff_max.m4.
83897
83898 2003-11-11  Bruno Haible  <bruno@clisp.org>
83899
83900         * modules/xsize (Files): Add m4/size_max.m4.
83901         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
83902
83903 2003-11-11  Bruno Haible  <bruno@clisp.org>
83904
83905         * m4/size_max.m4: New file.
83906         * m4/ptrdiff_max.m4: New file.
83907         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
83908         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
83909         (gl_XALLOC): Invoke it.
83910
83911 2003-11-11  Bruno Haible  <bruno@clisp.org>
83912
83913         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
83914         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
83915         defined.
83916
83917 2003-11-10  Paul Eggert  <eggert@twinsun.com>
83918
83919         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
83920         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
83921         rejected some allocations of exactly SIZE_MAX - 2 bytes.
83922         From Bruno Haible.
83923         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
83924         not (size_t) -1, since it's defined here.
83925
83926 2003-11-09  Karl Berry  <karl@gnu.org>
83927
83928         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
83929
83930 2003-11-06  Paul Eggert  <eggert@twinsun.com>
83931
83932         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
83933         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
83934         Reject sizes of exactly SIZE_MAX bytes.
83935         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
83936         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
83937
83938 2003-11-05  Bruno Haible  <bruno@clisp.org>
83939
83940         * lib/xsize.h: Include limits.h, to avoid a possible collision with
83941         SIZE_MAX defined in <limits.h> on Solaris.
83942
83943 2003-11-04  Jim Meyering  <jim@meyering.net>
83944
83945         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
83946         variable names, rather than @VAR@.
83947         * modules/poll: Likewise.
83948
83949 2003-11-04  Bruno Haible  <bruno@clisp.org>
83950
83951         * modules/xsize: New file.
83952         * modules/linebreak: Depend on xsize.
83953         * MODULES.html.sh (func_all_modules): Add xsize.
83954
83955 2003-11-04  Bruno Haible  <bruno@clisp.org>
83956
83957         * m4/xsize.m4: New file.
83958
83959 2003-11-04  Bruno Haible  <bruno@clisp.org>
83960
83961         * lib/xsize.h: New file.
83962         * lib/linebreak.c: Include xsize.h.
83963         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
83964         argument for overflow.
83965         Suggested by Paul Eggert.
83966
83967 2003-11-03  Karl Berry  <karl@gnu.org>
83968
83969         * config/config.{guess,sub}: update from config.
83970
83971 2003-11-03  Jim Meyering  <jim@meyering.net>
83972
83973         * modules/userspec (lib_SOURCES): Add userspec.h.
83974         (Include): Add "userspec.h".
83975         Improve description.
83976
83977 2003-11-03  Jim Meyering  <jim@meyering.net>
83978
83979         * lib/userspec.c: Include "userspec.h".
83980         * lib/userspec.h: New file.
83981
83982 2003-11-03  Bruno Haible  <bruno@clisp.org>
83983
83984         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
83985
83986 2003-11-03  Bruno Haible  <bruno@clisp.org>
83987
83988         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
83989         available, to avoid (extremely rare) race condition.
83990         Suggested by Paul Eggert.
83991
83992 2003-11-02  Karl Berry  <karl@gnu.org>
83993
83994         * config/srclist.txt (vasprintf.c): sync broken, sigh.
83995
83996 2003-10-31  Paul Eggert  <eggert@twinsun.com>
83997
83998         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
83999         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
84000         (read_filesystem_list): Set and use me_type_malloced.
84001         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
84002         whatever the type happens to be), for brevity and consistency.
84003         Check for size calculation overflow on Alphas running OSF/1.
84004
84005 2003-10-31  Jim Meyering  <jim@meyering.net>
84006
84007         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
84008
84009         * lib/linebuffer.c: Include <string.h> for declaration of memset.
84010
84011 2003-10-30  Paul Eggert  <eggert@twinsun.com>
84012             Bruno Haible  <bruno@clisp.org>
84013
84014         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
84015         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
84016
84017 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
84018
84019         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
84020         netbsd*-gnu*.  Suggested by Robert Millan.
84021
84022 2003-10-29  Paul Eggert  <eggert@twinsun.com>
84023
84024         * modules/group-member: Depend on stdbool.
84025
84026 2003-10-29  Paul Eggert  <eggert@twinsun.com>
84027
84028         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
84029
84030 2003-10-29  Paul Eggert  <eggert@twinsun.com>
84031
84032         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
84033         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
84034         after the 'gnu' in these cases.  This fixes some bugs in the
84035         previous change, and is based on suggestions by Robert Millan.
84036
84037 2003-10-29  Paul Eggert  <eggert@twinsun.com>
84038
84039         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
84040         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
84041         no longer needed.
84042         * lib/quotearg.c (quotearg_n_options): Use it.
84043         * lib/group-member.c: Include <stdbool.h>.
84044         (free_group_info): Arg is now const *; don't free arg.
84045         (get_group_info): Now returns bool and accepts struct group_info *,
84046         rather than returning a malloc'ed struct group_info *.
84047         All uses changed.  Check for overflow in internal size calculation.
84048
84049         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
84050         rather than xmalloc/xrealloc.
84051         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
84052         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
84053         conformance bug: the old code used a pointer after freeing the
84054         storage that it addressed.
84055         * lib/hash.c (hash_initialize): Simplify the code by using
84056         xalloc_oversized rather than doing it by hand.
84057         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
84058         the buffer preserved.  Use free and xmalloc instead.
84059         * lib/quotearg.c (quotearg_n_options): Likewise.
84060         Use a simpler test for size overflow.  Don't use xalloc_oversized
84061         because unsigned int might be wider than size_t (!); this suggests
84062         that we should switch from unsigned int to size_t for slot numbers.
84063
84064 2003-10-28  Paul Eggert  <eggert@twinsun.com>
84065
84066         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
84067         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
84068         NetBSD kernels.  Requested by Richard Stallman.
84069
84070 2003-10-27  Paul Eggert  <eggert@twinsun.com>
84071
84072         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
84073         to allocate the returned structure.  Do not allocate a subarray,
84074         as x2nrealloc will do that.
84075         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
84076         instead of xnrealloc.
84077         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
84078
84079 2003-10-27  Bruno Haible  <bruno@clisp.org>
84080
84081         * lib/stdbool_.h: Better support for BeOS.
84082
84083 2003-10-26  Paul Eggert  <eggert@twinsun.com>
84084
84085         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
84086         now uses inline.
84087
84088 2003-10-26  Paul Eggert  <eggert@twinsun.com>
84089
84090         * lib/xalloc.h (xalloc_oversized): New static inline function, for
84091         callers that want to do their own size-overflow checking.  Include
84092         <stdbool.h>, since xalloc_oversized returns bool.
84093         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
84094         to use xalloc_oversized.
84095
84096         Add two functions x2realloc, x2nrealloc, for programs that grow
84097         arrays dynamically by doubling their sizes.
84098         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
84099         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
84100         New functions.
84101
84102         Port to C99 semantics for 'inline' of external functions.
84103         Bug reported by Bruno Haible.
84104         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
84105         with the old contents of xnmalloc.
84106         (xnmalloc, xmalloc): Use it.
84107         (xnrealloc_inline): New static inline function,
84108         with the old contents of xnrealloc.
84109         (xnrealloc, xrealloc): Use it.
84110
84111         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
84112         that.
84113
84114 2003-10-26  Karl Berry  <karl@gnu.org>
84115
84116         * config/srclist.txt (COPYING.DOC): no longer available from
84117         /gd/gnuorg; don't know where the ultimate source is.
84118
84119 2003-10-25  Paul Eggert  <eggert@twinsun.com>
84120
84121         Fix several address-calculation bugs in the hash modules,
84122         plus some minor code cleanup.
84123
84124         * lib/hash.h: Include <stdbool.h>, for bool.
84125         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
84126         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
84127         hash_get_n_entries, hash_get_max_bucket_length,
84128         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
84129         hash_rehash): Use size_t rather than unsigned.
84130         * lib/hash.c (struct hash_table, hash_get_n_buckets,
84131         hash_get_n_buckets_used, hash_get_n_entries,
84132         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
84133         hash_get_entries, hash_do_for_each, hash_string, is_prime,
84134         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
84135         Likewise.
84136         (SIZE_MAX): Define if not defined.
84137         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
84138         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
84139         hash_print):
84140         Use const * when possible.
84141         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
84142         (check_tuning): Fix bug: if tuning parameters were very close to
84143         0 or 1, rounding errors could have caused subscript violations.
84144         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
84145         (hash_initialize): Add 'fail:' label
84146         to free table and return NULL, and use it to simplify code.
84147         Use calloc rather than clearing the storage ourself.
84148         (hash_initialize, hash_rehash): Check for arithmetic overflow in
84149         buffer size calculations.
84150         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
84151         Include <stddef.h>, for size_t.
84152         * lib/hash-pjw.c (hash_pjw): Likewise.
84153         Switch to method described by Bruno Haible.
84154         Include <limits.h>, for CHAR_BIT.
84155         (SIZE_BITS): New macro.
84156
84157 2003-10-23  Paul Eggert  <eggert@twinsun.com>
84158
84159         * m4/getline.m4 (AM_FUNC_GETLINE):
84160         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
84161         hosts.  Problem reported by Derek Robert Price in
84162         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
84163         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
84164         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
84165
84166 2003-10-21  Paul Eggert  <eggert@twinsun.com>
84167
84168         * lib/getndelim2.c (getndelim2): When size calculation overflows,
84169         ceiling the allocation at NMAX bytes rather than silently
84170         discarding input bytes before NMAX is reached.  This makes
84171         a difference only if NMAX exceeds SIZE_MAX / 2.
84172
84173         * lib/obstack.c: Merge from glibc.
84174         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
84175         Add libc_hidden_def (_obstack_newchunk).
84176         (_obstack_free) [! defined _LIBC]: Remove.
84177         [defined _LIBC]: Make a strong alias from obstack_free, rather than
84178         a clone of the function body.
84179         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
84180         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
84181
84182         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
84183         glibc.
84184         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
84185         arg to memcpy.
84186
84187         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
84188         (obstack_ptr_grow_fast, obstack_int_grow_fast):
84189         Don't use lvalue casts, as GCC plans to remove support for them
84190         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
84191         was also present in the non-GCC version, indicating that this
84192         code had always been buggy and had never been widely used.
84193         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
84194         Use the fast variant of each macro, rather than copying the
84195         definiens of the fast variant; that way, we'll be more likely to
84196         catch future bugs in the fast variants.
84197
84198 2003-10-20  Bruno Haible  <bruno@clisp.org>
84199
84200         * modules/wait-process: New file.
84201         * MODULES.html.sh (func_all_modules): Add wait-process.
84202
84203 2003-10-20  Bruno Haible  <bruno@clisp.org>
84204
84205         * m4/wait-process.m4: New file.
84206
84207 2003-10-20  Bruno Haible  <bruno@clisp.org>
84208
84209         * lib/wait-process.h: New file, from GNU gettext.
84210         * lib/wait-process.c: New file, from GNU gettext.
84211
84212 2003-10-19  Jim Meyering  <jim@meyering.net>
84213
84214         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
84215         HPUX 10.20.
84216
84217 2003-10-18  Karl Berry  <karl@gnu.org>
84218
84219         * config/config.guess: update from config.
84220
84221 2003-10-16  Paul Eggert  <eggert@twinsun.com>
84222
84223         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
84224         (getgroups): First arg is int, not size_t.
84225         Don't let 'free' mangle errno.
84226
84227 2003-10-16  Paul Eggert  <eggert@twinsun.com>
84228
84229         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
84230
84231 2003-10-16  Karl Berry  <karl@gnu.org>
84232
84233         * config/config.{guess,sub}: update from config.
84234
84235 2003-10-16  Jim Meyering  <jim@meyering.net>
84236
84237         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
84238         memcpy.
84239
84240 2003-10-15  Paul Eggert  <eggert@twinsun.com>
84241
84242         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
84243         (SIZE_MAX): Remove.
84244         (new_exclude, add_exclude_file): Initial size no longer needs to
84245         be a power of 2.
84246         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
84247         our own address arithmetic overflow checking.
84248
84249         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
84250         (fnmatch): Do not alloca more than 2000 wide characters;
84251         instead, use malloc for large buffers.
84252         Check for address arithmetic overflow, and return -1
84253         with errno set to ENOMEM in that case.
84254         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
84255         (NEW_PATTERN): Do not alloca more than 8000 bytes;
84256         instead, return -1.  Check for address arithmetic overflow.
84257
84258 2003-10-14  Paul Eggert  <eggert@twinsun.com>
84259
84260         Handle invalid suffixes and overflow independently, so that
84261         callers can treat them independently as needed.  Fix some bugs in
84262         suffix handling, e.g., "100k@" was not diagnosed as an invalid
84263         suffix for a human-readable blocksize.  The major caller-visible
84264         change is the addition of a new
84265         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
84266         that both overflow and suffix chars were found.
84267
84268         * lib/human.c (humblock): Don't check separately for invalid suffix
84269         char; that is xstrtoumax's job (now that its bug is fixed).
84270         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
84271         INTMAX_MAX]: New macros.
84272         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
84273         TYPE_MAXIMUM): New macros.
84274         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
84275         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
84276         if overflow occurs, as it's what __strtol does and it's more useful
84277         in practice.
84278         (__xstrtol): If __strtol reports some error other than ERANGE,
84279         reflect it to the caller as LONGINT_INVALID.  If it reports
84280         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
84281         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
84282         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
84283         value.
84284         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
84285         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
84286         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
84287         [defined UINTMAX_MAX]: New macros.
84288
84289 2003-10-14  Bruno Haible  <bruno@clisp.org>
84290
84291         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
84292
84293 2003-10-14  Bruno Haible  <bruno@clisp.org>
84294
84295         * m4/sig_atomic_t: New file, from GNU gettext.
84296         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
84297
84298 2003-10-14  Bruno Haible  <bruno@clisp.org>
84299
84300         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
84301         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
84302         Also use volatile where needed.
84303
84304 2003-10-12  Paul Eggert  <eggert@twinsun.com>
84305
84306         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
84307         Change maintainer from Bruno Haible to 'all'.
84308
84309 2003-10-12  Paul Eggert  <eggert@twinsun.com>
84310
84311         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
84312
84313 2003-10-12  Paul Eggert  <eggert@twinsun.com>
84314
84315         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
84316         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
84317         and define in terms of the other primitives.
84318         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
84319         (SIZE_MAX): Define if not already defined.
84320         (array_size_overflow): New function.
84321         (xalloc_die): Abort instead of exiting if 'error' returns.
84322         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
84323         (xmalloc, xrealloc): Use them.
84324         (xcalloc): Check for address arithmetic overflow.
84325         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
84326         a bit faster than strcpy.
84327
84328 2003-10-10  Simon Josefsson  <jas@extundo.com>
84329
84330         * modules/argp (Depends-on): Add restrict and strcase.
84331
84332 2003-10-10  Simon Josefsson  <jas@extundo.com>
84333
84334         * m4/argp.m4: Add AC_C_INLINE.
84335
84336 2003-10-08  Paul Eggert  <eggert@twinsun.com>
84337
84338         Merge getpass from libc, plus a few fixes.
84339
84340         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
84341         Include <stdbool.h>.
84342         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
84343         __fsetlocking to empty.
84344         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
84345         do include <bits/libc-lock.h>.
84346         Do not include <fcntl.h>; not needed.
84347         [_LIBC]: Include <wchar.h>.
84348         (NOTCANCEL_MODE): New macro.
84349         (flockfile, funlockfile) [_LIBC]: New macros.
84350         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
84351         [!_LIBC]: New macros.
84352         (call_fclose): New function.
84353         (getpass): Use it.  Save tty stream separately; this simplifies the
84354         code and makes it more reliable if stdin happens to equal stdout.
84355         Invoke __fsetlocking on tty.
84356         Handle thread cancellation if needed.
84357         Namespace cleanup (use __tcgetattr, __getline).
84358         Use bool for Booleans.
84359         [USE_IN_LIBIO]: Handle wide streams.
84360         [!_LIBC]: Unconditionally do the fseek, since we don't know what
84361         stream might go where.
84362
84363         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
84364         doesn't have to include <stdio.h> before us.
84365         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
84366         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
84367         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
84368         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
84369         if not declared, so that we can use getpass.c code from libc without
84370         rewriting it.
84371         (flockfile, ftrylockfile, funlockfile): New macros.
84372
84373 2003-10-08  Paul Eggert  <eggert@twinsun.com>
84374
84375         * modules/getpass: Depend on stdbool.
84376
84377 2003-10-08  Paul Eggert  <eggert@twinsun.com>
84378
84379         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
84380
84381 2003-10-07  Karl Berry  <karl@gnu.org>
84382
84383         * config/config.{guess,sub}: update from config.
84384
84385 2003-10-06  Jim Meyering  <jim@meyering.net>
84386             Bruno Haible  <bruno@clisp.org>
84387
84388         This lets translators provide better translations for the
84389         "Written by ..." part of --version output.
84390         * lib/version-etc.h: Include stdarg.h.
84391         (version_etc_copyright): Declare as readonly.
84392         (version_etc): Make this function variadic with a NULL-terminated list
84393         of author name strings.
84394         (version_etc_va): New declaration.
84395         * lib/version-etc.c: Include stdarg.h, stdlib.h.
84396         (version_etc_copyright): Declare as readonly.
84397         (version_etc_va): New function. Provide a different translatable string
84398         for each possible number of authors < 10. Abbreviate when there are 10
84399         authors or more.
84400         (version_etc): Make this function variadic. Call version_etc_va.
84401         Suggestion from Gary V. Vaughan.
84402
84403         * lib/long-options.h (parse_long_options): Change prototype: the
84404         authors string is moved to the end and becomes variadic.
84405         * lib/long-options.c: Include stdarg.h.
84406         (parse_long_options): Make this function variadic, too.
84407         Call version_etc_va, not version_etc.
84408
84409 2003-10-06  Bruno Haible  <bruno@clisp.org>
84410
84411         * modules/version-etc-2: Remove file.
84412         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
84413
84414 2003-10-06  Bruno Haible  <bruno@clisp.org>
84415
84416         * modules/fatal-signal: New file.
84417         * MODULES.html.sh (func_all_modules): Add fatal-signal.
84418
84419 2003-10-06  Bruno Haible  <bruno@clisp.org>
84420
84421         * m4/fatal-signal.m4: New file.
84422         * m4/signalblocking.m4: New file, from GNU gettext.
84423
84424 2003-10-06  Bruno Haible  <bruno@clisp.org>
84425
84426         * lib/version-etc-2.h: Remove file.
84427         * lib/version-etc-2.c: Remove file.
84428
84429 2003-10-06  Bruno Haible  <bruno@clisp.org>
84430
84431         * lib/fatal-signal.h: New file, from GNU gettext.
84432         * lib/fatal-signal.c: New file, from GNU gettext.
84433
84434 2003-10-05  Paul Eggert  <eggert@twinsun.com>
84435
84436         * README: Rework advice for preventing empty .o files.
84437         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
84438         not <sys/types.h>.
84439
84440 2003-10-04  Karl Berry  <karl@gnu.org>
84441
84442         * lib/argp*: update from libc.
84443
84444 2003-10-04  Karl Berry  <karl@gnu.org>
84445
84446         * config/config.{guess,sub}: update from config.
84447
84448 2003-10-02  Bruno Haible  <bruno@clisp.org>
84449
84450         * modules/lchown (Include): Add lchown.h.
84451         * modules/time_r (Include): Use "..." syntax.
84452         * modules/xgetdomainname (Include): Add xgetdomainname.h.
84453
84454 2003-10-01  Simon Josefsson  <jas@extundo.com>
84455
84456         * MODULES.html.sh (func_all_modules): Move gethostname from section
84457         'based on' to section 'lacking' POSIX:2001.
84458
84459 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
84460
84461         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
84462         to output mode on the same stream.
84463
84464 2003-09-29  Paul Eggert  <eggert@twinsun.com>
84465
84466         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
84467         Fix arg typo in previous patch.
84468
84469 2003-09-28  Jim Meyering  <jim@meyering.net>
84470
84471         * lib/error.c: Correct cpp indentation.
84472
84473 2003-09-27  Paul Eggert  <eggert@twinsun.com>
84474
84475         * modules/free: New file.
84476
84477 2003-09-27  Paul Eggert  <eggert@twinsun.com>
84478
84479         * m4/free.m4: New file.
84480
84481 2003-09-27  Paul Eggert  <eggert@twinsun.com>
84482
84483         * lib/minmax.h (MIN, MAX)
84484         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
84485         Omit the special code that used __typeof__, since we worry that
84486         it could be more trouble than it's worth.  See:
84487         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
84488         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
84489
84490         * lib/free.c: New file.
84491
84492 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
84493
84494         Trivial fixes to Makefile.am parts of module listings.
84495         * modules/strstr: Append strstr.h to lib_SOURCES.
84496         * modules/strcase: Likewise, for strcase.h.
84497
84498 2003-09-27  Karl Berry  <karl@gnu.org>
84499
84500         * config/mkinstalldirs: update from automake.
84501
84502 2003-09-26  Paul Eggert  <eggert@twinsun.com>
84503
84504         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
84505         (error_tail): Do not loop, reallocating temporary buffer, since
84506         the output cannot contain more wide characters than the input
84507         contains bytes, the size must be big enough already.  This avoids
84508         one potential size overflow calculation.  Check for size overflow
84509         when calculating temporary buffer size.  Free temporary buffer
84510         when done, if it was allocated with malloc; this plugs a memory
84511         leak.  Remove casts from void * to pointers, that are no longer
84512         needed now that we're assuming C89 or better.
84513
84514         Merge error changes from glibc.
84515
84516         * lib/error.c, error.h: Update copyright notice header to match glibc.
84517         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
84518         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
84519         Disable cancellation while printing error.
84520         * lib/error.h: Prepend __ to parameter names.
84521
84522 2003-09-26  Jim Meyering  <jim@meyering.net>
84523
84524         * lib/error.c (error_tail): Move some declarations
84525         into inner scope where the local variables are used.
84526
84527 2003-09-26  Bruno Haible  <bruno@clisp.org>
84528
84529         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
84530         stpncpy().
84531         Don't define stpncpy through config.h; it's now done through stpncpy.h.
84532
84533 2003-09-26  Bruno Haible  <bruno@clisp.org>
84534
84535         * lib/stpncpy.h (gnu_stpncpy): New declaration.
84536         (stpncpy): Define as alias for gnu_stpncpy.
84537         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
84538
84539 2003-09-25  Simon Josefsson  <jas@extundo.com>
84540
84541         * lib/xgetdomainname.h: New file.
84542         * lib/xgetdomainname.c: New file.
84543
84544 2003-09-25  Simon Josefsson  <jas@extundo.com>
84545             Bruno Haible  <bruno@clisp.org>
84546
84547         * modules/getdomainname: New file.
84548         * modules/xgetdomainname: New file.
84549         * MODULES.html.sh (func_all_modules): Add getdomainname,
84550         xgetdomainname.
84551
84552 2003-09-25  Simon Josefsson  <jas@extundo.com>
84553             Bruno Haible  <bruno@clisp.org>
84554
84555         * m4/getdomainname.m4: New file.
84556
84557 2003-09-25  Simon Josefsson  <jas@extundo.com>
84558             Bruno Haible  <bruno@clisp.org>
84559
84560         * lib/getdomainname.h: New file.
84561         * lib/getdomainname.c: New file.
84562
84563 2003-09-25  Karl Berry  <karl@gnu.org>
84564
84565         * lib/argp-fmtstream.c, argp-help.c: update from libc.
84566
84567 2003-09-25  Karl Berry  <karl@gnu.org>
84568
84569         * config/install-sh: update from automake.
84570
84571 2003-09-25  Bruno Haible  <bruno@clisp.org>
84572
84573         * modules/version-etc-2: New file, from modules/version-etc with
84574         modifications.
84575         * MODULES.html.sh (func_all_modules): Add version-etc-2.
84576
84577 2003-09-25  Bruno Haible  <bruno@clisp.org>
84578
84579         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
84580         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
84581
84582 2003-09-24  Simon Josefsson  <jas@extundo.com>
84583
84584         * modules/xgethostname: Add xgethostname.h.
84585
84586 2003-09-24  Paul Eggert  <eggert@twinsun.com>
84587
84588         * lib/linebuffer.c (freebuffer): Don't free the argument, just
84589         the buffer associated with the argument.  Bug reported by
84590         Simon Josefsson.
84591
84592 2003-09-24  Paul Eggert  <eggert@twinsun.com>
84593
84594         * README: Document assumptions that 'int' is at least 32 bits
84595         wide, that integer arithmetic is 2's complement without overflow,
84596         that there are no holes in integer values, that adding sizes of
84597         two nonoverlapping objects can't overflow, and that all-bits-zero
84598         yields scalar zero.  Fix spelling and capitalization typos.
84599
84600 2003-09-19  Karl Berry  <karl@gnu.org>
84601
84602         * lib/argp.h: update from libc.
84603
84604 2003-09-17  Paul Eggert  <eggert@twinsun.com>
84605
84606         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
84607         to avoid spurious warnings like "AC_RUN_IFELSE was called before
84608         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
84609
84610 2003-09-17  Paul Eggert  <eggert@twinsun.com>
84611
84612         * gnulib-tool: Use "test -h", not "test -L", for portability
84613         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
84614         (tags_regexp): Remove, since \| doesn't conform to POSIX.
84615         (sed_extract_prog): Issue s commands one-by-one, rather than
84616         using \| in one s command.
84617
84618 2003-09-16  Paul Eggert  <eggert@twinsun.com>
84619
84620         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
84621         input error, instead of returning NULL the next time we are called
84622         (and therefore losing track of errno).
84623
84624 2003-09-16  Bruno Haible  <bruno@clisp.org>
84625
84626         * gnulib-tool (func_create_testdir): Warn about duplicated
84627         dependencies.
84628
84629 2003-09-15  Paul Eggert  <eggert@twinsun.com>
84630
84631         * modules/argmatch, modules/fatal, modules/obstack,
84632         modules/xalloc, modules/xgethostname: Sort dependencies by
84633         importance, not alphabetically.
84634
84635 2003-09-15  Paul Eggert  <eggert@twinsun.com>
84636
84637         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
84638         fails, so that the caller gets the proper errno.
84639
84640         * lib/readutmp.c (read_utmp): Likewise.
84641         Check for fstat error.  Close stream and free storage
84642         when failing.
84643
84644 2003-09-14  Karl Berry  <karl@gnu.org>
84645
84646         * config/srclist.txt (strdup.c): disable for c89 changes.
84647
84648 2003-09-14  Jim Meyering  <jim@meyering.net>
84649
84650         * lib/getloadavg.c: Correct cpp indentation.
84651         * lib/strdup.c: Likewise.
84652         * lib/vasnprintf.c: Likewise.
84653
84654 2003-09-14  Bruno Haible  <bruno@clisp.org>
84655
84656         * modules/fwriteerror: New file.
84657         * MODULES.html.sh (func_all_modules): Add fwriteerror.
84658
84659 2003-09-14  Bruno Haible  <bruno@clisp.org>
84660
84661         * lib/fwriteerror.h: New file.
84662         * lib/fwriteerror.c: New file.
84663
84664 2003-09-12  Paul Eggert  <eggert@twinsun.com>
84665
84666         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
84667         modules/xgethostname, modules/xalloc: Depend on exit.
84668
84669 2003-09-12  Paul Eggert  <eggert@twinsun.com>
84670
84671         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
84672
84673         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
84674         and AC_MINIX, too, so that their extensions are available.
84675
84676         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
84677         This macro has been superseded by gl_BACKUPFILE.
84678
84679         More patches to assume C89 or better.
84680
84681         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
84682
84683         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
84684         unconditionally.
84685         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
84686         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
84687         Include <string.h>, <stdlib.h> unconditionally.
84688         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
84689         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
84690         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
84691         headers or for string.h.
84692         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
84693         or strtoul.
84694
84695         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
84696         headers.
84697         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
84698         * m4/userspec.m4 (gl_USERSPEC): Likewise.
84699         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
84700         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
84701         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
84702         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
84703         memcpy, memset.
84704         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
84705         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
84706         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
84707         strtol.
84708         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
84709         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
84710         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
84711         strtoul.
84712
84713 2003-09-12  Paul Eggert  <eggert@twinsun.com>
84714
84715         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
84716         * lib/obstack.c [!defined _LIBC]: Likewise.
84717         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
84718         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
84719         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
84720
84721         More changes to assume C89 or better.
84722
84723         * lib/error.c (error_tail): Assume vprintf.
84724
84725         * lib/argmatch.c (getenv): Remove decl.
84726         * lib/progreloc.c (get_full_program_name): Define via prototype.
84727         * lib/setenv.c (clearenv): Likewise.
84728         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
84729         needed.
84730         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
84731         (malloc, memcpy): Remove decls.
84732         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
84733         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
84734         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
84735         (memcpy): Remove macro.
84736         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
84737         (__P): Remove.  All uses removed.
84738         (PTR): Remove.  All uses changed to void *.
84739         (CHAR_BIT, NULL): Remove.
84740         (spaces, zeros, memset_space, memset_zero)
84741         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
84742         Remove.
84743         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
84744         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
84745         Define with prototype.
84746         Remove now-unnecessary prototype decl.
84747         (extra_args_spec): Assume ANSI C.  All uses changed.
84748         (extra_args_spec_iso): Remove.
84749         (my_strftime, emacs_strftimeu): Define via prototype.
84750         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
84751         unconditionally.
84752         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
84753         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
84754         (strtoul, strtol): Remove decls.
84755         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
84756         LONG_MAX): Remove.
84757         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
84758         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
84759         (LOCALE_PARAM_PROTO): New macro.
84760         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
84761         (INTERNAL (strtol), strtol): Define with a prototype.
84762         (PARAMS): Remove.  All uses removed.
84763         * lib/tempname.c: Include <string.h> unconditionally.
84764         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
84765         * lib/xgethostname.c (main): Define with a prototype.
84766         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
84767         Include <stdlib.h> unconditionally.
84768         (calloc, malloc, realloc, free): Remove decls.
84769         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
84770         Include <stdlib.h> unconditionally.  Sort include file names.
84771         (strtod): Remove.
84772         (xstrtod): Define with a prototype.
84773         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
84774         (strtol, strtoul): Remove decls.
84775
84776 2003-09-11  Paul Eggert  <eggert@twinsun.com>
84777
84778         More patches to assume C89 or better.
84779         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
84780         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
84781         string.h, memchr, STDC_HEADERS.
84782
84783 2003-09-11  Paul Eggert  <eggert@twinsun.com>
84784
84785         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
84786         Include <stdlib.h>, <string.h> unconditionally.
84787         Remove now-unnecessary cast to char *.
84788         * lib/strnlen.c: Include <string.h> unconditionally.
84789         * lib/yesno.c (yesno): Define with a prototype.
84790
84791 2003-09-11  Bruno Haible  <bruno@clisp.org>
84792
84793         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
84794
84795 2003-09-10  Jim Meyering  <jim@meyering.net>
84796
84797         * lib/error.c: Correct indentation of cpp directives.
84798
84799 2003-09-10  Bruno Haible  <bruno@clisp.org>
84800
84801         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
84802         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
84803         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
84804         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
84805         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
84806         <stdlib.h> and <string.h> checks.
84807         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
84808         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
84809
84810 2003-09-10  Bruno Haible  <bruno@clisp.org>
84811
84812         * lib/strcspn.c: Include <string.h> unconditionally.
84813         * lib/strpbrk.c: Include <string.h> unconditionally.
84814         * lib/strstr.c: Include <string.h> unconditionally.
84815         * lib/unicodeio.c: Include <string.h> unconditionally.
84816         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
84817         * lib/unsetenv.c: Likewise.
84818         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
84819         * lib/yesno.c: Include <stdlib.h> unconditionally.
84820         (rpmatch): Add prototype.
84821
84822 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84823
84824         More patches to assume C89 or better.
84825         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
84826         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
84827         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
84828         or for string.h.
84829         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
84830         stdlib.h.
84831         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
84832         C headers.
84833         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
84834         string.h.
84835         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
84836         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
84837         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
84838         or for string.h.
84839         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
84840         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
84841         C headers.
84842         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
84843         memcpy.
84844         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
84845         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
84846         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
84847         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
84848         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
84849         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
84850         string.h, free.
84851         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
84852         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
84853         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
84854         C headers, or for string.h.
84855         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
84856         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
84857         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
84858         headers, memory.h, stdlib.h, string.h, strings.h.
84859         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
84860         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
84861         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
84862         strchr.
84863         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
84864         headers, memory.h, string.h.
84865         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
84866         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
84867         free.
84868         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
84869         headers.
84870         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
84871         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
84872         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
84873         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
84874         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
84875
84876 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84877
84878         More K&R removal.
84879
84880         * lib/acosl.c (main): Use a prototype.
84881         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
84882         tanl.c: Likewise.
84883
84884         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
84885
84886         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
84887         (getopt, etopt_long, getopt_long_only, _getopt_internal)
84888         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
84889         with a prototype.
84890         * lib/getopt.c (const): Remove macro.
84891         Include <string.h> unconditionally.
84892         (my_index): Remove; all uses changed to strchr.
84893         (strlen): Remove decl.
84894         (exchange): Remove forward decl; no longer needed.
84895         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
84896         Define with prototype.
84897         * lib/getopt1.c (const): Remove macro.
84898         (getopt_long, getopt_long_only, main): Define with prototype.
84899
84900         * lib/getugroups.c: Include <string.h> unconditionally.
84901
84902         * lib/getusershell.c: Include <stdlib.h> unconditionally.
84903         (getusershell, setusershell, endusershell, readname, main):
84904         Define with prototypes.
84905
84906         * lib/group-member.c: Include group-member.h first.
84907         Include <stdlib.h> unconditionally.
84908
84909         * lib/hard-locale.c: Include hard-locale.h first.
84910         Include <stdlib.h>, <string.h> unconditionally.
84911
84912         * lib/hash.c (free, malloc): Remove decls.
84913         Include <stdlib.h> unconditionally.
84914
84915         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
84916         (getenv): Do not declare.
84917
84918         * lib/idcache.c: Include <string.h> unconditionally.
84919
84920         * lib/long-options.c: Include long-options.h first, to test interface.
84921         Include <stdlib.h> unconditionally.
84922
84923         * lib/makepath.c: Include makepath.h first, to test interface.
84924         Include <stdlib.h> and <string.h> unconditionally.
84925
84926         * lib/linebuffer.c: Include <stdlib.h>.
84927         (free): Remove decl.
84928
84929         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
84930         stddef.h. rpl_malloc returns void *, not char *.
84931         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
84932         prototype.
84933
84934         * lib/md5.h: Include <limits.h> unconditionally.
84935         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
84936         (__P): Remove; all uses removed.
84937         * lib/md5.c: Include "md5.h" first.
84938         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
84939         md5_buffer, md5_process_bytes, md5_process_block):
84940         Define with prototypes.
84941         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
84942         * lib/sha.c: Include "sha.h" first.
84943         Include <stdlib.h>, <string.h> unconditionally.
84944
84945         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
84946         * lib/memcmp.c (__ptr_t): Likewise.
84947         * lib/memrchr.c (__ptr_t): Likewise.
84948         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
84949         Include <string.h> unconditionally.
84950         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
84951         * lib/memchr.c: Include <stdlib.h> unconditionally.
84952         * lib/memchr.c (LONG_MAX): Remove.
84953         * lib/memrchr.c (LONG_MAX): Likewise.
84954         * lib/memchr.c (__memchr): Define via a prototype.
84955         * lib/memrchr.c (__memrchr): Likewise.
84956         * lib/memcmp.c (__P): Remove, and remove all uses.
84957         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
84958         Remove forward decls; no longer needed.
84959         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
84960         Use types required by C89 in prototype.
84961
84962         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
84963         * lib/savedir.c: Likewise.
84964         * lib/mkdir.c (free): Remove decl.
84965         * lib/rmdir.c (rmdir): Define with a prototype.
84966         * lib/savedir.c: Include savedir.h first, to test interface.
84967
84968         * lib/mktime.c (STDC_HEADERS): Remove.
84969         Include <stdlib.h>, <string.h> unconditionally.
84970
84971         * lib/modechange.c: Include <stdlib.h> unconditionally.
84972         (malloc): Remove decl.
84973
84974         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
84975         (free): Remove decl.
84976
84977         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
84978         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
84979         (This type really should be intptr_t, but that's a C99ism.)
84980         (_obstack_memcpy): Remove: all uses changed to memcpy.
84981         Include <string.h> unconditionally.
84982         (struct obstack): Assume __STDC__ for types of members
84983         chunkfun, freefun, extra_arg.
84984         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
84985         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
84986         obstack_begin, obstack_specify_allocation,
84987         obstack_specify_allocation_with_arg, obstack_chunkfun,
84988         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
84989         Remove unprototyped decls and the macros that use them.
84990         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
84991         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
84992         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
84993         (defined __STDC__ && __STDC__)]:
84994         Remove nonprototyped code.
84995         Include <stdlib.h> unconditionally.
84996         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
84997         _obstack_allocated_p, _obstack_free, obstack_free,
84998         _obstack_memory_used, print_and_abort):
84999         Define using prototypes.
85000         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
85001         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
85002         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
85003         obstack_next_free, obstack_object_size, obstack_room) [0]:
85004         Remove unused, unprototyped code.
85005
85006         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
85007
85008         * lib/physmem.c (physmem_total, physmem_available, main): Define
85009         with prototypes.
85010
85011         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
85012         (main): Define with a prototype.
85013
85014         * lib/posixver.c (getenv): Remove decl.
85015
85016         * lib/putenv.c (malloc): Returns void *, not char *.
85017         Include <string.h> unconditionally.
85018         (strchr, memcpy, NULL): Do not define.
85019
85020         * lib/readtokens.c: Include readtokens.h first, to test interface.
85021         Include <stdlib.h>, <string.h> unconditionally.
85022         (init_tokenbuffer): Define with a prototype.
85023
85024         * lib/regex.c (PARAMS): Remove.  All uses removed.
85025         All uses of _RE_ARGS removed, too.
85026         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
85027         unconditionally.
85028         (bzero): Assume memset exists.
85029         (memcmp, memcpy, NULL): Remove.
85030         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
85031         char, or assignments to local vars of type signed char.
85032         (init_syntax_once, PREFIX(extract_number_and_incr),
85033         PREFIX(print_partial_compiled_pattern),
85034         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
85035         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
85036         PREFIX(regex_grow_registers), PREFIX(regex_compile),
85037         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
85038         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
85039         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
85040         wcs_compile_range, byte_compile_range, truncate_wchar,
85041         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
85042         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
85043         count_mbs_length, wcs_re_match_2_internal,
85044         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
85045         PREFIX(alt_match_null_string_p),
85046         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
85047         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
85048         regfree, PREFIX(extract_number)): Define with prototype.  Remove
85049         now-unnecessary declaration, if any.
85050         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
85051         regcomp, regexec):
85052         Remove now-unnecessary casts among pointer types.
85053         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
85054
85055         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
85056         (free): Remove decl.
85057
85058         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
85059
85060         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
85061         (free): Remove decl.
85062
85063         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
85064         * lib/xgetcwd.c: Likewise.
85065
85066         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
85067         (free): Remove decl.
85068
85069         * lib/strchrnul.c (strchrnul): Define with a prototype.
85070         Fix bug: c_in was not converted to char before searching.
85071
85072         The following changes are not K&R related:
85073
85074         * lib/group-member.h: Include <sys/types.h>, so that this file is
85075         self-contained.
85076         * lib/makepath.h: Likewise.
85077
85078         * lib/getusershell.c (readname, default_index, line_size, readname):
85079         Use size_t, not int, for sizes.
85080         (readname): If the size overflows, report an error instead of
85081         looping forever.
85082
85083 2003-09-09  Paul Eggert  <eggert@twinsun.com>
85084
85085         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
85086         libc.
85087
85088 2003-09-09  Paul Eggert  <eggert@twinsun.com>
85089
85090         * README: New section: portability guidelines.
85091
85092 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
85093
85094         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
85095         C89 spec.
85096
85097 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
85098
85099         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
85100
85101 2003-09-08  Paul Eggert  <eggert@twinsun.com>
85102
85103         Assume C89 or better; remove K&R cruft.
85104         A few of these changes were first proposed by Derek Robert Price
85105         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
85106
85107         * lib/addext.c: Include <string.h> unconditionally.
85108         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
85109         Don't declare getenv or malloc.
85110
85111         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
85112         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
85113         (NULL): Remove.
85114         (find_stack_direction, alloca): Use prototypes.
85115
85116         * lib/atexit.c (atexit): Define using a prototype.
85117
85118         * lib/basename.c, dirname.c, stripslash.c:
85119         Include <string.h> unconditionally.
85120
85121         * lib/bcopy.c: Include <stddef.h>.
85122         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
85123
85124         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
85125
85126         * lib/error.h (error, error_at_line, error_print_progname)
85127         [! (defined (__STDC__) && __STDC__)]: Remove decls.
85128         * lib/error.c: Include error.h first, to check interface.
85129         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
85130         (VA_START): Remove; all uses changeed to va_start.
85131         (exit, strerror): Remove decls.
85132         (error_print_progname): Prototype uncondionally.
85133         Don't include <errno.h>; no longer needed.
85134         (private_strerror): Remove.
85135         (error_tail): Always define.
85136         (error, error_at_line): Assume C89 or better; always use prototypes.
85137         * lib/fatal.c: Include "fatal.h" first, to test interface.
85138         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
85139         (VA_START): Remove; all uses changed to va_start.
85140         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
85141         this case.
85142         (exit): Remove decl.
85143         (fatal): Prototype unconditionally.  Assume va_start works.
85144         Abort at end, to pacify gcc.
85145
85146         * lib/euidaccess.c (main): Define with a prototype.
85147
85148         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
85149
85150         * lib/exitfail.c: Include <stdlib.h> unconditionally.
85151
85152         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
85153         prototypes.
85154         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
85155         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
85156         (getenv): Remove decl.
85157         (fnmatch): Define using a prototype.
85158         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
85159         (FCT): Define using a prototype.
85160
85161         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
85162
85163         * lib/gethostname.c: Include <stddef.h>.
85164         (gethostname): Define with prototype.  Length is size_t, not int.
85165
85166 2003-09-08  Paul Eggert  <eggert@twinsun.com>
85167
85168         Assume C89 or better; remove K&R cruft.
85169         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
85170         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
85171         string.h, getenv, malloc.
85172         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
85173         headers.
85174         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
85175         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
85176         do not check for strerror.
85177         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
85178         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
85179         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
85180         do not check for doprnt or vprintf.
85181         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
85182         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
85183
85184 2003-09-08  Paul Eggert  <eggert@twinsun.com>
85185
85186         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
85187         getversion.c should have been removed then, but was accidentally
85188         preserved.
85189
85190         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
85191         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
85192
85193 2003-09-08  Karl Berry  <karl@gnu.org>
85194
85195         * config/config.sub, config.guess, srclistvars.sh: update from savannah
85196                 config, forget about prep.
85197
85198         * config/depcomp, missing: update from automake.
85199
85200 2003-09-07  Paul Eggert  <eggert@twinsun.com>
85201
85202         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
85203         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
85204
85205 2003-09-07  Paul Eggert  <eggert@twinsun.com>
85206
85207         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
85208         copy_tm_result.  Bug reported by Simon Josefsson in
85209         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
85210
85211 2003-09-06  Paul Eggert  <eggert@twinsun.com>
85212
85213         * m4/time_r.m4: New file.
85214         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
85215         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
85216         is. Check for timegm declaration.
85217         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
85218         Do not check for gmtime_r.
85219         Replace mktime if __mktime_internal does not exist and if mktime
85220         hasn't been replaced already.
85221
85222 2003-09-06  Paul Eggert  <eggert@twinsun.com>
85223
85224         * lib/time_r.c, lib/time_r.h: New files.
85225
85226         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
85227         __localtime_r.
85228         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
85229         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
85230
85231         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
85232         __gmtime_r.
85233         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
85234         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
85235         Include <time_r.h>.
85236
85237         * lib/timegm.c: Switch to glibc implementation, with the following
85238         changes:
85239         [defined HAVE_CONFIG_H]: Include <config.h>.
85240         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
85241         (__mktime_internal) [!defined _LIBC]: New decl.
85242         (__gmtime_r) [!defined _LIBC]: New macro and function.
85243         (timegm): Use a prototype, since gnulib assumes C89.
85244         Do not bother declaring tmp to be const, as it's not really usefu.
85245         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
85246         (timegm): Declare only if HAVE_DECL_TIMEGM.
85247
85248 2003-09-06  Paul Eggert  <eggert@twinsun.com>
85249
85250         * MODULES.html.sh (func_all_modules): Add time_r.
85251         * modules/time_r: New file.
85252         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
85253         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
85254
85255 2003-09-03  Paul Eggert  <eggert@twinsun.com>
85256
85257         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
85258         Bug reported by Lute Kamstra in
85259         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
85260
85261         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
85262         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
85263         course with correspondingly smaller numbers for tomorrow and
85264         yesterday.  From Tadayoshi Funaba.  Originally installed into
85265         sh-utils on 1999-08-07, but the patch got lost (I guess during the
85266         coreutils merge?).
85267
85268 2003-08-31  Simon Josefsson  <jas@extundo.com>
85269
85270         * modules/timegm: New file.
85271         * MODULES.html.sh (func_all_modules): Add timegm.
85272
85273 2003-08-31  Simon Josefsson  <jas@extundo.com>
85274
85275         * m4/timegm.m4: New file.
85276
85277 2003-08-31  Simon Josefsson  <jas@extundo.com>
85278
85279         * lib/timegm.h: New file.
85280         * lib/timegm.c: New file.  Based on
85281         wget-1.8.2/src/http.c:mktime_from_utc.
85282
85283 2003-08-31  Karl Berry  <karl@gnu.org>
85284
85285         * lib/argp.h: update from libc.
85286
85287 2003-08-28  Bruno Haible  <bruno@clisp.org>
85288
85289         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
85290         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
85291         followed by '#define fnmatch fnmatch_posix' gives an error.
85292
85293 2003-08-28  Bruno Haible  <bruno@clisp.org>
85294
85295         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
85296         warning on QNX, which defines O_BINARY to 000000.
85297
85298 2003-08-27  Jim Meyering  <jim@meyering.net>
85299
85300         * m4/mkstemp.m4: Require that the system mkstemp be able to create
85301         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
85302         would fail after 32.  Reported by Danny Levinson.  Details here:
85303         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
85304
85305 2003-08-24  Bruno Haible  <bruno@clisp.org>
85306
85307         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
85308         MSVC7 <stdio.h> is included later.
85309
85310 2003-08-22  Simon Josefsson  <jas@extundo.com>
85311
85312         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
85313
85314 2003-08-20  Karl Berry  <karl@gnu.org>
85315
85316         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
85317
85318 2003-08-20  Bruno Haible  <bruno@clisp.org>
85319
85320         * modules/progname: New file.
85321         * MODULES.html.sh (func_all_modules): Add progname.
85322
85323 2003-08-20  Bruno Haible  <bruno@clisp.org>
85324
85325         * lib/progname.h: New file, from GNU gettext.
85326         * lib/progname.c: New file, from GNU gettext.
85327         * lib/progreloc.c: New file, from GNU gettext.
85328
85329 2003-08-19  Jim Meyering  <jim@meyering.net>
85330
85331         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
85332         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
85333
85334 2003-08-19  Bruno Haible  <bruno@clisp.org>
85335
85336         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
85337         more.
85338
85339 2003-08-19  Bruno Haible  <bruno@clisp.org>
85340
85341         * lib/xstrdup.c: Assume <string.h> exists.
85342
85343 2003-08-18  Paul Eggert  <eggert@twinsun.com>
85344
85345         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
85346         in makefile rules.
85347
85348 2003-08-18  Jim Meyering  <jim@meyering.net>
85349
85350         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
85351         * m4/lib-ld.m4: Likewise.
85352
85353 2003-08-18  Jim Meyering  <jim@meyering.net>
85354
85355         * lib/setenv.h: Indent nested cpp directive.
85356         * lib/vasnprintf.c: Remove trailing blanks.
85357
85358 2003-08-17  Simon Josefsson  <jas@extundo.com>
85359
85360         * modules/xstrndup: New file.
85361         * MODULES.html.sh (func_all_modules): Add xstrndup.
85362
85363 2003-08-17  Simon Josefsson  <jas@extundo.com>
85364
85365         * modules/argp: Fix autoconf macro name. Add more dependencies.
85366
85367 2003-08-17  Simon Josefsson  <jas@extundo.com>
85368
85369         * m4/xstrndup.m4: New file.
85370
85371 2003-08-17  Simon Josefsson  <jas@extundo.com>
85372
85373         * m4/argp.m4: New file.
85374
85375 2003-08-17  Simon Josefsson  <jas@extundo.com>
85376             Bruno Haible  <bruno@clisp.org>
85377
85378         * lib/xstrndup.h: New file.
85379         * lib/xstrndup.c: New file.
85380
85381 2003-08-17  Bruno Haible  <bruno@clisp.org>
85382
85383         * modules/strndup (Files, Include): Add lib/strndup.h.
85384
85385 2003-08-17  Bruno Haible  <bruno@clisp.org>
85386
85387         * modules/euidaccess (Files): Add lib/euidaccess.h.
85388
85389 2003-08-17  Bruno Haible  <bruno@clisp.org>
85390
85391         * lib/strndup.h: New file.
85392
85393 2003-08-17  Bruno Haible  <bruno@clisp.org>
85394
85395         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
85396         like AC_GNU_SOURCE.
85397         * modules/extensions (configure.ac): Comment out the invocation of
85398         gl_USE_SYSTEM_EXTENSIONS.
85399
85400 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85401
85402         Merges from coreutils, etc.
85403         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
85404         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
85405         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
85406         fixing a typo.
85407         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
85408         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
85409
85410 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85411
85412         Document merge from coreutils.
85413         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
85414         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
85415         * modules/utime: Add m4/utimes-null.m4.
85416
85417 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85418
85419         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
85420         space, undoing this 2003-08-12 change:
85421         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
85422
85423 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85424
85425         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
85426         strtoul.c from libc, undoing this 2003-08-12 change:
85427         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
85428
85429 2003-08-16  Jim Meyering  <jim@meyering.net>
85430
85431         Merges from coreutils.
85432         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
85433         prefix.  Adjust cache variables similarly.  Create 500 rather than
85434         just 300 files, to exercise bug on Darwin6.5, too.
85435         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
85436         $missing_dir.
85437         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
85438         AM_SYS_POSIX_TERMIOS.
85439         Reported by mkc@mathdogs.com.
85440         Also change use of $am_cv_sys_posix_termios
85441         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
85442         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
85443         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
85444         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
85445         in /proc/mounts until it finds one with matching device number.  This
85446         is unnecessary when the FILE argument *is* a mount point.  No stat call
85447         is necessary in that case.  So, disable the statvfs-testing code on
85448         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
85449         as RedHat bug# 84846.
85450         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
85451         to 1MB, so as not to render systems with no stack size limit (e.g.,
85452         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
85453         Include <unistd.h>.  On some systems,
85454         it is required for the definition of _SC_PAGESIZE.
85455
85456 2003-08-16  Jim Meyering  <jim@meyering.net>
85457
85458         Merge from coreutils.
85459         * lib/xstrtoimax.c: #else #if -> #elif.
85460         * lib/xstrtoumax.c: Likewise.
85461
85462 2003-08-16  Jim Meyering  <jim@meyering.net>
85463
85464         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
85465         * m4/utimes.m4: Removed.
85466         * m4/utimes-null.m4: Renamed from utimes.m4.
85467
85468         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
85469         to 1MB, so as not to render systems with no stack size limit (e.g.,
85470         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
85471         Include <unistd.h>.  On some systems,
85472         it is required for the definition of _SC_PAGESIZE.
85473
85474 2003-08-16  Jim Meyering  <jim@meyering.net>
85475         and Paul Eggert  <eggert@cs.ucla.edu>
85476
85477         Merges from coreutils, etc.
85478
85479         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
85480         using the latest version from cvs.  This avoids problems with #line
85481         directives using a vendor (Sun) compiler.
85482         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
85483         Don't set GETGROUPS_LIB here; now it's
85484         done via getgroups.m4's wrapper function.
85485         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
85486         rather than just in sh-util/configure.in, so that the
85487         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
85488         same.
85489         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
85490         AC_FUNC_GETLOADAVG where to find getloadavg.c.
85491         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
85492         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
85493         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
85494         Remove code that is now done by the newly-required macros.
85495         Append $(EXEEXT) to DF_PROG.
85496         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
85497         Do not invoke or require the following here,
85498         since prereq.m4 or some gnulib .m4 now does this for us:
85499         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
85500         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
85501         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
85502         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
85503         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
85504         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
85505         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
85506         AC_FUNC_OBSTACK.
85507         Do not replace the following functions, as this is now the job
85508         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
85509         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
85510         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
85511         atexit getpass, strdup, getpagesize.
85512         Replace 'raise'.
85513         Do not check for the following functions, as this is now the job
85514         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
85515         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
85516         setregid.
85517         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
85518         Check for sys/sysctl.h.
85519         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
85520         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
85521         of checking for ssize_t ourselves.
85522
85523         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
85524         Require every macro that gnulib/modules/* suggests for us.
85525         (jm_PREREQ_ADDEXT): New macro.
85526         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
85527         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
85528
85529         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
85530         (gl_PHYSMEM): Use it.
85531         Also check for `table' function.
85532         Check for new headers and functions.
85533         Add check for sys/sysmp.h.
85534         With suggestions from Kaveh Ghazi.
85535         Ignore headers that are present but cannot be compiled.  This
85536         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
85537         C 5.4.
85538
85539 2003-08-15  Paul Eggert  <eggert@twinsun.com>
85540
85541         Document merge from coreutils.
85542         * modules/userspec: Depend on posixver.
85543         * modules/strftime: Depend on tzset.
85544
85545 2003-08-15  Paul Eggert  <eggert@twinsun.com>
85546
85547         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
85548         rather than tab, after '#' in shell-script copyright notices.
85549         Suggested by Bruno Haible.
85550
85551 2003-08-15  Paul Eggert  <eggert@twinsun.com>
85552
85553         * config/srclist-update: Use three spaces, rather than tab, after '#'
85554         in shell-script copyright notices.  Suggested by Bruno Haible.
85555         Remove unnecessary parenthesization in regular expression.
85556
85557 2003-08-15  Jim Meyering  <jim@meyering.net>
85558
85559         Merge from coreutils.
85560         * lib/xgethostname.c: Include <stdlib.h>.
85561         (xghostname): Don't exit for anything other than memory-related
85562         failure; just return NULL.
85563         * lib/userspec.c: Include "posixver.h".
85564         (parse_user_spec): Accept `.' as a separator only
85565         in pre-POSIX-200112 mode.
85566         * lib/strtoimax.c: Use #elif rather than #else #if.
85567         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
85568         Remove function, now that we can rely on a working tzset function.
85569         [!_LIBC]: Ensure that the required autoconf test has been run.
85570         [!defined _NL_CURRENT && HAVE_STRFTIME]:
85571         Use underlying_strftime for %r.
85572         * lib/sha.c: Merge in some clean-up and optimization changes from
85573         glibc.
85574         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
85575         Ensure that it is a multiple of 64.
85576         Rearrange loop exit tests so as to avoid performing an
85577         additional fread after encountering an error or EOF.
85578         * lib/realloc.c: Update copyright date.
85579
85580 2003-08-15  Jim Meyering  <jim@meyering.net>
85581         and Paul Eggert  <eggert@twinsun.com>
85582
85583         Merge from coreutils.
85584         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
85585         member but strut utmpx does not.  Needed for AIX 4.3.3.
85586         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
85587
85588 2003-08-15  Jim Meyering  <jim@meyering.net>
85589         and Paul Eggert  <eggert@cs.ucla.edu>
85590
85591         Merges from coreutils, etc.
85592         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
85593         Require gl_FUNC_TZSET_CLOBBER.
85594         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
85595         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
85596         members.
85597
85598 2003-08-14  Paul Eggert  <eggert@twinsun.com>
85599
85600         Help the merge from coreutils.
85601         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
85602         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
85603         * m4/tzset.m4: Use it too.
85604
85605 2003-08-14  Paul Eggert  <eggert@twinsun.com>
85606
85607         * modules/tzset: New file.
85608
85609 2003-08-14  Jim Meyering  <jim@meyering.net>
85610
85611         Merges from coreutils.
85612         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
85613         variable names, rather than @FNMATCH_H@.
85614         * modules/alloca: Likewise for $(ALLOCA_H).
85615
85616         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
85617         the three copies of the literal target, `fnmatch.h'.
85618         * modules/alloca (alloca.h): Likewise.
85619
85620 2003-08-14  Jim Meyering  <jim@meyering.net>
85621
85622         Merge from coreutils.
85623         * m4/tzset.m4: New file.
85624         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
85625         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
85626         otherwise, AIX 5.1 systems would end up using the latter.
85627         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
85628         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
85629         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
85630         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
85631
85632 2003-08-14  Jim Meyering  <jim@meyering.net>
85633
85634         Merge from coreutils.
85635         * lib/obstack.h: Whitespace changes.
85636         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
85637         and xcalloc return values.
85638         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
85639         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
85640         hang on OSF/1 5.1 for DIR on both local and remote file systems.
85641         Reported by (and fix confirmed by) Nelson H. F. Beebe.
85642         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
85643         error from mntctl.
85644         Use mntctl's return value to drive the entry-processing loop, since
85645         we can't rely on the value of the vmt_length member in the last
85646         entry.  On some systems doing so could result in exhausting
85647         virtual memory.  Based in part on a patch from Mike Jetzer.
85648
85649 2003-08-14  Jim Meyering  <jim@meyering.net>
85650         and Paul Eggert  <eggert@twinsun.com>
85651
85652         Merges from coreutils, plus other fixes.
85653         * lib/physmem.c: Merge in portability changes from gcc/libiberty
85654         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
85655         for credits and details.  Thanks to Kaveh Ghazi for helping
85656         to keep these files in sync.
85657         (ARRAY_SIZE): Define it.
85658         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
85659         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
85660         (memcasecmp): Don't assume size_t fits in unsigned int.
85661         Remove casts and duplicate code.
85662         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
85663         (memcpy): Remove definition.
85664         Merge in some clean-up and optimization changes from glibc.
85665         [BLOCKSIZE]: Move definition to top of file.
85666         Ensure that it is a multiple of 64.
85667         Rearrange loop exit tests so as to avoid performing an
85668         additional fread after encountering an error or EOF.
85669         * lib/md5.h (md5_uintptr): Define.
85670         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
85671         return to the initial working directory.  Preserve errno
85672         for caller.
85673         * lib/idcache.c: Include "xalloc.h".
85674         (xmalloc, xrealloc): Remove decls.
85675         (getuser): Remove casts no longer required in C89.
85676         * lib/human.c: Include stdio.h, for sprintf.
85677         * lib/group-member.c: Include "xalloc.h".
85678         (xmalloc, xrealloc): Remove decls.
85679         (get_group_info): Remove casts no longer required in C89.
85680         * lib/getusershell.c (readname): Remove casts no longer required in
85681         C89.
85682         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
85683         * lib/getline.c: Whitespace fix, from coreutils.
85684
85685 2003-08-13  Paul Eggert  <eggert@twinsun.com>
85686
85687         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
85688         Check for isascii.
85689
85690         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
85691         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
85692         Undo previous (whitespace-only) change.
85693
85694 2003-08-13  Paul Eggert  <eggert@twinsun.com>
85695
85696         * lib/exclude.c: Include <ctype.h>
85697         (IN_CTYPE_DOMAIN): New macro.
85698         (is_space): New fn.
85699         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
85700         and empty lines.
85701
85702         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
85703         Undo previous (whitespace-only) change.
85704
85705 2003-08-13  Paul Eggert  <eggert@twinsun.com>
85706
85707         * config/srclist-update: Change update back to the old behavior,
85708         leaving whitespace alone.  Use one 'sed' command rather than a
85709         pipeline.
85710         (fixlicense): Now a variable, not a function.
85711         (remove_trailing_blanks): Remove.
85712         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
85713         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
85714         Undo previous (whitespace-only) change.
85715
85716 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85717
85718         Merge from coreutils.
85719         * modules/euidaccess: Add lib_SOURCES, include for new
85720         file euidaccess.h
85721
85722 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85723
85724         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
85725         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
85726         Normalize leading white space and remove trailing white space.
85727
85728         Merge from coreutils
85729         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
85730
85731         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
85732         0.12.1.  These files are now being upgraded automatically by
85733         ../config/srclist-update.
85734
85735 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85736
85737         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
85738         Normalize leading white space and remove trailing white space.
85739         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
85740         notice, as per ../config/srclist-update.
85741
85742         Merge from coreutils.
85743         * lib/euidaccess.h: New file.
85744         * lib/euidaccess.c: Include it.
85745         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
85746         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
85747         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
85748
85749 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85750
85751         * config/srclist-update: Add copyright notice.
85752         (remove_id_lines, remove_trailing_blanks): New constants.
85753         (fixfile): Use them to normalize spacing a bit in copied files.
85754         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
85755         Normalize leading white space and remove trailing white space.
85756
85757         * config/texinfo.tex: Sync with texinfo.
85758
85759         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
85760         strtoul.c from libc, to merge coreutils whitespace changes.
85761
85762         * config/srclist.txt: Get the following m4 files from gettext:
85763         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
85764         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
85765         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
85766         wint_t.m4.
85767
85768 2003-08-12  Karl Berry  <karl@gnu.org>
85769
85770         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
85771         been made.
85772
85773 2003-08-11  Paul Eggert  <eggert@twinsun.com>
85774
85775         * modules/gnu-source, m4/gnu-source.m4:
85776         Remove; we're assuming Autoconf 2.54 or later now.
85777         Suggested by Bruno Haible.
85778         * MODULES.html.sh (func_all_modules): Remove gnu-source.
85779
85780 2003-08-11  Bruno Haible  <bruno@clisp.org>
85781
85782         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
85783
85784 2003-08-11  Bruno Haible  <bruno@clisp.org>
85785
85786         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
85787         (vasnprintf): Use it instead of wcslen.
85788
85789 2003-08-11  Bruno Haible  <bruno@clisp.org>
85790
85791         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
85792         value to ensure that _Bool promotes to int. Use #define for _Bool when
85793         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
85794
85795 2003-08-10  Karl Berry  <karl@gnu.org>
85796
85797         * lib/regex.h: update from libc (whitespace fix).
85798
85799 2003-08-09  Paul Eggert  <eggert@twinsun.com>
85800
85801         Merge some files from coreutils.  These changes were
85802         originally made by Jim Meyering.
85803         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
85804         many older Unixes require this.
85805         * lib/alloca.c (alloca): Remove cast to argument of free;
85806         no longer needed in C89.
85807         * lib/alloca_.h, regex.h: Fix white space to match
85808         what GNU indent does.
85809
85810 2003-08-09  Paul Eggert  <eggert@twinsun.com>
85811
85812         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
85813         apparently Emacs's Unicode mode got confused before my 2003-08-05
85814         checkin.
85815
85816 2003-08-08  Paul Eggert  <eggert@twinsun.com>
85817
85818         * m4/extensions.m4: New file.
85819         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
85820         Require gl_USE_SYSTEM_EXTENSIONS.
85821         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
85822         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
85823
85824 2003-08-08  Paul Eggert  <eggert@twinsun.com>
85825
85826         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
85827         * modules/extensions, modules/gnu-source: New files.
85828         * modules/timespec, modules/unlocked-io: Depend on extensions.
85829
85830 2003-08-07  Paul Eggert  <eggert@twinsun.com>
85831
85832         * modules/restrict: New file.
85833         * MODULES.html.sh (func_all_modules): Add restrict.
85834         * modules/regex: Depend on restrict.
85835
85836 2003-08-07  Paul Eggert  <eggert@twinsun.com>
85837
85838         * m4/restrict.m4: New file.
85839         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
85840
85841 2003-08-07  Bruno Haible  <bruno@clisp.org>
85842
85843         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
85844         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
85845
85846 2003-08-07  Bruno Haible  <bruno@clisp.org>
85847
85848         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
85849         makes the module 'getndelim2' compatible with the module 'getline'.
85850
85851 2003-08-05  Paul Eggert  <eggert@twinsun.com>
85852
85853         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
85854         byte with "\201" to avoid glitches when editing that source file
85855         with multi-gnome-terminal.
85856
85857 2003-08-05  Paul Eggert  <eggert@twinsun.com>
85858
85859         * lib/bumpalloc.h: Remove.
85860
85861 2003-08-05  Paul Eggert  <eggert@twinsun.com>
85862
85863         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
85864         * modules/bumpalloc: Remove.
85865
85866 2003-08-04  Paul Eggert  <eggert@twinsun.com>
85867
85868         * lib/getloadavg.c: Change copyright notice and spacing to conform to
85869         GNU coding style.
85870
85871         Merge from coreutils.
85872         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
85873         1. From glibc.
85874         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
85875         from Karl Berry, implemented by Jim Meyering.
85876         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
85877         from Dmitry V. Levin.
85878         Remove anachronistic cast of xrealloc.
85879         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
85880         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
85881         type. Otherwise, it wouldn't compile with at least /bin/cc on
85882         ymp-cray-unicos9.0.2.X.
85883         Combine two mostly-identical uses of alloca into one.
85884         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
85885
85886 2003-08-04  Dave Love  <d.love@dl.ac.uk>
85887
85888         [From Emacs.]
85889
85890         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
85891         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
85892         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
85893         obsolete NLIST_NAME_UNION.
85894         [__GNU__]: Undef BSD and FSCALE.
85895         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
85896
85897 2003-08-03  Paul Eggert  <eggert@twinsun.com>
85898
85899         * lib/stdbool_.h (_Bool): Make it signed char, instead of
85900         an enum type, so that it's guaranteed to promote to int.  See:
85901         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
85902
85903 2003-08-03  Karl Berry  <karl@gnu.org>
85904
85905         * config/depcomp: update from automake.
85906
85907 2003-07-31  Paul Eggert  <eggert@twinsun.com>
85908
85909         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
85910         (strerror): Don't assume that a printable int fits in 14 bytes.
85911
85912 2003-07-31  Bruno Haible  <bruno@clisp.org>
85913
85914         * modules/getpass-gnu: New file.
85915         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
85916
85917 2003-07-31  Bruno Haible  <bruno@clisp.org>
85918
85919         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
85920
85921 2003-07-24  Karl Berry  <karl@gnu.org>
85922
85923         * config/missing: update from automake.
85924
85925 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
85926             Bruno Haible  <bruno@clisp.org>
85927
85928         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
85929         * lib/getline.c (getline, getdelim): Likewise.
85930         Remove _GNU_SOURCE define; now it's defined in config.h through
85931         m4/getline.m4.
85932
85933 2003-07-23  Karl Berry  <karl@gnu.org>
85934
85935         * config/config.sub: update from prep.
85936
85937 2003-07-22  Paul Eggert  <eggert@twinsun.com>
85938
85939         * modules/xalloc (Depends-on): Add exitfail.
85940         * modules/xmemcoll: Likewise.
85941
85942 2003-07-22  Paul Eggert  <eggert@twinsun.com>
85943
85944         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
85945         over-parenthesization in macros.
85946
85947         Sync with coreutils.
85948
85949         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
85950         required by C99.
85951
85952         Use `exit_failure' for xalloc and xmemcoll instead of their own
85953         private exit-failure variables.
85954         * lib/xalloc.h (xalloc_exit_failure): Remove.
85955         * lib/xmalloc.c: Likewise.  Include exitfail.h.
85956         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
85957         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
85958         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
85959         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
85960
85961 2003-07-20  Jim Meyering  <jim@meyering.net>
85962
85963         * modules/closeout (Depends-on): Add exitfail.
85964         Suggestion from Bruno Haible.
85965
85966 2003-07-19  Karl Berry  <karl@gnu.org>
85967
85968         * config/config.sub: update from prep.
85969
85970 2003-07-18  Paul Eggert  <eggert@twinsun.com>
85971
85972         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
85973         Remove.
85974         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
85975         to test that it can stand by itself.  Include "exitfail.h".
85976         Clients should set exit_failure instead.
85977         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
85978
85979 2003-07-18  Bruno Haible  <bruno@clisp.org>
85980
85981         * modules/getndelim2: New file.
85982         * modules/getline: Share files with module getndelim2.
85983         * modules/getnline: Depend on getndelim2 instead of sharing files with
85984         it. Add getnline.c to lib_SOURCES.
85985         * MODULES.html.sh (func_all_modules): Add getndelim2.
85986
85987 2003-07-18  Bruno Haible  <bruno@clisp.org>
85988
85989         * m4/getndelim2.m4: New file.
85990         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
85991         invoke gl_PREREQ_GETNDELIM2.
85992         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
85993         gl_PREREQ_GETNDELIM2.
85994         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
85995         gl_GETNDELIM2.
85996
85997 2003-07-18  Bruno Haible  <bruno@clisp.org>
85998
85999         * lib/getndelim2.h: New file.
86000         * lib/getndelim2.c: Make into a module of its own. Include config.h,
86001         getndelim2.h.
86002         (getndelim2): Make non-static. Change return type to ssize_t.
86003         * lib/getline.h: Change argument names.
86004         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
86005         * lib/getnline.c: Include getndelim2.h.
86006
86007 2003-07-18  Andreas Schwab  <schwab@suse.de>
86008
86009         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
86010
86011 2003-07-17  Karl Berry  <karl@gnu.org>
86012
86013         * config/config.sub: update from prep.
86014
86015 2003-07-17  Bruno Haible  <bruno@clisp.org>
86016
86017         * modules/getnline: New file.
86018         * modules/getline: Add lib/getndelim2.c to source file list.
86019         * MODULES.html.sh (func_all_modules): Add getnline.
86020
86021 2003-07-17  Bruno Haible  <bruno@clisp.org>
86022
86023         * m4/getnline.m4: New file.
86024
86025 2003-07-17  Bruno Haible  <bruno@clisp.org>
86026
86027         * m4/Makefile.am.in: Remove file.
86028         * m4/Makefile.am: Remove file.
86029         * m4/Makefile.in: Remove file.
86030
86031 2003-07-17  Bruno Haible  <bruno@clisp.org>
86032
86033         * lib/getnline.h: New file.
86034         * lib/getnline.c: New file.
86035         * lib/getndelim2.c: New file, extracted from getline.c.
86036         (getndelim2): Renamed from getdelim2, with added nmax argument.
86037         * lib/getline.c: Include getndelim2.c.
86038         (getdelim2): Moved out to getndelim2.c.
86039         (getline, getdelim): Update.
86040
86041 2003-07-17  Bruno Haible  <bruno@clisp.org>
86042
86043         * lib/Makefile.am: Remove file.
86044         * lib/Makefile.in: Remove file.
86045
86046 2003-07-17  Bruno Haible  <bruno@clisp.org>
86047
86048         * configure.in: Remove file.
86049         * Makefile.in: Remove file.
86050
86051 2003-07-17  Bruno Haible  <bruno@clisp.org>
86052
86053         * MODULES.html.sh: Put the </BODY> right before </HTML>.
86054
86055 2003-07-16  Karl Berry  <karl@gnu.org>
86056
86057         * config/srclist-update: was running fixlicense twice, which caused
86058                 texinfo.tex to be nullified for some reason.  Simplify,
86059                 $gplsrc is no longer needed as far as I can see?
86060
86061 2003-07-16  Jim Meyering  <jim@meyering.net>
86062
86063         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
86064
86065 2003-07-15  Paul Eggert  <eggert@twinsun.com>
86066
86067         * config/srclist.txt: Get the following files from gettext-runtime/intl
86068         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
86069         ref-del.sin.  From Bruno Haible.
86070         * config/srclist-update (fixfile): Change grep pattern again, since the
86071         previous fix didn't work (there was another trailing $).  Use
86072         '[$]' to escape the $s.
86073
86074 2003-07-15  Karl Berry  <karl@gnu.org>
86075
86076         * lib/vasnprintf.c: update from gettext.
86077
86078 2003-07-15  Karl Berry  <karl@gnu.org>
86079
86080         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
86081         gets expanded when surrounded by '$'.
86082
86083 2003-07-15  Jim Meyering  <jim@meyering.net>
86084
86085         * modules/save-cwd: Don't depend on error.  From Derek Price.
86086
86087 2003-07-15  Jim Meyering  <jim@meyering.net>
86088
86089         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
86090
86091 2003-07-14  Simon Josefsson  <jas@extundo.com>
86092
86093         * modules/mempcpy: New file.
86094         * MODULES.html.sh (func_all_modules): Add mempcpy.
86095
86096 2003-07-14  Simon Josefsson  <jas@extundo.com>
86097
86098         * m4/mempcpy.m4: New file.
86099
86100 2003-07-14  Simon Josefsson  <jas@extundo.com>
86101
86102         * lib/mempcpy.h: New file.
86103         * lib/mempcpy.c: New file.
86104
86105 2003-07-14  Paul Eggert  <eggert@twinsun.com>
86106
86107         * modules/getdate, modules/posixtm: Depend on mktime.
86108
86109 2003-07-14  Paul Eggert  <eggert@twinsun.com>
86110
86111         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
86112         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
86113         unicodeio.c, unicodeio.h, unlocked-io.h:
86114         Switch from LGPL to GPL.
86115
86116 2003-07-14  Paul Eggert  <eggert@twinsun.com>
86117
86118         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
86119         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
86120         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
86121         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
86122         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
86123         updated automatically by ../config/srclist-update.  This changes
86124         their license from LPGL to GPL.
86125
86126 2003-07-14  Paul Eggert  <eggert@twinsun.com>
86127
86128         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
86129         assumed to refer to the root of the most recent stable gettext version.
86130         * config/srclistvars.sh: Add defaults for eggert.
86131         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
86132         Match "This program" as well as "The program".  This is needed
86133         for gettext.
86134
86135 2003-07-14  Jim Meyering  <jim@meyering.net>
86136
86137         Don't emit diagnostics.  Let callers do that.
86138         * lib/save-cwd.c: Don't include "error.h".
86139         (save_cwd): Don't call error.  Ensure that errno is valid
86140         when returning nonzero.
86141
86142         * lib/save-cwd.h (restore_cwd): Update prototype.
86143         * lib/save-cwd.c (restore_cwd): Remove two parameters.
86144         Simplify.  Don't call error upon failure.  Let callers do that.
86145         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
86146         when auditing is enabled.  But don't bother updating the #if.
86147
86148 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
86149
86150         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
86151         it breaks C++ compilation.
86152         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
86153
86154 2003-07-10  Simon Josefsson  <jas@extundo.com>
86155
86156         * modules/strchrnul (Makefile.am): Add strchrnul.h.
86157
86158 2003-07-10  Jim Meyering  <jim@meyering.net>
86159
86160         * m4/clock_time.m4: Remove trailing blank.
86161         * m4/intmax_t.m4: Likewise.
86162
86163 2003-07-10  Jim Meyering  <jim@meyering.net>
86164
86165         * lib/vasnprintf.c: Remove trailing blanks.
86166         Make cpp indentation consistent.
86167
86168 2003-07-09  Paul Eggert  <eggert@twinsun.com>
86169
86170         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
86171         posixver.c, strftime.c, strnlen.c, strverscmp.c:
86172         Switch from LGPL to GPL.
86173
86174 2003-07-09  Paul Eggert  <eggert@twinsun.com>
86175
86176         * config/srclist.txt: Sort sublists.  Add
86177         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
86178         that differ from gnulib for one reason or another; we'd like this list
86179         to be smaller but for now let's document what we have.
86180
86181 2003-07-08  Paul Eggert  <eggert@twinsun.com>
86182
86183         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
86184         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
86185         and sweeter "eval x=$x".
86186         * config/srclist.txt: Get lib/argp* from glibc.
86187
86188 2003-07-07  Paul Eggert  <eggert@twinsun.com>
86189
86190         * lib/mktime.c: Fix some boundary cases and remove need for floating
86191         point.
86192
86193         Issue a compile-time diagnostic if time_t is floating point, or if
86194         two's complement arithmetic is not in effect, or if arithmetic
86195         right shift does not propagate the sign.  These assumptions were
86196         all in the original code but they weren't checked.
86197
86198         (TIME_T_MIDPOINT, verify): New macros.
86199         (__isleap): Remove; it has integer overflow problems.
86200         (leapyear): New function, without those problems.
86201         (ydhms_tm_diff): Remove; splitting into two parts.
86202         (ydhms_diff): New function, containing the arithmetic part of
86203         the old ydhms_tm_diff function.  Issue a compile-time
86204         diagnostic if we are not using C99 integer division.
86205         Avoid casts when possible.
86206         (guess_time_tm): New function, containing the checking part of
86207         the old ydhms_tm_diff function.  Return the new value, rather than
86208         the difference between it and the old.  Accept a new argument T
86209         so that *T specifies the old value.  Check for overflow in the result.
86210
86211         (__mktime_internal): Use a time_t offset, not a long int offset.
86212         This undoes the 2003-06-04 change, which is no longer needed now
86213         that we have better overflow checking.
86214         (localtime_offset): Likewise.
86215
86216         (__mktime_internal): Avoid harmful overflow on hosts where time_t
86217         and long are 64-bit but int is only 32-bit.
86218         (ydhms_diff): Use long int to store year1 and yday1.
86219         Issue a compile-time diagnostic if long int is not wide enough.
86220
86221         (__mktime_internal): Use long int to store adjusted year and yday.
86222         Use plain C rather than preprocessor commands, if that doesn't
86223         affect efficiency.
86224         Check for overflow (and try to repair) after each probe
86225         rather than checking only at the very end.  This avoids some bugs
86226         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
86227         does not equal GMT offset at maximum time).
86228         Use integer to check for overflow rather than floating point; this
86229         is more portable to non-IEEE hosts, and is a tad faster.
86230         When we detect that we are oscillating between two values,
86231         don't check whether tm_isdst has the requested value, since
86232         we already know the answer.  When tm_isdst has the wrong value,
86233         use a different heuristic to find the right one, based on the
86234         extreme values actually observed in practice in tz2003a,
86235         rather than the (overly optimistic) "previous 3 calendar quarters".
86236
86237         (not_equal_tm, print_tm, check_result): Use "const T" rather than
86238         "T const" to accommodate glibc style.
86239         (check_result): Use less-confusing report format.  "long" -> "long int.
86240         (main): Likewise.
86241         Don't loop if the iteration overflows time_t.
86242         Allow a negative step in the iteration.
86243
86244 2003-07-06  Karl Berry  <karl@gnu.org>
86245
86246         * config/depcomp: update from automake.
86247         * config/config.sub: update from prep.
86248
86249 2003-07-03  Karl Berry  <karl@gnu.org>
86250
86251         * config/config.guess: update from prep.
86252
86253 2003-07-01  Paul Eggert  <eggert@twinsun.com>
86254
86255         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
86256         xreadlink.c now includes it unconditionally.
86257
86258 2003-07-01  Paul Eggert  <eggert@twinsun.com>
86259
86260         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
86261         having it depend on HAVE_SYS_TYPES_H.
86262
86263 2003-07-01  Bruno Haible  <bruno@clisp.org>
86264
86265         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
86266         <sys/types.h> should be sufficient.
86267         Reported by Paul Eggert.
86268
86269 2003-06-26  Karl Berry  <karl@gnu.org>
86270
86271         * config/depcomp: update from automake.
86272
86273 2003-06-26  Bruno Haible  <bruno@clisp.org>
86274
86275         * modules/human: Depend on module stdbool.
86276
86277 2003-06-25  Bruno Haible  <bruno@clisp.org>
86278
86279         * modules/readlink: New file.
86280         * modules/xreadlink: Depend on it.
86281         * MODULES.html.sh (func_all_modules): Add readlink.
86282
86283 2003-06-25  Bruno Haible  <bruno@clisp.org>
86284
86285         * m4/readlink.m4: New file.
86286
86287 2003-06-25  Bruno Haible  <bruno@clisp.org>
86288
86289         * lib/readlink.c: New file.
86290
86291 2003-06-22  Karl Berry  <karl@gnu.org>
86292
86293         * config/srclist.txt: update mkinstalldirs from automake.
86294         * config/mkinstalldirs: update.
86295
86296 2003-06-22  Bruno Haible  <bruno@clisp.org>
86297
86298         Portability to mingw32.
86299         * m4/ssize_t.m4: New file, from GNU gettext.
86300         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
86301         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
86302
86303 2003-06-22  Bruno Haible  <bruno@clisp.org>
86304
86305         * modules/safe-read: Add m4/ssize_t.m4.
86306         * modules/xreadlink: Add m4/ssize_t.m4.
86307
86308 2003-06-20  Bruno Haible  <bruno@clisp.org>
86309
86310         Assume C89, so PARAMS isn't needed.
86311         * lib/unicodeio.h (PARAMS): Remove.
86312         * lib/unicodeio.c: Don't use PARAMS.
86313
86314 2003-06-18  Karl Berry  <karl@gnu.org>
86315
86316         * config/config.{guess,sub}: update from prep.
86317
86318 2003-06-18  Jim Meyering  <jim@meyering.net>
86319
86320         Merge changes from coreutils.
86321         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
86322         Remove explicit declarations of xmalloc and realloc.
86323         Include xalloc.h.
86324         (read_utmp): Remove anachronistic cast of xmalloc.
86325
86326 2003-06-17  Paul Eggert  <eggert@twinsun.com>
86327
86328         Assume C89, so PARAMS isn't needed.
86329         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
86330         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
86331         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
86332         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
86333         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
86334         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
86335         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
86336         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
86337         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
86338         lib/xstrtod.h, lib/xstrtol.h: Likewise.
86339         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
86340         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
86341         no longer needed. Anyway, config.h should always be included before any
86342         other file.
86343
86344 2003-06-11  Simon Josefsson  <jas@extundo.com>
86345
86346         * modules/sysexits: New file.
86347         * MODULES.html.sh (func_all_modules): Add sysexits.
86348
86349 2003-06-11  Simon Josefsson  <jas@extundo.com>
86350
86351         * lib/sysexit_.h: New file.
86352
86353 2003-06-11  Derek Price  <derek@ximbiot.com>
86354
86355         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
86356         necessary.
86357
86358 2003-06-11  Bruno Haible  <bruno@clisp.org>
86359
86360         * m4/sysexits.m4: New file.
86361
86362 2003-06-10  Simon Josefsson  <jas@extundo.com>
86363
86364         * lib/argp.h: New file, from glibc.
86365         * lib/argp-ba.c: New file, from glibc.
86366         * lib/argp-eexst.c: New file, from glibc.
86367         * lib/argp-fmtstream.c: New file, from glibc.
86368         * lib/argp-fmtstream.h: New file, from glibc.
86369         * lib/argp-fs-xinl.c: New file, from glibc.
86370         * lib/argp-help.c: New file, from glibc.
86371         * lib/argp-namefrob.h: New file, from glibc.
86372         * lib/argp-parse.c: New file, from glibc.
86373         * lib/argp-pv.c: New file, from glibc.
86374         * lib/argp-pvh.c: New file, from glibc.
86375         * lib/argp-xinl.c: New file, from glibc.
86376
86377 2003-06-10  Simon Josefsson  <jas@extundo.com>
86378
86379         * modules/strchrnul: New file.
86380
86381 2003-06-10  Simon Josefsson  <jas@extundo.com>
86382
86383         * modules/argp: New file.
86384
86385 2003-06-10  Simon Josefsson  <jas@extundo.com>
86386
86387         * m4/strchrnul.m4: New file.
86388
86389 2003-06-10  Simon Josefsson  <jas@extundo.com>
86390
86391         * lib/strchrnul.h: New file.
86392         * lib/strchrnul.c: New file.
86393
86394 2003-06-10  Bruno Haible  <bruno@clisp.org>
86395
86396         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
86397
86398 2003-06-07  Karl Berry  <karl@gnu.org>
86399
86400         * config/config.{guess,sub}: update from prep.
86401
86402 2003-06-07  Jim Meyering  <jim@meyering.net>
86403
86404         * modules/strtod: Use $(...) notation, not @...@ for
86405         AC_REPLACE'd variables.
86406         * modules/localcharset: Likewise.
86407
86408 2003-06-07  Jim Meyering  <jim@meyering.net>
86409
86410         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
86411         in place of my name in the copyright comment.
86412         Remove definition and uses of __P.
86413
86414         From coreutils.
86415         * lib/stat.c: Don't declare xmalloc explicitly.
86416         Instead, include "xalloc.h".
86417         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
86418         xrealloc, and xcalloc return values.
86419         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
86420         Improve comment.
86421         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
86422
86423 2003-06-07  Bruno Haible  <bruno@clisp.org>
86424
86425         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
86426         avoid AC_CONFIG_LINKS.
86427         * modules/fnmatch (Makefile.am): Use explicit creation rule for
86428         fnmatch.h, to avoid AC_CONFIG_LINKS.
86429         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
86430
86431 2003-06-07  Bruno Haible  <bruno@clisp.org>
86432
86433         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
86434         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
86435         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
86436         directory.
86437         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
86438         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
86439         directory.
86440
86441 2003-06-06  Jim Meyering  <jim@meyering.net>
86442
86443         Merge from coreutils.
86444         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
86445         Consolidate declarations and initializations of *_base* locals.
86446
86447         Merge from coreutils.
86448         This avoids a core dump on systems without GNU putenv,
86449         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
86450         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
86451         (unsetenv): New static function, from GNU libc.
86452         (rpl_putenv): Use it.
86453
86454         * lib/modechange.c: Remove trailing blanks.
86455
86456         Merge from coreutils.
86457         * lib/fsusage.c: Remove declaration of statfs.
86458         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
86459
86460         * lib/posixtm.c: Include <stdbool.h> unconditionally.
86461
86462 2003-06-06  Jim Meyering  <jim@meyering.net>
86463
86464         * lib/stdbool_.h: Renamed from stdbool.h.in.
86465
86466 2003-06-06  Jim Meyering  <jim@meyering.net>
86467             Bruno Haible  <bruno@clisp.org>
86468
86469         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
86470         Adjust Makefile.am snippet not to redirect directly to target.
86471         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
86472
86473 2003-06-05  Paul Eggert  <eggert@twinsun.com>
86474
86475         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
86476         mismatch, look in future quarters as well as past.  This fixes a
86477         bug when processing fall-backwards gaps immediately after a long
86478         period of daylight-saving time.
86479
86480         * lib/mktime.c: Assume freestanding C89 or better.
86481         (HAVE_LIMITS_H): Remove.  Assume it's 1.
86482         (__P): Remove; not used.
86483         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
86484         (mktime, not_equal_tm, print_tm, check_result,
86485         main): Use prototypes.  Use const * where appropriate.
86486         (main): Fix typo in testing code that uncovered by above changes.
86487         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
86488
86489 2003-06-04  Paul Eggert  <eggert@twinsun.com>
86490
86491         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
86492         locale.h, localeconv.  This merges changes from coreutils.
86493
86494         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
86495         It can be removed after the next Autoconf is released.
86496         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
86497         needed.
86498
86499 2003-06-04  Paul Eggert  <eggert@twinsun.com>
86500
86501         * lib/mktime.c: Fix Debian bug 177940
86502         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
86503         (localtime_offset): Now long int, not time_t, because we want it
86504         to be guaranteed to be signed.  All uses changed.
86505         (__mktime_internal): If overflow would occur when adding offset,
86506         don't add it.
86507
86508         Merge 'human' changes from coreutils.  Rewrite to support
86509         locale-specific notations like thousands separators.
86510         * lib/human.c: Simplify authorship notice.
86511         Include human.h immediately after config.h.
86512         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
86513         <limits.h>: Do not include, since human.h does.
86514         (SIZE_MAX, UINTMAX_MAX): New macros.
86515         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
86516         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
86517         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
86518         (power_letter): Renamed from suffixes.
86519         (generate_suffix_backwards): Remove.
86520         (adjust_value): Now takes int style (because of human.h changes)
86521         and long double value (for greater precision on some platforms).
86522         (group_number): New function.
86523         (human_readable): Use it.  Use integer options, not enum.
86524         Put the options before the sizes in the arg list.
86525         Support all the new options.
86526         The old human_readable function has been removed;
86527         use inttostr.h instead.
86528         (human_readable, default_block_size, humblock):
86529         Use uintmax_t, not int, for block sizes.
86530         (human_readable_inexact, block_size_types): Remove.
86531         (block_size_opts): New constant.
86532         (human_options): Renamed from human_block_size, with new signature
86533         that allows block sizes up to UINTMAX_MAX.  All callers changed.
86534         * lib/human.h: Add copyright and authorship notice.
86535         Include <limits.h> and <stdbool.h> unconditionally.
86536         (PARAMS): Remove.  All uses removed.
86537         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
86538         (enum human_inexact_style): Remove tag; now a nameless enum.
86539         (human_floor, human_ceiling, human_round_to_even): Now have
86540         values 2, 0, 1 rather than -1, 1, 0.
86541         (human_group_digits, human_suppress_point_zero, human_autoscale,
86542         human_base_1024, human_SI, human_B): New constants.
86543         (human_readable_inexact, human_block_size): Remove.
86544         (human_readable): Size args are now uintmax_t, not int.
86545         (human_options): New decl.
86546
86547         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
86548         unnecessary now that we assume C89 or better.  This change
86549         imported from coreutils.
86550
86551         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
86552         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
86553         in the 2003-05-30 sync from glibc.
86554
86555         .h files should stand alone, but we shouldn't include <sys/types.h>
86556         if we can get away with just <stddef.h>.
86557
86558         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
86559         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
86560         rather than <sys/types.h>, as we merely need size_t.
86561         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
86562         to get size_t.
86563         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
86564         Include <stdio.h>, to get FILE.
86565         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
86566         memcasecmp.h has included <stddef.h> and all we need is size_t.
86567         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
86568         our interface, instead of including <sys/types.h>
86569
86570 2003-06-04  Paul Eggert  <eggert@twinsun.com>
86571
86572         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
86573         now, as glibc mktime is buggy on non-glibc systems.
86574
86575 2003-06-03  Karl Berry  <karl@gnu.org>
86576
86577         * config/config.sub: update from prep.
86578
86579 2003-06-02  Paul Eggert  <eggert@twinsun.com>
86580
86581         [from coreutils]
86582         Fix some minor time-related bugs with POSIX time arguments.
86583         Some valid time stamps were being rejected (notably -1, and
86584         time stamps before 1900 on 64-bit hosts).  And some invalid
86585         time stamps were being accepted, e.g. September 31.
86586
86587         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
86588         that we can return (time_t) -1 successfully.
86589         * lib/posixtm.c: Likewise.
86590         [HAVE_STDBOOL_H]: Include <stdbool.h>.
86591         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
86592         (t): Remove static var.
86593         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
86594         of static var.  All uses changed.
86595         (year): Do not reject years before 1900; they can occur with
86596         64-bit time_t.
86597         (posix_time_parse): Do not check for out-of-range components;
86598         that is now the caller's responsibility, since our checks were
86599         only approximations.
86600         (posixtime): Use mktime to check for out-of-range components,
86601         since it knows them exactly.
86602         If mktime returns (time_t) -1, check whether an error actually occurred
86603         by invoking localtime on -1.
86604         (main) [TEST_POSIXTIME]: Check for input data errors, and report
86605         posixtime failures better.
86606         Improve the test data (in comments only).
86607
86608 2003-06-02  Karl Berry  <karl@gnu.org>
86609
86610         * config/mkinstalldirs (version): new variable.
86611         (--version): new option.
86612         (usage): improve message.
86613
86614 2003-05-30  Karl Berry  <karl@gnu.org>
86615
86616         * lib/mktime.c: update from libc.
86617
86618 2003-05-30  Bruno Haible  <bruno@clisp.org>
86619
86620         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
86621         * config/config.rpath: Upgrade to gettext-0.12.1.
86622
86623 2003-05-30  Bruno Haible  <bruno@clisp.org>
86624
86625         * m4/gettext.m4: Upgrade to gettext-0.12.1.
86626         * m4/nls.m4: New file, from gettext-0.12.1.
86627         * m4/po.m4: New file, from gettext-0.12.1.
86628         * m4/progtest.m4: Upgrade to gettext-0.12.1.
86629
86630 2003-05-30  Bruno Haible  <bruno@clisp.org>
86631
86632         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
86633         * lib/localcharset.h: Likewise.
86634         * lib/localcharset.c: Likewise.
86635
86636 2003-05-29  Karl Berry  <karl@gnu.org>
86637
86638         * config/config.rpath: update from gettext.
86639
86640 2003-05-28  Paul Eggert  <eggert@twinsun.com>
86641
86642         Assume the headers required for C89 freestanding compilers.
86643         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
86644         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
86645         * m4/human.m4 (gl_HUMAN): Likewise.
86646         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
86647         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
86648         * m4/userspec.m4 (gl_USERSPEC): Likewise.
86649         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
86650         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
86651         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
86652
86653 2003-05-28  Paul Eggert  <eggert@twinsun.com>
86654
86655         Assume the headers required for C89 freestanding compilers.
86656         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
86657         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
86658         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
86659         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
86660         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
86661         define, since <limits.h> is guaranteed to do that.
86662         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
86663         * lib/exclude.c: Include <stdbool.h> unconditionally.
86664         * lib/tempname.c: Include <stddef.h> unconditionally.
86665         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
86666         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
86667         <stddef.h> does that.
86668         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
86669         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
86670         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
86671         needed.
86672         * lib/xstrtol.c: Likewise.
86673         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
86674         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
86675
86676         * lib/addext.c (addext): Use assignment rather than cast, to avoid
86677         warnings on some platforms.
86678
86679         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
86680         arbitrarily.
86681
86682 2003-05-26  Jim Meyering  <jim@meyering.net>
86683
86684         Merge in a change from coreutils:
86685         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
86686         that is guaranteed to be `no'.  Use `no_such_member' to indicate
86687         that condition, rather than `-1' which is slightly misleading.
86688         Change the name of the cache variable to have the gl_ prefix.
86689         Prompted by a patch from Richard Dawe for DJGPP.
86690
86691 2003-05-24  Karl Berry  <karl@gnu.org>
86692
86693         * config/config.guess: update from prep.
86694
86695 2003-05-22  Karl Berry  <karl@gnu.org>
86696
86697         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
86698
86699 2003-05-20  Karl Berry  <karl@gnu.org>
86700
86701         * config/config.guess: update from prep.
86702
86703 2003-05-18  Karl Berry  <karl@gnu.org>
86704
86705         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
86706         might actually be set by the user.
86707
86708         * config/depcomp, install-sh, mdate-sh: update from automake.
86709
86710 2003-05-17  Bruno Haible  <bruno@clisp.org>
86711
86712         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
86713         invalid expansion for AC_EGREP_CPP.
86714         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
86715         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
86716         Suggested by Akim Demaille <akim@epita.fr> in
86717         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
86718
86719 2003-05-12  Jim Meyering  <jim@meyering.net>
86720
86721         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
86722         the space-padded-by-default conversion specifiers, %e, %k, %l.
86723
86724 2003-05-12  Bruno Haible  <bruno@clisp.org>
86725
86726         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
86727         the string is longer than 4 KB.
86728
86729 2003-05-11  Karl Berry  <karl@gnu.org>
86730
86731         * config/config.{guess,sub}: update from prep.
86732
86733 2003-05-09  Bruno Haible  <bruno@clisp.org>
86734
86735         * modules/error: Add m4/strerror_r.m4 to file list.
86736
86737 2003-05-03  Bruno Haible  <bruno@clisp.org>
86738
86739         Upgrade to Unicode-4.0.
86740         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
86741         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
86742         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
86743         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
86744         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
86745         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
86746         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
86747         Change width of U+E0100..U+E01EF from 1 to 0.
86748
86749 2003-04-25  Jim Meyering  <jim@meyering.net>
86750
86751         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
86752         of type size_t, not int.
86753
86754 2003-04-25  Bruno Haible  <bruno@clisp.org>
86755
86756         * lib/copy-file.c: Include <stddef.h>, for size_t.
86757
86758 2003-04-21  Paul Eggert  <eggert@twinsun.com>
86759
86760         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
86761         code which expansion is under static control.  Patch imported from
86762         Akim Demaille's patch to Bison; see
86763         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
86764
86765 2003-04-14  Bruno Haible  <bruno@clisp.org>
86766
86767         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
86768
86769 2003-04-11  Jim Meyering  <jim@meyering.net>
86770
86771         Merge changes from Coreutils.
86772
86773         2003-03-22  Jim Meyering  <jim@meyering.net>
86774
86775         * lib/strftime.c (widen): Cast alloca return value to proper type.
86776
86777         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
86778
86779         From GNU libc.
86780         * lib/strftime.c (my_strftime): Handle very large width
86781         specifications for numeric values correctly.  Improve checks for
86782         overflow.
86783
86784         2003-01-19  Jim Meyering  <jim@meyering.net>
86785
86786         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
86787         definitions.
86788         (nl_get_alt_digit) [! defined my_strftime]: Define.
86789         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
86790         _nl_get_alt_digit and _nl_get_walt_digit.
86791
86792         * lib/strftime.c (my_strftime): Merge in locale-related changes from
86793         libc. These changes have no effect outside of _LIBC.
86794
86795 2003-04-10  Bruno Haible  <bruno@clisp.org>
86796
86797         * modules/findprog: New file.
86798         * MODULES.html.sh (func_all_modules): Add it.
86799
86800 2003-04-10  Bruno Haible  <bruno@clisp.org>
86801
86802         * m4/findprog.m4: New file.
86803         * m4/eaccess.m4: New file.
86804
86805 2003-04-10  Bruno Haible  <bruno@clisp.org>
86806
86807         * lib/findprog.h: New file, from GNU gettext.
86808         * lib/findprog.c: New file, from GNU gettext.
86809
86810 2003-04-05  Jim Meyering  <jim@meyering.net>
86811
86812         Merge changes from Coreutils.
86813
86814         * lib/exclude.h (PARAMS): Remove definition and uses.
86815         * lib/exclude.c: Remove uses of `PARAMS'.
86816
86817         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
86818         Add test-cases for DOS filenames. Declare program_name.
86819         (main): Set up program_name.  Patch by Rich Dawe.
86820
86821         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
86822         error from mntctl.
86823         Use mntctl's return value to drive the entry-processing loop, since
86824         we can't rely on the value of the vmt_length member in the last
86825         entry.  On some systems doing so could result in exhausting
86826         virtual memory.  Based in part on a patch from Mike Jetzer.
86827
86828 2003-04-04  Bruno Haible  <bruno@clisp.org>
86829
86830         * modules/linebreak: New file.
86831         * MODULES.html.sh (func_all_modules): Add it.
86832
86833 2003-04-04  Bruno Haible  <bruno@clisp.org>
86834
86835         * m4/linebreak.m4: New file.
86836
86837 2003-04-04  Bruno Haible  <bruno@clisp.org>
86838
86839         * lib/linebreak.h: New file, from GNU gettext.
86840         * lib/linebreak.c: New file, from GNU gettext with slight
86841         modifications.
86842         * lib/lbrkprop.h: New file, from GNU gettext.
86843
86844 2003-04-03  Bruno Haible  <bruno@clisp.org>
86845
86846         * modules/utf8-ucs4: New file.
86847         * modules/utf16-ucs4: New file.
86848         * modules/ucs4-utf8: New file.
86849         * modules/ucs4-utf16: New file.
86850         * MODULES.html.sh (func_all_modules): Add them.
86851
86852 2003-04-03  Bruno Haible  <bruno@clisp.org>
86853
86854         * m4/utf-ucs4.m4: New file.
86855         * m4/ucs4-utf.m4: New file.
86856
86857 2003-04-03  Bruno Haible  <bruno@clisp.org>
86858
86859         * lib/utf8-ucs4.h: New file, from GNU gettext.
86860         * lib/utf16-ucs4.h: New file, from GNU gettext.
86861         * lib/ucs4-utf8.h: New file, from GNU gettext.
86862         * lib/ucs4-utf16.h: New file, from GNU gettext.
86863
86864 2003-04-02  Bruno Haible  <bruno@clisp.org>
86865
86866         * modules/binary-io: New file.
86867         * MODULES.html.sh (func_all_modules): Add it.
86868
86869 2003-04-02  Bruno Haible  <bruno@clisp.org>
86870
86871         * lib/binary-io.h: New file, from GNU gettext.
86872
86873 2003-04-01  Bruno Haible  <bruno@clisp.org>
86874
86875         * modules/pathname: New file.
86876         * MODULES.html.sh (func_all_modules): Add it.
86877
86878 2003-04-01  Bruno Haible  <bruno@clisp.org>
86879
86880         * lib/pathname.h: New file, from GNU gettext.
86881         * lib/concatpath.c: New file, from GNU gettext.
86882
86883 2003-03-30  Bruno Haible  <bruno@clisp.org>
86884
86885         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
86886
86887 2003-03-30  Bruno Haible  <bruno@clisp.org>
86888
86889         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
86890         function chown() doesn't exist.
86891
86892 2003-03-28  Bruno Haible  <bruno@clisp.org>
86893
86894         * modules/copy-file: New file.
86895         * MODULES.html.sh (func_all_modules): Add it.
86896
86897 2003-03-28  Bruno Haible  <bruno@clisp.org>
86898
86899         * m4/copy-file.m4: New file.
86900
86901 2003-03-28  Bruno Haible  <bruno@clisp.org>
86902
86903         * lib/copy-file.h: New file, from GNU gettext.
86904         * lib/copy-file.c: New file, from GNU gettext.
86905
86906 2003-03-18  Jim Meyering  <jim@meyering.net>
86907
86908         * lib/quote.c (quote_n): Fix typo in comment.
86909
86910 2003-03-18  Bruno Haible  <bruno@clisp.org>
86911
86912         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
86913         checking.
86914         * m4/onceonly_2_57.m4: Likewise.
86915
86916 2003-03-17  Bruno Haible  <bruno@clisp.org>
86917
86918         * m4/onceonly.m4: Require autoconf 2.54 or newer.
86919         (m4_quote): Remove macro.
86920         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
86921
86922 2003-03-14  Jim Meyering  <jim@meyering.net>
86923
86924         Merge changes from Coreutils.
86925         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
86926         to be const, in order to avoid warnings.
86927         (obstack_room): Likewise.
86928         (obstack_empty_p): Likewise.
86929
86930 2003-03-14  Bruno Haible  <bruno@clisp.org>
86931
86932         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
86933         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
86934
86935 2003-03-13  Paul Eggert  <eggert@twinsun.com>
86936
86937         Merge changes from Bison.
86938         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
86939         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
86940         when compiling Bison 1.875's `bitset bset = obstack_alloc
86941         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
86942         * lib/hash.c: Include <stdbool.h> unconditionally.
86943
86944 2003-03-13  Paul Eggert  <eggert@twinsun.com>
86945
86946         * m4/onceonly.m4 (m4_quote): New macro.
86947         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
86948         Quote AC_FOREACH variable-expansions properly.
86949
86950 2003-03-13  Paul Eggert  <eggert@twinsun.com>
86951
86952         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
86953
86954 2003-03-09  Paul Eggert  <eggert@twinsun.com>
86955
86956         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
86957         Reported by Bruce Becker; see:
86958         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
86959
86960 2003-03-03  Paul Eggert  <eggert@twinsun.com>
86961             Bruno Haible  <bruno@clisp.org>
86962
86963         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
86964         Reported by John Hughes, see
86965         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
86966
86967 2003-02-20  Bruno Haible  <bruno@clisp.org>
86968
86969         * MODULES.html.sh (func_all_modules): Add poll.
86970
86971 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
86972
86973         * modules/poll: New file.
86974
86975 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
86976
86977         * lib/poll_.h: New file.
86978         * lib/poll.c: New file.
86979
86980 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
86981
86982         * m4/poll.m4: New file.
86983
86984 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
86985
86986         * modules/mathl: New file.
86987
86988 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
86989
86990         * lib/mathl.h: New file.
86991         * lib/acosl.c: New file.
86992         * lib/asinl.c: New file.
86993         * lib/atanl.c: New file.
86994         * lib/ceill.c: New file.
86995         * lib/cosl.c: New file.
86996         * lib/expl.c: New file.
86997         * lib/floorl.c: New file.
86998         * lib/frexpl.c: New file.
86999         * lib/ldexpl.c: New file.
87000         * lib/logl.c: New file.
87001         * lib/sincosl.c: New file.
87002         * lib/sinl.c: New file.
87003         * lib/sqrtl.c: New file.
87004         * lib/tanl.c: New file.
87005         * lib/trigl.c: New file.
87006         * lib/trigl.h: New file.
87007
87008 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
87009
87010         * m4/mathl.m4: New file.
87011
87012 2003-02-18  Bruno Haible  <bruno@clisp.org>
87013
87014         * MODULES.html.sh (func_all_modules): Add mathl.
87015
87016 2003-02-17  Bruno Haible  <bruno@clisp.org>
87017
87018         * modules/mkdtemp: New module.
87019         * MODULES.html.sh (func_all_modules): Add it.
87020
87021 2003-02-17  Bruno Haible  <bruno@clisp.org>
87022
87023         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
87024
87025 2003-02-17  Bruno Haible  <bruno@clisp.org>
87026
87027         * lib/mkdtemp.h: New file, from GNU gettext.
87028         * lib/mkdtemp.c: New file, from GNU gettext.
87029
87030 2003-02-02  Jim Meyering  <jim@meyering.net>
87031
87032         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
87033         e.g. glibc-2.2.93.
87034
87035 2003-01-31  Bruno Haible  <bruno@clisp.org>
87036
87037         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
87038         'rpl_rename'.
87039         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
87040         'rpl_strnlen'.
87041         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
87042         'rpl_strtod'.
87043         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
87044         'rpl_utime'.
87045
87046 2003-01-31  Bruno Haible  <bruno@clisp.org>
87047
87048         * lib/rename.c: #undef rename before defining rpl_rename.
87049         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
87050
87051 2003-01-30  Bruno Haible  <bruno@clisp.org>
87052
87053         * modules/vasnprintf, modules/vasprintf: New modules.
87054         * MODULES.html.sh (func_all_modules): Add them.
87055
87056 2003-01-30  Bruno Haible  <bruno@clisp.org>
87057
87058         * m4/signed.m4: New file, from GNU gettext.
87059         * m4/longdouble.m4: New file, from GNU gettext.
87060         * m4/wchar_t.m4: New file, from GNU gettext.
87061         * m4/wint_t.m4: New file, from GNU gettext.
87062         * m4/vasnprintf.m4: New file.
87063         * m4/vasprintf.m4: New file.
87064
87065 2003-01-30  Bruno Haible  <bruno@clisp.org>
87066
87067         * lib/printf-args.h: New file, from GNU gettext.
87068         * lib/printf-args.c: New file, from GNU gettext.
87069         * lib/printf-parse.h: New file, from GNU gettext.
87070         * lib/printf-parse.c: New file, from GNU gettext.
87071         * lib/vasnprintf.h: New file, from GNU gettext.
87072         * lib/vasnprintf.c: New file, from GNU gettext.
87073         * lib/asnprintf.c: New file, from GNU gettext.
87074         * lib/vasprintf.h: New file, from GNU gettext with modifications.
87075         * lib/vasprintf.c: New file, from GNU gettext.
87076         * lib/asprintf.c: New file, from GNU gettext.
87077
87078 2003-01-29  Bruno Haible  <bruno@clisp.org>
87079
87080         * modules/stpncpy: New module.
87081         * MODULES.html.sh (func_all_modules): Add it.
87082
87083 2003-01-29  Bruno Haible  <bruno@clisp.org>
87084
87085         * m4/stpncpy.m4: New file.
87086
87087 2003-01-29  Bruno Haible  <bruno@clisp.org>
87088
87089         * lib/stpncpy.h: New file, from GNU gettext with modifications.
87090         * lib/stpncpy.c: New file, from GNU gettext with modifications.
87091
87092 2003-01-28  Bruno Haible  <bruno@clisp.org>
87093
87094         * modules/c-ctype: New module.
87095         * MODULES.html.sh (func_all_modules): Add it.
87096
87097 2003-01-28  Bruno Haible  <bruno@clisp.org>
87098
87099         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
87100         Paul Eggert.
87101         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
87102         Paul Eggert.
87103
87104 2003-01-27  Bruno Haible  <bruno@clisp.org>
87105
87106         * modules/xsetenv: New module.
87107         * MODULES.html.sh (func_all_modules): Add it.
87108
87109 2003-01-27  Bruno Haible  <bruno@clisp.org>
87110
87111         * lib/xsetenv.h: New file, from GNU gettext.
87112         * lib/xsetenv.c: New file, from GNU gettext.
87113
87114 2003-01-23  Jim Meyering  <jim@meyering.net>
87115
87116         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
87117         from working on systems without dirfd (at least Irix and OSF1/Tru64).
87118
87119 2003-01-23  Bruno Haible  <bruno@clisp.org>
87120
87121         * modules/minmax: New module.
87122         * MODULES.html.sh (func_all_modules): Add it.
87123
87124 2003-01-23  Bruno Haible  <bruno@clisp.org>
87125
87126         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
87127         Eggert.
87128
87129 2003-01-22  Bruno Haible  <bruno@clisp.org>
87130
87131         * modules/exit: New module.
87132         * MODULES.html.sh (func_all_modules): Add it.
87133
87134 2003-01-22  Bruno Haible  <bruno@clisp.org>
87135
87136         * lib/exit.h: New file, from GNU gettext.
87137
87138 2003-01-19  Bruno Haible  <bruno@clisp.org>
87139
87140         * gnulib-tool: Recognize option --extract-maintainer.
87141         (func_get_maintainer): New function.
87142         * modules/*: Add Maintainer entry.
87143
87144 2003-01-16  Jim Meyering  <jim@meyering.net>
87145
87146         * m4/regex.m4: The `regex' struct is both input and output.
87147         Initialize it before each use.  Patch by Tim Waugh.
87148
87149 2003-01-16  Bruno Haible  <bruno@clisp.org>
87150
87151         * MODULES.html.sh: Add a table of contents. Add the module name as
87152         leftmost column. Add hyperlinks.
87153
87154 2003-01-15  Bruno Haible  <bruno@clisp.org>
87155
87156         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
87157
87158 2003-01-15  Bruno Haible  <bruno@clisp.org>
87159
87160         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
87161         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
87162         suffix.
87163
87164 2003-01-15  Bruno Haible  <bruno@clisp.org>
87165
87166         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
87167
87168 2003-01-15  Bruno Haible  <bruno@clisp.org>
87169
87170         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
87171         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
87172
87173 2003-01-14  Jim Meyering  <jim@meyering.net>
87174
87175         * lib/same.c (same_name): Tweak a comment.
87176
87177 2003-01-14  Bruno Haible  <bruno@clisp.org>
87178
87179         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
87180         when a string comparison is sufficient.
87181
87182 2003-01-14  Bruno Haible  <bruno@clisp.org>
87183
87184         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
87185         'unsigned int'.
87186
87187 2003-01-14  Bruno Haible  <bruno@clisp.org>
87188
87189         * lib/hash-pjw.c: Add comment about low quality of this function.
87190
87191 2003-01-13  Bruno Haible  <bruno@clisp.org>
87192
87193         * modules/stpcpy: Distribute lib/stpcpy.h.
87194         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
87195
87196 2003-01-13  Bruno Haible  <bruno@clisp.org>
87197
87198         * modules/*: Add a description.
87199         * modules/strpbrk: Fix Makefile.am snippet.
87200         * modules/strtoimax: Fix dependencies.
87201         * modules/strtoumax: Likewise.
87202
87203 2003-01-13  Bruno Haible  <bruno@clisp.org>
87204
87205         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
87206         * modules/alloca (Makefile.am): All object files depend on alloca.h.
87207         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
87208
87209 2003-01-13  Bruno Haible  <bruno@clisp.org>
87210
87211         * gnulib-tool (func_create_testdir): Store config/* files in the main
87212         directory.
87213         * config.rpath: Move to ...
87214         * config/config.rpath: ... here.
87215         * modules/gettext: Contains config/config.rpath, not config.rpath.
87216         * modules/iconv: Likewise.
87217
87218 2003-01-12  Paul Eggert  <eggert@twinsun.com>
87219
87220         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
87221         to avoid collisions with libcurses and libreadline.
87222
87223         * m4/getstr.m4: Remove.
87224         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
87225
87226 2003-01-12  Paul Eggert  <eggert@twinsun.com>
87227
87228         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
87229         to avoid collisions with libcurses and libreadline.
87230
87231         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
87232         * lib/getstr.h, getstr.c: Remove.
87233         * lib/getline.c: Include "getline.h", to check interface.
87234         Move body of old getstr.c here: this defines MIN_CHUNK and
87235         declares getdelim2, which is renamed from getstr.
87236         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
87237
87238         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
87239         All uses changed.
87240         * lib/linebuffer.h: Likewise.
87241         (readline): Remove backward-compatibility macro.
87242
87243 2003-01-12  Paul Eggert  <eggert@twinsun.com>
87244
87245         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
87246         to avoid collisions with libcurses and libreadline.
87247         * getstr: Remove.
87248         * MODULES.html.sh: Remove getstr.
87249         * modules/getline: Depend on unlocked-io, not getstr.
87250
87251 2003-01-12  Jim Meyering  <jim@meyering.net>
87252
87253         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
87254
87255 2003-01-10  Bruno Haible  <bruno@clisp.org>
87256
87257         * modules/alloca: Change Makefile.am requirements. Simplify Include
87258         requirements. Add lib/alloca_.h to file list.
87259
87260 2003-01-10  Bruno Haible  <bruno@clisp.org>
87261
87262         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
87263
87264 2003-01-10  Bruno Haible  <bruno@clisp.org>
87265
87266         * lib/alloca_.h: New file.
87267         * lib/getdate.y: Unconditionally include alloca.h.
87268         * lib/makepath.c: Likewise.
87269         * lib/setenv.c: Likewise.
87270         * lib/userspec.c: Likewise.
87271
87272 2003-01-09  Karl Berry  <karl@gnu.org>
87273
87274         * MODULES.html.sh: include `dirname $0` in PATH, to find
87275         gnulib-tool.
87276
87277 2003-01-09  Bruno Haible  <bruno@clisp.org>
87278
87279         * modules/stdbool: Change configure.ac, Makefile.am requirements.
87280         Simplify Include requirements. Add lib/stdbool.h.in to file list.
87281
87282 2003-01-09  Bruno Haible  <bruno@clisp.org>
87283
87284         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
87285
87286 2003-01-09  Bruno Haible  <bruno@clisp.org>
87287
87288         * lib/stdbool.h.in: New file.
87289
87290 2003-01-09  Bruno Haible  <bruno@clisp.org>
87291
87292         * gnulib-tool (func_all_modules): Ignore files ending in ~.
87293         * MODULES.html.sh: Likewise.
87294
87295 2003-01-08  Jim Meyering  <jim@meyering.net>
87296
87297         * lib/full-write.c: Undefine and define-away `const' after inclusion
87298         of errno.h, not before.  Suggestion from Bruno Haible.
87299
87300 2003-01-08  Bruno Haible  <bruno@clisp.org>
87301
87302         * modules/full-read: Depend on full-write.
87303
87304 2003-01-08  Bruno Haible  <bruno@clisp.org>
87305
87306         * lib/safe-read.c: Include specification header first, to ensure its
87307         selfcontainedness.
87308         * lib/full-write.c: Likewise.
87309
87310 2003-01-07  Jim Meyering  <jim@meyering.net>
87311
87312         * lib/full-write.c: Rework so that it may serve to define full_read,
87313         too.
87314         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
87315
87316 2003-01-07  Bruno Haible  <bruno@clisp.org>
87317
87318         * lib/strtoimax.c: Include <stdint.h> as an alternative to
87319         <inttypes.h>.
87320         * lib/xstrtol.h: Likewise.
87321         * lib/xstrtoimax.c: Likewise.
87322         * lib/xstrtoumax.c: Likewise.
87323         * lib/human.h: Likewise.
87324
87325         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
87326         on systems that have <inttypes.h> but not <stdint.h>.
87327
87328 2003-01-07  Bruno Haible  <bruno@clisp.org>
87329
87330         * MODULES.html.sh: Add copyright notice.
87331         (missed_files): Omit CVS directory entries.
87332         (func_module): Make it work with sed-3.02.
87333         * MODULES.txt: Remove file.
87334
87335 2003-01-06  Jim Meyering  <jim@meyering.net>
87336
87337         * lib/version-etc.c: Update year in translatable copyright string.
87338
87339 2003-01-03  Karl Berry  <karl@gnu.org>
87340
87341         * config/config.{guess,sub}: update from prep.
87342
87343 2003-01-02  Karl Berry  <karl@gnu.org>
87344
87345         * doc/COPYING.DOC: belatedly updated to 1.2.
87346
87347 2003-01-01  Karl Berry  <karl@gnu.org>
87348
87349         * gnulib-tool (func_verify_module): report module name $module in
87350         error message, not $1.
87351         * gnulib-tool (create-testdir): don't complain if destdir couldn't
87352         be created, only if it doesn't exist.
87353         * gnulib-tool (last_checkin_date): don't expand the $Date here.
87354
87355 2002-12-31  Paul Eggert  <eggert@twinsun.com>
87356
87357         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
87358
87359 2002-12-31  Paul Eggert  <eggert@twinsun.com>
87360
87361         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
87362         memcmp if strcoll doesn't work.
87363
87364 2002-12-31  Bruno Haible  <bruno@clisp.org>
87365
87366         * lib/utime.c (utime_null): No need to call ftruncate if the file was
87367         nonempty.
87368
87369 2002-12-31  Bruno Haible  <bruno@clisp.org>
87370
87371         * lib/memcoll.c (STRCOLL): New macro.
87372         (memcoll): Use it.
87373
87374 2002-12-31  Bruno Haible  <bruno@clisp.org>
87375
87376         * lib/localcharset.h: New file.
87377         * lib/localcharset.c: Include it.
87378         * lib/unicodeio.c: Likewise.
87379
87380 2002-12-31  Bruno Haible  <bruno@clisp.org>
87381
87382         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
87383         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
87384
87385 2002-12-31  Bruno Haible  <bruno@clisp.org>
87386
87387         * lib/getline.h: Include <stddef.h>, for size_t.
87388
87389         * lib/unicodeio.h: Include <stddef.h>, for size_t.
87390         * lib/unicodeio.c: Don't include <stddef.h>.
87391
87392 2002-12-31  Bruno Haible  <bruno@clisp.org>
87393
87394         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
87395         HAVE_TM_ZONE.
87396
87397 2002-12-24  Karl Berry  <karl@gnu.org>
87398
87399         * config/config.guess: update from prep.
87400
87401 2002-12-24  Bruno Haible  <bruno@clisp.org>
87402
87403         General infrasructure.
87404         * m4/README: Rewritten.
87405         * m4/onceonly.m4: New file.
87406         * m4/onceonly_2_57.m4: New file.
87407
87408         Module atexit.
87409         * m4/atexit.m4: New file.
87410
87411         Module strtod.
87412         * m4/strtod.m4: New file.
87413
87414         Module strtol.
87415         * m4/strtol.m4: New file.
87416
87417         Module strtoul.
87418         * m4/strtoul.m4: New file.
87419
87420         Module memchr.
87421         * m4/memchr.m4: New file.
87422
87423         Module memcmp.
87424         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
87425         (jm_FUNC_MEMCMP): Invoke it.
87426
87427         Module memcpy.
87428         * m4/memcpy.m4: New file.
87429
87430         Module memmove.
87431         * m4/memmove.m4: New file.
87432
87433         Module memset.
87434         * m4/memset.m4: New file.
87435
87436         Module strcspn.
87437         * m4/strcspn.m4: New file.
87438
87439         Module strpbrk.
87440         * m4/strpbrk.m4: New file.
87441
87442         Module strstr.
87443         * m4/strstr.m4: New file.
87444
87445         Module strerror.
87446         * m4/strerror.m4: New file.
87447
87448         Module mktime.
87449         * m4/mktime.m4: Renamed from jm-mktime.m4.
87450         (gl_PREREQ_MKTIME): New macro.
87451         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
87452
87453         Module malloc.
87454         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
87455         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
87456         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
87457
87458         Module realloc.
87459         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
87460         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
87461         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
87462
87463         Module strftime.
87464         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
87465         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
87466         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
87467         gl_TM_GMTOFF.
87468         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
87469
87470         Module xalloc.
87471         * m4/xalloc.m4: New file.
87472
87473         Module alloca.
87474         * m4/alloca.m4: New file.
87475
87476         Module putenv.
87477         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
87478         (jm_FUNC_PUTENV): Invoke it.
87479
87480         Module setenv.
87481         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
87482         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
87483         when invoked twice.
87484         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
87485         gt_FUNC_SETENV.
87486
87487         Module memrchr.
87488         * m4/memrchr.m4: New file.
87489
87490         Module stpcpy.
87491         * m4/stpcpy.m4: New file.
87492
87493         Module strcase.
87494         * m4/strcase.m4: New file.
87495
87496         Module strdup.
87497         * m4/strdup.m4: New file.
87498
87499         Module strnlen.
87500         * m4/strnlen.m4: New file.
87501
87502         Module strndup.
87503         * m4/strndup.m4: New file.
87504
87505         Module xstrtod.
87506         * m4/xstrtod.m4: New file.
87507
87508         Module xstrtol.
87509         * m4/xstrtol.m4: New file.
87510
87511         Module getdate.
87512         * m4/getdate.m4: New file.
87513
87514         Module unlocked-io.
87515         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
87516         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
87517         * m4/jm-glibc-io.m4n: Remove file.
87518
87519         Module long-options.
87520         * m4/long-options.m4: New file.
87521
87522         Module md5.
87523         * m4/md5.m4: New file.
87524
87525         Module sha.
87526         * m4/sha.m4: New file.
87527
87528         Module getstr.
87529         * m4/getstr.m4: New file.
87530
87531         Module getline.
87532         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
87533         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
87534         <sys/types.h>, for size_t. Use the function name gnu_getline, not
87535         simply getline. Infoke gl_PREREQ_GETLINE.
87536
87537         Module obstack.
87538         * m4/obstack.m4: New file.
87539
87540         Module hash.
87541         * m4/hash.m4: New file.
87542
87543         Module readtokens.
87544         * m4/readtokens.m4: New file.
87545
87546         Module strverscmp.
87547         * m4/strverscmp.m4: New file.
87548
87549         Module stdbool.
87550         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
87551         OSF/1.
87552
87553         Module strtoll.
87554         * m4/strtoll.m4: New file.
87555
87556         Module strtoull.
87557         * m4/strtoull.m4: New file.
87558
87559         Module strtoimax.
87560         * m4/strtoimax.m4: New file.
87561
87562         Module strtoumax.
87563         * m4/strtoumax.m4: New file.
87564
87565         Module xstrtoimax.
87566         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
87567         jm_AC_PREREQ_XSTRTOIMAX.
87568         Moved the strtol prerequisites to strtol.m4.
87569         Moved the strtoll prerequisites to strtoll.m4.
87570         Moved the strtoimax prerequisites to strtoimax.m4.
87571
87572         Module xstrtoumax.
87573         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
87574         jm_AC_PREREQ_XSTRTOUMAX.
87575         Moved the strtoul prerequisites to strtoul.m4.
87576         Moved the strtoull prerequisites to strtoull.m4.
87577         Moved the strtoumax prerequisites to strtoumax.m4.
87578
87579         Module chown.
87580         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
87581         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
87582
87583         Module dup2.
87584         * m4/dup2.m4: New file.
87585
87586         Module ftruncate.
87587         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
87588         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
87589
87590         Module getgroups.
87591         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
87592         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
87593
87594         Module gettimeofday.
87595         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
87596         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
87597         gl_PREREQ_GETTIMEOFDAY.
87598
87599         Module mkdir.
87600         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
87601         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
87602
87603         Module mkstemp.
87604         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
87605         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
87606         jm_AC_TYPE_UINTMAX_T.
87607         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
87608
87609         Module stat.
87610         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
87611         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
87612
87613         Module lstat.
87614         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
87615         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
87616
87617         Module timespec.
87618         * m4/timespec.m4 (gl_TIMESPEC): New macro.
87619         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
87620         * m4/st_mtim.m4: Indentation.
87621
87622         Module nanosleep.
87623         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
87624         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
87625         gl_PREREQ_NANOSLEEP.
87626
87627         Module regex.
87628         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
87629         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
87630         (gl_REGEX): New macro.
87631
87632         Module rename.
87633         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
87634         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
87635
87636         Module rmdir.
87637         * m4/rmdir.m4: New file.
87638
87639         Module utime.
87640         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
87641         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
87642         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
87643
87644         Module dirname.
87645         * m4/dirname.m4: New file.
87646
87647         Module getopt.
87648         * m4/getopt.m4: New file.
87649
87650         Module unistd-safer.
87651         * m4/unistd-safer.m4: New file.
87652
87653         Module fnmatch.
87654         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
87655         declaration.
87656         (gl_PREREQ_FNMATCH_EXTRA): New macro.
87657         (gl_FUNC_FNMATCH_POSIX): New macro.
87658         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
87659         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
87660         simply fnmatch.
87661
87662         Module exclude.
87663         * m4/exclude.m4: New file.
87664
87665         Module human.
87666         * m4/human.m4: New file.
87667
87668         Module acl.
87669         * m4/acl.m4: Nop.
87670
87671         Module backupfile.
87672         * m4/backupfile.m4: New file.
87673         * m4/d-ino.m4: Indentation.
87674
87675         Module fsusage.
87676         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
87677         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
87678         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
87679
87680         Module dirfd.
87681         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
87682         requirements.
87683
87684         Module euidaccess.
87685         * m4/euidaccess.m4: New file.
87686
87687         Module file-type.
87688         * m4/file-type.m4: New file.
87689
87690         Module fileblocks.
87691         * m4/fileblocks.m4: New file.
87692
87693         Module filemode.
87694         * m4/filemode.m4: New file.
87695
87696         Module isdir.
87697         * m4/isdir.m4: New file.
87698
87699         Module lchown.
87700         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
87701         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
87702
87703         Module makepath.
87704         * m4/makepath.m4: New file.
87705
87706         Module modechange.
87707         * m4/modechange.m4: New file.
87708
87709         Module mountlist.
87710         * m4/mountlist.m4: New file.
87711         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
87712         Indentation.
87713
87714         Module path-concat.
87715         * m4/path-concat.m4: New file.
87716
87717         Module pathmax.
87718         * m4/pathmax.m4: New file.
87719
87720         Module same.
87721         * m4/same.m4: New file.
87722
87723         Module save-cwd.
87724         * m4/save-cwd.m4: New file.
87725
87726         Module savedir.
87727         * m4/savedir.m4: New file.
87728
87729         Module xgetcwd.
87730         * m4/xgetcwd.m4: New file.
87731         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
87732
87733         Module xreadlink.
87734         * m4/xreadlink.m4: New file.
87735
87736         Module safe-read.
87737         * m4/safe-read.m4: New file.
87738
87739         Module safe-write.
87740         * m4/safe-write.m4: New file.
87741
87742         Module closeout.
87743         * m4/closeout.m4: New file.
87744
87745         Module stdio-safer.
87746         * m4/stdio-safer.m4: New file.
87747
87748         Module getpass.
87749         * m4/getpass.m4: New file.
87750
87751         Module getugroups.
87752         * m4/getugroups.m4: New file.
87753
87754         Module group-member.
87755         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
87756         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
87757
87758         Module idcache.
87759         * m4/idcache.m4: New file.
87760
87761         Module userspec.
87762         * m4/userspec.m4: New file.
87763
87764         Module gettime.
87765         * m4/clock_time.m4: New file.
87766         * m4/gettime.m4: New file.
87767
87768         Module settime.
87769         * m4/settime.m4: New file.
87770
87771         Module posixtm.
87772         * m4/posixtm.m4: New file.
87773
87774         Module gethostname.
87775         * m4/gethostname.m4: New file.
87776
87777         Module canon-host.
87778         * m4/canon-host.m4: New file.
87779
87780         Module gettext.
87781         * m4/codeset.m4: New file, from gettext-0.11.5.
87782         * m4/gettext.m4: New file, from gettext-0.11.5.
87783         * m4/glibc21.m4: New file, from gettext-0.11.5.
87784         * m4/iconv.m4: New file, from gettext-0.11.5.
87785         * m4/intdiv0.m4: New file, from gettext-0.11.5.
87786         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
87787         * m4/inttypes.m4: New file, from gettext-0.11.5.
87788         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
87789         * m4/isc-posix.m4: New file, from gettext-0.11.5.
87790         * m4/lcmessage.m4: New file, from gettext-0.11.5.
87791         * m4/lib-ld.m4: New file, from gettext-0.11.5.
87792         * m4/lib-link.m4: New file, from gettext-0.11.5.
87793         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
87794         * m4/progtest.m4: New file, from gettext-0.11.5.
87795         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
87796         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
87797         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
87798
87799         Module localcharset.
87800         * m4/localcharset.m4: New file.
87801
87802         Module hard-locale.
87803         * m4/hard-locale.m4: New file.
87804
87805         Module mbswidth.
87806         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
87807         onceonly macros.
87808         * m4/mbrtowc.m4: Add comment.
87809
87810         Module memcasecmp.
87811         * m4/memcasecmp.m4: New file.
87812
87813         Module memcoll.
87814         * m4/memcoll.m4: New file.
87815
87816         Module unicodeio.
87817         * m4/unicodeio.m4: New file.
87818
87819         Module rpmatch.
87820         * m4/rpmatch.m4: New file.
87821
87822         Module yesno.
87823         * m4/yesno.m4: New file.
87824
87825         Module exitfail.
87826         * m4/exitfail.m4: New file.
87827
87828         Module c-stack.
87829         * m4/c-stack.m4 (gl_C_STACK): New macro.
87830         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
87831
87832         Module error.
87833         * m4/error.m4 (gl_ERROR): New macro.
87834         (jm_PREREQ_ERROR): Use onceonly macros.
87835
87836         Module fatal.
87837         * m4/fatal.m4: New file.
87838
87839         Module getloadavg.
87840         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
87841         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
87842
87843         Module getpagesize.
87844         * m4/getpagesize.m4: New file.
87845
87846         Module getusershell.
87847         * m4/getusershell.m4: New file.
87848
87849         Module physmem.
87850         * m4/physmem.m4: New file.
87851
87852         Module posixver.
87853         * m4/posixver.m4: New file.
87854
87855         Module quotearg.
87856         * m4/quotearg.m4: New file.
87857
87858         Module quote.
87859         * m4/quote.m4: New file.
87860
87861         Module readutmp.
87862         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
87863
87864         Module sig2str.
87865         * m4/sig2str.m4: New file.
87866
87867         Other.
87868         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
87869         ulonglong.m4.
87870         * m4/intmax_t.m4: New file.
87871         * m4/d-type.m4: Indentation.
87872         * m4/jm-macros.m4: Update.
87873         * m4/prereq.m4 (jm_PREREQ): Update.
87874         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
87875         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
87876         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
87877         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
87878         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
87879         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
87880         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
87881         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
87882         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
87883         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
87884         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
87885         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
87886         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
87887         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
87888         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
87889         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
87890         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
87891         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
87892         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
87893
87894 2002-12-24  Bruno Haible  <bruno@clisp.org>
87895
87896         * MODULES.txt: Update according to m4/ changes.
87897
87898         Module gettext.
87899         * config.rpath: New file, from gettext-0.11.5.
87900
87901         * modules/*: New module descriptions.
87902         * gnulib-tool: New file.
87903         * MODULES.html.sh: New file.
87904
87905 2002-12-21  Karl Berry  <karl@gnu.org>
87906
87907         * doc/fdl.texi: update to version 1.2.
87908
87909 2002-12-19  Karl Berry  <karl@gnu.org>
87910
87911         * config/config.guess: update from prep.
87912
87913 2002-12-18  Bruno Haible  <bruno@clisp.org>
87914
87915         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
87916         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
87917
87918 2002-12-17  Bruno Haible  <bruno@clisp.org>
87919
87920         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
87921         stdlib.h, string.h.
87922
87923 2002-12-17  Bruno Haible  <bruno@clisp.org>
87924
87925         * lib/canon-host.c (strdup): Remove unused declaration.
87926
87927         * lib/fsusage.c: Include full_read.h.
87928         (get_fs_usage): Use full_read instead of safe_read.
87929
87930         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
87931
87932 2002-12-12  Karl Berry  <karl@gnu.org>
87933
87934         * config/config.guess: update from prep.
87935
87936 2002-12-11  Bruno Haible  <bruno@clisp.org>
87937
87938         * m4/setenv.m4: New file, from gettext-0.11.5.
87939
87940 2002-12-11  Bruno Haible  <bruno@clisp.org>
87941
87942         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
87943         not unsetenv().
87944         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
87945         modifications:
87946
87947         2002-12-11  Bruno Haible  <bruno@clisp.org>
87948
87949                 * setenv.c (alloca): Fall back to malloc.
87950                 (freea): New macro.
87951                 (setenv): Use freea() to free memory allocated with alloca().
87952
87953         2002-11-13  Bruno Haible  <bruno@clisp.org>
87954
87955                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
87956                 function declarations.
87957                 * unsetenv.c (unsetenv): Likewise.
87958
87959         2002-03-04  Bruno Haible  <bruno@clisp.org>
87960
87961                 Portability to AIX 4.3.3.
87962                 * unsetenv.c: New file, extracted from setenv.c.
87963                 * setenv.c: Move the unsetenv() function to unsetenv.c.
87964
87965         2001-12-20  Bruno Haible  <bruno@clisp.org>
87966
87967                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
87968                 use malloc instead. For SunOS 4.
87969
87970         2001-12-11  Bruno Haible  <bruno@clisp.org>
87971
87972                 * setenv.c: Declare alloca.
87973                 (compar_fn_t): New typedef.
87974                 (KNOWN_VALUE, STORE_VALUE): Use it.
87975
87976         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
87977         setenv.h.
87978
87979 2002-12-10  Paul Eggert  <eggert@twinsun.com>
87980
87981         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
87982         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
87983         Choose values that are less likely to collide with system fnmatch
87984         options.
87985         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
87986         defined (e.g., a pure POSIX system).
87987         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
87988         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
87989
87990 2002-12-06  Paul Eggert  <eggert@twinsun.com>
87991
87992         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
87993         a pain in practice to deal with generated m4 files.  This change
87994         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
87995
87996         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
87997         and jm-glibc-io.m4, as they are no longer a special case.
87998         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
87999         kludge and the auto-generation stuff.  Check only whether the
88000         functions are declared, not whether they exist, since older hosts
88001         that don't declare the functions can't use the optimization anyway.
88002
88003 2002-12-06  Jim Meyering  <jim@meyering.net>
88004
88005         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
88006
88007         Merge in changes from libc's misc/error.c, in preparation
88008         for the merge of gnulib's changes back into libc.
88009
88010         * lib/error.c (_): Define only if not already defined.
88011         Move definition to follow all #include directives.
88012         Include unlocked-io.h only if !_LIBC.
88013         [_LIBC]: Include <libio/libioP.h>.
88014         [USE_IN_LIBIO]: Include <libio/iolibio.h>
88015         (fflush): Tweak definition to use INTUSE.
88016         (putc): Define.
88017
88018 2002-12-05  Paul Eggert  <eggert@twinsun.com>
88019
88020         * lib/alloca.c [defined emacs]: Include "lisp.h".
88021         (xalloc_die) [defined emacs]: New macro.
88022         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
88023         [! defined emacs]: Include <xalloc.h>.
88024         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
88025         (pointer): Typedef to POINTER_TYPE *.
88026         (malloc): Remove decl; we now always use xmalloc.
88027         (alloca): Use old-style definition, since Emacs needs this.
88028         Check for arithmetic overflow when computing combined size.
88029
88030 2002-12-04  Paul Eggert  <eggert@twinsun.com>
88031
88032         Do not generate unlocked-io.h automatically, since it's easier to
88033         maintain it by hand.
88034
88035         * lib/unlocked-io.h: New file, from GNU diffutils,
88036         but with proper copyright notice and attribution.
88037         * lib/gen-uio: Remove.
88038         * lib/Makefile.am: Add copyright notice.
88039         (libfetish_a_SOURCES): Add unlocked-io.h.
88040         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
88041         (DISTCLEANFILES, io_functions): Remove macros.
88042         (EXTRA_DIST): Remove gen_uio.
88043         (unlocked-io.h): Remove rule.
88044
88045 2002-12-04  Jim Meyering  <jim@meyering.net>
88046
88047         Reflect the fact that stat.c and lstat.c are no longer generated.
88048         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
88049         (DISTCLEANFILES): Likewise.
88050         (EXTRA_DIST): Likewise.
88051         (all_local): Don't depend on stat.c or lstat.c.
88052         (stat.c, lstat.c): Remove rules.
88053         (EXTRA_DIST): Remove xstat.in.
88054
88055         * lib/xstat.in: Remove file.  Contents moved into stat.c.
88056         * lib/stat.c: New file.  Contents mostly from xstat.in.
88057         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
88058         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
88059
88060         * lib/safe-read.c: Rework so that it may serve to define safe_write,
88061         too.
88062         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
88063
88064 2002-12-03  Jim Meyering  <jim@meyering.net>
88065
88066         * lib/safe-read.c, safe-write.c: Change variable names and comments,
88067         but not semantics, to minimize the differences between these two files.
88068         (safe_read): Change comment to mention SAFE_READ_ERROR.
88069
88070         * lib/safe-read.c (IS_EINTR): Define.
88071         (safe_read): Use IS_EINTR in place of in-function cpp directives.
88072
88073 2002-12-02  Jim Meyering  <jim@meyering.net>
88074
88075         * lib/safe-read.c (EINTR): Define.
88076         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
88077         (INT_MAX): Provide fallback.
88078         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
88079
88080         * lib/safe-read.h (SAFE_READ_ERROR): Define.
88081
88082 2002-12-02  Bruno Haible  <bruno@clisp.org>
88083
88084         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
88085         Define, taken from safe-read.c.
88086         (INT_MAX): Provide fallback.
88087         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
88088         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
88089
88090         * lib/safe-read.c (EINTR): Remove definition.
88091         (safe_read): Don't use EINTR if it is absent.
88092
88093 2002-12-01  Jim Meyering  <jim@meyering.net>
88094
88095         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
88096         zero.
88097         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
88098
88099 2002-11-27  Paul Eggert  <eggert@twinsun.com>
88100
88101         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
88102         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
88103         with `if (! (value < limit)) abort ();', for readability.
88104
88105 2002-11-26  Karl Berry  <karl@gnu.org>
88106
88107         * lib/strdup.c: copy from libc again, with jim's ok.
88108         * lib/.cppi-disable: re-add strdup.c
88109
88110 2002-11-25  Karl Berry  <karl@gnu.org>
88111
88112         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
88113         instead of "strtol.c".
88114
88115 2002-11-25  Karl Berry  <karl@gnu.org>
88116
88117         * config/install-sh: update from automake for variable quoting, $0 in
88118         error msgs, etc.
88119
88120         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
88121         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
88122         entry.
88123
88124 2002-11-25  Jim Meyering  <jim@meyering.net>
88125
88126         * lib/mktime.c: Sync from libc, now that it has the latest fix.
88127
88128 2002-11-24  Karl Berry  <karl@gnu.org>
88129
88130         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
88131         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
88132
88133 2002-11-24  Jim Meyering  <jim@meyering.net>
88134
88135         Update from coreutils:
88136
88137         * lib/mktime.c: Merge in changes from libc.
88138
88139         Avoid a link-time failure on some Linux systems.
88140         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
88141         (otherwise).
88142         (__mon_yday): Declare with the STATIC attribute.
88143         (__mktime_internal): Likewise.
88144         Based on a report from Greg Schafer.
88145
88146 2002-11-23  Jim Meyering  <jim@meyering.net>
88147
88148         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
88149         Use `unsigned', not `int', as type of index.
88150
88151         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
88152
88153         * lib/fsusage.c: Remove unneeded parentheses around operands of
88154         `defined'.
88155
88156 2002-11-22  Paul Eggert  <eggert@twinsun.com>
88157
88158         * lib/quotearg.h: Allow multiple inclusion by surrounding with
88159         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
88160         so that we can be included first.
88161         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
88162         * lib/quotearg.c: Include quotearg.h immediately after config.h.
88163         No need to include stddef.h or sys/types.h any more.
88164         Surround local include files with "", not "<>".
88165         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
88166         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
88167         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
88168         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
88169         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
88170         (ISPRINT): Remove; no longer needed now that we assume C89.
88171
88172         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
88173         Preserve errno.
88174
88175         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
88176         quotearg_char): Use SIZE_MAX rather than
88177         (size_t) -1 when we are talking about "infinity".
88178
88179         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
88180
88181 2002-11-22  Paul Eggert  <eggert@twinsun.com>
88182
88183         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
88184         hint that one should use `if (! x) abort ();' rather than `assert
88185         (x);', and anyway it's one less thing to worry about configuring.
88186         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
88187         hash_rehash, hash_insert): Use abort rather than assert.
88188
88189 2002-11-22  Bruno Haible  <bruno@clisp.org>
88190
88191         * lib/safe-read.h: Assume C89. Add comments.
88192         (safe_read): Change return type to size_t.
88193         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
88194         byte counts > SSIZE_MAX correctly.
88195         * lib/safe-write.h: New file.
88196         * lib/safe-write.c: New file.
88197         * lib/full-read.h: New file.
88198         * lib/full-read.c: New file.
88199         * lib/full-write.h: Assume C89. Add comments.
88200         * lib/full-write.c: Include safe-write.h.
88201         (full_write): Rewritten to use safe_write.
88202         Suggested by Jim Meyering and Paul Eggert.
88203
88204 2002-11-21  Jim Meyering  <jim@meyering.net>
88205
88206         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
88207
88208         Merge in changes from the coreutils.
88209
88210         2002-09-25  Paul Eggert  <eggert@twinsun.com>
88211         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
88212         <stdint.h>.
88213         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
88214         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
88215         int.  Work more efficiently if X is the same width as uintmax_t.
88216         Do not compare X to -1, to avoid bogus compiler warning.
88217         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
88218         Don't assume that f_frsize and f_bsize are the same type.
88219
88220         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
88221         warning on FreeBSD.
88222
88223         * lib/makepath.c (make_path): Restore umask *before* creating the final
88224         component.
88225         (make_path): Minor reformatting.
88226
88227         * lib/xmalloc.c: Adjust to work with new autoconf macros,
88228         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
88229         HAVE_MALLOC/HAVE_REALLOC.
88230
88231         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
88232         dummy ones.  At least on GNU/Linux systems, `auto' means something
88233         else.
88234         From Michael Stone.
88235
88236 2002-11-21  Bruno Haible  <bruno@clisp.org>
88237
88238         Remove case insensitive option matching.
88239         * lib/argmatch.h (argcasematch): Remove declaration.
88240         (ARGCASEMATCH): Remove macro.
88241         (__xargmatch_internal): Remove case_sensitive argument.
88242         (XARGMATCH): Update.
88243         (XARGCASEMATCH): Remove macro.
88244         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
88245         case_sensitive argument.
88246         (argcasematch): Remove function.
88247         (__xargmatch_internal): Remove case_sensitive argument.
88248         (main): Use XARGMATCH instead of XARGCASEMATCH.
88249
88250         * lib/xmalloc.c: Change compile-time error message. Add comment about
88251         required autoconf version.
88252
88253 2002-11-20  Paul Eggert  <eggert@twinsun.com>
88254
88255         Merge argmatch cleanups from Bison.  Assume C89.
88256
88257         * lib/argmatch.c: Include config.h here, not in argmatch.h.
88258         Include stdlib.h, for EXIT_FAILURE.
88259         Always include <string.h>, since we assume C89.
88260         (EXIT_FAILURE): Remove pre-C89 bug workaround.
88261         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
88262         Include <stddef.h> instead, since it's all we need for size_t.
88263         (PARAMS): Remove.  All uses removed.
88264         (ARRAY_CARDINALITY): Do not bother to #undef.
88265         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
88266         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
88267         Remove unnecessary parentheses.
88268         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
88269         Insert necessary parentheses.
88270         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
88271         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
88272
88273 2002-11-19  Bruno Haible  <bruno@clisp.org>
88274
88275         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
88276         * lib/mbswidth.h: Include <stddef.h>, for size_t.
88277
88278         * lib/mbswidth.h (PARAMS): Remove macro.
88279         (mbswidth, mbsnwidth): Use ANSI C function declarations.
88280         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
88281
88282         * lib/gcd.h (PARAMS): Remove macro.
88283         (gcd): Use ANSI C function declarations.
88284         * lib/gcd.c (gcd): Likewise.
88285
88286 2002-11-15  Bruno Haible  <bruno@clisp.org>
88287
88288         * lib/strcspn.c: Include <stddef.h>.
88289         (strcspn): Use ANSI C function declaration. Change return type to
88290         size_t. Use NULL.
88291         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
88292         (strpbrk): Use NULL.
88293         * lib/strpbrk.h (PARAMS): Remove macro.
88294         (strpbrk): Use ANSI C function declaration.
88295         * lib/strstr.c: Don't include <sys/types.h>.
88296         * lib/strstr.h (PARAMS): Remove macro.
88297         (strstr): Use ANSI C function declarations.
88298
88299 2002-11-14  Karl Berry  <karl@gnu.org>
88300
88301         * config/mkinstalldirs: `do' on separate line, instead of
88302         `for var; do'.
88303
88304 2002-11-06  Bruno Haible  <bruno@clisp.org>
88305
88306         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
88307         * lib/gcd.c (gcd): Likewise.
88308
88309 2002-11-05  Bruno Haible  <bruno@clisp.org>
88310
88311         * lib/gcd.h: New file, from gettext-0.11.5.
88312         * lib/gcd.c: New file, from gettext-0.11.5.
88313
88314 2002-11-05  Bruno Haible  <bruno@clisp.org>
88315
88316         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
88317         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
88318         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
88319         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
88320
88321         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
88322         <libintl.h>.
88323         * lib/makepath.c: Include gettext.h instead of <locale.h> and
88324         <libintl.h>.
88325
88326         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
88327         * lib/human.c: Include gettext.h instead of <libintl.h>.
88328         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
88329         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
88330         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
88331         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
88332         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
88333         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
88334         (textdomain): Remove definition.
88335         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
88336
88337         * lib/long-options.c: Remove include of <libintl.h> and definition of
88338         _.
88339         * lib/same.c: Remove include of <libintl.h> and definition of _.
88340
88341 2002-11-04  Owen Taylor  <otaylor@redhat.com>
88342
88343         * lib/config.charset: A few additions for Solaris.
88344
88345 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
88346
88347         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
88348         * lib/localcharset.c (locale_charset): Declare as extern "C".
88349
88350 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
88351
88352         * lib/config.charset: msdos in uk_UA uses CP1125.
88353
88354 2002-11-04  Bruno Haible  <bruno@clisp.org>
88355
88356         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
88357         * lib/strcase.h: New file, from GNU gettext-0.11.5.
88358         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
88359         * lib/strstr.h: New file, from GNU gettext-0.11.5.
88360         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
88361
88362 2002-11-04  Bruno Haible  <bruno@clisp.org>
88363
88364         * lib/localcharset.c (locale_charset): Don't return an empty string.
88365
88366 2002-11-04  Bruno Haible  <bruno@clisp.org>
88367
88368         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
88369         aliases.
88370
88371 2002-11-04  Bruno Haible  <bruno@clisp.org>
88372
88373         * lib/config.charset: Update for newest glibc. Add canonical names
88374         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
88375
88376 2002-11-04  Bruno Haible  <bruno@clisp.org>
88377
88378         * lib/config.charset: Add support for NetBSD.
88379
88380 2002-11-04  Bruno Haible  <bruno@clisp.org>
88381
88382         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
88383
88384 2002-11-01  Bruno Haible  <bruno@clisp.org>
88385
88386         * configure.in: Add AC_CONFIG_AUX_DIR call.
88387         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
88388         test/Makefile.
88389         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
88390
88391 2002-09-28  Karl Berry  <karl@gnu.org>
88392
88393         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
88394         installed automake until the next release, since changes have been
88395         made.
88396
88397 2002-09-25  Karl Berry  <karl@gnu.org>
88398
88399         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
88400         * lib/getopt*: copy from libc/posix.
88401         * lib/gettext.h: copy from gettext.
88402         * lib/.cppi-disable: add strdup.c, gettext.h.
88403
88404 2002-09-25  Karl Berry  <karl@gnu.org>
88405
88406         * config/srclist.txt: enable gettext.h check.
88407         * config/config.{guess,sub}: update from prep.
88408         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
88409                 from automake 1.6.3.
88410         See srclist*.
88411
88412 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
88413
88414         * regex.c (PATFETCH): Remove the translating fetch.
88415         (PATFETCH_RAW): Rename to PATFETCH.
88416         (set_image_of_range): New fun.
88417         (SET_RANGE_TABLE_WORK_AREA): Use it.
88418         (regex_compile): Don't translate the pattern chars so eagerly.
88419         Only do it when inserting an `exactn' bytecode or when handling
88420         a char-range.
88421         (mutually_exclusive_p): Avoid empty statement.
88422
88423 2002-07-06  Jim Meyering  <meyering@lucent.com>
88424
88425         * m4/README: Don't mention Makefile.am.in.
88426         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
88427
88428 2002-07-01  Jim Meyering  <meyering@lucent.com>
88429
88430         * lib/c-stack.c: Include sys/time.h.
88431         From Volker Borchert.
88432
88433 2002-06-26  Paul Eggert  <eggert@twinsun.com>
88434
88435         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
88436
88437 2002-06-26  Paul Eggert  <eggert@twinsun.com>
88438
88439         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
88440         New macro.  Use it uniformly instead of
88441         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
88442         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
88443         reported by Vin Shelton.
88444
88445 2002-06-22  Paul Eggert  <eggert@twinsun.com>
88446
88447         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
88448         Do not assume SA_SIGINFO behavior.
88449         Bug reported by Jim Meyering on NetBSD 1.5.2.
88450
88451 2002-06-22  Jim Meyering  <meyering@lucent.com>
88452
88453         * m4/c-stack.m4: New file, from diffutils-2.8.2.
88454         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
88455
88456         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
88457         now that configure.ac uses AC_GNU_SOURCE.
88458         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
88459         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
88460
88461         Update to latest tools.  Suggestions from Paul Eggert.
88462         * m4/stdbool.m4: New file, from diffutils-2.8.2.
88463         * m4/gnu-source.m4: Update from diffutils-2.8.2.
88464         * m4/fnmatch.m4: Likewise.
88465         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
88466         to AC_HEADER_STDBOOL
88467
88468 2002-06-22  Jim Meyering  <meyering@lucent.com>
88469
88470         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
88471         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
88472
88473 2002-06-22  Jim Meyering  <meyering@lucent.com>
88474
88475         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
88476
88477         * lib/exitfail.c, exitfail.h: Likewise.
88478         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
88479
88480         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
88481         of fnmatch.h.
88482         (EXTRA_DIST): Add fnmatch_loop.c.
88483         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
88484
88485         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
88486         * lib/fnmatch.c: Update from diffutils-2.8.2.
88487         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
88488         * lib/fnmatch.h: Remove file.
88489
88490 2002-06-21  Jim Meyering  <meyering@lucent.com>
88491
88492         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
88493         * m4/mbrtowc.m4: Likewise.
88494
88495         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
88496         * m4/mbswidth.m4: Reflect name change:
88497         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
88498         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
88499
88500         * m4/lib-link.m4: Update from gettext-0.11.2.
88501         * m4/gettext.m4: Likewise.
88502
88503         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
88504         From Alfred M. Szmidt.
88505
88506 2002-06-18  Paul Eggert  <eggert@twinsun.com>
88507
88508         * lib/file-type.h: Report an error if neither S_ISREG nor
88509         S_IFREG is defined, instead of using a test specific to glibc
88510         2.2.  This should be safe, since POSIX requires S_ISREG and
88511         Unix Version 7 had S_IFREG.  We don't need to check for
88512         <sys/types.h> since we don't use any symbols that it defines.
88513
88514 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
88515
88516         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
88517         $@-t, so that each temporary file name is unique and valid in the first
88518         8 characters, for operation under DOS.
88519
88520 2002-06-15  Paul Eggert  <eggert@twinsun.com>
88521
88522         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
88523
88524 2002-06-15  Jim Meyering  <meyering@lucent.com>
88525
88526         Work even with DJGPP 2.03, which lacks support for symlinks.
88527         From Richard Dawe.
88528         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
88529         is defined.
88530         * lib/lchown.c (S_ISLNK): Likewise.
88531
88532 2002-06-15  Jim Meyering  <meyering@lucent.com>
88533
88534         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
88535         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
88536         have been included before this file.
88537
88538 2002-06-14  Jim Meyering  <meyering@lucent.com>
88539
88540         * lib/file-type.h: Use the version from diffutils-2.8.2.
88541         * lib/file-type.c: Likewise.
88542
88543 2002-06-07  Jim Meyering  <meyering@lucent.com>
88544
88545         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
88546         They're needed at least for NetBSD 1.5.2.
88547         ($statxfs_includes): Include those same headers.
88548         ($statxfs_includes): Include sys/vfs.h if available.
88549         ($statxfs_includes): Likewise for sys/statvfs.h.
88550         Check for the following members in both structs statfs and statvfs:
88551         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
88552
88553 2002-06-01  Jim Meyering  <meyering@lucent.com>
88554
88555         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
88556         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
88557
88558 2002-05-28  Jim Meyering  <meyering@lucent.com>
88559
88560         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
88561         Reported by Volker Borchert.
88562
88563 2002-05-27  Jim Meyering  <meyering@lucent.com>
88564
88565         Fix a problem seen only on nonconforming systems whereby ls.c's
88566         use of localtime, and then of gettimeofday would cause trouble:
88567         the localtime call used to initialize rpl_gettimeofday's save
88568         mechanism would clobber ls's current local time information so
88569         that in any long listing the first file would always be listed
88570         with date 1970-01-01.  Analysis by Volker Borchert.
88571
88572         * lib/gettimeofday.c (localtime): Undefine.
88573         (rpl_localtime): New function.
88574
88575 2002-05-27  Jim Meyering  <meyering@lucent.com>
88576
88577         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
88578         localtime.
88579
88580         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
88581         use the replacement function; it wouldn't resolve at link time.
88582         Reported by Volker Borchert.
88583
88584 2002-05-22  Jim Meyering  <meyering@lucent.com>
88585
88586         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
88587         file-type.h.
88588         * lib/file-type.h: New file.
88589         * lib/file-type.c (file_type): New file/function.  Extracted from
88590         diffutils.
88591
88592 2002-04-30  Jim Meyering  <meyering@lucent.com>
88593
88594         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
88595
88596 2002-04-29  Paul Eggert  <eggert@twinsun.com>
88597
88598         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
88599
88600 2002-04-29  Paul Eggert  <eggert@twinsun.com>
88601
88602         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
88603         Do not check for alloca.h (no longer used) or stdbool.h (was never
88604         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
88605
88606 2002-04-29  Paul Eggert  <eggert@twinsun.com>
88607
88608         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
88609
88610 2002-04-29  Jim Meyering  <meyering@lucent.com>
88611
88612         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
88613         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
88614         Use AC_FUNC_STRNLEN here instead.
88615
88616         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
88617         With autoconf-2.53a, it's part of AC_PROG_CC.
88618
88619 2002-04-28  Paul Eggert  <eggert@twinsun.com>
88620
88621         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
88622         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
88623
88624 2002-04-28  Paul Eggert  <eggert@twinsun.com>
88625
88626         * lib/sig2str.h, lib/sig2str.c: New files.
88627         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
88628
88629 2002-04-28  Paul Eggert  <eggert@twinsun.com>
88630
88631         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
88632         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
88633         of 127, since 64 is the largest conceivable number for ancient
88634         nonstandard hosts.
88635         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
88636
88637 2002-04-28  Jim Meyering  <meyering@lucent.com>
88638
88639         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
88640
88641 2002-04-24  Jim Meyering  <meyering@lucent.com>
88642
88643         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
88644         (jm_PREREQ): Use it.
88645
88646         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
88647         mach/mach.h fcntl.h.
88648         Check for this function: setlocale.
88649
88650 2002-04-24  Jim Meyering  <meyering@lucent.com>
88651
88652         * lib/gettext.h: New file, from Gettext.
88653         * lib/Makefile.am (INCLUDES): Remove -I../intl.
88654         (libfetish_a_SOURCES): Add gettext.h.
88655
88656 2002-04-16  Jim Meyering  <meyering@lucent.com>
88657
88658         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
88659         ut_pid, ut_id, ut_exit.
88660
88661 2002-04-16  Jim Meyering  <meyering@lucent.com>
88662
88663         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
88664         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
88665         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
88666
88667 2002-04-12  Jim Meyering  <meyering@lucent.com>
88668
88669         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
88670         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
88671         existence of the getmntinfo function.  Needed for Darwin 5.3.
88672
88673         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
88674         This is necessary at least on Darwin 5.3.
88675
88676         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
88677         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
88678         strnlen.o in the library, and that makes some versions of ranlib
88679         object.
88680
88681 2002-04-12  Jim Meyering  <meyering@lucent.com>
88682
88683         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
88684
88685 2002-04-09  Jim Meyering  <meyering@lucent.com>
88686
88687         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
88688         to be more precise.  Rather than saying we're checking whether the
88689         function `works', say what we're testing.
88690         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
88691         Reported by Bruno Haible.
88692
88693 2002-03-10  Jim Meyering  <meyering@lucent.com>
88694
88695         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
88696         Suggestion from Santiago Vila.
88697
88698 2002-03-08  Jim Meyering  <meyering@lucent.com>
88699
88700         * lib/rename.c: Mention that this wrapper is needed also on
88701         mips-dec-ultrix4.4 systems.
88702
88703 2002-03-02  Jim Meyering  <meyering@lucent.com>
88704
88705         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
88706         not HAVE_CLOCK_SETTIME.
88707
88708 2002-02-27  Paul Eggert  <eggert@twinsun.com>
88709
88710         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
88711         Check for clock_settime.
88712
88713 2002-02-27  Paul Eggert  <eggert@twinsun.com>
88714
88715         * lib/nanosleep.h: Rename to....
88716         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
88717
88718         * lib/gettime.c: New file.
88719         * lib/settime.c: New file.
88720         * lib/stime.c: Remove.
88721
88722         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
88723         timespec.h.  Remove nanosleep.h.
88724
88725 2002-02-25  Paul Eggert  <eggert@twinsun.com>
88726
88727         * m4/acl.m4: New file.
88728         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
88729         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
88730
88731 2002-02-25  Paul Eggert  <eggert@twinsun.com>
88732
88733         * lib/acl.c, lib/acl.h: New files.
88734         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
88735
88736 2002-02-24  Jim Meyering  <meyering@lucent.com>
88737
88738         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
88739         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
88740         cause trouble.  Reported by Nelson Beebe.
88741
88742 2002-02-23  Paul Eggert  <eggert@twinsun.com>
88743
88744         * lib/path-concat.c (xpath_concat): Reorder code to pacify
88745         compilers that don't know that xalloc_die never returns.
88746
88747 2002-02-20  Jim Meyering  <meyering@lucent.com>
88748
88749         * lib/getdate.c: Regenerate using bison-1.33.
88750
88751 2002-02-17  Jim Meyering  <meyering@lucent.com>
88752
88753         * config/config.guess (main): Don't use `head -1'; it's no longer
88754         portable. Use `sed 1q' instead.
88755
88756 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
88757
88758         * m4/codeset.m4: Upgrade to gettext-0.11.
88759         * m4/gettext.m4: Upgrade to gettext-0.11.
88760         * m4/glibc21.m4: Upgrade to gettext-0.11.
88761         * m4/iconv.m4: Upgrade to gettext-0.11.
88762         * m4/isc-posix.m4: Upgrade to gettext-0.11.
88763         * m4/lcmessage.m4: Upgrade to gettext-0.11.
88764         * m4/lib-ld.m4: New file, from gettext-0.11.
88765         * m4/lib-link.m4: New file, from gettext-0.11.
88766         * m4/lib-prefix.m4: New file, from gettext-0.11.
88767         * m4/progtest.m4: Upgrade to gettext-0.11.
88768
88769 2002-02-15  Paul Eggert  <eggert@twinsun.com>
88770
88771         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
88772         (jm_PREREQ): Use it.
88773
88774 2002-02-15  Paul Eggert  <eggert@twinsun.com>
88775
88776         * lib/posixver.c, lib/posixver.h: New files.
88777         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
88778
88779 2002-02-02  Paul Eggert  <eggert@twinsun.com>
88780             Bruno Haible  <bruno@clisp.org>
88781
88782         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
88783         (fwrite_success_callback): New declaration.
88784         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
88785         print_unicode_char. Call failure callback instead of error.
88786         (fwrite_success_callback): New function.
88787         (exit_failure_callback): New function.
88788         (fallback_failure_callback): New function.
88789         (print_unicode_char): Call unicode_to_mb.
88790
88791 2002-01-26  Jim Meyering  <meyering@lucent.com>
88792
88793         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
88794         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
88795
88796 2002-01-26  Jim Meyering  <meyering@lucent.com>
88797
88798         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
88799
88800 2002-01-22  Paul Eggert  <eggert@twinsun.com>
88801
88802         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
88803
88804 2002-01-22  Jim Meyering  <meyering@lucent.com>
88805
88806         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
88807         Otherwise, some versions of automake would omit the rule that makes
88808         Makefile from Makefile.in.
88809
88810 2002-01-21  Paul Eggert  <eggert@twinsun.com>
88811
88812         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
88813         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
88814         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
88815         (memcoll): Set errno to zero if there is no error.
88816
88817         * lib/quotearg.c (quotearg_buffer_restyled):
88818         Fix bug with quoting buffers containing NUL when backslashing escapes.
88819         This bug was exposed by the other changes in this patch.
88820         (quotearg_n_options): New arg ARGSIZE.
88821         All callers changed.
88822         (quoting_options_from_style): New function.
88823         (quotearg_n_style): Use it.
88824         (quotearg_n_style_mem): New function.
88825
88826         * lib/quotearg.h (quotearg_n_style_mem): New function.
88827
88828 2002-01-19  Jim Meyering  <meyering@lucent.com>
88829
88830         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
88831         Remove useless quotes: DF_PROG="df".
88832         * m4/strnlen.m4: New file.
88833
88834 2002-01-16  Paul Eggert  <eggert@twinsun.com>
88835
88836         * lib/backupfile.c (ISDIGIT): Comment fix.
88837         * lib/getdate.y (ISDIGIT): Likewise.
88838         * lib/posixtm.c (ISDIGIT, year): Likewise.
88839         * lib/strverscmp.c (ISDIGIT): Likewise.
88840         * lib/userspec.c (ISDIGIT): Likewise.
88841
88842 2002-01-16  Jim Meyering  <meyering@lucent.com>
88843
88844         * lib/getdate.y: Add three semicolons, each just before a closing
88845         brace. Bison (as of version 1.31) no longer papers over that mistake.
88846
88847 2002-01-05  Jim Meyering  <meyering@lucent.com>
88848
88849         * lib/version-etc.c (version_etc_copyright): Update copyright year.
88850
88851 2001-12-19  Paul Eggert  <eggert@twinsun.com>
88852
88853         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
88854         not silently exit merely because the output buffer happens to
88855         have nothing pending.
88856
88857 2001-12-18  Paul Eggert  <eggert@twinsun.com>
88858
88859         See the big note in ../ChangeLog.
88860         * lib/human.c (suffixes): Prefer K to k for 1024.
88861         (generate_suffix_backwards): New function.
88862         (human_readable_inexact): Use it.
88863         * lib/xstrtol.c (__xstrtol): If there is no number but there
88864         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
88865         Accept 'K' as well as 'k'.
88866
88867 2001-12-15  Jim Meyering  <meyering@lucent.com>
88868
88869         * lib/regex.h (__restrict_arr): Update from libc.
88870
88871         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
88872         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
88873         (STREQ): Define.
88874
88875 2001-12-14  Jim Meyering  <meyering@lucent.com>
88876
88877         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
88878         Suggestion from Bruno Haible.
88879
88880 2001-12-10  Jim Meyering  <meyering@lucent.com>
88881
88882         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
88883         xrealloc, Instead, include "xalloc.h".
88884         (initbuffer): Don't cast xmalloc return value to char*.
88885         (readline): Reword comment.
88886         Don't cast xrealloc return value to char*
88887         Return NULL, not 0.
88888
88889 2001-12-09  Jim Meyering  <meyering@lucent.com>
88890
88891         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
88892         about `signed and unsigned type in conditional expression'.
88893         * lib/posixtm.c (posix_time_parse): Likewise.
88894
88895         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
88896
88897         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
88898         to avoid a pedantic warning.
88899
88900         * lib/getstr.c: Don't include assert.h.
88901         (getstr): Remove warning-evoking assertions.
88902         Return -1 if offset parameter is out of bounds.
88903         Change the type of a local from int to size_t.
88904
88905         * lib/strftime.c (my_strftime_localtime_r): Include this function
88906         definition in the `#if ! HAVE_TM_GMTOFF' block.
88907
88908         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
88909         Include xalloc.h instead.
88910
88911 2001-12-02  Jim Meyering  <meyering@lucent.com>
88912
88913         * lib/tempname.c: Don't declare getenv, thus reverting the change of
88914         2001-11-18.  It's no longer necessary, now that stdlib.h is always
88915         included.
88916
88917         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
88918         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
88919
88920 2001-11-30  Akim Demaille  <akim@epita.fr>
88921
88922         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
88923         before being defined.
88924
88925 2001-11-27  Paul Eggert  <eggert@twinsun.com>
88926
88927         * lib/quotearg.h (quotearg_n, quotearg_n_style):
88928         First arg is int, not unsigned.
88929         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
88930         (SIZE_MAX, UINT_MAX): New macros.
88931         (quotearg_n_options): Abort if N is negative.
88932         Avoid overflow check on hosts where size_t is 64 bits and int
88933         is 32 bits, as overflow is impossible there.
88934         Fix off-by-one typo that caused unnecessary reallocation.
88935
88936 2001-11-27  Jim Meyering  <meyering@lucent.com>
88937
88938         * lib/tempname.c: Merge with version from libc.
88939         * lib/regex.c: Likewise.
88940
88941         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
88942         systems for which STDC_HEADERS is 0, it was not included, resulting in
88943         a warning about an integer-to-pointer conversion problem with getenv.
88944         Reported by Volker Borchert.
88945
88946 2001-11-26  Jim Meyering  <meyering@lucent.com>
88947
88948         * lib/gtod.h: Remove file.
88949         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
88950         * lib/gettimeofday.c: Don't include gtod.h.
88951         (GTOD_init): Remove function.
88952         (rpl_gettimeofday): Do its job here instead, rather than aborting.
88953         Suggestion from Volker Borchert.
88954
88955 2001-11-23  Jim Meyering  <meyering@lucent.com>
88956
88957         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
88958         it.
88959         * lib/hash.c (struct hash_table): Define it here instead.
88960
88961 2001-11-22  Jim Meyering  <meyering@lucent.com>
88962
88963         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
88964
88965 2001-11-20  Jim Meyering  <meyering@lucent.com>
88966
88967         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
88968         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
88969
88970 2001-11-19  Jim Meyering  <meyering@lucent.com>
88971
88972         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
88973         directory.  Use "conftestXXXXXX" as the template.
88974         Suggestion from Paul Eggert.
88975
88976         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
88977         immediately, so the test doesn't mistakenly hit the max-open-files
88978         limit.
88979
88980 2001-11-18  Paul Eggert  <eggert@twinsun.com>
88981
88982         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
88983         (TEMPORARIES): New macro.
88984         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
88985         removes an artificial limitation (e.g. HP-UX 10.20, where
88986         TMP_MAX is 17576).
88987
88988 2001-11-18  Jim Meyering  <meyering@lucent.com>
88989
88990         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
88991
88992 2001-11-18  Jim Meyering  <meyering@lucent.com>
88993
88994         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
88995         on SunOS 4.
88996
88997         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
88998         files will be created before anything else.
88999
89000 2001-11-17  Paul Eggert  <eggert@twinsun.com>
89001
89002         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
89003         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
89004
89005 2001-11-17  Jim Meyering  <meyering@lucent.com>
89006
89007         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
89008         Prompted by a report from Bob Proulx.
89009
89010         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
89011         Instead, require UTILS_FUNC_MKSTEMP.
89012
89013 2001-11-17  Jim Meyering  <meyering@lucent.com>
89014
89015         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
89016         Now, that's done as part of AC_FUNC_STRTOD.
89017
89018 2001-11-17  Jim Meyering  <meyering@lucent.com>
89019
89020         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
89021         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
89022         rather than group writable.  Patch by Juan F. Codagnone.
89023
89024         * lib/readtokens.c: Remove explicit declarations of xmalloc and
89025         xrealloc, Instead, include "xalloc.h".
89026
89027         * lib/mountlist.c: Include unlocked-io.h after all system headers.
89028         Remove explicit declarations of xmalloc, xrealloc,
89029         and xstrdup.  Instead, include "xalloc.h".
89030
89031         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
89032         unlocked-io.h.
89033         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
89034         Likewise.
89035         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
89036
89037         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
89038         Reported by Padraig Brady.
89039
89040         * lib/mkstemp.c: #undef mkstemp.
89041         Include config.h.
89042         (rpl_mkstemp): Rename from mkstemp.
89043         Protoize.
89044
89045 2001-11-16  Jim Meyering  <meyering@lucent.com>
89046
89047         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
89048         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
89049         determine the amount of total physical memory, use pstat_getstatic.
89050         HPUX-11 doesn't define _SC_PHYS_PAGES.
89051         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
89052         If sysconf couldn't be used to determine the amount of available
89053         physical memory, use both pstat_getstatic and pstat_getdynamic.
89054         Based on a patch from Bob Proulx.
89055
89056 2001-11-10  Jim Meyering  <meyering@lucent.com>
89057
89058         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
89059         (jm_PREREQ): Use it.
89060
89061 2001-11-09  Jim Meyering  <meyering@lucent.com>
89062
89063         * m4/jm-macros.m4: Require autoconf-2.52f.
89064         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
89065         Use these AC_-prefixed names, not the AM_-prefixed ones.
89066
89067         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
89068
89069 2001-11-05  Jim Meyering  <meyering@lucent.com>
89070
89071         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
89072
89073 2001-11-04  Jim Meyering  <meyering@lucent.com>
89074
89075         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
89076         $DEFS.
89077
89078 2001-11-03  Jim Meyering  <meyering@lucent.com>
89079
89080         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
89081         of AC_DEFUN.
89082
89083         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
89084         know the name of the variable in the macro definition.
89085
89086 2001-11-03  Jim Meyering  <meyering@lucent.com>
89087
89088         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
89089         in argmatch_to_argument call.
89090
89091         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
89092         argument.
89093
89094         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
89095         e.g., a fault due to an attempt to free a NULL pointer.
89096
89097 2001-11-01  Jim Meyering  <meyering@lucent.com>
89098
89099         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
89100         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
89101
89102 2001-11-01  Jim Meyering  <meyering@lucent.com>
89103
89104         * lib/dirfd.c, lib/dirfd.h: New files.
89105         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
89106
89107         * lib/hash.c (hash_print) [TESTING]: Clean up.
89108
89109 2001-10-22  Paul Eggert  <eggert@twinsun.com>
89110
89111         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
89112         to avoid a warning if -Wall.
89113
89114 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
89115
89116         * README: New file
89117         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
89118         (per RMS's instructions, this is now the canonical source)
89119         * lgpl/, gpl/: New directories.
89120
89121 2001-10-21  Paul Eggert  <eggert@twinsun.com>
89122
89123         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
89124
89125 2001-10-21  Jim Meyering  <meyering@lucent.com>
89126
89127         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
89128         this code would end up calling gettext even in packages built
89129         with --disable-nls.
89130         * lib/getopt.c (_): Likewise.
89131         * lib/regex.c (_): Likewise.
89132
89133 2001-10-20  Paul Eggert  <eggert@twinsun.com>
89134
89135         * m4/error.m4 (jm_PREREQ_ERROR):
89136         Do not invoke AC_CHECK_FUNCS with strerror_r, as
89137         AC_FUNC_STRERROR_R does that.
89138         Check for strerror declaration.
89139
89140         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
89141         are supposed to have them these days.
89142         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
89143         Merge changes from latest Autoconf CVS.
89144         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
89145         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
89146         POSIX decided to standardize on the int flavor of strerror_r.
89147
89148 2001-10-20  Paul Eggert  <eggert@twinsun.com>
89149
89150         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
89151         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
89152         Use strerror_r that is only a macro, even if it is not a function.
89153         (strerror): Check for HAVE_DECL_STRERROR before declaring.
89154         (private_strerror): Use prototypes, not old-style function definition.
89155         (print_errno_message): New function.
89156         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
89157         char*-flavored one.
89158         (error_tail, error, error_at_line): Use it.
89159
89160 2001-10-11  Jim Meyering  <meyering@lucent.com>
89161
89162         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
89163         and quote_n (1, ... to avoid clobbering a buffer.
89164
89165 2001-10-05  Jim Meyering  <meyering@lucent.com>
89166
89167         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
89168         hash-pjw.h.
89169         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
89170         * lib/hash-pjw.h: New file.
89171
89172 2001-09-30  Jim Meyering  <meyering@lucent.com>
89173
89174         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
89175         `struct fsstat' has the `f_fstypename' member.
89176         Use that to define FS_TYPE, which is now used to make
89177         the getfsstat link test tighter.
89178
89179 2001-09-30  Jim Meyering  <meyering@lucent.com>
89180
89181         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
89182         Include <sys/ucred.h>, for Apple Darwin.
89183         Include sys/mount.h and sys/fs_types.h only if available.
89184         (FS_TYPE): Define.
89185         (read_filesystem_list): Use FS_TYPE.
89186
89187 2001-09-29  Paul Eggert  <eggert@twinsun.com>
89188
89189         * lib/exclude.c (excluded_filename): 0 -> false, since it's
89190         a boolean context.
89191
89192 2001-09-29  Jim Meyering  <meyering@lucent.com>
89193
89194         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
89195         [one-argument getmntent function]): Include stdio.h before mntent.h.
89196         SunOS 4.1.x needs it for the declaration of `FILE'.
89197         Patch by Volker Borchert.
89198
89199         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
89200         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
89201         sys/fs_types.h, and make the link-test for getfsstat guard #include
89202         directives with appropriate #if HAVE_*_H tests so that we can
89203         detect getfsstat on Apple Darwin1.3.7 systems.
89204         Reported by Nelson Beebe.
89205         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
89206
89207 2001-09-28  Paul Eggert  <eggert@twinsun.com>
89208
89209         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
89210         #defines strtoimax.  Also treat the other strto* functions
89211         like strtoimax.
89212
89213         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
89214         Check for strtoul and strtoumax,
89215         as those declarations are made even in the signed case.
89216         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
89217         Likewise, for strtol and strtoimax.
89218
89219 2001-09-28  Paul Eggert  <eggert@twinsun.com>
89220
89221         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
89222         #defines strtoimax.  Also treat the other strto* functions
89223         like strtoimax.
89224
89225         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
89226         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
89227         (strtoimax, strtoumax): Do not declare if already defined as a macro.
89228
89229 2001-09-26  Jim Meyering  <meyering@lucent.com>
89230
89231         Most macros in unlocked-io.h had the wrong number of arguments.
89232         * lib/gen-uio: New script.
89233         (USE_UNLOCKED_IO): Define to 1 if not already defined.
89234         * lib/unlocked-io.hin: Remove file.
89235         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
89236         rather than trying to embed it here.
89237         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
89238         Reported by Padraig Brady.
89239
89240 2001-09-25  Volker Borchert  <bt@teknon.de>
89241
89242         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
89243         `result'.
89244
89245 2001-09-24  Jim Meyering  <meyering@lucent.com>
89246
89247         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
89248
89249 2001-09-23  Jim Meyering  <meyering@lucent.com>
89250
89251         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
89252         instead of the mere test for existence of mntent.h.  The latter
89253         would get a false-positive on AIX 3.4 systems.
89254         In the outer getmntent if-block, don't die if neither of the getmntent
89255         tests succeeds.  Instead, just fall through and continue with the
89256         remaining tests.
89257
89258 2001-09-23  Jim Meyering  <meyering@lucent.com>
89259
89260         * lib/mountlist.c: Remove useless parentheses in #if directives.
89261         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
89262         the deprecated MOUNTED symbol is no longer defined in mntent.h.
89263
89264 2001-09-22  Jim Meyering  <meyering@lucent.com>
89265
89266         * m4/gettext.m4: New file.  From gettext.
89267         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
89268         * m4/progtest.m4: Likewise
89269         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
89270         * m4/glibc21.m4: Likewise.
89271
89272         * m4/libintl.m4: Remove.  No longer used.
89273
89274 2001-09-22  Jim Meyering  <meyering@lucent.com>
89275
89276         * lib/localcharset.c: Update from latest gettext.
89277         * lib/config.charset: Likewise.
89278
89279 2001-09-20  Jim Meyering  <meyering@lucent.com>
89280
89281         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
89282         strtoimax.
89283         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
89284         strtoumax.
89285
89286 2001-09-20  Jim Meyering  <meyering@lucent.com>
89287
89288         * lib/xstrtol.c (strtoimax): Guard declaration with
89289         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
89290         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
89291         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
89292         (strtoumax): Likewise, for completeness (it wasn't necessary).
89293
89294 2001-09-17  Paul Eggert  <eggert@twinsun.com>
89295
89296         * lib/strtoimax.c (HAVE_LONG_LONG):
89297         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
89298         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
89299         to work around bug in IBM C compiler.
89300
89301 2001-09-17  Jim Meyering  <meyering@lucent.com>
89302
89303         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
89304         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
89305         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
89306         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
89307         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
89308         whenever the right hand side need not be expanded by the shell.
89309
89310 2001-09-16  Paul Eggert  <eggert@twinsun.com>
89311
89312         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
89313         library.  It's not correct, as some older glibcs are buggy.
89314         fnmatch wasn't fixed until glibc 2.2.
89315
89316         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
89317         special shell magic here.
89318
89319 2001-09-16  Jim Meyering  <meyering@lucent.com>
89320
89321         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
89322         * m4/jm-macros.m4: Require it.
89323
89324 2001-09-16  Jim Meyering  <meyering@lucent.com>
89325
89326         * lib/mkdir.c: New file.
89327
89328 2001-09-15  Jim Meyering  <meyering@lucent.com>
89329
89330         * m4/jm-macros.m4: Check for help2man.
89331
89332 2001-09-11  Jim Meyering  <meyering@lucent.com>
89333
89334         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
89335         The body, by Paul Eggert, was moved here from configure.in.
89336         * m4/jm-macros.m4: Require UTILS_HOST_OS.
89337
89338 2001-09-04  Paul Eggert  <eggert@twinsun.com>
89339
89340         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
89341         (jm_PREREQ): Use it.
89342
89343 2001-09-04  Paul Eggert  <eggert@twinsun.com>
89344
89345         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
89346         Use ssize_t, not int, to store result of readlink.
89347         Check for ssize_t overflow as well as size_t overflow,
89348         as POSIX says the result of readlink is implementation-defined
89349         when ssize_t overflows.
89350         Remove unnecessary cast to char*.
89351         Use free+malloc instead of realloc, as the storage doesn't need
89352         to be preserved and it's clearer and can be more efficient that way.
89353         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
89354         * lib/xreadlink.h (xreadlink): Update prototype.
89355
89356 2001-09-04  Paul Eggert  <eggert@twinsun.com>
89357
89358         * lib/xgetcwd.c: Revert some of the previous change; intead,
89359         fix the HAVE_GETCWD_NULL code to behave more like the
89360         !HAVE_GETCWD_NULL code used to.
89361
89362         Include "xalloc.h".
89363         (xgetcwd): Do not return NULL when memory is exhausted; instead,
89364         invoke xalloc_die.
89365
89366 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89367
89368         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
89369         sys/param.h, as pathmax.h includes them.
89370
89371 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89372
89373         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
89374         (jm_PREREQ_XGETCWD): New macro.
89375
89376         * m4/getcwd.m4: New file.
89377
89378 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89379
89380         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
89381         like the HAVE_GETCWD_NULL code.
89382         Include pathmax.h if not HAVE_GETCWD.
89383         Do not include xalloc.h.
89384         (INITIAL_BUFFER_SIZE): New symbol.
89385         Do not use xmalloc / xrealloc, since the caller is responsible for
89386         handling errors.  Preserve errno around `free' during failure.
89387         Do not overrun buffer when using getwd.
89388
89389 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89390
89391         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
89392         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
89393         getcwd (NULL, 0).
89394
89395 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89396
89397         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
89398         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
89399         spotted by Jim Meyering.
89400
89401 2001-09-03  Jim Meyering  <meyering@lucent.com>
89402
89403         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
89404         failure.
89405
89406 2001-09-02  Jim Meyering  <meyering@lucent.com>
89407
89408         * lib/error.c: Update from GNU libc.
89409
89410 2001-09-01  Jim Meyering  <meyering@lucent.com>
89411
89412         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
89413         Used by df.
89414
89415 2001-09-01  Jim Meyering  <meyering@lucent.com>
89416
89417         * lib/xreadlink.c: New file.
89418         * lib/xreadlink.h: New file.
89419         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
89420         xreadlink.h.
89421
89422         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
89423         doesn't conflict with sparc Solaris 7's definition in
89424         /usr/include/sys/int_types.h.
89425
89426         * lib/exclude.c: Use `""', not `<>' to #include non-system header
89427         files.
89428         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
89429         and strncasecmp as r-values.  Unixware didn't have declarations.
89430
89431 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89432
89433         * lib/xstrtol.h: Add copyright notice.
89434         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
89435         LONGINT_INVALID_SUFFIX_CHAR.
89436
89437 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89438
89439         * lib/xstrtol.c (strtoimax): New decl.
89440
89441 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89442
89443         * lib/xgetcwd.c: Don't include pathmax.h.
89444         Include stdlib.h and unistd.h if available.
89445         Include xalloc.h.
89446         (xmalloc, xstrdup, free): Remove decls.
89447         (xgetcwd): Don't assume sizes fit in unsigned.
89448         Check for overflow when computing sizes.
89449         Simplify reallocation code.
89450
89451 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89452
89453         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
89454         a directory's st_size can have an arbitrary value, so the old
89455         usage could waste an arbitrary amount of memory.  All uses
89456         changed.
89457         * lib/savedir.h: Update prototype.
89458
89459 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89460
89461         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
89462
89463         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
89464         old strtoimax.c.
89465
89466         Also, make the following further changes to make this file's
89467         configuration more similar to that of strtol.c:
89468         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
89469         (strtoumax, uintmax_t, strtoull, strtol): Remove.
89470         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
89471         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
89472         changed to signed values.
89473
89474         And make the following changes as well:
89475         Fix copyright notice, as 1999 was missing.
89476         (verify): New macro.
89477         (strtoimax): Check sizes at compile-time, not run-time.
89478         Prefer strtol to strtoll if both work.
89479         (main): Remove; it was not that useful and was a pain to maintain.
89480
89481         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
89482
89483 2001-08-31  Jim Meyering  <meyering@lucent.com>
89484
89485         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
89486         Use an initial, malloc'd, buffer of length 128 rather than
89487         a statically allocated one of length 1024.
89488
89489 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89490
89491         Simplify code, partly by assuming autoconf 2.52 semantics.
89492
89493         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
89494
89495         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
89496         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
89497         All uses removed.
89498         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
89499         Move AC_REQUIRE to next-to-top level, to avoid confusion.
89500         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
89501         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
89502         jm_AC_HEADER_INTTYPES_H.
89503         * m4/jm-macros.m4 (jm_MACROS): Likewise.
89504
89505         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
89506
89507         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
89508         Quote first arg of AC_DEFUN.
89509         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
89510         since they are needed to parse the include file even if we need
89511         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
89512         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
89513         but with opposite signedness.
89514
89515 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89516
89517         Merge 'exclude' changes from tar 1.13.22.
89518         This fixes one or two unlikely storage allocation overflow bugs,
89519         but doesn't change user-visible behavior otherwise.
89520
89521 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89522
89523         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
89524         (jm_PREREQ_EXCLUDE): New macro.
89525
89526 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89527
89528         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
89529         tm to be declared.
89530
89531 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89532
89533         * lib/hash.c: Remove '2001' from copyright notice.
89534
89535 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89536
89537         * lib/full-write.h: New file.
89538         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
89539         * lib/full-write.c: Correct credits, as cccp.c no longer
89540         exists and anyway it was so heavily changed from the old cccp
89541         code as to be unrecognizable.  Include full-write.h.
89542         (full_write): Return size_t, with short writes meaning failure.
89543         All callers changed.  This fixes a bug with large buffers
89544         on 64-bit hosts.
89545         * lib/utime.c: Include full-write.h.
89546
89547 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89548
89549         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
89550         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
89551         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
89552         Include if available.
89553         (<xalloc.h>): Include
89554         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
89555         (verify): New macro.  Use it to verify that EXCLUDE macros do not
89556         collide with FNM macros.
89557         (struct patopts): New struct.
89558         (struct exclude): Use it, as exclude patterns now come with options.
89559         (new_exclude): Support above changes.
89560         (new_exclude, add_exclude_file):
89561         Initial size must now be a power of two to simplify overflow checking.
89562         (free_exclude, fnmatch_no_wildcards): New function.
89563         (excluded_filename): No longer requires options arg, as the options
89564         are determined by add_exclude.  Now returns bool, not int.
89565         (excluded_filename, add_exclude):
89566         Add support for the fancy new exclusion options.
89567         (add_exclude, add_exclude_file): Now takes int options arg.
89568         Check for arithmetic overflow when computing sizes.
89569         (add_exclude_file): xrealloc might modify errno, so don't
89570         realloc until after errno might be used.
89571
89572         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
89573         New macros.
89574         (free_exclude): New decl.
89575         (add_exclude, add_exclude_file): Now takes int options arg.
89576         (excluded_filename): No longer requires options arg, as the options
89577         are determined by add_exclude.  Now returns bool, not int.
89578
89579 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89580
89581         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
89582
89583 2001-08-27  Jim Meyering  <meyering@lucent.com>
89584
89585         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
89586
89587         * lib/version-etc.c (N_): Remove definition.
89588         Revert most of last change.
89589         Instead, simply don't mark the `Copyright...' string for translation.
89590         Based on advice from Paul Eggert.
89591
89592         * lib/strtoxmax.c: Tweak comment.
89593
89594 2001-08-26  Jim Meyering  <meyering@lucent.com>
89595
89596         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
89597
89598         * m4/xstrtoimax.m4: New file.
89599         * m4/xstrtoumax.m4: Add comments explaining why we
89600         AC_REPLACE_FUNCS(strtol).
89601
89602 2001-08-26  Jim Meyering  <meyering@lucent.com>
89603
89604         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
89605         of copyright with `%s' so translators don't get an untranslated
89606         message in 2002.
89607         (COPYRIGHT_YEAR): Define.
89608         (version_etc): Use fprintf rather than fputs.
89609         Suggestion from Ulrich Drepper.
89610
89611         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
89612
89613         * lib/strtoll.c: New file, from GNU libc.
89614         * lib/xstrtoimax.c: New file.
89615
89616         * lib/xstrtol.h: Add xstrtoimax.
89617         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
89618         * lib/strtoimax.c: New file.  Likewise, but first define
89619         STRTOUXMAX_SIGNED.
89620
89621         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
89622         ...
89623         * lib/strtoxmax.c: ... then renamed to this.
89624
89625 2001-08-18  Paul Eggert  <eggert@twinsun.com>
89626
89627         * m4/inttypes.m4: Add AC_PREREQ(2.13).
89628         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
89629         (jm_AC_TYPE_INTMAX_T): New macro.
89630         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
89631
89632         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
89633
89634         * m4/longlong.m4: Renamed from ulonglong.m4.
89635         * m4/inttypes.m4: Renamed from inttypes_h.m4.
89636         * m4/uintmax_t.m4: Removed.
89637
89638 2001-08-13  Paul Eggert  <eggert@twinsun.com>
89639
89640         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
89641         Port to Solaris 8, where 'sed' requires a space after the 'r'
89642         command, and where sh dislikes "$/".  Clean up the spacing a bit.
89643         Redirect output to $tmp just once.
89644
89645 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
89646
89647         * lib/addext.c (<errno.h>): Include.
89648         (errno): Declare if not defined.
89649         (addext): Work correctly when pathconf returns -1 and leaves
89650         errno alone because there is no limit.  Also, work even if
89651         pathconf returns a value greater than SIZE_MAX.
89652
89653 2001-08-12  Jim Meyering  <meyering@lucent.com>
89654
89655         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
89656         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
89657         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
89658         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
89659         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
89660         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
89661         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
89662         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
89663         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
89664         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
89665         utime.m4, utimes.m4, xstrtoumax.m4:
89666         Quote the first argument in each use of AC_DEFUN.
89667
89668 2001-08-12  Jim Meyering  <meyering@lucent.com>
89669
89670         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
89671         Simply `return getcwd (NULL, 0);'.
89672         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
89673         Use 1300 as initial value for length, not PATH_MAX.
89674
89675         * lib/pathmax.h: Clean up cpp syntax.
89676
89677 2001-08-12  Jim Meyering  <meyering@lucent.com>
89678
89679         * lib/gettimeofday.c: New file.
89680         * lib/gtod.h: New file.
89681         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
89682
89683 2001-08-05  Jim Meyering  <meyering@lucent.com>
89684
89685         * m4/jm-macros.m4: Require autoconf-2.52.
89686
89687 2001-08-04  Jim Meyering  <meyering@lucent.com>
89688
89689         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
89690         stmt, to get in sync with glibc.
89691
89692 2001-08-03  Paul Eggert  <eggert@twinsun.com>
89693
89694         The following changes are from gettext 0.10.39 as maintained by
89695         Bruno Haible.
89696
89697         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
89698         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
89699         with inverted sense.  All uses changed.
89700
89701         * lib/mbswidth.c: Don't include <limits.h>.
89702         Include <stdlib.h> and <string.h> unconditionally.
89703         (iswcntrl, mbsinit, ISCNTRL): New macros.
89704         (mbsnwidth): Use K&R style function declarations.
89705         Don't bother checking for MB_LEN_MAX == 1, since the compiler
89706         can optimize it when MB_CUR_MAX == 1.
89707         The width of control characters is zero, not 1.
89708
89709 2001-08-03  Paul Eggert  <eggert@twinsun.com>
89710
89711         The following changes are from gettext 0.10.39 as maintained by
89712         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
89713
89714         * m4/codeset.m4: Upgrade to serial AM1.
89715         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
89716         all uses changed.  Quote first arg of AC_DEFUN.
89717         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
89718
89719         * m4/iconv.m4: Upgrade to serial AM2.
89720         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
89721         Add --with-libconv-prefix.
89722         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
89723         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
89724         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
89725         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
89726         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
89727
89728         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
89729         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
89730         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
89731         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
89732         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
89733         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
89734         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
89735         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
89736         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
89737
89738         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
89739         string.h any more.
89740
89741         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
89742         not the default value.
89743
89744         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
89745         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
89746         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
89747         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
89748         Also check for iswcntrl, used for wcwidth fallback.
89749         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
89750         to Autoconf 2.13.
89751
89752 2001-08-03  Jim Meyering  <meyering@lucent.com>
89753
89754         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
89755         as it was in the original.  Reported by Paul Eggert.
89756
89757 2001-07-16  Jim Meyering  <meyering@lucent.com>
89758
89759         * m4/gettimeofday.m4: New file.
89760         Prompted by a report from Bernhard Baehr.
89761
89762 2001-07-15  Jim Meyering  <meyering@lucent.com>
89763
89764         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
89765         stuff. Now it's in ../Makefile.cfg.
89766
89767 2001-07-15  Jim Meyering  <meyering@lucent.com>
89768
89769         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
89770         (BUILT_SOURCES): Add unlocked-io.h.
89771         (io_functions): Define.
89772         (unlocked-io.h): New rule.
89773         (DISTCLEANFILES): Add unlocked-io.h.
89774         (all-local): Depend on unlocked-io.h, to ensure it is created.
89775
89776         * lib/unlocked-io.hin: New file
89777
89778         * lib/regex.c: Update from glibc.
89779
89780 2001-07-05  Jim Meyering  <meyering@lucent.com>
89781
89782         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
89783         recommendation.
89784         (libfetish_a_SOURCES): Put all .h files here instead.
89785         Remove a thus-exposed (better checks in automake) duplicate and
89786         two unnecessary .h files.
89787
89788 2001-07-04  Jim Meyering  <meyering@lucent.com>
89789
89790         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
89791         that generates jm-glibc-io.m4 so that it doesn't trigger any make
89792         distcheck failure.
89793
89794 2001-07-02  Jim Meyering  <meyering@lucent.com>
89795
89796         The following changes were prompted by suggestions from Bruno Haible.
89797
89798         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
89799         is now generated.
89800         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
89801         definition of EXTRA_DIST.
89802         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
89803         ensure that the generated file is created/updated whenever the list
89804         of $(unlocked_functions) is changed.
89805         (jm-glibc-io.m4): New rule.
89806         (unlocked-io.h): New rule -- currently unused.
89807
89808 2001-06-24  Jim Meyering  <meyering@lucent.com>
89809
89810         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
89811         unmatched right bracket, rather than kludging it with an extra,
89812         falsely-matching quote in a comment.  Patch by Akim Demaille.
89813
89814 2001-06-11  Jim Meyering  <meyering@lucent.com>
89815
89816         * lib/regex.c: Update from GNU libc.
89817
89818 2001-05-27  Jim Meyering  <meyering@lucent.com>
89819
89820         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
89821         Check for ut_type in struct utmp.
89822
89823 2001-05-27  Jim Meyering  <meyering@lucent.com>
89824
89825         * lib/readutmp.h (UT_TYPE): Define.
89826
89827 2001-05-24  Jim Meyering  <meyering@lucent.com>
89828
89829         * lib/argmatch.c: Include "quote.h".
89830         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
89831         quote function.  Reported by Göran Uddeborg.
89832
89833 2001-05-22  Jim Meyering  <meyering@lucent.com>
89834
89835         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
89836         now that we use the package-supplied version unconditionally.
89837         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
89838
89839 2001-05-21  Jim Meyering  <meyering@lucent.com>
89840
89841         * m4/regex.m4: Change a couple backticks to single quotes to avoid
89842         shell syntax errors.
89843
89844 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
89845
89846         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
89847
89848 2001-05-20  Paul Eggert  <eggert@twinsun.com>
89849
89850         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
89851         Don't bother to check library strftime, since
89852         we'll be using our own my_strftime function anyway.
89853         Define my_strftime instead of strftime.
89854
89855 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
89856
89857         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
89858         which is not yet declared.
89859
89860 2001-05-15  Jim Meyering  <meyering@lucent.com>
89861
89862         * m4/regex.m4: Use proper quoting so brackets appear in the test
89863         program.
89864         Reported by, and with help from, Bruno Haible.
89865
89866 2001-05-13  Jim Meyering  <meyering@lucent.com>
89867
89868         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
89869         undefined.
89870
89871 2001-05-11  Paul Eggert  <eggert@twinsun.com>
89872
89873         dirname code cleanup.  base_name now behaves more compatibly
89874         with POSIX basename when given file names that have trailing
89875         slashes, and similarly for dir_name.  Add new primitives
89876         base_len and dir_len.  Put the directory-name-related decls
89877         into dirname.h.
89878
89879         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
89880         * lib/backupfile.c (base_name): Likewise.
89881         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
89882         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
89883         * lib/makepath.c (strip_trailing_slashes): Likewise.
89884         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
89885         ISSLASH): Likewise.
89886         * lib/rename.c (strip_trailing_slashes): Likewise.
89887         * lib/same.c (base_name): Likewise.
89888         * lib/stripslash.c (ISSLASH): Likewise.
89889
89890         * lib/addext.c: Include <dirname.h> after size_t is defined.
89891         * lib/backupfile.c: Likewise.
89892
89893         * lib/addext.c (addext): Use base_len to trim redundant
89894         trailing slashes instead of doing it ourselves.
89895         But do not trim the last slash if it is not redundant.
89896
89897         * lib/backupfile.c (find_backup_file_name,
89898         max_backup_version): Use base_len instead of rolling it ourselves.
89899         Handle the case of "" and (on DOS) "C:" correctly.
89900
89901         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
89902         needed. Include <string.h>, <dirname.h>.
89903         (base_name): Allow file names ending in slashes, other than names
89904         that are all slashes.  In this case, return the basename followed
89905         by the slashes.  This is more general, and can be used in places
89906         where the original base_name purposely had an assertion failure.
89907         (base_len): New function.
89908
89909         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
89910         Do not include <assert.h>; no longer needed.
89911         Include xalloc.h.
89912         (memrchr): Remove decl.
89913         (dir_name_r): Remove.
89914         (dir_len): Renamed from dirlen.  All callers changed.
89915         Rewrite in terms of base_name, for simplicity and consistency.
89916         (dir_name): Never return NULL.  All callers changed.
89917         Do not include <stdlib.h> in test program; no longer needed.
89918         return 0; is fine for test program.
89919
89920         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
89921         New macros.
89922         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
89923
89924         * lib/path-concat.c (path_concat): Use base_len to compute
89925         base length, not strlen; this means we cannot rely on memcpy
89926         to null-terminate.
89927
89928         * lib/same.c (STREQ): Remove.
89929         (same_name): Handle the case where the basename ends in trailing '/'.
89930
89931         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
89932         a slash was stripped.  Do not strip the last slash after a
89933         file system prefix.
89934
89935 2001-05-11  Paul Eggert  <eggert@twinsun.com>
89936
89937         * lib/Makefile.am (libfetish_a_SOURCES):
89938         Add strftime.c, since we now compile it on all hosts.
89939
89940         * lib/strftime.c (my_strftime):
89941         Define to nstrftime if emacs, but only if my_strftime is not defined.
89942         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
89943         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
89944         Add one more extra argument: a nanoseconds value.
89945         All uses changed.
89946         (ns): New macro.
89947         (my_strftime function): Add %N format.
89948         (emacs_strftimeu): Renamed from emacs_strftime,
89949         with extra ut argument.
89950
89951 2001-05-09  Paul Eggert  <eggert@twinsun.com>
89952
89953         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
89954
89955 2001-04-21  Jim Meyering  <meyering@lucent.com>
89956
89957         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
89958         doesn't interfere.
89959
89960 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
89961
89962         * m4/ftruncate.m4: Check for chsize.
89963         Link with ftruncate.o unconditionally if ftruncate is missing.
89964         This was required when cross-compiling to i586-mingw32msvc.
89965
89966 2001-04-08  Jim Meyering  <meyering@lucent.com>
89967
89968         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
89969         recomputed; that's necessary when the offset spans a DST transition.
89970         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
89971
89972 2001-04-02  Jim Meyering  <meyering@lucent.com>
89973
89974         * lib/regex.h, regex.c: Update from GNU libc.
89975
89976 2001-03-24  Jim Meyering  <meyering@lucent.com>
89977
89978         * m4/jm-macros.m4: Require autoconf-2.49d.
89979
89980 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
89981
89982         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
89983
89984 2001-03-19  Paul Eggert  <eggert@twinsun.com>
89985
89986         * lib/version-etc.c (version_etc_copyright): Update to 2001.
89987
89988 2001-03-17  Jim Meyering  <meyering@lucent.com>
89989
89990         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
89991         now that the version in autoconf is equivalent.
89992         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
89993
89994         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
89995         Suggestion from Akim Demaille.
89996
89997         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
89998         (jm_PREREQ_TEMPNAME): New function.
89999
90000 2001-03-16  Paul Eggert  <eggert@twinsun.com>
90001
90002         * lib/tempname.c (uint64_t): Define to uintmax_t if
90003         not defined, and if UINT64_MAX is not defined.
90004         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
90005         Reported by John David Anglin.
90006
90007 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
90008
90009         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
90010         resolve alias if codeset is empty.
90011         * lib/config.charset (BeOS): Use wildcard syntax.
90012
90013 2001-03-13  Jim Meyering  <meyering@lucent.com>
90014
90015         * lib/path-concat.c (path_concat)
90016         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
90017         concatenating e.g., `C:' and `foo'.
90018         From Bruno Haible.
90019
90020 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
90021
90022         * lib/localcharset.c (locale_charset): Don't use
90023         setlocale(LC_CTYPE,NULL). Don't return NULL.
90024         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
90025
90026 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
90027
90028         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
90029         support for DOS/DJGPP.
90030
90031 2001-03-01  Paul Eggert  <eggert@twinsun.com>
90032
90033         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
90034         lacks mkstemp.  Compile our own tempname.c if we compile our own
90035         mkstemp.c, as mkstemp relies on tempname.
90036
90037 2001-03-01  Jim Meyering  <meyering@lucent.com>
90038
90039         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
90040         AH_VERBATIM really does output its argument verbatim.
90041
90042 2001-02-28  Paul Eggert  <eggert@twinsun.com>
90043
90044         * lib/Makefile.am (libfetish_a_SOURCES):
90045         Add dup-safer.c, fopen-safer.c.
90046         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
90047
90048         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
90049         * lib/unistd-safer.h: New files.
90050
90051 2001-02-25  Paul Eggert  <eggert@twinsun.com>
90052
90053         The mkstemp replacement is taken from glibc 2.2.2, with some
90054         portability fixes for use outside glibc, as follows:
90055
90056         * lib/tempname.c (struct_stat64): New macro.
90057         (direxists, __gen_tempname): Use it.
90058         This avoids a portability problem with Solaris 8.
90059
90060         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
90061         (<stddef.h>, <stdint.h>, <string.h>):
90062         Include only if STDC_HEADERS || _LIBC.
90063         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
90064         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
90065         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
90066         (__set_errno): Define this macro if <errno.h> doesn't.
90067         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
90068         Define these macros if <stdio.h> doesn't.
90069         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
90070         Define these macros if <sys/stat.h>
90071         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
90072         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
90073         __xstat64): Define if not _LIBC.
90074         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
90075         (__gen_tempname): Invoke gettimeofday only if
90076         HAVE_GETTIMEOFDAY || _LIBC;
90077         otherwise, fall back on plain "time".
90078         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
90079
90080         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
90081
90082         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
90083
90084 2001-02-18  Paul Eggert  <eggert@twinsun.com>
90085
90086         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
90087
90088 2001-02-17  Paul Eggert  <eggert@twinsun.com>
90089
90090         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
90091         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
90092         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
90093         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
90094
90095 2001-02-17  Paul Eggert  <eggert@twinsun.com>
90096
90097         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
90098         Remove workaround macros for hosts that have mbrtowc but not
90099         mbstate_t, as we now insist on proper declarations for both
90100         before using mbrtowc.
90101
90102 2001-02-17  Jim Meyering  <meyering@lucent.com>
90103
90104         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
90105         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
90106         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
90107         UnixWare 7.1.1.
90108
90109         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
90110         rather than AC_CACHE_VAL.
90111
90112 2001-02-17  Jim Meyering  <meyering@lucent.com>
90113
90114         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
90115         around included file name.
90116
90117         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
90118
90119         * lib/strftime.c: Update from GNU libc (the only changes were to
90120         comments).
90121
90122 2001-02-17  Jim Meyering  <meyering@lucent.com>
90123
90124         * lib/regex.c: Update from libc.
90125
90126 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
90127
90128         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
90129         clash.
90130
90131 2001-02-16  Paul Eggert  <eggert@twinsun.com>
90132
90133         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
90134         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
90135         Reported by Mark Hounschell via Paul Eggert.
90136
90137 2001-02-07  Jim Meyering  <meyering@lucent.com>
90138
90139         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
90140
90141 2001-02-05  Jim Meyering  <meyering@lucent.com>
90142
90143         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
90144         it includes the patch required for `large file' support with at least
90145         HP-UX's 10.20 /bin/cc.
90146
90147 2001-02-03  Jim Meyering  <meyering@lucent.com>
90148
90149         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
90150         AS_IF, now that it works once again (mysteriously).
90151         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
90152
90153 2001-01-30  Jim Meyering  <meyering@lucent.com>
90154
90155         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
90156         * m4/chown.m4: Rename conftestchown to conftest.chown.
90157         * m4/rename.m4: s/conftestdir/conftest.d1/ and
90158         s/conftestdir2/conftest.d2/.
90159         * m4/utimes.m4: s/conftestdata/conftest.data/
90160         Inspired by Pavel Roskin's change in autoconf.
90161
90162 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
90163
90164         * lib/config.charset: Update for FreeBSD 4.2.
90165
90166 2001-01-27  Jim Meyering  <meyering@lucent.com>
90167
90168         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
90169         a use of AS_IF.
90170         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
90171
90172 2001-01-26  Jim Meyering  <meyering@lucent.com>
90173
90174         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
90175         quotearg.c includes it.
90176
90177 2001-01-26  Jim Meyering  <meyering@lucent.com>
90178
90179         * lib/quotearg.c: Include stddef.h.
90180         * lib/quote.c: Include stddef.h.
90181         Reported by Axel Kittenberger.
90182
90183         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
90184         line in double quotes so that it evokes a better diagnostic.
90185         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
90186         Reported by Axel Kittenberger.
90187
90188 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
90189
90190         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
90191         as if it was a `charset'.
90192
90193 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
90194
90195         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
90196         has const.
90197
90198 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
90199
90200         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
90201         to avoid a warning.  Add back 'const' to inptr.
90202
90203 2001-01-20  Jim Meyering  <meyering@lucent.com>
90204
90205         Be sure that headers are checked before used in code compiled
90206         for the type checks.
90207         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
90208         In place of that, invoke jm_CHECK_ALL_TYPES.
90209         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
90210         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
90211         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
90212         The check for ssize_t was mistakenly run before the test for unistd.h.
90213
90214         The configure-time check for stdbool.h was missing.
90215         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
90216         (jm_PREREQ_HASH): New function.
90217
90218 2001-01-17  Jim Meyering  <meyering@lucent.com>
90219
90220         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
90221         for autoconf-2.49c.
90222         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
90223
90224 2001-01-16  Jim Meyering  <meyering@lucent.com>
90225
90226         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
90227         From Bruno Haible.
90228
90229 2001-01-14  Jim Meyering  <meyering@lucent.com>
90230
90231         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
90232         foo and bar.  Create conftestdir/ in the script, not in the C code.
90233         Remove directories in the script, not in the C code.
90234         Remove conftestdir{,2} before trying to create the directory.
90235         Make the entire configure script fail if the mkdir fails.
90236
90237 2001-01-14  Jim Meyering  <meyering@lucent.com>
90238
90239         * lib/rename.c: New file.  From Volker Borchert.
90240         Include stdlib.h, string.h or strings.h, and xalloc.h.
90241         Use strip_trailing_slashes rather than open-coding it.
90242
90243 2001-01-03  Paul Eggert  <eggert@twinsun.com>
90244
90245         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
90246
90247 2001-01-03  Jim Meyering  <meyering@lucent.com>
90248
90249         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
90250         of local `inptr' to avoid warning with some system declarations of
90251         iconv.
90252
90253 2001-01-02  Volker Borchert  <bt@teknon.de>
90254
90255         * m4/rename.m4: New file.
90256         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
90257
90258 2001-01-01  Jim Meyering  <meyering@lucent.com>
90259
90260         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
90261         even on systems with utmpx.h.  It's necessary for the declaration of
90262         utmp's ut_user member.  Reported by Andreas Jaeger.
90263
90264         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
90265         available. They are required for the declarations of getgrgid and
90266         getpwuid resp.
90267         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
90268         Reported by Andreas Jaeger.
90269
90270 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
90271
90272         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
90273         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
90274         so `make install' also works in VPATH builds.
90275
90276 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
90277
90278         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
90279         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
90280         can be used in subdirectories.
90281
90282 2000-12-29  Paul Eggert  <eggert@twinsun.com>
90283
90284         * lib/modechange.c: Do not assume that mode_t uses the
90285         traditional octal encoding.  E.g. "chmod 1 FOO" should set
90286         the other-execute bit of FOO even if S_IXOTH != 1.
90287
90288         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
90289         WOTH, XOTH, ALLM): New macros.
90290         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
90291          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
90292         Use them.
90293         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
90294         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
90295         (mode_compile):
90296         No need to use uintmax_t; unsigned long is long enough.
90297         Don't bother to get suffix since we don't use it.
90298
90299 2000-12-26  Jim Meyering  <meyering@lucent.com>
90300
90301         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
90302         better with autoheader.
90303
90304 2000-12-24  Jim Meyering  <meyering@lucent.com>
90305
90306         * lib/hash.c (is_prime): Return explicit boolean values.
90307         (hash_get_first): Return NULL to appease Irix5.6's 89.
90308         Reported by Nelson Beebe.
90309
90310 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
90311
90312         * lib/localcharset.c (locale_charset): Add support for Win32.
90313
90314 2000-12-18  Paul Eggert  <eggert@twinsun.com>
90315
90316         * lib/physmem.h, lib/physmem.c: New files.
90317
90318         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
90319         (noinst_HEADERS): Add physmem.h.
90320
90321         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
90322         't' for compatibility with Solaris 8 sort.
90323
90324 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
90325
90326         * lib/config.charset: Add support for BeOS.
90327
90328 2000-12-17  Jim Meyering  <meyering@lucent.com>
90329
90330         * m4/dos.m4 (jm_AC_DOS): New file and macro.
90331         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
90332
90333 2000-12-16  Jim Meyering  <meyering@lucent.com>
90334
90335         This bug had a serious impact on chown: `chown N:M FILE' (for integer
90336         N and M) would have treated it like `chown N:N FILE'.
90337
90338         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
90339
90340 2000-12-16  Jim Meyering  <meyering@lucent.com>
90341
90342         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
90343         SHELLS_FILE to a file name that's useful on djgpp systems.
90344         Include stdlib.h.
90345         (ADDITIONAL_DEFAULT_SHELLS): Define.
90346         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
90347         Based mostly on a patch from Prashant TR.
90348
90349 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
90350
90351         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
90352         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
90353         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
90354
90355 2000-12-08  Andreas Schwab  <schwab@suse.de>
90356
90357         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
90358         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
90359
90360 2000-12-07  Jim Meyering  <meyering@lucent.com>
90361
90362         * lib/stripslash.c (ISSLASH): Define.
90363         (strip_trailing_slashes): Use ISSLASH rather than comparing against
90364         `/'.
90365         From Prashant TR.
90366
90367         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
90368         (dir_name_r): Declare this function as static.
90369         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
90370         manifest itself on a name containing a mix of slashes and
90371         backslashes.
90372         Make this function work with names starting with a DOS-style
90373         drive letter and colon prefix.
90374         (dir_name): Append `.' if necessary.
90375         Based mostly on patches from Prashant TR and Eli Zaretskii.
90376
90377         * lib/dirname.h (dir_name_r): Remove prototype.
90378
90379 2000-12-06  Paul Eggert  <eggert@twinsun.com>
90380
90381         * m4/off_t-format.m4: Remove this file.
90382         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
90383
90384 2000-12-06  Jim Meyering  <meyering@lucent.com>
90385
90386         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
90387         replacement strtoull, we may well need the replacement strtoul, too.
90388         Check for declarations of strtoul and strtoull.
90389         Check for strtol.  Mainly as a cue to cause automake to include
90390         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
90391         Check for limits.h -- strtol.c needs it.
90392
90393 2000-12-05  Jim Meyering  <meyering@lucent.com>
90394
90395         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
90396
90397 2000-12-04  Jim Meyering  <meyering@lucent.com>
90398
90399         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
90400         Also include memory.h, stdlib.h, unistd.h if appropriate.
90401         Reported by Andreas Jaeger (conflicting declaration of malloc).
90402
90403 2000-12-02  Jim Meyering  <meyering@lucent.com>
90404
90405         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
90406         * m4/jm-macros.m4 (jm_MACROS): require it.
90407
90408 2000-12-02  Jim Meyering  <meyering@lucent.com>
90409
90410         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
90411
90412 2000-12-01  Paul Eggert  <eggert@twinsun.com>
90413
90414         * lib/memrchr.c: Include <config.h> before any system include file.
90415
90416 2000-11-30  Jim Meyering  <meyering@lucent.com>
90417
90418         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
90419
90420 2000-11-30  Jim Meyering  <meyering@lucent.com>
90421
90422         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
90423
90424 2000-11-29  Paul Eggert  <eggert@twinsun.com>
90425
90426         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
90427
90428 2000-11-26  Jim Meyering  <meyering@lucent.com>
90429
90430         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
90431
90432 2000-11-22  Paul Eggert  <eggert@twinsun.com>
90433
90434         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
90435         size of (size_t) -1; it's not portable.
90436
90437 2000-11-17  Jim Meyering  <meyering@lucent.com>
90438
90439         * lib/strstr.c: Update from GNU libc.
90440
90441 2000-11-17  Akim Demaille  <akim@epita.fr>
90442
90443         * lib/obstack.h: Formatting changes.
90444         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
90445         prevent type checking.
90446         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
90447         cast the value to (void *): assigning a `foo *' to a `void *'
90448         variable is valid.
90449         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
90450
90451 2000-11-16  Jim Meyering  <meyering@lucent.com>
90452
90453         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
90454
90455 2000-11-11  Jim Meyering  <meyering@lucent.com>
90456
90457         * lib/error.c: Add a couple #includes, merging from GNU libc version.
90458
90459 2000-11-10  Jim Meyering  <meyering@lucent.com>
90460
90461         * lib/obstack.h: Update from GNU libc.
90462         * lib/obstack.c: Likewise.
90463
90464 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
90465
90466         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
90467
90468 2000-11-06  Paul Eggert  <eggert@twinsun.com>
90469
90470         * lib/getusershell.c (setusershell): Use rewind rather than
90471         fseek/fseeko, to avoid configuration hassles with fseeko.
90472         Don't bother opening SHELLS_FILE if shellstream is NULL;
90473         it's not necessary.
90474
90475 2000-11-05  Jim Meyering  <meyering@lucent.com>
90476
90477         * lib/makepath.h (make_dir): Declare.
90478         * lib/makepath.c (make_dir): Remove `static' attribute.
90479         Tweak a comment.
90480
90481 2000-11-04  Jim Meyering  <meyering@lucent.com>
90482
90483         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
90484
90485 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
90486
90487         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
90488         last one in a bucket, advance to the next bucket.
90489
90490 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
90491
90492         * lib/fnmatch.c: Do not comment out all the code if we are using
90493         the GNU C library, because in some cases we are replacing buggy
90494         code in the GNU C library itself.
90495
90496 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
90497
90498         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
90499         (regex_compile): Catch bogus \(\1\).
90500
90501 2000-10-30  Paul Eggert  <eggert@twinsun.com>
90502
90503         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
90504         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
90505         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
90506
90507 2000-10-30  Paul Eggert  <eggert@twinsun.com>
90508
90509         * lib/error.h, getline.h, modechange.h:
90510         Remove "2000" from Copyright line, as the file hasn't been
90511         changed this year other than in the copyright notice.
90512
90513         * lib/xalloc.h: Add "2000" to Copyright line, as this file
90514         was changed this year.
90515
90516 2000-10-29  Jim Meyering  <meyering@lucent.com>
90517
90518         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
90519         renaming.
90520         * m4/ls-mntd-fs.m4: Likewise
90521
90522 2000-10-29  Jim Meyering  <meyering@lucent.com>
90523
90524         * lib/xstat.in: Fix grammar in comment.
90525
90526 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
90527
90528         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
90529         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
90530         doesn't define __restrict_arr.
90531
90532 2000-10-28  Jim Meyering  <meyering@lucent.com>
90533
90534         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
90535         (jm_PREREQ_MEMCHR): New function.
90536
90537 2000-10-28  Jim Meyering  <meyering@lucent.com>
90538
90539         * lib/memchr.c: Update from libc.
90540         Adjust for portability:
90541         [HAVE_STDLIB_H]: Include stdlib.h.
90542         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
90543         Undef __memchr, too.
90544         [!weak_alias]: Define __memchr to memchr.
90545
90546         * lib/regex.c: Update from libc.
90547         * lib/regex.h: Likewise.
90548         * lib/getopt1.c: Likewise.
90549         * lib/memcmp.c: Likewise.
90550
90551         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
90552         Avoid using fseek, when possible -- it's broken by design.
90553         Patch by Ulrich Drepper.
90554
90555 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
90556
90557         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
90558         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
90559         Giving in to popular pressure to shut up the compiler with casts.
90560
90561 2000-10-26  Jim Meyering  <meyering@lucent.com>
90562
90563         * lib/strftime.c: Update from libc.
90564
90565 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
90566
90567         * regex.c: More `unsigned char' -> `re_char' changes.
90568         Also change several `int' into `re_wchar_t'.
90569         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
90570         (PUSH_FAILURE_POINTER): Don't cast any more.
90571         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
90572         We want GCC to complain, since this piece of code makes
90573         re_match non-reentrant, which *should* be fixed.
90574         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
90575         (EXTEND_BUFFER): Use RETALLOC.
90576         (SET_LIST_BIT): Don't cast.
90577         (re_wchar_t): New type.
90578         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
90579         that those two functions will always properly return.
90580         (IMMEDIATE_QUIT_CHECK): Cast to void.
90581         (analyse_first): Use recursion rather than an explicit stack.
90582         (re_compile_fastmap): Can't fail anymore.
90583         (re_search_2): Don't check re_compile_fastmap for failure.
90584         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
90585         Now also sets the new value (passed in a new argument).
90586         (re_match_2_internal): Use it.
90587         Also, use a new var `reg' of type size_t when looping through regs
90588         rather than reuse the inappropriate `mcnt'.
90589
90590 2000-10-25  Jim Meyering  <meyering@lucent.com>
90591
90592         * lib/obstack.c: Update from libc.
90593
90594 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
90595
90596         * regex.c (regex_compile): Change the way of handling a range from
90597         a char less than 256 to a char not less than 256.
90598
90599 2000-10-24  Andrew Innes  <andrewi@gnu.org>
90600
90601         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
90602         NT-Emacs only.
90603         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
90604         so that re_search functions only quit when callers expect them to.
90605
90606 2000-10-23  Jim Meyering  <meyering@lucent.com>
90607
90608         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
90609         wrong.  That set_locale call must not have any side effects.
90610         From Paul Eggert.
90611
90612 2000-10-22  Jim Meyering  <meyering@lucent.com>
90613
90614         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
90615         [CYCLIC]: Remove now-unused definition.
90616
90617         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
90618         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
90619         Suggestion from Ulrich Drepper.
90620
90621 2000-10-21  Jim Meyering  <meyering@lucent.com>
90622
90623         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
90624         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
90625         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
90626
90627 2000-10-21  Jim Meyering  <meyering@lucent.com>
90628
90629         * lib/dirname.c (memrchr): Declare if necessary.
90630         (dir_name): Remove the restriction that there be no
90631         trailing slashes.  Now, this code skips past them, effectively
90632         ignoring them.
90633         [TEST_DIRNAME] (main): New unit tests.
90634
90635         * lib/memrchr.c: New file from GNU libc.
90636         Undef __memrchr, too.
90637         [!weak_alias]: Define __memrchr to memrchr.
90638         Guard weak_alias use with `#ifdef weak_alias'.
90639
90640 2000-10-21  Jim Meyering  <meyering@lucent.com>
90641
90642         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
90643         (dir_name): Use dir_name_r.
90644         * lib/dirname.h (dir_name_r): Declare it.
90645
90646 2000-10-17  Jim Meyering  <meyering@lucent.com>
90647
90648         * lib/quote.h (PARAMS): Define and use.
90649         Reported by Akim Demaille.
90650
90651         * lib/getopt.c: Update from libc.
90652
90653 2000-10-16  Jim Meyering  <meyering@lucent.com>
90654
90655         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
90656         setlocale.
90657         From Jan Fedak.
90658
90659 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
90660
90661         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
90662
90663 2000-09-25  Jim Meyering  <meyering@lucent.com>
90664
90665         * lib/md5.h (rol): Define (from GnuPG).
90666
90667         * lib/sha.c: Give credit (GnuPG) where due.
90668         (M): Use rol rather than open-coding it.
90669         Add a FIXME comment.
90670
90671 2000-09-21  Jim Meyering  <meyering@lucent.com>
90672
90673         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
90674         Reported by Michael Stone.
90675
90676 2000-09-20  Jim Meyering  <meyering@lucent.com>
90677
90678         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
90679         (noinst_HEADERS): Add sha.h.
90680         Based on code from Scott G. Miller and from GnuPG.
90681
90682 2000-09-18  Jim Meyering  <meyering@lucent.com>
90683
90684         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
90685         LIBS. Otherwise, everyone ends up linking with -lelf for some
90686         configurations.
90687         Reported by Mike Stone.
90688
90689 2000-09-15  Jim Meyering  <meyering@lucent.com>
90690
90691         * lib/regex.c: Update from libc.
90692
90693 2000-09-10  Jim Meyering  <meyering@lucent.com>
90694
90695         * lib/getopt.c (_getopt_internal): Update from glibc.
90696
90697 2000-09-09  Jim Meyering  <meyering@lucent.com>
90698
90699         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
90700         think it should be used as a general replacement for isascii.
90701         * lib/fnmatch.c: Likewise.
90702         * lib/mbswidth.c: Likewise
90703         * lib/regex.c: Likewise.
90704
90705         Don't use atoi.
90706         * lib/userspec.c: Include sys/param.h and limits.h.
90707         Include xstrtol.h.
90708         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
90709         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
90710         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
90711         UID, GID.  Check range.
90712
90713 2000-09-06  Jim Meyering  <meyering@lucent.com>
90714
90715         * lib/getopt.c (_getopt_internal): Update from glibc.
90716
90717 2000-08-30  Jim Meyering  <meyering@lucent.com>
90718
90719         * lib/strftime.c: Merge in changes from GNU libc.
90720
90721 2000-08-26  Jim Meyering  <meyering@lucent.com>
90722
90723         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
90724         * m4/fpending.m4: New file.
90725
90726 2000-08-26  Jim Meyering  <meyering@lucent.com>
90727
90728         * lib/closeout.c: Include "__fpending.h".
90729         (close_stdout_status): Return right away if there's nothing to flush.
90730
90731         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
90732         * lib/__fpending.c: New file.
90733         * lib/__fpending.h: New file.
90734
90735 2000-08-20  Jim Meyering  <meyering@lucent.com>
90736
90737         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
90738         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
90739         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
90740
90741 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
90742
90743         Improve fileutils installation on systems where running
90744         programs (like install) can't be unlinked.
90745         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
90746         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
90747
90748 2000-08-07  Paul Eggert  <eggert@twinsun.com>
90749
90750         Standardize on "memory exhausted" instead of "Memory exhausted"
90751         or "virtual memory exhausted".
90752         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
90753         "virtual memory exhausted".
90754         * lib/same.c (same_name): Invoke xalloc_die instead of printing
90755         our own message.
90756         * lib/userspec.c (parse_user_spec): Likewise.
90757         * lib/bumpalloc.h: comment fix
90758         * lib/same.c, userspec.c: Include xalloc.h.
90759
90760         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
90761         not char *const and pointing to a constant array.
90762         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
90763         (xrealloc): Comment fix.
90764
90765         * lib/userspec.c (parse_user_spec):
90766         Don't translate a message until just before returning,
90767         to avoid unnecessary translation.
90768
90769 2000-08-07  Jim Meyering  <meyering@lucent.com>
90770
90771         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
90772         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
90773         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
90774         getgroups.c, gethostname.c, getopt.h, group-member.c,
90775         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
90776         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
90777         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
90778         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
90779         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
90780         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
90781         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
90782         yesno.c: Back out Copyright date changes for each file with no change
90783         this year.  This eases coordination with other programs using the same
90784         source code modules.  From Paul Eggert.
90785
90786 2000-08-06  Paul Eggert  <eggert@twinsun.com>
90787
90788         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
90789         not char, for compatibility with glibc 2.1.3 strftime.c.
90790
90791 2000-08-03  Greg McGary  <greg@mcgary.org>
90792
90793         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
90794         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
90795         (EXTEND_BUFFER): Use them.
90796
90797 2000-08-01  Jim Meyering  <meyering@lucent.com>
90798
90799         * lib/dirname.c (ISSLASH): Define.
90800         (BACKSLASH_IS_PATH_SEPARATOR): Define.
90801         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
90802         both `\' and `/' may be use as path separators.
90803         Based on a patch from Prashant TR.
90804
90805 2000-07-31  Paul Eggert  <eggert@twinsun.com>
90806
90807         * lib/quotearg.c (quotearg_n_options): Don't make the initial
90808         slot vector a constant, since it might get modified.
90809
90810 2000-07-31  Jim Meyering  <meyering@lucent.com>
90811
90812         * lib/xmalloc.c: Use `virtual memory exhausted', not
90813         `Memory exhausted'.
90814         * lib/obstack.c (print_and_abort): Likewise.
90815
90816 2000-07-30  Paul Eggert  <eggert@twinsun.com>
90817
90818         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
90819         buffer, so that the caller can always quote one small
90820         component of a "memory exhausted" message in slot 0.
90821         From a suggestion by Jim Meyering.
90822
90823 2000-07-30  Jim Meyering  <meyering@lucent.com>
90824
90825         * lib/makepath.c (make_path): Quote the other instance, too.
90826
90827         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
90828         (STATIC_BUF_SIZE): Define.
90829         (quotearg_n_options): Use only statically allocated storage when
90830         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
90831         than STATIC_BUF_SIZE.
90832
90833 2000-07-29  Jim Meyering  <meyering@lucent.com>
90834
90835         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
90836         * lib/dirname.c (dir_name): Likewise.
90837
90838         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
90839         `/'.
90840
90841         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
90842         (dir_name): Assert that there are no trailing slashes.
90843
90844 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
90845
90846         * lib/mbswidth.h (mbswidth): Add a flags argument.
90847         (mbswidth): New declaration.
90848         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
90849         * lib/mbswidth.c (mbswidth): Add a flags argument.
90850         (mbsnwidth): New function.
90851
90852 2000-07-24  Jim Meyering  <meyering@lucent.com>
90853
90854         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
90855
90856 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90857
90858         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
90859
90860 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90861
90862         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
90863         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
90864         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
90865         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
90866         invoke multibyte primitives.
90867
90868 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90869
90870         * lib/quotearg.c:
90871         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
90872         so that mbstate_t is always defined.
90873
90874         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
90875         be 1 in at least one GCC installation, and this configuration
90876         error is likely to be common.  Ignoring MB_LEN_MAX hurts
90877         performance on hosts that have mbrtowc but have only unibyte
90878         locales, but I assume these hosts are rare.
90879
90880 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90881
90882         * lib/mbswidth.c (_XOPEN_SOURCE):
90883         Don't define; this causes problems on Solaris 7.
90884         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
90885
90886 2000-07-23  Jim Meyering  <meyering@lucent.com>
90887
90888         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
90889         too: getgrgid, getpwuid, getuid.
90890
90891 2000-07-23  Jim Meyering  <meyering@lucent.com>
90892
90893         * lib/basename.c (base_name): Add an assertion.
90894
90895 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
90896
90897         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
90898         shadow its mbsinit function.
90899
90900 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
90901
90902         * lib/mbswidth.h: New file.
90903         * lib/mbswidth.c: New file.
90904         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
90905         (noinst_HEADERS): Add mbswidth.h.
90906
90907 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
90908
90909         * lib/config.charset: Add support for FreeBSD. Improve support for
90910         HP-UX and IRIX 6.
90911
90912 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
90913
90914         * m4/mbswidth.m4: New file.
90915         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
90916
90917 2000-07-15  Jim Meyering  <meyering@lucent.com>
90918
90919         * lib/makepath.c: Include quote.h.
90920         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
90921         corresponding argument in a `quote (...)' call.
90922         Give better diagnostics.
90923
90924         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
90925         (noinst_HEADERS): Add quote.h.
90926
90927         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
90928         from tar's src/misc.c.
90929         * lib/quote.h: New file.  Prototypes for same.
90930
90931 2000-07-14  Paul Eggert  <eggert@twinsun.com>
90932
90933         From a suggestion by Bruno Haible.
90934         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
90935         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
90936         to decide whether to define the BeOS workaround macro;
90937         this adjusts to the change to AC_MBSTATE_T.
90938
90939 2000-07-14  Jim Meyering  <meyering@lucent.com>
90940
90941         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
90942         jm_AC_TYPE_UINTMAX_T.
90943
90944 2000-07-13  Paul Eggert  <eggert@twinsun.com>
90945
90946         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
90947
90948         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
90949         quotearg_buffer_restyled): Add support for
90950         clocale_quoting_style.  Undo previous change to
90951         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
90952         and "{RIGHT QUOTATION MARK}" msgids.
90953
90954 2000-07-10  Paul Eggert  <eggert@twinsun.com>
90955
90956         From a suggestion by Bruno Haible.
90957         * m4/mbstate_t.m4 (AC_MBSTATE_T):
90958         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
90959         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
90960         and mbstate_t, to a single-part test that simply defines mbstate_t.
90961         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
90962         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
90963
90964 2000-07-10  Jim Meyering  <meyering@lucent.com>
90965
90966         * m4/strerror_r.m4: Mirror the correction made in autoconf.
90967
90968         * m4/gnu-source.m4: Output to confdefs.h directly.
90969         Suggestion from Akim Demaille.
90970
90971 2000-07-09  Paul Eggert  <eggert@twinsun.com>
90972
90973         The old behavior of quoting `like this' doesn't look good with
90974         newer, ISO-style fonts.  See:
90975         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
90976
90977         Instead, quote "like this" by default.  Let the translator
90978         tailor the locale-specific quoting behavior by providing
90979         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
90980
90981         * lib/quotearg.c (N_): New macro.
90982         (gettext_default): New function.
90983         (quotearg_buffer_restyled): Use
90984         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
90985         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
90986
90987 2000-07-09  Jim Meyering  <meyering@lucent.com>
90988
90989         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
90990         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
90991
90992         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
90993         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
90994
90995 2000-07-09  Jim Meyering  <meyering@lucent.com>
90996
90997         * lib/Most files: Update copyright dates to include 2000.
90998
90999 2000-07-08  Jim Meyering  <meyering@lucent.com>
91000
91001         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
91002         if not defined.
91003         (xgethostname): Remove now-unnecessary #ifdef.
91004         Move declaration of `err' into loop where it's used.
91005
91006 2000-07-05  Paul Eggert  <eggert@twinsun.com>
91007         and Bruno Haible  <haible@clisp.cons.org>
91008
91009         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
91010         only if the test for an object-type mbstate_t fails.  This
91011         prevents us from mistakenly reporting that mbstate_t is a
91012         system object type after we "#define mbstate_t int" to work
91013         around its lack.
91014
91015 2000-07-05  Paul Eggert  <eggert@twinsun.com>
91016         and Bruno Haible  <haible@clisp.cons.org>
91017
91018         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
91019
91020 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
91021
91022         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
91023         to strerror_r.
91024         Include <ctype.h> for use of isalpha.
91025
91026 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
91027
91028         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
91029         by allocating a larger buffer. Test the gethostname return value for
91030         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
91031         returns an error and ENAMETOOLONG isn't defined.
91032
91033 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
91034
91035         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
91036         dimension.
91037
91038 2000-07-04  Jim Meyering  <meyering@lucent.com>
91039
91040         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
91041         of the deprecated AC_CHECKING.
91042
91043 2000-07-04  Jim Meyering  <meyering@lucent.com>
91044
91045         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
91046         Reported by Bruno Haible.
91047
91048 2000-07-04  Jim Meyering  <meyering@lucent.com>
91049
91050         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
91051         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
91052         lacks mbrtowc.
91053
91054 2000-07-03  Paul Eggert  <eggert@twinsun.com>
91055
91056         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
91057         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
91058
91059 2000-07-03  Paul Eggert  <eggert@twinsun.com>
91060         and Bruno Haible  <haible@clisp.cons.org>
91061
91062         * lib/quotearg.c (mbrtowc):
91063         Assign to *pwc, and return 1 only if result is nonzero.
91064         (iswprint): Use ISPRINT when substituting our own mbrtowc.
91065
91066 2000-07-03  Jim Meyering  <meyering@lucent.com>
91067
91068         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
91069
91070 2000-07-03  Jim Meyering  <meyering@lucent.com>
91071
91072         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
91073         This is necessary to get a definition of e.g., UTMP_FILE on
91074         HP-UX 10.20.
91075         From Bob Proulx.
91076
91077 2000-07-02  Jim Meyering  <meyering@lucent.com>
91078
91079         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
91080
91081         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
91082         AC_LIBOBJ(function_name).
91083         * m4/chown.m4: Likewise.
91084         * m4/fnmatch.m4: Likewise.
91085         * m4/ftruncate.m4: Likewise.
91086         * m4/getgroups.m4: Likewise.
91087         * m4/getline.m4: Likewise.
91088         * m4/group-member.m4: Likewise.
91089         * m4/jm-macros.m4: Likewise.
91090         * m4/lstat.m4: Likewise.
91091         * m4/malloc.m4: Likewise.
91092         * m4/memcmp.m4: Likewise.
91093         * m4/nanosleep.m4: Likewise.
91094         * m4/putenv.m4: Likewise.
91095         * m4/realloc.m4: Likewise.
91096         * m4/regex.m4: Likewise.
91097         * m4/stat.m4: Likewise.
91098         * m4/strftime.m4: Likewise.
91099
91100 2000-07-02  Jim Meyering  <meyering@lucent.com>
91101
91102         * lib/quotearg.c (mbstate_t): Don't define here.
91103
91104 2000-07-02  Jim Meyering  <meyering@lucent.com>
91105
91106         * lib/nanosleep.c (SIGCONT): Define if not already defined.
91107
91108 2000-07-01  Jim Meyering  <meyering@lucent.com>
91109
91110         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
91111
91112 2000-07-01  Jim Meyering  <meyering@lucent.com>
91113
91114         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
91115         problem.
91116
91117 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
91118
91119         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
91120         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
91121
91122 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
91123
91124         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
91125         per change in ../m4/ls-mntd-fs.m4.
91126         (read_filesystem_list): Ignore symbolic links.
91127
91128 2000-06-29  Jim Meyering  <meyering@lucent.com>
91129
91130         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
91131         for declaration of strcmp.
91132
91133         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
91134
91135         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
91136         Avoid warning by casting result to `char *' to remove `const'.
91137
91138 2000-06-28  Jim Meyering  <meyering@lucent.com>
91139
91140         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
91141         included by quotearg.c, for which we perform this test.  From
91142         Bruno Haible.
91143
91144 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
91145
91146         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
91147         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
91148         <utmpx.h> exists, put readutmp.o into LIBOBJS.
91149
91150 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
91151
91152         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
91153
91154 2000-06-26  Paul Eggert  <eggert@twinsun.com>
91155
91156         savedir now sets errno on failure and invokes xmalloc to get memory.
91157         Fix a couple of other minor bugs while we're at it.
91158
91159         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
91160         (NAMLEN): Remove macro.
91161         (malloc, realloc): Remove decls.
91162         (stpcpy): Likewise.
91163         ("xalloc.h"): Include.
91164         (NAME_SIZE_DEFAULT): New macro.
91165         (savedir): Use xmalloc / xrealloc to allocate memory.
91166         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
91167         Skip "" directory entries.
91168         Use strlen to calculate directory entry length, since the old method
91169         is rarely used these days and isn't worth supporting.
91170         Don't use a pointer after freeing it.
91171         Check for integer overflow when calculating allocation size.
91172         Use memcpy to copy entries, instead of stpcpy.
91173         Set errno properly when returning NULL.
91174         Check for readdir error.
91175
91176 2000-06-26  Jim Meyering  <meyering@lucent.com>
91177
91178         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
91179
91180 2000-06-25  Jim Meyering  <meyering@lucent.com>
91181
91182         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
91183         Linux header bug when _XOPEN_SOURCE is defined to 500.
91184
91185 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
91186
91187         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
91188         deficiency.
91189
91190 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
91191
91192         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
91193         Include xalloc.h.
91194         Don't include <stdlib.h>.  Don't declare malloc, realloc.
91195
91196 2000-06-24  Jim Meyering  <meyering@lucent.com>
91197
91198         * m4/strerror_r.m4: Revive this file -- to try out an experimental
91199         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
91200         for which strerror does return char*, but which lacks a conveniently
91201         accessible declaration of the function.  If the compile-test says
91202         strerror_r doesn't work, then resort to a `run'-test that works on
91203         BeOS and segfaults on DEC Unix.
91204
91205 2000-06-24  Jim Meyering  <meyering@lucent.com>
91206
91207         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
91208
91209 2000-06-23  Paul Eggert  <eggert@twinsun.com>
91210
91211         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
91212         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
91213
91214 2000-06-23  Paul Eggert  <eggert@twinsun.com>
91215
91216         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
91217         (mbrtowc, mbstate_t): Define substitutes if
91218         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
91219         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
91220         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
91221
91222 2000-06-23  Jim Meyering  <meyering@lucent.com>
91223
91224         * m4/afs.m4: Add missing AC_MSG_RESULT.
91225         Reported by Bruno Haible.
91226
91227         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
91228         Suggestion from Bruno Haible.
91229
91230 2000-06-23  Jim Meyering  <meyering@lucent.com>
91231
91232         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
91233
91234 2000-06-21  Jim Meyering  <meyering@lucent.com>
91235
91236         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
91237
91238 2000-06-21  Jim Meyering  <meyering@lucent.com>
91239
91240         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
91241         (noinst_HEADERS): Add getstr.h.
91242
91243         * lib/getline.c (getstr): Move into a separate file.
91244         * lib/getstr.c (getstr): New file, extracted from getline.c, with
91245         the following changes: new parameter, delim2; both delim[12]
91246         parameters have type `int', not `char'.  The latter would lose
91247         with 8-bit delimiters.
91248         * lib/getstr.h: New file.
91249
91250 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
91251
91252         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
91253         than 1024, return a memory chunk of least possible size, instead
91254         of size PATH_MAX + 2. In the loop, increment the size proportionally.
91255         Use free/xmalloc instead of xrealloc to avoid copying for very long
91256         paths.
91257
91258 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
91259
91260         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
91261         the empty string.
91262
91263 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
91264
91265         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
91266         address, not strdup.  Include <stdlib.h> and don't declare free().
91267
91268 2000-06-19  Jim Meyering  <meyering@lucent.com>
91269
91270         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
91271
91272 2000-06-18  Jim Meyering  <meyering@lucent.com>
91273
91274         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
91275
91276         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
91277         `checking whether...' message to be consistent with that of the
91278         lstat test.
91279
91280 2000-06-18  Jim Meyering  <meyering@lucent.com>
91281
91282         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
91283         Besides, these days every porting target provides a mkdir function.
91284
91285         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
91286         needed. (this snippet comes from src/system.h).
91287
91288 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
91289
91290         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
91291
91292 2000-06-15  Paul Eggert  <eggert@twinsun.com>
91293
91294         * lib/human.c (adjust_value): New function.
91295         (human_readable_inexact): Apply rounding style even when
91296         printing approximate values.
91297
91298 2000-06-14  Paul Eggert  <eggert@twinsun.com>
91299
91300         * lib/human.c (human_readable_inexact): Allow an input block
91301         size that is not a multiple of the output block size, and vice versa.
91302         Reported by Piergiorgio Sartor.
91303
91304 2000-06-14  Paul Eggert  <eggert@twinsun.com>
91305
91306         * lib/getdate.y (get_date): Apply relative times after time
91307         zone indicator, not before.  Reported by Todd A. Jacobs.
91308
91309 2000-06-13  Jim Meyering  <meyering@lucent.com>
91310
91311         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
91312
91313         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
91314
91315 2000-06-12  Paul Eggert  <eggert@twinsun.com>
91316
91317         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
91318
91319 2000-06-12  Jim Meyering  <meyering@lucent.com>
91320
91321         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
91322         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
91323         optional argument.
91324         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
91325         the optional argument, `lib'.
91326
91327 2000-06-08  Jim Meyering  <meyering@lucent.com>
91328
91329         * m4/largefile.m4: Remove file (now that it's part of autoconf).
91330
91331 2000-06-04  Paul Eggert  <eggert@twinsun.com>
91332
91333         Rewrite largefile configuration so that we don't need to run
91334         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
91335         AC_CANONICAL_HOST in configure.in -- jmm]
91336
91337         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
91338         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
91339         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
91340         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
91341         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
91342         All uses changed.
91343         Instead of inspecting the output of getconf, try to compile the
91344         test program without and with the macro definition.
91345         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
91346         for getconf.  Instead, check for the needed flags by compiling
91347         test programs.
91348
91349 2000-06-04  Paul Eggert  <eggert@twinsun.com>
91350
91351         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
91352
91353 2000-06-04  Jim Meyering  <meyering@lucent.com>
91354
91355         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
91356         SunOS 4.1.4 for which gid_t is an unsigned type.
91357
91358 2000-06-03  Jim Meyering  <meyering@lucent.com>
91359
91360         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
91361         now that autoconf requires that.
91362
91363         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
91364         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
91365         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
91366
91367 2000-06-03  Jim Meyering  <meyering@lucent.com>
91368
91369         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
91370
91371 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
91372
91373         * m4/glibc21.m4: New file.
91374         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
91375
91376 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
91377
91378         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
91379         newer, don't install charset.alias.
91380         * lib/config.charset: Change the Linux/glibc rules so they become empty
91381         on glibc-2.1 or newer.
91382
91383 2000-06-02  Jim Meyering  <meyering@lucent.com>
91384
91385         * lib/mountlist.c: Back out last change.  Instead, do this...
91386         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
91387         me_dummy member using the same `ignore'-testing code.
91388         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
91389         fs_type strings.
91390         From Mark D. Roth.
91391
91392 2000-05-29  Jim Meyering  <meyering@lucent.com>
91393
91394         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
91395         mounts with the `ignore' attribute.  Based on a patch from
91396         Mark D. Roth.
91397
91398 2000-05-28  Jim Meyering  <meyering@lucent.com>
91399
91400         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
91401         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
91402         * m4/stat.m4: Likewise.
91403         * m4/lstat.m4: Likewise.
91404         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
91405
91406         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
91407         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
91408
91409 2000-05-26  Jim Meyering  <meyering@lucent.com>
91410
91411         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
91412
91413 2000-05-24  Jim Meyering  <meyering@lucent.com>
91414
91415         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
91416         autoconf requires that.
91417         * m4/lib-check.m4: Likewise.
91418         * m4/jm-macros.m4: Likewise.
91419         * m4/strftime.m4: Likewise.
91420
91421         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
91422         AC_CHECK_DECLS, now that autoconf requires that.
91423
91424 2000-05-22  Jim Meyering  <meyering@lucent.com>
91425
91426         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
91427         * m4/lstat.m4: Likewise.
91428
91429 2000-05-22  Jim Meyering  <meyering@lucent.com>
91430
91431         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
91432
91433 2000-05-20  Jim Meyering  <meyering@lucent.com>
91434
91435         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
91436         (jm_PREREQ): Use it.
91437
91438 2000-05-18  Jim Meyering  <meyering@lucent.com>
91439
91440         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
91441         back, too, since it may have been modified by allocate_entry.
91442         (hash_delete): Rewrite to use neither the assignment operator
91443         nor the comma operator in an if-expression.
91444
91445 2000-05-15  Paul Eggert  <eggert@twinsun.com>
91446
91447         * lib/closeout.c:
91448         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
91449         Remove; no longer needed.
91450         "quotearg.h": Add include.
91451         (file_name): Do not bother to explicitly initialize to NULL; it's less
91452         efficient on some hosts.
91453         (close_stdout_status): Remove test as to whether stdout was already
91454         closed; it breaks for the case "echo x | sort >&-".
91455         Quote file name colons.
91456         Do not assume that _("write error") lacks format strings.
91457
91458 2000-05-15  Jim Meyering  <meyering@lucent.com>
91459
91460         * lib/version-etc.c (version_etc_copyright): Update the copyright
91461         string used in all --version output.
91462
91463 2000-05-14  Jim Meyering  <meyering@lucent.com>
91464
91465         * lib/closeout.c (close_stdout_set_file_name): New function.
91466         (close_stdout_status): Use new file-scoped global.
91467         Return right away if fstat says the stdout file descriptor is invalid.
91468         * lib/closeout.h (close_stdout_set_file_name): Declare.
91469
91470 2000-05-10  Jim Meyering  <meyering@lucent.com>
91471
91472         * lib/closeout.c [default_exit_status]: New file-scoped variable.
91473         (close_stdout_set_status): New function.
91474         * lib/closeout.h (close_stdout_set_status): Declare.
91475
91476 2000-05-09  Jim Meyering  <meyering@lucent.com>
91477
91478         * m4/gettext.m4: Rename this...
91479         * m4/libintl.m4: ...to this.
91480
91481 2000-05-08  Jim Meyering  <meyering@lucent.com>
91482
91483         * lib/long-options.c: Don't include closeout.h.
91484         (parse_long_options): Don't call close_stdout for --version.
91485
91486 2000-05-06  Paul Eggert  <eggert@twinsun.com>
91487
91488         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
91489         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
91490         2.1.3 bug.  This avoids a clash when files like regex.c define
91491         _GNU_SOURCE.
91492
91493 2000-05-06  Jim Meyering  <meyering@lucent.com>
91494
91495         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
91496         (AC_REPLACE_FUNCS): Add strnlen.
91497
91498         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
91499         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
91500
91501         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
91502         AC_SEARCH_LIBS call for nanosleep.
91503         (LIB_NANOSLEEP): Set and AC_SUBST.
91504
91505 2000-05-06  Jim Meyering  <meyering@lucent.com>
91506
91507         * lib/strnlen.c: Undefine __strnlen and strnlen.
91508         [!weak_alias]: Define __strnlen to strnlen.
91509
91510         * lib/atexit.c: New file, from libiberty.
91511
91512 2000-05-06  Jim Meyering  <meyering@lucent.com>
91513
91514         * lib/closeout.c (close_stdout_status): Also check for errors on the
91515         stderr stream.
91516
91517 2000-05-05  Jim Meyering  <meyering@lucent.com>
91518
91519         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
91520         AC_SEARCH_LIBS call for clock_gettime.
91521         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
91522
91523         * m4/search-libs.m4: Update from autoconf.
91524
91525         su doesn't work on Solaris 2.6.
91526         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
91527         <shadow.h>.  Reported by Dragos Harabor.
91528
91529 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
91530
91531         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
91532         memcpy instead of xmalloc, xrealloc, path_concat.
91533         (locale_charset): Treat empty environment variables as absent.
91534         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
91535
91536 2000-05-04  Jim Meyering  <meyering@lucent.com>
91537
91538         * lib/getopt.c: Update from glibc.
91539         * lib/obstack.c: Likewise.
91540         * lib/obstack.h: Likewise.
91541         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
91542         file
91543
91544         * lib/regex.h: Likewise.
91545         * lib/strndup.c: Likewise.
91546         * lib/strnlen.c: New file, from glibc.
91547
91548 2000-05-03  Jim Meyering  <meyering@lucent.com>
91549
91550         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
91551
91552 2000-05-02  Paul Eggert  <eggert@twinsun.com>
91553
91554         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
91555         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
91556         compile-time test, rather than inspecting host and OS, to
91557         decide whether to define _LARGEFILE_SOURCE.
91558
91559 2000-05-01  Jim Meyering  <meyering@lucent.com>
91560
91561         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
91562
91563         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
91564         Based on a patch from Bruno Haible.
91565
91566 2000-05-01  Jim Meyering  <meyering@lucent.com>
91567
91568         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
91569
91570 2000-04-29  Jim Meyering  <meyering@lucent.com>
91571
91572         * lib/path-concat.c: Declare strdup only if it's not defined.
91573         * lib/canon-host.c: Likewise.
91574
91575 2000-04-28  Jim Meyering  <meyering@lucent.com>
91576
91577         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
91578         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
91579         is included first, then limits.h is included by locale.h by libintl.h.
91580         From John David Anglin.
91581
91582 2000-04-25  Jim Meyering  <meyering@lucent.com>
91583
91584         * lib/makepath.c (S_IRWXUGO): Define.
91585         (make_path): Always perform explicit chmod if MODE specifies any
91586         of the `special' permission bits.  Prompted by a bug report against
91587         install from Mate Wierdl and Joost van Baal.
91588
91589 2000-04-18  Jim Meyering  <meyering@lucent.com>
91590
91591         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
91592         (jm_PREREQ): Use it.
91593
91594 2000-04-18  Jim Meyering  <meyering@lucent.com>
91595
91596         * lib/README: New file.
91597
91598         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
91599         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
91600
91601 2000-04-17  Jim Meyering  <meyering@lucent.com>
91602
91603         Get it right :-)
91604         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
91605         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
91606         Suggestion from Akim Demaille.
91607
91608 2000-04-17  Jim Meyering  <meyering@lucent.com>
91609
91610         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
91611         the definition of it to rpl_strftime also defined-away the system's
91612         declaration.
91613
91614 2000-04-15  Jim Meyering  <meyering@lucent.com>
91615
91616         Use `C' to denote so-called `contiguous' files, the same way
91617         that tar does.
91618         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
91619         (ftypelet): Use S_ISCTG.
91620         From Michael Deutschmann.
91621
91622 2000-04-14  Jim Meyering  <meyering@lucent.com>
91623
91624         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
91625         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
91626         clobbered.
91627
91628 2000-04-14  Jim Meyering  <meyering@lucent.com>
91629
91630         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
91631
91632 2000-04-13  Jim Meyering  <meyering@lucent.com>
91633
91634         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
91635         AH_VERBATIM to insert required #ifndef into config.h.in.
91636         Suggestion from Akim Demaille.
91637
91638 2000-04-12  Jim Meyering  <meyering@lucent.com>
91639
91640         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
91641         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
91642         Christian Krackowizer.
91643
91644         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
91645         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
91646         (AC_SYS_LARGEFILE): Require.
91647         (AM_C_PROTOTYPES): Require.
91648
91649 2000-04-08  Jim Meyering  <meyering@lucent.com>
91650
91651         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
91652         names don't conflict.  Reported by Eli Zaretskii.
91653
91654 2000-04-07  Jim Meyering  <meyering@lucent.com>
91655
91656         * lib/putenv.c: Move inclusion of errno.h so it follows that of
91657         sys/types.h, to work around system header problems on AIX 3.2.5.
91658         From Bruno Haible.
91659
91660 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
91661
91662         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
91663         bug.  Deal with the different error behavior of Irix iconv.
91664
91665 2000-04-05  Paul Eggert  <eggert@twinsun.com>
91666
91667         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
91668         IRIX if the installer said otherwise.
91669
91670 2000-04-05  Jim Meyering  <meyering@lucent.com>
91671
91672         Portability tweaks required for ultrix4.3.
91673         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
91674         (jm_CHECK_DECLS): Add getutent to the list of functions.
91675         (_jm_DECL_HEADERS): Add utmpx.h.
91676         From John David Anglin.
91677
91678         * m4/strftime.m4: Back out the 2000-04-02 change.
91679         Instead of that change, simply undefine putenv in the test program.
91680
91681 2000-04-05  Jim Meyering  <meyering@lucent.com>
91682
91683         Portability tweaks required for ultrix4.3.
91684         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
91685         getutent.
91686         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
91687         * lib/canon-host.c: Declare strdup.
91688         * lib/path-concat.c: Likewise.
91689         From John David Anglin.
91690
91691 2000-04-04  Jim Meyering  <meyering@lucent.com>
91692
91693         Be more DOS 8.3-friendly.
91694         * lib/ref-add.sin: Renamed from ref-add.sed.in.
91695         * lib/ref-del.sin: Renamed from ref-del.sed.in.
91696         * lib/Makefile.am: Reflect renaming.
91697         Reported by Eli Zaretskii.
91698
91699         Use a temporary file name that won't clash with `charset.alias'
91700         in the DOS 8.3 name space.
91701         * lib/Makefile.am (charset_tmp): Define.
91702         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
91703         (uninstall-local): Likewise.
91704         Reported by Eli Zaretskii.
91705
91706 2000-04-03  Jim Meyering  <meyering@lucent.com>
91707
91708         * m4/gettext.m4: Fix typo in comment.
91709
91710         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
91711         textutils/configure.in).  Suggestion from Paul Eggert.
91712         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
91713
91714 2000-04-02  Paul Eggert  <eggert@twinsun.com>
91715
91716         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
91717         variable in the shell rather than using putenv, which isn't
91718         portable.  This avoids the configure-time inter-test dependency
91719         on the potentially-renamed putenv function.
91720
91721 2000-03-30  Paul Eggert  <eggert@twinsun.com>
91722
91723         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
91724         before checking struct stat.st_blksize, so that
91725         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
91726
91727 2000-03-29  Paul Eggert  <eggert@twinsun.com>
91728
91729         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
91730         since strftime.c uses HAVE_STRFTIME to decide whether to use
91731         the underlying strftime.
91732
91733 2000-03-29  Paul Eggert  <eggert@twinsun.com>
91734
91735         * lib/time/strftime.c (my_strftime): Make sure we call the system
91736         strftime, not ourselves, when invoking the underlying strftime.
91737
91738 2000-03-24  Jim Meyering  <meyering@lucent.com>
91739
91740         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
91741         (charset_alias): Define.
91742         (install-exec-local): Factor out common code.
91743         (uninstall-local): Split lines longer than 80.
91744         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
91745         (SUFFIXES): Define.
91746         (.sed.in.sed): New rule.  Don't redirect directly to $@.
91747         (CLEANFILES): Add ref-add.sed and ref-del.sed.
91748
91749 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
91750
91751         * lib/config.charset: Output a line containing "Packages using this
91752         file".
91753         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
91754         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
91755         ref-del.sed): New rules.
91756
91757 2000-03-17  Jim Meyering  <meyering@lucent.com>
91758
91759         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
91760         Otherwise, include <strings.h>
91761
91762 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
91763
91764         * lib/unicodeio.c (utf8_wctomb): New function.
91765         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
91766         format instead of in UCS-4 with platform dependent endianness.
91767
91768 2000-03-10  Jim Meyering  <meyering@lucent.com>
91769
91770         * m4/lib-check.m4: Look for getspnam in -lgen, too.
91771         From Marco Franzen.
91772
91773 2000-03-07  Paul Eggert  <eggert@twinsun.com>
91774
91775         * lib/savedir.c (savedir): Work even if directory size is
91776         negative; this can happen with some screwy NFS configurations.
91777
91778 2000-03-06  Jim Meyering  <meyering@lucent.com>
91779
91780         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
91781         if it's NULL (because we ran out of memory).  From Bruno Haible.
91782
91783 2000-03-05  Jim Meyering  <meyering@lucent.com>
91784
91785         * lib/localcharset.c ("path-concat.h"): Include.
91786         (get_charset_aliases): Use path_concat instead of ANSI string
91787         concatenation.
91788
91789         * lib/unicodeio.h (PARAMS): Define.
91790         Use it to guard prototype.
91791
91792 2000-03-04  Jim Meyering  <meyering@lucent.com>
91793
91794         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
91795         for lib/localcharset.c.
91796
91797 2000-03-04  Jim Meyering  <meyering@lucent.com>
91798
91799         * lib/Makefile.am (install-exec-local): Create $(libdir) before
91800         installing into it.
91801         (uninstall-local): Uncomment this rule so `make distcheck' works
91802         once again.
91803
91804         * lib/unicodeio.c (<errno.h>): Include it.
91805         (errno): Declare if not defined.
91806
91807         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
91808
91809         * lib/config.charset: New version, incorporating remarks from a linux
91810         i18n mailing list.  From Bruno Haible.
91811
91812 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
91813
91814         * m4/codeset.m4: New file.
91815         * m4/iconv.m4: New file.
91816         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
91817
91818 2000-03-03  Jim Meyering  <meyering@lucent.com>
91819
91820         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
91821
91822 2000-03-02  Jim Meyering  <meyering@lucent.com>
91823
91824         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
91825         the messages come out on separate lines.
91826
91827         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
91828         rather than jm_CHECK_DECLARATIONS.
91829         * m4/decl.m4: Remove now-unused file.
91830
91831         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
91832         geteuid.
91833
91834 2000-03-02  Jim Meyering  <meyering@lucent.com>
91835
91836         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
91837
91838 2000-03-01  Jim Meyering  <meyering@lucent.com>
91839
91840         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
91841         * lib/unicodeio.c: Likewise.
91842
91843 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
91844
91845         * lib/config.charset: New file.
91846         * lib/localcharset.c: New file.
91847         * lib/unicodeio.h, lib/unicodeio.c: New files.
91848         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
91849         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
91850         (noinst_HEADERS): Add unicodeio.h.
91851         (all-local, install-exec-local, charset.alias): New targets.
91852
91853 2000-02-28  Paul Eggert  <eggert@twinsun.com>
91854
91855         * lib/quotearg.c (ALERT_CHAR): New macro.
91856         (quotearg_buffer_restyled): Use it.
91857
91858 2000-02-27  Jim Meyering  <meyering@lucent.com>
91859
91860         * m4/check-decl.m4: Add getenv to the list.
91861
91862 2000-02-27  Jim Meyering  <meyering@lucent.com>
91863
91864         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
91865         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
91866
91867         * lib/backupfile.c: Guard inclusion of stdlib.h with
91868         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
91869         Declare malloc if needed.
91870
91871         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
91872         `#ifndef HAVE_DECL..'
91873         now that autoconf always defines the HAVE_DECL_ symbols.
91874         * lib/human.c: Likewise.
91875         * lib/same.c: Likewise.
91876         * lib/strtoumax.c: Likewise.
91877
91878         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
91879         declaration check was not run.
91880         * lib/hash.c: Likewise.
91881         * lib/human.c: Likewise.
91882         * lib/same.c: Likewise.
91883         * lib/strtoumax.c: Likewise.
91884
91885         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
91886         `.', then first look up the entire `.'-containing string as a login
91887         name.
91888
91889 2000-02-23  Jim Meyering  <meyering@lucent.com>
91890
91891         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
91892         in place of my hack.
91893
91894 2000-02-18  Paul Eggert  <eggert@twinsun.com>
91895
91896         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
91897         (textint): New typedef.
91898         (parser_control): Member year changed from int to textint.
91899         All uses changed.
91900         (YYSTYPE): Removed; replaced by %union with int and textint members.
91901         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
91902         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
91903         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
91904         (tSNUMBER, tUNUMBER): Now of type <textintval>.
91905         (date, number, to_year): Use width of number in digits, not its value,
91906         to determine whether it's a 2-digit year, or a 2-digit time.
91907         (yylex): Store number of digits of numeric tokens.
91908         Reported by John Kendall.
91909
91910         (parser_control): Changed from struct parser_control to typedef (for
91911         consistency).  All uses changed.
91912
91913         (tID): Removed; not used.
91914         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
91915
91916 2000-02-14  Paul Eggert  <eggert@twinsun.com>
91917
91918         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
91919         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
91920
91921 2000-02-12  Jim Meyering  <meyering@lucent.com>
91922
91923         * lib/userspec.c (ISDIGIT): Define it.
91924         (isdigit): Remove definition.
91925         (is_number): Use ISDIGIT, not isdigit.
91926         <libintl.h>: Include.
91927         (_ and N_): Define.
91928         (parse_user_spec): Mark translatable strings.
91929
91930 2000-02-10  Jim Meyering  <meyering@lucent.com>
91931
91932         With these changes, nanosleep.[ch] are finally enough like the other
91933         lib/* replacement files to compile on a few more losing systems.
91934
91935         * lib/nanosleep.h: Don't include config.h.
91936         Remove prototype from declaration of nanosleep.
91937         (PARAMS): Remove now-unneeded definition.
91938         * lib/nanosleep.c: #undef nanosleep.
91939         (rpl_nanosleep): Rename from nanosleep.
91940
91941 2000-02-10  Jim Meyering  <meyering@lucent.com>
91942
91943         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
91944         gnu_nanosleep to rpl_nanosleep.
91945
91946 2000-02-09  Jim Meyering  <meyering@lucent.com>
91947
91948         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
91949         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
91950
91951 2000-02-08  Akim Demaille  <akim@epita.fr>
91952
91953         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
91954         `[' and `]' and remove uses of `changequote'.
91955         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
91956         (AC_SYS_LARGEFILE): Likewise.
91957         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
91958         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
91959         of changequote.
91960         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
91961         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
91962         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
91963         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
91964
91965 2000-02-05  Jim Meyering  <meyering@lucent.com>
91966
91967         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
91968         Remove explicit use of AC_HEADER_TIME.  It is required by
91969         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
91970         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
91971         in autoconf whereby the expansion of the latter ended up preceding
91972         the expansion of its prerequisite, AC_HEADER_TIME.
91973         Reported by Volker Borchert.
91974
91975 2000-02-03  Jim Meyering  <meyering@lucent.com>
91976
91977         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
91978
91979 2000-02-03  Jim Meyering  <meyering@lucent.com>
91980
91981         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
91982         rather than with `#if HAVE_UTMPNAME'.
91983
91984 2000-02-02  Jim Meyering  <meyering@lucent.com>
91985
91986         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
91987         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
91988         Reported by Eli Zaretskii.
91989
91990 2000-02-01  Jim Meyering  <meyering@lucent.com>
91991
91992         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
91993
91994 2000-01-31  Jim Meyering  <meyering@lucent.com>
91995
91996         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
91997         functions.  Add the time.h and sys/time.h headers along with the
91998         AC_REQUIRE'ment of AC_HEADER_TIME.
91999
92000 2000-01-31  Jim Meyering  <meyering@lucent.com>
92001
92002         * lib/nanosleep.h (nanosleep): Guard declaration with
92003         `#if ! HAVE_DECL_NANOSLEEP'.
92004         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
92005         the declaration in that vendor's sys/timers.h.
92006         Reported by Christian Krackowizer.
92007
92008         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
92009         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
92010         (ISPRINT): Likewise.
92011         Reported by Tom Tromey.
92012
92013 2000-01-30  Jim Meyering  <meyering@lucent.com>
92014
92015         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
92016
92017         * m4/prereq.m4 (utmp_includes): Define.
92018         Check for ut_user and ut_name members in both struct utmpx
92019         and struct utmp.
92020
92021 2000-01-30  Jim Meyering  <meyering@lucent.com>
92022
92023         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
92024         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
92025         header files where only utmpx.ut_user is declared.
92026
92027         * lib/readutmp.h (UT_USER): Define.
92028
92029 2000-01-29  Jim Meyering  <meyering@lucent.com>
92030
92031         * m4/lib-check.m4: New file containing library-related checks from
92032         fileutils and sh-utils (textutils had none).
92033
92034 2000-01-28  Jim Meyering  <meyering@lucent.com>
92035
92036         * m4/perl.m4: Change format of warning message to look more like that
92037         from the missing script.  Suggestion from François Pinard.
92038
92039 2000-01-25  Jim Meyering  <meyering@lucent.com>
92040
92041         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
92042         well as time.h in the compile check.
92043         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
92044         Fix typo in cross-compiling case: s/yes/no/.
92045
92046 2000-01-23  Jim Meyering  <meyering@lucent.com>
92047
92048         * m4/jm-macros.m4: Move df-related tests here from
92049         fileutils/configure.in
92050
92051         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
92052         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
92053
92054         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
92055         s/space/ac_fsusage_space/.
92056         (jm_FILE_SYSTEM_USAGE): Take two parameters.
92057
92058         * m4/ftruncate.m4: New file (derived from part of
92059         fileutils/configure.in).
92060         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
92061         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
92062
92063         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
92064         AC_SUBST these here, rather than just in sh-util/configure.in, so
92065         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
92066         all the same.
92067         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
92068         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
92069         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
92070         (AC_SUBST(POW_LIBM)): Likewise.
92071         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
92072
92073 2000-01-23  Jim Meyering  <meyering@lucent.com>
92074
92075         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
92076         obstack.c.
92077
92078 2000-01-22  Jim Meyering  <meyering@lucent.com>
92079
92080         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
92081
92082         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
92083
92084         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
92085         configure.in
92086         (AC_CHECK_HEADERS): Likewise for sh-utils.
92087         (AC_CHECK_HEADERS): Likewise for textutils.
92088         Merge the three lists of headers.
92089
92090         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
92091         from fileutils' configure.in.
92092
92093         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
92094         code. Moved tests into their own function (_jm_DECL_HEADERS) in
92095         check-decl.m4.
92096
92097         * m4/check-decl.m4: Use #if rather than #ifdef.
92098         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
92099         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
92100         (_jm_DECL_HEADERS): Define new function.
92101         (jm_CHECK_DECLARATIONS): Require it.
92102
92103 2000-01-22  Jim Meyering  <meyering@lucent.com>
92104
92105         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
92106         [! HAVE_DECL_STRTOULL]: Declare strtoull.
92107         Required for some AIX systems.  Reported by Christian Krackowizer.
92108         [TESTING] (main): New function.
92109
92110         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
92111         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
92112         letters.
92113
92114         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
92115         iswprint.
92116
92117         * lib/strverscmp.c (ISDIGIT): Define.
92118         (strverscmp): Use ISDIGIT, not isdigit.
92119
92120 2000-01-19  Jim Meyering  <meyering@lucent.com>
92121
92122         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
92123         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
92124         defines `struct timespec' in <sys/time.h>
92125
92126         * m4/c-bs-a.m4: Remove uses of changequote altogether.
92127         Thanks to Akim for explaining.
92128
92129 2000-01-17  Paul Eggert  <eggert@twinsun.com>
92130
92131         * lib/nanosleep.c (nanosleep):
92132         Don't use SA_INTERRUPT to decide whether to call sigaction, as
92133         POSIX.1 doesn't require SA_INTERRUPT and some systems
92134         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
92135         it's been part of POSIX.1 since day 1 (in 1988).
92136
92137 2000-01-17  Jim Meyering  <meyering@lucent.com>
92138
92139         * lib/interlock: Remove unused file.  Reported by François Pinard.
92140
92141 2000-01-16  Paul Eggert  <eggert@twinsun.com>
92142
92143         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
92144         alert, backslash, formfeed, and vertical tab unnecessarily in
92145         shell quoting style.
92146
92147 2000-01-16  Jim Meyering  <meyering@lucent.com>
92148
92149         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
92150         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
92151         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
92152         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
92153
92154 2000-01-16  Jim Meyering  <meyering@lucent.com>
92155
92156         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
92157         because the latter didn't work.
92158
92159 2000-01-15  Jim Meyering  <meyering@lucent.com>
92160
92161         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
92162         (AC_REPLACE_FUNCS): Add memcpy and memset.
92163         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
92164         Add strpbrk.
92165         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
92166
92167 2000-01-12  Jim Meyering  <meyering@lucent.com>
92168
92169         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
92170         (jm_PREREQ): Use it.
92171         (jm_PREREQ_READUTMP): New macro.
92172         (jm_PREREQ): Use it.
92173
92174 2000-01-11  Paul Eggert  <eggert@twinsun.com>
92175
92176         Quote multibyte characters correctly.
92177         * m4/c-bs-a.m4: New file.
92178         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
92179         (jm_PREREQ): Use it.
92180
92181 2000-01-11  Paul Eggert  <eggert@twinsun.com>
92182
92183         * m4/uintmax_t.m4: Port to autoconf 2.13.
92184
92185 2000-01-08  Jim Meyering  <meyering@ascend.com>
92186
92187         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
92188         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
92189
92190 2000-01-04  Jim Meyering  <meyering@ascend.com>
92191
92192         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
92193         jm_STRUCT_DIRENT_D_TYPE.
92194         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
92195         jm_STRUCT_DIRENT_D_INO.
92196         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
92197         jm_STRUCT_UTIMBUF.
92198         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
92199         renamings.
92200         * m4/utime.m4: Likewise.
92201
92202         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
92203         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
92204
92205 2000-01-03  Paul Eggert  <eggert@twinsun.com>
92206
92207         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
92208         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
92209
92210 2000-01-02  Jim Meyering  <meyering@ascend.com>
92211
92212         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
92213         remember if this is necessary.
92214
92215 1999-12-26  Jim Meyering  <meyering@ascend.com>
92216
92217         * m4/jm-macros.m4: Use it here.
92218         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
92219
92220 1999-12-23  Jim Meyering  <meyering@ascend.com>
92221
92222         * m4/jm-macros.m4: Check for clock_gettime (moved from
92223         fileutils/configure.in)
92224         Check for gettimeofday.
92225
92226 1999-12-20  Jim Meyering  <meyering@ascend.com>
92227
92228         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
92229         autoconf-2.14a-1999-12-20.
92230
92231 1999-12-19  Jim Meyering  <meyering@ascend.com>
92232
92233         * m4/lstat-slash.m4: New file.
92234         * m4/jm-macros.m4: Use the new macro:
92235         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
92236
92237 1999-12-07  Jim Meyering  <meyering@ascend.com>
92238
92239         * m4/perl.m4: Require that File::Compare be available, too.
92240         Too many systems seem to lack it.
92241
92242         * m4/strftime.m4: Add checks for most of the cpp macros tested in
92243         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
92244
92245 1999-11-18  Paul Eggert  <eggert@twinsun.com>
92246
92247         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
92248         problem with the QNX 4.25 shell, which doesn't propagate exit
92249         status of failed commands inside shell assignments.
92250
92251 1999-11-17  Jim Meyering  <meyering@ascend.com>
92252
92253         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
92254
92255 1999-11-07  Jim Meyering  <meyering@ascend.com>
92256
92257         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
92258
92259 1999-11-06  Jim Meyering  <meyering@ascend.com>
92260
92261         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
92262         * m4/jm-macros.m4 (jm_MACROS): Use it here.
92263
92264 1999-11-05  Jim Meyering  <meyering@ascend.com>
92265
92266         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
92267         configure.in of textutils, fileutils, and sh-utils into this one
92268         (shared between those packages) file.
92269         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
92270         AC_STRUCT_ST_BLKSIZE.
92271
92272 1999-11-03  Jim Meyering  <meyering@ascend.com>
92273
92274         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
92275         of AC_CHECK_TYPE checks includes unistd.h.
92276         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
92277         Suggestion from Akim Demaille.
92278
92279 1999-10-30  Jim Meyering  <meyering@ascend.com>
92280
92281         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
92282         m4-quoted string.
92283         * m4/ls-mntd-fs.m4: Likewise.
92284         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
92285         * m4/jm-winsz1.m4: Likewise.
92286
92287         * m4/const.m4: Remove file, since the fix made it into the experimental
92288         version of autoconf.
92289         * m4/mktime.m4: Likewise.
92290
92291         * m4/check-type.m4: Remove file, now that the latest version of
92292         AC_CHECK_TYPE takes a third arg to specify additional #includes.
92293
92294         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
92295         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
92296         AC_CHECK_TYPE.
92297
92298 1999-10-04  Jim Meyering  <meyering@ascend.com>
92299
92300         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
92301
92302 1999-09-22  Paul Eggert  <eggert@twinsun.com>
92303
92304         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
92305         2.95.1 bug with HP-UX 10.20.
92306
92307 1999-09-17  Jim Meyering  <meyering@ascend.com>
92308
92309         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
92310         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
92311         due to missing strdup (against sh-utils-2.0).
92312
92313 1999-08-29  Jim Meyering  <meyering@ascend.com>
92314
92315         * m4/jm-macros.m4: Require jm_BISON.
92316         * m4/bison.m4: New file.
92317
92318 1999-08-17  Paul Eggert  <eggert@twinsun.com>
92319
92320         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
92321         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
92322
92323 1999-08-05  Jim Meyering  <meyering@ascend.com>
92324
92325         * m4/getline.m4: Rename test file from conftestdata to conftest.data
92326         to avoid conflicts with `conftest' on 8+3 filesystems.
92327         Suggestion from Eli Zaretskii.
92328
92329 1999-08-04  Jim Meyering  <meyering@ascend.com>
92330
92331         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
92332         fileutils and sh-utils (textutils's getline test was inadequate).
92333         (AM_FUNC_GETLINE): Run this test.
92334         (AC_CHECK_FUNCS): Check for getdelim.
92335         Reported by Bob Proulx.
92336
92337 1999-08-02  Jim Meyering  <meyering@ascend.com>
92338
92339         * m4/jm-macros.m4: Add a comment.
92340
92341 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92342
92343         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
92344         <inttypes.h> defines strtoumax as a macro (and not as a
92345         function).
92346
92347 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92348
92349         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
92350         that we can shift, multiply and divide unsigned long long
92351         values; Ultrix cc can't do it.
92352
92353 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92354
92355         * m4/mktime.m4: New file, which is a preview of what should appear
92356         in the next public autoconf release.
92357
92358 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92359
92360         * m4/lfs.m4: Remove this file.
92361         * m4/largefile.m4: New file.  It contains the old contents of
92362         lfs.m4, except that all names with prefix AC_LFS have been
92363         changed to use the prefix AC_SYS_LARGEFILE instead, to be
92364         compatible with future autoconf versions.  Also, some minor m4
92365         quoting problems have been fixed.
92366
92367 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92368
92369         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
92370         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
92371         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
92372         and simplify the shell code.
92373
92374 1999-08-01  Jim Meyering  <meyering@ascend.com>
92375
92376         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
92377         m4.
92378
92379 1999-07-20  Jim Meyering  <meyering@ascend.com>
92380
92381         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
92382
92383 1999-07-15  Jim Meyering  <meyering@ascend.com>
92384
92385         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
92386
92387 1999-05-22  Jim Meyering  <meyering@ascend.com>
92388
92389         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
92390
92391 1999-05-20  Jim Meyering  <meyering@ascend.com>
92392
92393         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
92394         Add a colon after each `then' in case $4 is empty.
92395
92396 1999-05-16  Jim Meyering  <meyering@ascend.com>
92397
92398         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
92399
92400 1999-05-10  Jim Meyering  <meyering@ascend.com>
92401
92402         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
92403
92404         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
92405         AC_FUNC_MKTIME.
92406
92407 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
92408
92409         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
92410
92411 1999-05-04  Paul Eggert  <eggert@twinsun.com>
92412
92413         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
92414         not CPPFLAGS, so that linking works correctly in IRIX.
92415
92416 1999-04-30  Paul Eggert  <eggert@twinsun.com>
92417
92418         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
92419
92420 1999-04-20  Paul Eggert  <eggert@twinsun.com>
92421
92422         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
92423         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
92424         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
92425         jm_AC_TYPE_UNSIGNED_LONG_LONG.
92426         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
92427
92428         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
92429
92430 1999-04-20  Jim Meyering  <meyering@ascend.com>
92431
92432         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
92433         AC_REPLACE xstroull if necessary.  From Paul Eggert.
92434         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
92435
92436 1999-04-18  Jim Meyering  <meyering@ascend.com>
92437
92438         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
92439         * m4/jm-macros.m4: Use it.
92440
92441 1999-04-06  Jim Meyering  <meyering@ascend.com>
92442
92443         * m4/strftime.m4: Remove test for %f.
92444
92445 1999-03-29  Jim Meyering  <meyering@ascend.com>
92446
92447         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
92448         superset of the AC_TYPE_* checks in the textutils, fileutils,
92449         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
92450         AC_TYPE_PID_T.
92451
92452 1999-03-28  Jim Meyering  <meyering@ascend.com>
92453
92454         * m4/jm-macros.m4: Define GNU_PACKAGE here.
92455         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
92456         replaced e.g., in the *.sh files of the sh-utils.
92457
92458 1999-03-20  Jim Meyering  <meyering@ascend.com>
92459
92460         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
92461         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
92462         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
92463
92464 1999-03-19  Jim Meyering  <meyering@ascend.com>
92465
92466         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
92467
92468 1999-03-12  Jim Meyering  <meyering@ascend.com>
92469
92470         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
92471
92472 1999-03-07  Jim Meyering  <meyering@ascend.com>
92473
92474         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
92475         declared.
92476
92477 1999-02-17  Jim Meyering  <meyering@ascend.com>
92478
92479         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
92480         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
92481
92482 1999-02-07  Jim Meyering  <meyering@ascend.com>
92483
92484         * m4/group-member.m4: New file -- extracted from sh-utils'
92485         configure.in.
92486
92487         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
92488         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
92489
92490 1999-02-06  Jim Meyering  <meyering@ascend.com>
92491
92492         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
92493         * m4/fnmatch.m4: Likewise.
92494         * m4/getgroups.m4: Likewise.
92495         * m4/lstat.m4: Likewise.
92496         * m4/malloc.m4: Likewise.
92497         * m4/putenv.m4: Likewise.
92498         * m4/realloc.m4: Likewise.
92499         * m4/regex.m4: Likewise.
92500         * m4/stat.m4: Likewise.
92501         * m4/strftime.m4: Likewise.
92502         Suggestion from Alain Magloire.
92503
92504         * m4/chown.m4: Use `.$ac_objext', not `.o'.
92505         * m4/fnmatch.m4: Likewise.
92506         * m4/getgroups.m4: Likewise.
92507         * m4/getline.m4: Likewise.
92508         * m4/lstat.m4: Likewise.
92509         * m4/malloc.m4: Likewise.
92510         * m4/memcmp.m4: Likewise.
92511         * m4/putenv.m4: Likewise.
92512         * m4/realloc.m4: Likewise.
92513         * m4/regex.m4: Likewise.
92514         * m4/stat.m4: Likewise.
92515         * m4/strftime.m4: Likewise.
92516         Suggestion from Alain Magloire.
92517
92518         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
92519         an argument.
92520
92521         * m4/regex.m4: Add a run-time Test for proper operation of
92522         re_compile_pattern.
92523
92524 1999-01-31  Jim Meyering  <meyering@ascend.com>
92525
92526         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
92527
92528 1999-01-30  Jim Meyering  <meyering@ascend.com>
92529
92530         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
92531
92532         * m4/jm-mktime.m4: Make this a wrapper around the official
92533         AM_FUNC_MKTIME rather than my private copy, now that the official one
92534         is up to date.
92535         * m4/mktime.m4: Remove file.
92536
92537         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
92538         * m4/uptime.m4: Likewise.
92539         * m4/uintmax_t.m4: Likewise.
92540
92541 1999-01-28  Jim Meyering  <meyering@ascend.com>
92542
92543         * m4/jm-macros.m4: Use jm_AFS.
92544         * m4/afs.m4: New file (from fileutils' configure.in).
92545
92546         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
92547         * m4/chown.m4: Likewise.
92548         * m4/d-ino.m4: Likewise.
92549         * m4/d-type.m4: Likewise.
92550         * m4/fnmatch.m4: Likewise.
92551         * m4/getgroups.m4: Likewise.
92552         * m4/gettext.m4: Likewise.
92553         * m4/jm-mktime.m4: Likewise.
92554         * m4/jm-winsz2.m4: Likewise.
92555         * m4/lcmessage.m4: Likewise.
92556         * m4/ls-mntd-fs.m4: Likewise.
92557         * m4/malloc.m4: Likewise.
92558         * m4/memcmp.m4: Likewise.
92559         * m4/putenv.m4: Likewise.
92560         * m4/realloc.m4: Likewise.
92561         * m4/st_mtim.m4: Likewise.
92562         * m4/strftime.m4: Likewise.
92563
92564 1999-01-16  Jim Meyering  <meyering@ascend.com>
92565
92566         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
92567         (ARGMATCH_DIE_DECL): Define.
92568
92569 1999-01-12  Jim Meyering  <meyering@ascend.com>
92570
92571         * m4/Makefile.am.in: Rewrite to avoid using fmt.
92572         Reported by Lars Hecking.
92573
92574 1999-01-10  Jim Meyering  <meyering@ascend.com>
92575
92576         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
92577         gross kludge.
92578         * m4/inttypes_h.m4: Likewise.
92579         * m4/lstat.m4: Likewise.
92580         * m4/malloc.m4: Likewise.
92581         * m4/readdir.m4: Likewise.
92582         * m4/realloc.m4: Likewise.
92583         * m4/st_dm_mode.m4: Likewise.
92584         * m4/stat.m4: Likewise.
92585         * m4/utimbuf.m4: Likewise.
92586         * m4/utimes.m4: Likewise.
92587
92588         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
92589         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
92590         comments in config.h.in are meaningful.
92591
92592         * m4/jm-macros.m4: Require autoconf-2.13 here.
92593
92594         * m4/regex.m4: By default, don't use the included regex.c on systems
92595         with glibc 2.  Suggestion from Uli Drepper.
92596
92597 1999-01-02  Jim Meyering  <meyering@ascend.com>
92598
92599         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
92600
92601 1998-12-18  Jim Meyering  <meyering@ascend.com>
92602
92603         * m4/Makefile.am.in (Makefile.am): Simplify rule.
92604         Based on a suggestion from Lars Hecking.
92605
92606 1998-11-16  Paul Eggert  <eggert@twinsun.com>
92607
92608         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
92609
92610 1998-11-16  Jim Meyering  <meyering@ascend.com>
92611
92612         * m4/lfs.m4: Double-quote the `uname...` expression.
92613
92614 1998-11-14  Jim Meyering  <meyering@ascend.com>
92615
92616         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
92617         * m4/stat.m4: Likewise.
92618
92619 1998-11-03  Jim Meyering  <meyering@ascend.com>
92620
92621         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
92622         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
92623
92624 1998-10-18  Jim Meyering  <meyering@ascend.com>
92625
92626         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
92627
92628 1998-10-17  Jim Meyering  <meyering@ascend.com>
92629
92630         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
92631         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
92632         calls for those previously hard-coded headers.  Instead, take a new
92633         parameter.
92634         (jm_CHECK_DECLARATIONS): Reflect interface change.
92635         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
92636         (jm_CHECK_DECL_LOCALTIME_R): New macro.
92637
92638         * m4/mktime.m4: Test for spring-forward gap before long-running test.
92639
92640 1998-10-14  Jim Meyering  <meyering@ascend.com>
92641
92642         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
92643         instead of "TZ=America/Vancouver".  From Paul Eggert.
92644
92645 1998-10-11  Jim Meyering  <meyering@ascend.com>
92646
92647         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
92648         This adds a test for a recently added compatibility fix for mktime.c.
92649         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
92650
92651 1998-09-27  Jim Meyering  <meyering@ascend.com>
92652
92653         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
92654
92655         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
92656         ../configure.in, including a change from Gordon Matzigkeit to allow
92657         cross-compiling for the Hurd.
92658
92659         * m4/glibc.m4: New file/macro to test for the GNU C Library
92660         versions 1 and 2.  From Gordon Matzigkeit.
92661         Indent.
92662
92663 1998-09-21  Jim Meyering  <meyering@ascend.com>
92664
92665         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
92666
92667 1998-08-18  Paul Eggert  <eggert@twinsun.com>
92668
92669         Port nanosecond-resolution times to UnixWare 2.1.2 and
92670         pedantic Solaris 2.6.
92671
92672         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
92673         AC_STRUCT_ST_MTIM.
92674         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
92675         Generate name of ns member, instead of just 1 or undef.
92676         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
92677
92678 1998-08-15  Jim Meyering  <meyering@ascend.com>
92679
92680         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
92681         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
92682         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
92683         instead of jm_TYPE_SSIZE_T.
92684
92685 1998-08-12  Jim Meyering  <meyering@ascend.com>
92686
92687         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
92688
92689 1998-08-02  Jim Meyering  <meyering@ascend.com>
92690
92691         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
92692         in acconfig.h manually.
92693
92694 1998-07-31  Paul Eggert  <eggert@twinsun.com>
92695
92696         * m4/st_mtim.m4: New file.
92697
92698 1998-07-28  Jim Meyering  <meyering@ascend.com>
92699
92700         * m4/utimes.m4: Undef stat.
92701
92702 1998-07-25  Jim Meyering  <meyering@ascend.com>
92703
92704         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
92705         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
92706
92707 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
92708
92709         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
92710         uid and gid actually remain unchanged.
92711
92712 1998-07-07  Jim Meyering  <meyering@ascend.com>
92713
92714         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
92715
92716 1998-07-04  Jim Meyering  <meyering@ascend.com>
92717
92718         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
92719         to prove that this macro can be used in packages without regex.c.
92720
92721 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
92722
92723         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
92724         is to be used.
92725
92726 1998-07-03  Jim Meyering  <meyering@ascend.com>
92727
92728         * m4/gettext.m4: Add -lintl if it's found to be necessary.
92729
92730         * m4/gettext.m4: New file -- from gettext-0.10.35.
92731         * m4/lcmessage.m4: Likewise.
92732         * m4/progtest.m4: Likewise.
92733
92734         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
92735         * m4/jm-macros.m4: Require the new macro.
92736
92737 1998-06-29  Jim Meyering  <meyering@ascend.com>
92738
92739         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
92740         for the definition of NGROUPS (used in a system header included
92741         by sys/mount.h).
92742
92743 1998-06-28  Jim Meyering  <meyering@ascend.com>
92744
92745         * m4/ls-mntd-fs.m4: New file.
92746         * m4/fstypename.m4: New file.
92747
92748         * m4/jm-macros.m4: Require the new macro.
92749         * m4/jm-glibc-io.m4: New file.
92750
92751 1998-05-19  Jim Meyering  <meyering@ascend.com>
92752
92753         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
92754         * m4/lchown.m4: New file.
92755
92756         * m4/Makefile.am.in: New file.
92757         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
92758
92759 1998-05-14  Jim Meyering  <meyering@ascend.com>
92760
92761         * m4/Makefile.am (EXTRA_DIST): Add them.
92762         * m4/jm-macros.m4: New file.
92763         * m4/utimbuf.m4: New file.
92764
92765 1998-05-12  Jim Meyering  <meyering@ascend.com>
92766
92767         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
92768
92769 1998-05-11  Jim Meyering  <meyering@ascend.com>
92770
92771         * m4/isc-posix.m4: New file.
92772
92773 1998-05-10  Jim Meyering  <meyering@ascend.com>
92774
92775         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
92776
92777 1998-05-09  Jim Meyering  <meyering@ascend.com>
92778
92779         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
92780         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
92781         with automake.
92782
92783         * m4/ssize_t.m4: New file.
92784         * m4/mktime.m4: Remove file -- the new automake has this now.
92785
92786 1998-04-26  Jim Meyering  <meyering@ascend.com>
92787
92788         * m4/assert.m4: New file.
92789         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
92790
92791 1998-04-05  Jim Meyering  <meyering@ascend.com>
92792
92793         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
92794         (jm_PREREQ): Use it here.
92795
92796 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
92797
92798         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
92799         in acconfig.h.
92800
92801 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
92802
92803         * m4/prereq.m4: New file.
92804         * m4/error.m4: New file.
92805         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
92806
92807 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
92808
92809         * m4/getline.m4: Don't set am_cv_func_working_getline before the
92810         cache-check for the same variable -- that defeated the purpose of
92811         the test; the test program was never run.  This was a problem only
92812         on systems with losing getline functions -- HP-UX 10.20 is one.
92813         Reported by Bjorn Helgaas.
92814
92815 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
92816
92817         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
92818
92819 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
92820
92821         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
92822
92823         * m4/const.m4: New file.  Use an initializer in this declaration
92824         typedef int charset[2]; const charset x;
92825         Reported by Bob Glickstein.
92826
92827 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
92828
92829         * m4/chown.m4: Fix reversed types on -1 args to chown.
92830         From Kaveh Ghazi.
92831
92832 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
92833
92834         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
92835         Add lseek and memchr.
92836
92837         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
92838         T.E.Dickey <dickey@clark.net> said that some older preprocessors
92839         have a 20-character limit on names.
92840
92841 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
92842
92843         * m4/inttypes_h.m4: New file.
92844         * m4/uintmax_t.m4: New file.
92845         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
92846
92847
92848         -----
92849
92850         Local Variables:
92851         coding: utf-8
92852         End:
92853
92854         Copyright (C) 1997-2012 Free Software Foundation, Inc.
92855
92856         Copying and distribution of this file, with or without
92857         modification, are permitted provided the copyright notice
92858         and this notice are preserved.